/* ==========================================
   DESIGN TOKENS
   ========================================== */
:root {
  --blue:        #0081c3;
  --blue-dark:   #005a9a;
  --blue-hero:   #0d6bbf;
  --black:       #0a0a0a;
  --off-black:   #111214;
  --white:       #ffffff;
  --text-on-dark: #dde5ec;
  --text-muted:  #8a9bb0;
  --radius-pill: 999px;
  --radius:      10px;
  --header-h:    5.6rem;
  --ease:        cubic-bezier(0.4,0,0.2,1);
}

@font-face {
  font-family: "Coloseum";
  src: url('../font/Coloseum.otf') format('opentype'),
       url('../font/Coloseum.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ==========================================
   RESET
   ========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Prompt", sans-serif;
  font-weight: 300;
  font-style: normal;
  background: var(--off-black);
  color: var(--text-on-dark);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 {
   font-family: "Prompt", sans-serif;
  font-weight: 300;
  font-style: normal;}

/* ==========================================
   HEADER
   ========================================== */
#main-header {
  position: sticky;
  top: 0; z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 2.5rem;
  background: var(--black);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: height 0.35s var(--ease), box-shadow 0.35s var(--ease), border-bottom-color 0.35s var(--ease), background 0.35s var(--ease);
}
#main-header.scrolled {
  height: 54px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
  border-bottom-color: rgba(0,129,195,0.2);
}

/* ── Subpage logo (diagnostika, servis, motory etc.) ── */
.logo {
  position: absolute;
  left: 2rem; top: 50%;
  transform: translateY(-50%);
  display: flex; align-items: center;
  z-index: 1;
}
.logo img { height: 16%; width: auto; margin-top:1.5rem; }
#main-header.scrolled .logo img { height: 34px; }

/* ── Hero logo: centred, large, fades out when leaving hero ── */
.logo--hero {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center;
  z-index: 1;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.logo--hero img { height: 12rem; width: auto; margin-top: 1.0rem; }

/* When NOT hero-top: hero logo zooms up and out */
#main-header:not(.hero-top) .logo--hero {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-50% - 24px)) scale(0.88);
}

/* ── Nav logo: compact, top-left, slides in when leaving hero ── */
.logo--nav {
  position: absolute;
  left: 2rem; top: 50%;
  transform: translateY(-50%);
  display: flex; align-items: center;
  z-index: 1;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.logo--nav img { height: 50px; width: auto; margin-top: 0; }

/* When hero-top: nav logo hides above */
#main-header.hero-top .logo--nav {
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(-50% - 20px));
}

/* Not hero-top: blue header */
#main-header:not(.hero-top) {
  background: var(--blue);
  border-bottom-color: var(--blue-dark);
}
#main-header.scrolled:not(.hero-top) {
  background: var(--blue-dark);
}

/* Detail pages: always black, centred logo, nav visible */
#main-header.header--detail,
#main-header.header--detail.scrolled {
  background: var(--black);
  border-bottom-color: rgba(255,255,255,0.07);
  height: 5rem;
}
#main-header.header--detail .logo {
  left: 50%;
  transform: translate(-50%, -50%);
}
#main-header.header--detail .logo img {
  height: 20rem;
  margin-top: 1.8rem;
}

/* Hero-top state: black, no border */
#main-header.hero-top {
  background: var(--black);
  border-bottom-color: transparent;
}
#main-header.hero-top nav {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

nav {
  display: flex; gap: 0.5rem; align-items: center;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.nav-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius-pill);
  font-family: "Prompt", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-transform: uppercase;
}
.nav-btn:hover { background: rgba(0,129,195,0.2); border-color: var(--blue); }
.nav-btn.active { background: var(--blue); border-color: var(--blue); }

/* On the blue header: flip active to white pill, tighten hover */
#main-header:not(.hero-top) .nav-btn { border-color: rgba(255,255,255,0.35); }
#main-header:not(.hero-top) .nav-btn:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.7); }
#main-header:not(.hero-top) .nav-btn.active { background: var(--white); color: var(--blue); border-color: var(--white); }

/* ==========================================
   INFO BAR LINK (overrides <a> default decoration)
   ========================================== */
.info-bar-link { text-decoration: none; }

/* ==========================================
   INFO BAR
   ========================================== */
.info-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 199;
  background: #0d0d0d;
  border-bottom: 2px solid var(--blue);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-size: 0.85rem;
  color: var(--white);
  letter-spacing: 0.04em;
  max-height: 120px;
  overflow: hidden;
  opacity: 1;
  transition: max-height 0.25s var(--ease), opacity 0.25s var(--ease), top 0.25s var(--ease);
}
#main-header.scrolled ~ .info-bar {
  top: 54px;
}
.info-bar.hero-hidden {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}
.info-bar-item {
  margin-top: 0.15rem;
  padding: 0.35rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.info-bar-item:last-child { border-right: none; }
.info-bar .hl { color: var(--white); font-weight: 400; font-size: 1.4rem; }
.info-bar a:hover .hl { color: var(--blue); }

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  background: var(--blue-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 2px var(--blue) dashed
}

/* Bearing rings container */
.bearing-rings {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
}
.b-ring {
  position: absolute;
  transform: translate(-50%, -50%);
}
.b-ring svg {
  animation-name: spin;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Hero bearing ring positions (index.html) */
.b-ring--hero-1 { left: 38%; top: 50%; }
.b-ring--hero-2 { left: 82%; top: 22%; opacity: 0.6; }
.b-ring--hero-3 { left: 10%; top: 75%; opacity: 0.45; }

/* Hero bearing ring SVG animation overrides */
.b-ring-svg--hero-1 { animation-duration: 38s; }
.b-ring-svg--hero-2 { animation-duration: 25s; animation-direction: reverse; }
.b-ring-svg--hero-3 { animation-duration: 18s; }

/* Detail page bearing ring positions */
.b-ring--konzultace { left: 80%; top: 40%; opacity: 0.3; }
.b-ring--spoluprace { left: 15%; top: 50%; opacity: 0.25; }
.b-ring--kdojsme    { left: 85%; top: 50%; opacity: 0.3; }

/* Detail page bearing ring SVG animation overrides */
.b-ring-svg--konzultace { animation-duration: 35s; animation-direction: reverse; }
.b-ring-svg--spoluprace { animation-duration: 50s; }

/* Hero content */
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.75rem;
  padding: 1rem 1rem;
  margin-top: -3rem;
}
.hero-headline {
  font-family: "Prompt", sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.04em;
  text-shadow: 0 4px 40px rgba(0,0,0,0.3);
}
.hero-sub {
  font-family: "Prompt", sans-serif;
  font-size: clamp(0.85rem, 1.8vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.8);
}
.hero-sub--nudge { margin-top: -0.25rem; }

/* ==========================================
   CAR BUTTON (animated car travels across)
   ========================================== */
.car-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 256px;
  height: 54px;
  padding: 0 1.5rem;
  border-radius: var(--radius-pill);
  font-family: "Prompt", serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  user-select: none;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.car-btn:hover { transform: translateY(-2px); }
.car-btn.car-animating { pointer-events: none; }

/* Forward (hero) – white pill */
.car-btn--forward {
  background: var(--white);
  color: var(--black);
  border: none;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  margin-top: 1.5rem;
}
.car-btn--forward:hover { box-shadow: 0 14px 40px rgba(0,0,0,0.35); }

/* Reverse (back buttons) – outline ghost */
.car-btn--reverse {
  background: black;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.35);
}
.car-btn--reverse:hover { border-color: rgba(255,255,255,0.7); }

/* Car icon – absolutely positioned, slides across */
.car-btn-icon {
  position: absolute;
  top: 50%;
  left: 0;
  width: 52px;
  height: 34px;
  display: block;
  pointer-events: none;
  transition: transform 1s cubic-bezier(0.4, 0, 0.55, 1);
  background-image: url('../KEWEB/FOLLOWUP_1/Car_with_white_button_for_animations.png');
  background-size: auto 28px;
  background-repeat: no-repeat;
  background-position: right center;
  mix-blend-mode: multiply;
}
/* Forward: flip to face right, starts left, drives right */
.car-btn--forward .car-btn-icon {
  transform: translate(14px, -50%) scaleX(-1);
}
.car-btn--forward.car-animating .car-btn-icon {
  transform: translate(270px, -50%) scaleX(-1);
}
/* Reverse: car faces LEFT (scaleX flip), starts right, reverses left */
.car-btn--reverse .car-btn-icon {
  transform: translate(198px, -50%) scaleX(-1);
  filter: invert(1);
  mix-blend-mode: screen;
}
.car-btn--reverse.car-animating .car-btn-icon {
  transform: translate(-36px, -50%) scaleX(-1);
}

/* Labels */
.car-btn-label {
  transition: opacity 0.2s;
  pointer-events: none;
  position: relative; z-index: 1;
}
.car-btn-anim-label {
  position: absolute;
  opacity: 0;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: inherit;
  transition: opacity 0.2s 0.1s;
  pointer-events: none;
  z-index: 1;
}
.car-btn.car-animating .car-btn-label   { opacity: 0; }
.car-btn.car-animating .car-btn-anim-label { opacity: 0.8; }

/* Right floating nav buttons */
.hero-float-nav {
  position: absolute;
  right: 2rem; top: 25%;
  transform: translateY(-80%);
  z-index: 3;
  display: flex; flex-direction: column; gap: 1.85rem;
}
.float-btn {
  background: var(--white);
  color: var(--black);
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.4rem 2rem;
  font-family: "Prompt", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  min-width: 190px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.float-btn:hover {
  transform: translateX(-15px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  background: #f0f4f8;
}
.float-btn:hover::before { opacity: 0.1; }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  animation: hintBounce 2.2s ease-in-out infinite;
}
@keyframes hintBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}

/* ==========================================
   TEXTURED SECTIONS (metallic/industrial)
   ========================================== */
.textured {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: url('../img/abstract-dirty-grunge-tire-marks.png');
  background-size: cover;
  background-position: center;
  background-color: #181818;
  background-blend-mode: luminosity;
}
.textured::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(8, 8, 8, 0.74);
  pointer-events: none;
}
.textured > * { position: relative; z-index: 1; }

/* Sluzby + Kontakt share drone.jpg as one continuous parallax window */
/* scroll-margin-top = scrolled header (54px) + info bar (~44px) + 14px breathing room */
#sluzby {
  scroll-margin-top: 12px;
  background-image: url('../KEWEB/JPEG/drone.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  background-blend-mode: normal;
}

#sluzby::before {
  background: rgba(8, 5, 2, 0.01);
}
#kontakt {
  background-image: url('../KEWEB/JPEG/drone.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  background-blend-mode: normal;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
#kontakt::before {
  background: rgba(8, 5, 2, 0.01);
}

/* ==========================================
   SECTION BANNER (blue header stripe)
   ========================================== */
.section-banner {
  background: var(--blue);
  text-align: center;
  padding: 0.8rem 2rem;
  font-family: "Prompt", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--white);
  text-transform: uppercase;
}

/* Sub-section banner: smaller, semi-transparent blue */
.section-banner--sub {
  font-size: 0.72rem;
  padding: 0.55rem 2rem;
  background: rgba(0,129,195,0.35);
  letter-spacing: 0.2em;
}

/* Sub-section banner without letter-spacing override (e.g. "Z naší práce") */
.section-banner--sub-compact {
  font-size: 0.72rem;
  padding: 0.55rem 2rem;
  background: rgba(0,129,195,0.35);
}

/* Section-banner image with top margin (servis.html top banner) */
.section-banner-img--spaced { margin-top: 1rem; }

/* Page title variant – Coloseum font, replaces the PNG title images */
.section-banner--page-title {
  font-family: "Coloseum", "Prompt", sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: normal;
  letter-spacing: 0.08em;
  padding: 1.5rem 2rem 1.2rem;
  line-height: 1;
}

/* ==========================================
   SERVICES OVERVIEW
   ========================================== */
.services-section {
  flex: 1;
  padding: 10rem 3rem 4rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#services-section::before {
  background: rgba(8, 5, 2, 0.01);
}
.services-section h2 {
  text-align: center;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  color: var(--white);
}
.services-section h3, h4 {
  text-align: center;
  font-size: clamp(0.5rem, 2.5vw, 1rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--white);
}

/* Heading box – same width and border as the service tiles below */
.services-heading-wrap {
  width: 100%;
  margin: 0 auto 2.5rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.62);
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.5rem 3.5rem 1.25rem;
}
.services-heading-wrap h2,
.services-heading-wrap h3,
.services-heading-wrap h4 {
  font-family: "Prompt", sans-serif;
  font-weight: normal;
  font-size: 12px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.9), 0 0 6px rgba(0,0,0,0.95);
}
.services-heading-wrap h2 { margin-bottom: 0.5rem; }
.services-heading-wrap h3 { margin-bottom: 0.15rem; }
.services-heading-wrap h4 { margin-bottom: 0; }

@media (max-width: 640px) {
  .services-heading-wrap { padding: 1.25rem 1.5rem 1rem; }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.service-tile {
  position: relative;
  aspect-ratio: 3/2;
  min-height: 130px;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
  display: flex; align-items: flex-end;
}
.service-tile:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,129,195,0.35);
  border-color: #29b6f6;
}
.service-tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.25) saturate(0.5);
  transform: scale(1);
  transition: filter 0.45s var(--ease), transform 0.55s var(--ease);
}
.service-tile:hover img {
  filter: brightness(0.55) saturate(0.85);
  transform: scale(1.06);
}
.service-tile-label {
  position: absolute;
  top: 10%; left: 10%; right: 10%; bottom: 20%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-tile-label-text {
  font-family: "Coloseum", sans-serif;
  font-weight: normal;
  font-size: clamp(2.6rem, 4.5vw, 4.2rem);
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
}

.section-banner-img {
  max-height: 54px;
  width: auto;
  max-width: 80%;
  display: inline-block;
}

/* ==========================================
   BRAND STRIP
   ========================================== */
.brand-strip {
  padding: 1.4rem 2rem;
  text-align: center;
  font-family: "Prompt", sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.22em;
  color: var(--text-white);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6rem;
}
.brand-strip-img {
  max-height: 88px;
  width: auto;
  max-width: min(100%, 900px);
  display: block;
  opacity: 0.88;
}

/* ==========================================
   FOOTER CONTACT SECTION
   ========================================== */
.footer-contact {
  padding: 4rem 2.5rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.footer-col {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 0.6rem;
}
.footer-col-icon { font-size: 1.8rem; opacity: 0.6; margin-bottom: 0.25rem; }
.footer-col-label {
  font-family: "Prompt", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 0.5rem;
  margin-bottom: 0.25rem;
  width: 100%;
}
.footer-col h3 { font-family: "Prompt", sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--white); }
.footer-col p { color: var(--text-muted); font-size: 0.88rem; }
.footer-col .workshop-img {
  width: 100%; max-width: 210px;
  border-radius: var(--radius);
  border: 2px solid var(--blue);
  margin: 0.5rem auto;
}
.footer-bottom {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  border: none; border-radius: var(--radius-pill);
  font-family: "Prompt", sans-serif;
  font-weight: 700; letter-spacing: 0.1em;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-transform: uppercase;
}
.btn:hover { transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--black); padding: 0.7rem 1.8rem; font-size: 0.8rem; }
.btn-white:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
.btn-blue { background: var(--blue); color: var(--white); padding: 0.7rem 1.8rem; font-size: 0.8rem; box-shadow: 0 4px 20px rgba(0,129,195,0.3); }
.btn-blue:hover { background: var(--blue-dark); box-shadow: 0 8px 30px rgba(0,129,195,0.4); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.3); padding: 0.7rem 1.8rem; font-size: 0.8rem; }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }
.btn-back { background: #111; color: var(--white); border: 1px solid rgba(255,255,255,0.15); padding: 0.7rem 2rem; font-size: 0.8rem; }

/* ==========================================
   KDO JSEM MODAL
   ========================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-card {
  position: relative;
  isolation: isolate;
  background: #0a2a4a;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 700px; width: 92vw;
  display: grid; grid-template-columns: 230px 1fr;
  transition: transform 0.35s var(--ease);
  box-shadow: 0 50px 100px rgba(0,0,0,0.7);
}
/* Dark overlay – renders first, behind texture */
.modal-card::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0, 40, 80, 0);
  pointer-events: none;
}
/* Rotated tire-marks texture – renders above overlay, below content */
.modal-card::after {
  position: relative;
  z-index: 0;content: ''; position: absolute;
  top: 50%; left: 50%;
  width: 200%; height: 200%;
  transform: translate(-50%, -50%) rotate(45deg);
  background-image: url('../img/abstract-dirty-grunge-tire-marks.png');
  background-repeat: none;
  background-size: fit;
  opacity: 0.22;
  mix-blend-mode: overlay;
  pointer-events: none;
}
/* kdo-jsem card has its own per-column texture — suppress card-level one */

.modal-overlay.open .modal-card { transform: scale(1) translateY(4); }
.modal-photo { position: relative; z-index: 1; overflow: hidden; min-height: 320px; }
.modal-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%); }
.modal-body {
  position: relative; z-index: 1;
  padding: 2.5rem 2rem;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.modal-headline {
  font-family: "Prompt", sans-serif; font-size: 0.75rem;
  letter-spacing: 0.25em; color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}
.modal-title {
  font-family: "Prompt", sans-serif; font-size: 1.8rem;
  font-weight: 800; color: var(--white); letter-spacing: 0.12em;
  line-height: 1.3; margin-top: 0.25rem; text-transform: uppercase;
}
.modal-mascot { width: 55px; filter: drop-shadow(0 3px 10px rgba(0,0,0,0.5)); }
.modal-name { font-family: "Prompt", sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--white); }
.modal-role { color: var(--blue); font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; }
.modal-desc { color: rgba(255,255,255,0.78); font-size: 1.0rem; line-height: 1.75; margin-top: 0.25rem; flex: 1; }
.modal-close-btn { margin-top: auto; }
.modal-back-btn {
  position: absolute;
  bottom: 1.5rem;
  left: 2rem;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: var(--radius-pill);
  font-family: "Prompt", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  cursor: pointer;
  transition: border-color 0.2s;
  z-index: 2;
}
.modal-back-btn:hover { border-color: var(--white); }

/* Modal mascot / desc spacing overrides */
.modal-mascot--spaced { margin-top: 0.5rem; }
.modal-desc--spaced   { margin-top: 0.5rem; }

/* ==========================================
   SERVICE DETAIL PAGES
   ========================================== */

/* Hero with drone.jpg background */
.detail-hero {
  position: relative;
  min-height: 12vh;
  background-image: url('../KEWEB/JPEG/drone.jpg');
  background-size: cover;
  background-position: center 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.detail-hero::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
}
.detail-hero-rings {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
}
.detail-hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 3rem 2rem;
  max-width: 760px;
}
.detail-eyebrow {
  font-family: "Prompt", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.detail-hero h1 {
  font-family: "Prompt", sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.45);
}
.detail-hero-sub {
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.85;
}

/* Subtle monkey watermark in hero */
.detail-monkey-bg {
  position: absolute;
  bottom: -20px;
  right: 3%;
  width: 260px;
  opacity: 0.055;
  pointer-events: none;
  z-index: 1;
  filter: grayscale(1);
}

/* Detail page – drone.jpg parallax instead of grunge texture */
.detail-page-bg {
  background-image: url('../KEWEB/JPEG/drone.jpg') !important;
  background-attachment: fixed;
  background-size: cover;
  background-position: center 10%;
  background-blend-mode: normal !important;
}
.detail-page-bg::before {
  background: rgba(8, 1, 2, 0.42) !important;
}

/* Info pages (kdojsme, spoluprace, konzultace) – plain blue + tire marks splash */
.page-bg--blue {
  background-color: var(--blue);
  background-image: none;
  background-blend-mode: normal;
  background-attachment: scroll;
}
.page-bg--blue::before {
  display: none;
}
.page-bg--blue::after {
  content: '';
  position: absolute;
  bottom: -10%; left: -5%;
  width: 80%; height: 80%;
  transform: rotate(45deg);
  background-image: url('../img/abstract-dirty-grunge-tire-marks.png');
  background-size: 60%;
  background-repeat: repeat;
  opacity: 0.18;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

/* Split layout */
.detail-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 4.5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}
.detail-split--reverse { direction: rtl; }
.detail-split--reverse > * { direction: ltr; }

.detail-text-side h2 {
  font-family: "Prompt", sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  color: var(--white);
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}
.detail-text-side p {
  color: var(--white);
  font-size: 0.9rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

/* Checklist */
.detail-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.5rem;
}
.detail-checklist li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.87rem;
  color: var(--text-on-dark);
  padding: 0.6rem 1rem;
  background: rgba(0,0,0,0.24);
  border-left: 3px solid var(--blue);
  border-radius: 0 6px 6px 0;
  transition: background 0.2s, border-color 0.2s;
}
.detail-checklist li:hover {
  background: rgba(0,129,195,0.1);
  border-color: #29b6f6;
}
.detail-checklist li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Image side */
.detail-img-side {
  position: relative;
}
.detail-main-img {
  width: 100%;
  border-radius: var(--radius);
  border: 2px solid rgba(0,129,195,0.25);
  filter: brightness(0.72) saturate(0.75);
  display: block;
}
.detail-img-monkey {
  position: absolute;
  bottom: -35px;
  left: -25px;
  width: 140px;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
  filter: grayscale(1);
}

/* Motory – dekarbonizace feature block */
.motory-feature {
  padding: 3rem 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.motory-feature-desc {
  color: var(--text-white);
  font-size: 0.9rem;
  line-height: 1.9;
  max-width: 820px;
  margin-bottom: 2.5rem;
}
.motory-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}
.motory-feature-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.motory-feature-col-title {
  font-family: "Prompt", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0,129,195,0.3);
}
/* Checklist with extra bottom margin (diagnostika.html) */
.detail-checklist--mb { margin-bottom: 2rem; }

/* Gallery link button – pushed to vertical midpoint */
.detail-gallery-btn--mid { margin-top: 50%; }

/* Gallery anchor spacer (diagnostika, motory) */
#galerie { margin-bottom: 10.5rem; }

/* Detail monkey bg – inverted variant (konzultace.html) */
.detail-monkey-bg--inverted {
  opacity: 0.04;
  filter: invert(1) grayscale(1);
}

/* Floating back button – fixed bottom-right on service detail pages */
.detail-back-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 300;
}

/* CTA strip */
.detail-cta {
  text-align: center;
  padding: 2.5rem 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .motory-feature-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .motory-feature { padding: 2rem 1.5rem; }
  .detail-split { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 1.5rem; }
  .detail-split--reverse { direction: ltr; }
  .detail-hero { min-height: 50vh; }
  .detail-monkey-bg { width: 160px; opacity: 0.04; }
}

/* ==========================================
   SERVICE DETAIL PAGES
   ========================================== */
.service-detail-hero {
  padding: 3.5rem 2.5rem 2.5rem;
  text-align: center;
  max-width: 700px; margin: 0 auto;
}
.service-detail-hero h1 {
  font-size: clamp(1.3rem, 3.5vw, 2.2rem);
  letter-spacing: 0.2em; color: var(--white); margin-bottom: 1rem;
}
.service-detail-hero p { color: var(--text-muted); font-size: 0.92rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  padding: 2rem 3rem 4rem;
  max-width: 1800px;
  margin: 0 auto;
}

.detail-gallery-btn {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 1rem 1rem;
  background: rgba(0,129,195,0.18);
  border: 1px solid white;
  border-radius: var(--radius-pill);
  color: var(--white);
  font-family: "Prompt", serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.detail-gallery-btn:hover {
  background: rgba(0,129,195,0.68);
  color: #fff;
}
.gallery-tile {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
}

/* Placeholder tile – shown when no real photo is available */
.gallery-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #17191d 0%, #20242b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(160,175,190,0.1);
  border-radius: inherit;
}

.gallery-tile img {
  width: 90%; height: 90%; object-fit: cover;
  filter: brightness(0.95) saturate(0.6);
  transition: filter 0.3s, transform 0.4s;
}
.gallery-tile:hover img { filter: brightness(0.85) saturate(0.9); transform: scale(0.94); }

/* ── Live gallery tiles (JS-populated) ── */
.gallery-tile--live {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.gallery-tile--live img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.78) saturate(0.72);
  transition: transform 0.45s var(--ease), filter 0.45s var(--ease);
}
.gallery-tile--live:hover img,
.gallery-tile--live:focus-visible img {
  transform: scale(1.07);
  filter: brightness(1) saturate(1);
}
.gallery-tile--live:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Empty-state message */
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-family: "Prompt", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  padding: 4rem 1rem;
}

/* ══════════════════════════════════════════════════════════════════════
   GALLERY LIGHTBOX
   ══════════════════════════════════════════════════════════════════════ */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.gallery-lightbox.glb-open {
  opacity: 1;
  pointer-events: all;
}

/* Stage */
.glb-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 88vw;
  max-height: 88vh;
}
.glb-img {
  max-width: 88vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.28s var(--ease);
  display: block;
}
.glb-img--loaded { opacity: 1; }

/* Close */
.glb-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.glb-close:hover { background: rgba(255,255,255,0.18); color: var(--white); }

/* Prev / Next */
.glb-prev, .glb-next {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  font-size: 2.2rem;
  line-height: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0 1rem;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  user-select: none;
}
.glb-prev:hover, .glb-next:hover {
  background: rgba(0,129,195,0.35);
  border-color: var(--blue);
  color: var(--white);
  transform: scale(1.08);
}

/* Counter */
.glb-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.45);
  font-family: "Prompt", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
}

/* Responsive lightbox */
@media (max-width: 640px) {
  .glb-prev, .glb-next { width: 40px; height: 40px; font-size: 1.6rem; margin: 0 0.4rem; }
  .glb-img { max-width: 94vw; max-height: 80vh; }
  .glb-stage { max-width: 94vw; max-height: 80vh; }
}

.back-section {
  text-align: center;
  padding: 1.5rem 0 4rem;
}

/* ==========================================
   CONTACT PAGE
   ========================================== */
.contact-wrap {
  padding: 4rem 2.5rem;
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-col > h3 {
  font-family: "Prompt", sans-serif;
  font-size: 0.72rem; letter-spacing: 0.28em;
  color: var(--text-muted); text-transform: uppercase;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 0.5rem; margin-bottom: 1.5rem;
}
.contact-address { color: var(--text-on-dark); font-size: 0.9rem; line-height: 1.8; }
.map-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  margin-top: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0,129,195,0.25);
  background: rgba(0,129,195,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-family: "Prompt", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.contact-phone { font-size: 2rem; font-weight: 700; color: var(--white); font-family: "Prompt", sans-serif; display: block; margin-top: 0.25rem; }
.contact-phone:hover { color: var(--blue); }
.contact-email { color: var(--text-muted); font-size: 0.88rem; }
.map-box {
  width: 100%;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.8rem;
  margin-top: 1rem;
}

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 0.65rem; }
.contact-form input,
.contact-form textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  color: var(--white);
  font-family: "Prompt", sans-serif;
  font-size: 0.88rem;
  transition: border-color 0.2s, background 0.2s;
  resize: none; width: 100%;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.22); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(0,129,195,0.06);
}

/* Submit button with car animation */
.submit-wrap { position: relative; margin-top: 0.5rem; }
.submit-btn {
  width: 100%;
  background: var(--blue);
  color: var(--white);
  border: none; border-radius: var(--radius-pill);
  padding: 0.85rem 2rem;
  font-family: "Prompt", sans-serif; font-weight: 700;
  letter-spacing: 0.12em; font-size: 0.85rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  transition: background 0.2s, opacity 0.2s;
  overflow: hidden;
}
.submit-btn:hover { background: var(--blue-dark); }
.submit-btn .s-car {
  display: inline-block;
  width: 38px;
  height: 26px;
  flex-shrink: 0;
  background-image: url('../KEWEB/FOLLOWUP_1/Car_with_white_button_for_animations.png');
  background-size: auto 24px;
  background-repeat: no-repeat;
  background-position: right center;
  filter: invert(1);
  mix-blend-mode: screen;
  font-size: 0;
  transition: transform 0.9s ease-in-out;
}
.submit-btn.sending .s-car { transform: translateX(280px); }
.submit-btn.sending { opacity: 0.7; pointer-events: none; }

.success-msg {
  display: none;
  text-align: center;
  padding: 1.5rem 1rem;
  font-family: "Prompt", sans-serif;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  color: var(--white);
  animation: popIn 0.4s var(--ease);
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

/* to-start link */
.to-start {
  display: block; text-align: center;
  padding: 2.5rem;
  font-family: "Prompt", sans-serif;
  font-size: 0.88rem; letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: color 0.2s;
}
.to-start:hover { color: var(--white); }

/* ==========================================
   KONTAKT – owner photo placeholder
   ========================================== */
.owner-photo-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}
.owner-photo-placeholder {
  width: 220px;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  border: 2px dashed rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.35);
}
.owner-photo-name {
  font-family: "Prompt", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.owner-photo-hint {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.22);
}

/* ==========================================
   KONTAKT CTA (trigger button area)
   ========================================== */
.kontakt-cta-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 2rem 2rem;
}
.btn-contact-trigger {
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--blue);
  border-radius: var(--radius-pill);
  padding: 0.75rem 2.5rem;
  font-family: "Prompt", sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s, border-color 0.25s;
  box-shadow: 0 4px 20px rgba(0,129,195,0.2);
}
.btn-contact-trigger:hover {
  background: rgba(0,129,195,0.15);
  border-color: #29b6f6;
  box-shadow: 0 8px 30px rgba(0,129,195,0.35);
}

/* ==========================================
   KONTAKT FORM AREA (legacy, keep for compat)
   ========================================== */
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

/* ── Kdo Jsem modal – tread texture, light blue, 2-col ── */
.modal-card--kdo-jsem {
  display: grid;
  grid-template-columns: 1fr 360px;
  background-color: var(--blue);
  max-width: min(1290px, 96vw);
  width: 96vw;
  min-height: min(700px, 88vh);
  padding: 0;
  overflow: hidden;
  align-items: stretch;
  color: white;
}

/* Shared column base */
.kjm-col {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

/* Col 1 – blue monkey, vertically centred */
.kjm-col--name {
  justify-content: end;
  align-items: end;
  padding: 2rem 1.25rem;
  overflow: hidden;
  background: rgba(0, 45, 110, 0);
}
.kjm-name {
  font-family: "Prompt", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  position: relative; z-index: 1;
}
.kjm-monkey {
  width: 180px;
  display: block;
}

/* Signature row: name + inline monkey */
.kjm-signature {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}
.kjm-monkey-inline {
  height: 72px;
  width: auto;
  display: block;
  flex-shrink: 0;
  opacity: 0.9;
}

/* Col 2 – name + tagline + bio */
.kjm-col--text {
  justify-content: center;
  padding: 1.5rem 2rem 4rem;
  gap: 0.45rem;
  overflow: hidden;
}

.kjm-tagline {
  font-family: "Prompt", sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255,255,255,0.95);
  line-height: 2.75;
  margin-bottom: 0.6rem;
  position: relative; z-index: 1;
}
.kjm-bio {
  font-family: "Prompt", sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  color: rgba(255,255,255,0.92);
  line-height: 2.25;
  margin-bottom: 0.5rem;
  position: relative; z-index: 1;
}

.kjm-detail {
  font-family: "Prompt", sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--white);
  line-height: 1.8;
  position: relative; z-index: 1;
}

/* Col 3 – photo top to bottom, full height */
.kjm-col--photo {
  padding: 0;
  overflow: hidden;
}
.kjm-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
  filter: grayscale(100%);
  display: block;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .modal-card--kdo-jsem {
    grid-template-columns: 1fr 260px;
    min-height: min(580px, 88vh);
  }
  .kjm-monkey-inline { height: 56px; }
  .kjm-name { font-size: 1.2rem; }
  .modal-title { font-size: 1.2rem; }
  .kjm-tagline { font-size: 0.88rem; }
  .kjm-col--text { padding: 1.25rem 1.5rem 1.5rem; }
  .modal-back-btn { position: static; margin-top: 1rem; }
}

@media (max-width: 640px) {
  .modal-card--kdo-jsem {
    grid-template-columns: 1fr;
    grid-template-rows: 42vh auto;
    min-height: 0;
    max-height: 80vh;
    overflow-y: auto;
  }
  .kjm-col--photo { grid-column: 1; grid-row: 1; }
  .kjm-col--text { grid-column: 1; grid-row: 2; padding: 1.25rem 1.5rem 1.5rem; }
  .kjm-photo { height: 42vh; }
  .kjm-monkey-inline { height: 44px; }
  .kjm-name { font-size: 1rem; }
  .modal-title { font-size: 1rem; }
}

@media (max-width: 480px) {
  .kjm-col--text { padding: 1rem 1.25rem 1.25rem; }
}

/* ── Contact modal – single blue panel ── */
.modal-card--contact {
  display: block;
  background: var(--blue);
  background-image: none;
  max-width: 560px;
  width: 92vw;
  padding: 3rem 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.modal-card--contact::before { display: none; }

/* Logo watermark – subtle top-left corner */
.contact-modal-watermark {
  position: absolute;
  top: 1.5rem;
  left: 1.75rem;
  transform: none;
  width: 28%;
  opacity: 0.13;
  pointer-events: none;
  filter: brightness(0) invert(1);
  user-select: none;
}

/* Form layout */
.contact-modal-form {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Each field – underline style, no box */
.contact-modal-field {
  border-bottom: 1px solid rgba(255,255,255,0.35);
  margin-bottom: 0.25rem;
}
.contact-modal-field:focus-within {
  border-bottom-color: rgba(255,255,255,0.9);
}
.contact-modal-field input,
.contact-modal-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.85rem 0.25rem;
  color: var(--white);
  font-family: "Prompt", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  resize: none;
}
.contact-modal-field input::placeholder,
.contact-modal-field textarea::placeholder {
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Submit button – centered, top margin */
.car-btn--submit {
  align-self: center;
  margin-top: 2rem;
  min-width: 220px;
}

/* Success message inside modal */
#modal-napiste-mi .success-msg {
  position: relative;
  z-index: 1;
  display: none;
  text-align: center;
  color: var(--white);
  font-family: "Prompt", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 3rem 1rem;
  opacity: 0.9;
}

/* ==========================================
   RISING PANELS (Kontakt footer)
   ========================================== */
.rising-panels-area {
  display: flex;
  align-items: flex-end;
  margin-top: auto;
}
.rising-panels {
  display: flex;
  width: 100%;
  align-items: flex-end;
}
.rising-panel {
  flex: 1;
  background: var(--blue);
  padding: 2.75rem 1.2rem 1.75rem;
  border-radius: 14px 14px 10px 10px;
  border: 1px solid rgba(255,255,255,0.74);
  border-bottom: none;
  box-shadow: 10 -8px 32px rgba(0,0,0,0.35), inset 10px 1px 0 rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  gap: 0.45rem;
  min-height: 190px;
}
.rising-panel--center {
  min-height: 220px;
  background: var(--blue-dark);
  transition: box-shadow 0.3s;
  z-index: 1;
}

/* Map popup: anchored to top of panel, slides upward on .map-open */
.rising-panel-map {
  position: absolute;
  bottom: 100%;
  left: 0; right: 0;
  height: 0;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -12px 50px rgba(0,0,0,0.55);
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 5;
}
.rising-panel--center.map-open .rising-panel-map { height: 46vh; }
.rising-panel-map iframe { width: 100%; height: 100%; border: none; display: block; }

/* Elevate stacking context when map is open */
.rising-panels-area:has(.rising-panel--center.map-open) { position: relative; z-index: 10; }

/* Google Maps icon button – top-left of center panel */
.rising-panel-gmaps-btn {
  position: absolute;
  top: 0.6rem;
  left: 0.7rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  border: none;
  border-radius: 50%;
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
  z-index: 2;
}
.rising-panel-gmaps-btn:hover { opacity: 1; background: rgba(0,0,0,0.7); }
.rising-panel--center.map-open .rising-panel-gmaps-btn { opacity: 1; background: rgba(0,0,0,0.7); }
.rising-panel-gmaps-btn svg { width: 16px; height: 16px; }

/* Jsem Zde photo card */
.jsem-zde-card {
  background: var(--black);
  border: 1.5px solid rgba(0,129,195,0.45);
  border-radius: var(--radius);
  overflow: hidden;
  width: 50%;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.45);
}
.jsem-zde-card__title {
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem 0.45rem;
  border-bottom: 1px solid rgba(0,129,195,0.25);
}
.jsem-zde-card__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

/* Napište mi button inside the center panel */
.rising-panel-napiste {
  margin-top: 0.5rem;
  padding: 0.45rem 1.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}
.rising-panel-badge {
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 60px;
  background: none;
  border: none;
  border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: visible;
  z-index: 10;
}
.rising-panel-label {
  font-family: "Prompt", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  width: 100%;
}
.rising-panel-text {
  color: var(--white);
  font-size: 0.85rem;
  line-height: 1.6;
}
.rising-panel-phone {
  font-family: "Prompt", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-top: 0.4rem;
  transition: color 0.2s;
}
.rising-panel-phone:hover { color: rgba(255,255,255,0.75); }

/* Rising panel – operating hours text style */
.rising-panel-hours {
  font-family: "Prompt", sans-serif;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
}

/* Rising panel – email link */
.rising-panel-email {
  margin-top: 0.2rem;
  font-size: 0.78rem;
}
.rising-panel-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.footer-bottom--blue {
  background: var(--blue-dark);
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
}

/* ==========================================
   KDO JSEM PAGE – bio card
   ========================================== */
.bio-card {
  background: rgba(0,100,180,0.22);
  border: 1px solid rgba(0,129,195,0.4);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.bio-card-mascot {
  width: 64px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}
.bio-card-name {
  font-family: "Prompt", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
}
.bio-card-role {
  font-size: 0.78rem;
  color: var(--blue);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0.2rem 0 0.75rem;
}
.bio-card-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
}

/* kdojsme page – .detail-text-side p has higher specificity (0,1,1) so boost these */
.detail-text-side .kjm-name {
  color: var(--white);
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}
.detail-text-side .bio-card-role {
  color: var(--blue);
  font-size: 0.78rem;
  margin-bottom: 0;
}

/* ==========================================
   SCROLL TO TOP FLOAT
   ========================================== */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  transform: translateY(12px);
}
.scroll-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.car-btn--float {
  min-width: 148px;
  height: 46px;
  font-size: 0.72rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .footer-contact { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .modal-card { grid-template-columns: 1fr; }
  .modal-photo { min-height: 200px; }
  .hero-float-nav {
    position: static; transform: none;
    flex-direction: row; flex-wrap: wrap; justify-content: center;
    margin-top: 1.5rem;
  }
  .hero-content { padding-bottom: 4rem; }
}
@media (max-width: 640px) {
  .info-bar { grid-template-columns: 1fr; }
  .info-bar-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .hero-headline { font-size: 2.4rem; }
  .hero-float-nav { display: none; }
  #main-header { padding: 0 1.2rem; }
  .logo img { height: 44px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); padding: 0 1rem 3rem; }
  .services-section { padding: 3rem 1.2rem; }
  .footer-contact { padding: 3rem 1.2rem; }
  .contact-wrap { padding: 2.5rem 1.2rem; }
  .contact-form-row { grid-template-columns: 1fr; }
  .kontakt-form-area { padding: 2rem 1.2rem 1.5rem; }
  .rising-panels { flex-direction: column; align-items: stretch; }
  .rising-panel { min-height: auto; padding: 2rem 1.5rem; }
  .rising-panel--center { min-height: auto; }
  .rising-panel-badge { top: -18px; }
  #sluzby, #kontakt { background-attachment: scroll; }
  /* On mobile, don't force panels to bottom — let them flow naturally */
  #kontakt { min-height: auto; height: auto; }
  .rising-panels-area { margin-top: 0; padding-top: 2rem; }
}

/* ==========================================
   RESPONSIVE – EXTENDED FIXES
   ========================================== */

/* ── 1200px: start scaling down sooner ── */
@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }
  .service-tile { aspect-ratio: 16/9; }
  .services-section { justify-content: flex-start; }
}

/* ── 1024px: tablet landscape ── */
@media (max-width: 1024px) {
  /* Nav: tighten button padding so 3 buttons fit */
  .nav-btn { padding: 0.4rem 0.9rem; font-size: 0.75rem; }

  /* Disable fixed background on tablets/touch devices — iOS Safari breaks it */
  #sluzby { background-attachment: scroll; background-size: cover; }
  .detail-page-bg { background-attachment: scroll; }
  /* kontakt gets its own dark texture so drone.jpg doesn't appear twice */
  #kontakt {
    background-image: url('../img/abstract-dirty-grunge-tire-marks.png');
    background-attachment: scroll;
    background-size: cover;
    background-blend-mode: luminosity;
    background-color: #181818;
  }

  /* Services grid: 2 columns at tablet landscape */
  .services-grid { grid-template-columns: repeat(2, 1fr); max-width: 700px; margin: 0 auto; }
  .service-tile { aspect-ratio: 16/9; }
  .services-section { justify-content: flex-start; }


  /* Hero float nav: smaller gap, shifted */
  .hero-float-nav { right: 1.2rem; gap: 1.4rem; }
}

/* ── 960px (existing breakpoint additions) ── */
@media (max-width: 960px) {
  /* Hero logo on index: shrink earlier */
  .logo--hero img { height: 9rem; }
  #main-header.header--detail .logo img { height: 4rem; }

  /* Services section heading sizing */
  .services-section { padding: 2.5rem 2rem 3rem; justify-content: flex-start; }
  /* Single-column tiles: cap height so 3 tiles don't dominate the screen */
  .service-tile { aspect-ratio: 16/9; max-height: 210px; }

  /* Brand strip margin */
  .brand-strip { margin-top: 2rem; }
}

/* ── 860px: tablet portrait (existing breakpoint additions) ── */
@media (max-width: 860px) {
  /* Header: tighten padding */
  #main-header { padding: 0 1.5rem; }

  /* Info bar: allow wrapping at this size too for subpages */
  .info-bar-item { padding: 0.5rem 1rem; font-size: 0.8rem; }
  .info-bar .hl { font-size: 1.1rem; }

  /* Section banner: reduce letter-spacing to avoid overflow */
  .section-banner { letter-spacing: 0.12em; padding: 0.8rem 1rem; }
  .section-banner--sub { letter-spacing: 0.1em; }

  /* Gallery grid: 2 columns */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  /* Detail back float: smaller */
  .detail-back-float { bottom: 1rem; right: 1rem; }
  .detail-back-float .car-btn { min-width: 180px; height: 46px; font-size: 0.75rem; }

  /* Motory feature grid already 1-col — verify padding */
  .motory-feature { padding: 2rem 1.5rem 1.5rem; }
  .motory-feature-grid--2 { grid-template-columns: 1fr; }

  /* Detail split: single column already set, but reduce gap */
  .detail-split { padding: 3rem 1.5rem; gap: 2rem; }
}

/* ── 640px: large mobile (existing breakpoint additions) ── */
@media (max-width: 640px) {
  /* Header: even tighter */
  #main-header { padding: 0 0.9rem; }

  /* Nav: allow wrapping, tighten font */
  nav { gap: 0.3rem; flex-wrap: wrap; justify-content: flex-end; }
  .nav-btn { padding: 0.35rem 0.7rem; font-size: 0.68rem; letter-spacing: 0.06em; }

  /* Logo on subpages */
  .logo img { height: 10px; }

  /* Hero logo: shrink for mobile */
  .logo--hero img { height: 6rem; }
  #main-header.header--detail .logo img { height: 6rem; }

  /* Hero float nav: unhide, stack vertically below hero content */
  .hero-float-nav {
    display: flex;
    position: static;
    transform: none;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0 1.5rem 2.5rem;
    margin-top: 0;
  }
  .float-btn {
    min-width: 200px;
    width: 100%;
    max-width: 280px;
    padding: 0.55rem 1.5rem;
    justify-content: center;
  }

  /* Hero content: adjust for float nav now in flow */
  .hero-section {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 0;
  }
  .hero-content {
    margin-top: 0;
    padding: 2rem 1rem 1rem;
  }

  /* Bearing rings: scale down the large ring to prevent horizontal overflow */
  .b-ring--hero-1 { left: 50%; top: 50%; }
  .b-ring--hero-1 svg { width: 320px; height: 320px; }
  .b-ring--hero-2 { left: 90%; top: 15%; }
  .b-ring--hero-3 { left: 8%; top: 80%; }

  /* Car button: full width on mobile */
  .car-btn--forward { width: 100%; max-width: 300px; min-width: 0; }

  /* Services section */
  .services-section { padding: 2rem 1rem 2.5rem; }
  .services-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; gap: 1.2rem; }
  .service-tile { aspect-ratio: 16/9; max-height: 170px; }

  /* Section banner */
  .section-banner { font-size: 0.82rem; letter-spacing: 0.08em; padding: 0.7rem 0.75rem; }
  .section-banner-img { max-height: 42px; }

  /* Brand strip */
  .brand-strip { padding: 1rem; margin-top: 0; }
  .brand-strip-img { max-height: 60px; }

  /* Info bar: already stacks, just reduce font */
  .info-bar { font-size: 0.78rem; }
  .info-bar .hl { font-size: 1.1rem; }

  /* Rising panels already stack — ensure napiste button is visible */
  .rising-panel-napiste { font-size: 0.75rem; padding: 0.5rem 1.25rem; }
  .rising-panel-phone { font-size: 1.3rem; }

  /* Gallery: still 2-col at 640 */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); padding: 0.75rem 0.75rem 2.5rem; gap: 0.6rem; }

  /* Detail back float */
  .detail-back-float { bottom: 0.75rem; right: 0.75rem; }
  .detail-back-float .car-btn { min-width: 150px; height: 42px; font-size: 0.7rem; }

  /* Contact modal padding */
  .modal-card--contact { padding: 2rem 1.5rem 1.75rem; }
  .car-btn--submit { min-width: 180px; }

  /* Kdo jsem modal already has 640px rules */

  /* Footer bottom */
  .footer-bottom { font-size: 0.7rem; padding: 1.2rem; }

  /* Detail hero */
  .detail-hero { min-height: 40vh; }
  .detail-hero-content { padding: 2rem 1rem; }
  .detail-hero h1 { font-size: clamp(1.6rem, 7vw, 2.8rem); }

  /* Detail split */
  .detail-split { padding: 2rem 1rem; gap: 1.5rem; }
  .detail-text-side h2 { font-size: 1.3rem; }

  /* Motory feature */
  .motory-feature { padding: 1.5rem 1rem 1rem; }
  .motory-feature-grid { gap: 1rem; }

  /* CTA strip */
  .detail-cta { flex-direction: column; align-items: center; padding: 1.5rem 1rem 3rem; gap: 1rem; }
  .detail-cta .btn { width: 100%; max-width: 280px; text-align: center; justify-content: center; }
  .detail-cta .car-btn { width: 100%; max-width: 280px; min-width: 0; }

  /* Bio card on kdojsme */
  .bio-card { flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 1.25rem; }

  /* Scroll to top float */
  .scroll-to-top { bottom: 1rem; right: 1rem; }
  .car-btn--float { min-width: 120px; height: 40px; font-size: 0.68rem; }
}

/* ── 480px: small mobile ── */
@media (max-width: 480px) {
  /* Nav: very tight – only show short labels if needed */
  nav { gap: 0.25rem; }
  .nav-btn { padding: 0.3rem 0.55rem; font-size: 0.62rem; letter-spacing: 0.04em; }

  /* Hero headline */
  .hero-headline { font-size: clamp(2rem, 10vw, 2.8rem); }

  /* Services: single column */
  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .service-tile { aspect-ratio: 16/9; max-height: 150px; }

  /* Gallery: 1 column */
  .gallery-grid { grid-template-columns: 1fr; gap: 0.5rem; }

  /* Section banner */
  .section-banner { font-size: 0.75rem; letter-spacing: 0.06em; }

  /* Info bar hl number */
  .info-bar .hl { font-size: 1rem; }

  /* Rising panel phone */
  .rising-panel-phone { font-size: 1.15rem; }

  /* Modal kdo jsem: handled in component block above */

  /* Contact modal: minimal padding */
  .modal-card--contact { padding: 1.5rem 1.2rem 1.5rem; }

  /* Detail split */
  .detail-split { padding: 1.5rem 0.75rem; }

  /* Brand strip */
  .brand-strip-img { max-height: 50px; }

  /* Floating back button */
  .detail-back-float .car-btn { min-width: 130px; height: 40px; }

  /* Section banner image */
  .section-banner-img { max-height: 36px; }
}

/* ── Short-screen devices (laptops ~768px tall): lift the forced 100vh floor ── */
@media (max-height: 820px) {
  #sluzby  { min-height: 0; }
  #kontakt { min-height: 0; }
}

/* ── Brand strip: reduce top margin on medium screens ── */
@media (max-width: 1200px) {
  .brand-strip { margin-top: 2rem; }
}

/* ==========================================
   RESPONSIVE – ADDITIONAL VIEWPORT COVERAGE
   ========================================== */

/* ── 1280px: common HD laptop ── */
@media (max-width: 1280px) {
  .hero-float-nav { right: 1.5rem; gap: 1.5rem; }
  .services-section { padding: 2.5rem 2.5rem 3.5rem; }
}

/* ── 768px: iPad portrait / Android tablet ── */
@media (max-width: 768px) {
  #main-header { padding: 0 1rem; }

  /* Info bar: tighten */
  .info-bar-item { padding: 0.45rem 0.75rem; }
  .info-bar { font-size: 0.78rem; }
  .info-bar .hl { font-size: 1rem; }

  /* Hero */
  .logo--hero img { height: 7.5rem; }
  #main-header.header--detail .logo img { height: 7.5rem; }
  .hero-content { padding: 1.5rem 1rem 1rem; gap: 0.5rem; }

  /* Services */
  .services-section { padding: 2rem 1.25rem 2rem; }
  .services-section h2 { font-size: 1rem; margin-bottom: 1.5rem; }
  .services-grid { max-width: 440px; gap: 1rem; }
  .service-tile { max-height: 175px; }

  /* Brand strip */
  .brand-strip { margin-top: 1.5rem; }
  .brand-strip-img { max-height: 55px; }

  /* Rising panels */
  .rising-panel { padding: 2.5rem 1rem 1.5rem; min-height: 175px; }
  .rising-panel--center { min-height: 205px; }
}

/* ── 640px: info bar — show hours + phone only (2-col), drop address ── */
@media (max-width: 640px) {
  .info-bar { grid-template-columns: 1fr 1fr; }
  .info-bar-item:last-child { display: none; }
  .info-bar-item { border-right: none; border-bottom: none; }
}

/* ── 375px: standard phone (iPhone SE / most Android) ── */
@media (max-width: 375px) {
  #main-header { padding: 0 0.75rem; }
  .logo img { height: 30px; }
  .logo--hero img { height: 5rem; }
  #main-header.header--detail .logo img { height: 5rem; }

  .nav-btn { padding: 0.28rem 0.5rem; font-size: 0.6rem; letter-spacing: 0.03em; }

  .hero-headline { font-size: 1.9rem; }
  .hero-sub { font-size: 0.72rem; letter-spacing: 0.16em; }
  .hero-content { padding: 1.5rem 0.75rem 0.5rem; }
  .float-btn { min-width: 160px; max-width: 260px; font-size: 0.72rem; padding: 0.45rem 1rem; }

  .services-section { padding: 1.5rem 0.75rem 1.5rem; }
  .services-section h2 { font-size: 0.88rem; margin-bottom: 1rem; }
  .services-grid { gap: 0.75rem; }
  .service-tile { max-height: 145px; }

  .section-banner { font-size: 0.68rem; padding: 0.6rem 0.5rem; }
  .brand-strip-img { max-height: 40px; }

  .rising-panel { padding: 2rem 0.75rem 1.25rem; }
  .rising-panel-phone { font-size: 1.1rem; }
  .rising-panel-text { font-size: 0.78rem; }
  .rising-panel-napiste { padding: 0.4rem 0.9rem; font-size: 0.68rem; }

  .info-bar { font-size: 0.72rem; }
  .info-bar .hl { font-size: 0.88rem; }
  .info-bar-item { padding: 0.35rem 0.5rem; }
  .info-bar-item:last-child { display: none; }
}

/* ── 320px: very small phones ── */
@media (max-width: 320px) {
  .hero-headline { font-size: 1.55rem; }
  .hero-sub { font-size: 0.65rem; letter-spacing: 0.1em; }
  .float-btn { min-width: 140px; font-size: 0.68rem; }
  .nav-btn { padding: 0.25rem 0.4rem; font-size: 0.58rem; }
  .service-tile { max-height: 120px; min-height: 110px; }
  .services-section h2 { font-size: 0.8rem; }
  .rising-panel-phone { font-size: 0.95rem; }
  .modal-card--contact { padding: 1.25rem 0.9rem; }
}

/* ── Landscape phone: very short screens ── */
@media (max-height: 500px) {
  .hero-section { min-height: auto; padding: 2rem 0 1.5rem; }
  .logo--hero img { height: 3.5rem; }
  #main-header.header--detail .logo img { height: 3.5rem; }
  .hero-headline { font-size: clamp(1.4rem, 6vw, 2.2rem); }
  .hero-content { margin-top: 0; padding: 1rem; }
  #sluzby, #kontakt { min-height: 0; }
  .b-ring--hero-1 svg { width: 220px; height: 220px; }
}

@media (max-height: 700px) and (min-width: 641px) {
  .hero-section { min-height: calc(100vh - var(--header-h)); }
  .logo--hero img { height: 5.5rem; }
  #main-header.header--detail .logo img { height: 5.5rem; }
  #sluzby, #kontakt { min-height: 0; }
}
