/* ==========================================================================
   K SERVIS MH — sekce homepage, právní stránky, 404
   Na konci souboru je blok prefers-reduced-motion (musí zůstat poslední).
   ========================================================================== */

/* --- Společné --- */
.section {
  padding-block: 6rem;
}

.section--offwhite { background: var(--offwhite); }
.section--white { background: var(--white); }
.section--mist { background: var(--mist); }

.section--dark {
  background: var(--ink);
  color: var(--offwhite);
}

.section--dark .section-label { color: rgb(255 255 255 / 0.5); }
.section--dark .section-title { color: var(--offwhite); }
.section--dark .section-lead { color: rgb(255 255 255 / 0.72); }

.section-cta {
  margin-top: 2.5rem;
}

.split {
  display: grid;
}

@media (min-width: 768px) {
  .section { padding-block: 8rem; }
}

@media (min-width: 1024px) {
  .section { padding-block: 10rem; }

  .split {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .split__text { grid-column: span 5 / span 5; }
  .split__media { grid-column: span 7 / span 7; }
}

/* ==========================================================================
   Hero — #uvod
   ========================================================================== */
.hero-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  color: var(--offwhite);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--ink);
}

.hero-video__poster,
.hero-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--hero-object-position-mobile, var(--hero-object-position, center));
}

.hero-video__media {
  opacity: 0;
  transition: opacity 700ms ease;
}

.hero-video__media.is-ready {
  opacity: 1;
}

.hero-stage-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgb(14 16 18 / 0.36) 0%,
      rgb(14 16 18 / 0.06) 28%,
      rgb(14 16 18 / 0.18) 58%,
      rgb(14 16 18 / 0.64) 100%
    ),
    linear-gradient(90deg, rgb(14 16 18 / 0.22) 0%, transparent 42%);
}

.hero-stage-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 2.25rem;
}

.hero-copy {
  max-width: min(22rem, 92vw);
}

.hero-actions {
  position: relative;
  display: flex;
  max-width: 48rem;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
}

.hero-actions::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgb(255 255 255 / 0.18);
  transform-origin: left center;
  pointer-events: none;
}

.hero-actions__cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-cta--desktop {
  display: none;
}

.hero-meta {
  max-width: 20rem;
}

.hero-meta__lead {
  font-size: 0.95rem;
  line-height: 1.375;
  color: rgb(255 255 255 / 0.85);
}

.hero-meta__info {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.4286;
  color: rgb(255 255 255 / 0.6);
}

.hero-line {
  display: block;
  overflow: hidden;
}

.hero-line__inner {
  display: block;
}

/* --- Hero cinematic reveal (progressive enhancement) --- */
.js .hero-line__inner {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(2px);
  transition:
    opacity 720ms var(--ease-premium),
    transform 720ms var(--ease-premium),
    filter 720ms var(--ease-premium);
  transition-delay: 150ms;
  will-change: transform, opacity;
}

.js .hero-line:nth-child(2) .hero-line__inner {
  transition-delay: 230ms;
}

.js .hero-actions::before {
  opacity: 0.35;
  transform: scaleX(0);
  transition:
    transform 700ms var(--ease-premium),
    opacity 700ms var(--ease-premium);
  transition-delay: 300ms;
  will-change: transform, opacity;
}

.js .hero-reveal--cta {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 560ms var(--ease-premium),
    transform 560ms var(--ease-premium);
  transition-delay: 380ms;
  will-change: transform, opacity;
}

.js .hero-reveal--meta {
  opacity: 0;
  transform: translateX(14px);
  transition:
    opacity 650ms var(--ease-premium),
    transform 650ms var(--ease-premium);
  transition-delay: 480ms;
  will-change: transform, opacity;
}

.js.is-ready .hero-line__inner,
.js.is-ready .hero-actions::before,
.js.is-ready .hero-reveal--cta,
.js.is-ready .hero-reveal--meta {
  opacity: 1;
  transform: none;
  filter: none;
}

.js.is-ready .hero-actions::before {
  opacity: 1;
}

@media (min-width: 768px) {
  .js .hero-line__inner {
    transform: translateY(28px);
    filter: blur(3px);
    transition-duration: 820ms;
  }

  .js .hero-reveal--cta {
    transform: translateY(14px);
    transition-duration: 600ms;
  }

  .js .hero-reveal--meta {
    transform: translateX(20px);
    transition-duration: 700ms;
  }
}

@media (hover: hover) {
  .btn--hero:hover svg {
    translate: 0.2rem 0;
  }
}

@media (min-width: 640px) {
  .hero-actions__cta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

@media (min-width: 768px) {
  .hero-video__poster,
  .hero-video__media {
    object-position: var(--hero-object-position, center);
  }

  .hero-stage-content {
    padding-bottom: 3.5rem;
  }

  .hero-copy {
    max-width: 28rem;
  }

  .hero-actions {
    margin-top: 3rem;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .hero-cta--mobile {
    display: none;
  }

  .hero-cta--desktop {
    display: block;
  }

  .hero-meta {
    text-align: right;
  }
}

@media (min-width: 1024px) {
  .hero-copy {
    max-width: 32rem;
  }
}

/* ==========================================================================
   Servis — #servis
   ========================================================================== */
.services-list {
  margin-top: 3.5rem;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1.35rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  cursor: default;
  transition: background-color 220ms ease, padding 220ms ease;
}

.service-row-index {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 0.45rem;
}

.service-row__body {
  min-width: 0;
}

.service-row__title {
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: var(--tracking-tight);
}

.service-row__text {
  margin-top: 0.75rem;
  max-width: 28rem;
  font-size: 0.95rem;
  line-height: 1.625;
  color: var(--muted-strong);
}

.service-row-arrow {
  margin-top: 0.55rem;
  color: var(--muted);
  transition: transform 220ms ease, color 220ms ease;
}

.service-row:hover .service-row-arrow {
  color: var(--ink);
  transform: translateX(0.2rem) translateY(-0.12rem);
}

.service-feature {
  padding: 1.5rem 0 1.15rem;
}

.service-feature figcaption,
.service-inserts figcaption {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

.service-inserts {
  display: grid;
  gap: 1rem;
  padding: 1.5rem 0 1.15rem;
}

.slot-diagnostika { aspect-ratio: 16 / 9; }
.slot-parts { aspect-ratio: 4 / 3; }
.slot-nastavby { aspect-ratio: 4 / 5; }

@media (max-width: 430px) {
  .service-row {
    grid-template-columns: auto 1fr;
  }

  .service-row-arrow {
    display: none;
  }
}

@media (min-width: 640px) {
  .slot-nastavby { aspect-ratio: 4 / 3; }
}

@media (min-width: 768px) {
  .service-row {
    gap: 1.5rem;
    padding: 1.65rem 0.75rem 1.75rem 0;
  }

  .service-row:hover,
  .service-row:focus-within {
    background: var(--white);
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .service-row__title {
    font-size: 2.35rem;
  }

  .service-inserts {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
    gap: 1.15rem;
  }

  .slot-diagnostika { aspect-ratio: 2 / 1; }
}

@media (min-width: 1024px) {
  .services-layout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: 5rem;
  }

  .services-intro {
    position: sticky;
    top: calc(var(--header-height) + 2.75rem);
    grid-column: span 5 / span 5;
  }

  .services-list {
    grid-column: span 7 / span 7;
    margin-top: 0;
  }

  .slot-nastavby { aspect-ratio: 4 / 5; }
}

/* ==========================================================================
   IVECO — #iveco
   ========================================================================== */
.section-iveco {
  padding-block: 6rem;
}

.section-iveco .split {
  align-items: end;
  gap: 3rem;
}

.iveco-points {
  margin-top: 2.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.15);
}

.iveco-point {
  border-bottom: 1px solid rgb(255 255 255 / 0.15);
  padding: 0.85rem 0;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: rgb(255 255 255 / 0.88);
}

.slot-iveco { aspect-ratio: 16 / 10; }

@media (min-width: 640px) {
  .slot-iveco { aspect-ratio: 5 / 4; }
}

@media (min-width: 768px) {
  .section-iveco { padding-block: 8rem; }
}

@media (min-width: 1024px) {
  .section-iveco { padding-block: 9rem; }

  .section-iveco .split { gap: 4rem; }

  .slot-iveco { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   Komunální technika — #komunalni-technika
   ========================================================================== */
.section-municipal .split {
  align-items: center;
  gap: 2.5rem;
}

.section-municipal .section-lead {
  max-width: 32rem;
}

.municipal-points {
  margin-top: 2.5rem;
  max-width: 36rem;
  border-top: 1px solid var(--line);
}

.municipal-point {
  display: grid;
  gap: 0.5rem;
  border-bottom-width: 1px;
  border-color: var(--line);
  padding-block: 1.25rem;
}

.municipal-point__title {
  font-size: 1.125rem;
  line-height: 1.5556;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}

.municipal-point__text {
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-strong);
}

.media-caption {
  margin-top: 1rem;
  max-width: 36rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted);
}

.slot-municipal,
.slot-workshop { aspect-ratio: 16 / 11; }

@media (min-width: 768px) {
  .municipal-point {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .municipal-point__title { grid-column: span 5 / span 5; }
  .municipal-point__text { grid-column: span 7 / span 7; }
}

@media (min-width: 1024px) {
  .section-municipal .split { gap: 4rem; }

  .slot-municipal,
  .slot-workshop { aspect-ratio: 5 / 4; }
}

/* ==========================================================================
   Pronájem — #pronajem
   ========================================================================== */
.rental-head {
  display: grid;
  gap: 2rem;
}

.rental-head__lead {
  max-width: 24rem;
  font-size: 1.05rem;
  line-height: 1.625;
  color: var(--muted-strong);
}

.rental-list {
  margin-top: 4rem;
}

.rental-list > :not(:last-child) {
  margin-bottom: 2.5rem;
}

.rental-card {
  display: grid;
  align-items: stretch;
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
}

.rental-card--dark {
  background: var(--ink);
  color: var(--offwhite);
}

.rental-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
}

.rental-card__category {
  font-size: 0.875rem;
  line-height: 1.4286;
  color: var(--muted);
}

.rental-card--dark .rental-card__category {
  color: rgb(255 255 255 / 0.5);
}

.rental-card__title {
  margin-top: 1rem;
  font-size: 2.25rem;
  line-height: 1.1111;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}

.rental-card__benefit {
  margin-top: 1.25rem;
  max-width: 28rem;
  font-size: 1.125rem;
  line-height: 1.375;
}

.rental-card__text {
  margin-top: 1rem;
  max-width: 28rem;
  font-size: 0.95rem;
  line-height: 1.625;
  color: var(--muted-strong);
}

.rental-card--dark .rental-card__text {
  color: rgb(255 255 255 / 0.7);
}

.rental-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.rental-label {
  border: 1px solid var(--line);
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  color: var(--muted-strong);
}

.rental-label-dark {
  border-color: rgb(255 255 255 / 0.22);
  color: rgb(255 255 255 / 0.78);
}

.rental-card .section-cta {
  margin-top: 2rem;
}

.slot-farid { aspect-ratio: 16 / 10; }
.slot-johnston { aspect-ratio: 16 / 9; }

@media (min-width: 768px) {
  .rental-head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
  }

  .rental-head__title { grid-column: span 8 / span 8; }
  .rental-head__lead { grid-column: span 4 / span 4; }

  .rental-list { margin-top: 5rem; }

  .rental-list > :not(:last-child) { margin-bottom: 3.5rem; }

  .rental-card__body { padding: 2.5rem; }

  .rental-card__title {
    font-size: 3rem;
    line-height: 1;
  }
}

@media (min-width: 1024px) {
  .rental-card {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .rental-card__media,
  .rental-card__body {
    grid-column: span 6 / span 6;
  }

  .rental-card__body { padding: 3rem; }

  .rental-card--image-first .rental-card__media { order: 1; }
  .rental-card--image-first .rental-card__body { order: 2; }
  .rental-card--image-last .rental-card__media { order: 2; }
  .rental-card--image-last .rental-card__body { order: 1; }

  .slot-farid { aspect-ratio: 5 / 4; }
  .slot-johnston { aspect-ratio: 4 / 5; }
}

/* ==========================================================================
   Proč servis — #proc-my
   ========================================================================== */
.why-section,
.why-list {
  overflow-x: clip;
}

.why-section .section-title {
  max-width: 56rem;
}

.js .why-heading-reveal.reveal {
  transform: translateY(1.25rem);
}

.js .why-heading-reveal.reveal.is-visible {
  transform: translateY(0);
}

.why-list {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
}

.why-row {
  display: grid;
  gap: 0.65rem;
  border-bottom: 1px solid var(--line);
  padding: 1.6rem 0;
  transform-origin: center;
}

.js .why-row {
  transform: scaleX(0.985);
  transition: transform 680ms var(--ease-premium);
}

.reveal-from-left .why-row {
  transform-origin: left center;
}

.reveal-from-right .why-row {
  transform-origin: right center;
}

.js .reveal.is-visible .why-row {
  transform: none;
}

.why-row-index {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.why-row__title {
  font-size: 1.5rem;
  line-height: 1.3333;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}

.why-row__text {
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.625;
  color: var(--muted-strong);
}

@media (min-width: 768px) {
  .why-list { margin-top: 5rem; }

  .why-row {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: baseline;
    gap: 1.5rem;
    padding: 2rem 0;
  }

  .why-row-index { grid-column: span 2; }

  .why-row__title {
    grid-column: span 4 / span 4;
    font-size: 2rem;
    line-height: 1;
  }

  .why-row__text { grid-column: span 6 / span 6; }
}

/* ==========================================================================
   O firmě — #o-nas
   ========================================================================== */
.section-about .split {
  align-items: start;
  gap: 2.5rem;
}

.about-lead {
  margin-top: 2rem;
  max-width: 36rem;
  font-size: 1.25rem;
  line-height: 1.375;
  color: var(--ink);
}

.about-values {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.about-value {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
}

.about-value__title {
  font-size: 1.125rem;
  line-height: 1.5556;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}

.about-value__text {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-strong);
}

.about-facts {
  margin-top: 0.5rem;
}

.about-fact {
  display: grid;
  gap: 0.25rem;
  padding-block: 1.25rem;
}

.about-fact:not(:last-child) {
  border-bottom: 1px solid var(--line);
}

.about-fact dt {
  font-size: 0.875rem;
  line-height: 1.4286;
  color: var(--muted);
}

.about-fact__value {
  font-size: 1.5rem;
  line-height: 1.3333;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}

.about-fact__note {
  color: var(--muted-strong);
}

@media (min-width: 768px) {
  .about-lead {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .section-about .split { gap: 4rem; }

  .about-media {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
  }
}

/* ==========================================================================
   Kontakt — #kontakt
   ========================================================================== */
.media-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 88svh;
  color: var(--offwhite);
}

.media-stage--contact {
  min-height: clamp(22rem, 52svh, 34rem);
}

.media-stage-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.media-stage-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.contact-stage-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgb(14 16 18 / 0.48) 0%,
      rgb(14 16 18 / 0.32) 42%,
      rgb(14 16 18 / 0.82) 100%
    ),
    linear-gradient(90deg, rgb(14 16 18 / 0.5) 0%, rgb(14 16 18 / 0.14) 62%);
}

.media-stage-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 88svh;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 2.5rem;
}

.media-stage--contact .media-stage-content {
  min-height: clamp(22rem, 52svh, 34rem);
  padding-bottom: 2.25rem;
}

.contact-hero .section-label {
  color: rgb(255 255 255 / 0.55);
}

.contact-hero .section-title {
  max-width: 18ch;
}

.contact-hero__intro {
  margin-top: 1.25rem;
  max-width: 38rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 0.18);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgb(255 255 255 / 0.78);
}

.contact-directory-wrap {
  background: var(--ink);
  color: var(--offwhite);
  padding-block: 3.5rem 4.5rem;
}

.contact-directory {
  display: flex;
  flex-direction: column;
  gap: 3.25rem;
}

.contact-people {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-dark);
}

.contact-person {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  border-bottom: 1px solid var(--line-dark);
  padding: 1.75rem 0;
  background: rgb(241 240 235 / 0.03);
}

.contact-person__index {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgb(255 255 255 / 0.42);
}

.contact-person__name {
  margin-top: 0.85rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--offwhite);
}

.contact-person__role {
  margin-top: 0.55rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: rgb(255 255 255 / 0.58);
}

.contact-person__phone {
  margin-top: auto;
  padding-top: 1.35rem;
}

.contact-person__phone .phone-contact-call,
.contact-person__phone .phone-contact-copy {
  font-size: 1.0625rem;
  font-weight: 600;
}

.contact-secondary {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-dark);
}

.contact-meta {
  min-width: 0;
  border-bottom: 1px solid var(--line-dark);
  padding: 1.75rem 0;
}

.contact-meta__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.48);
}

.contact-meta__title {
  margin-top: 0.9rem;
  font-size: 1.0625rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--offwhite);
}

.contact-meta__text {
  margin-top: 0.55rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgb(255 255 255 / 0.72);
}

.contact-meta__text--muted {
  color: rgb(255 255 255 / 0.48);
  font-size: 0.875rem;
}

.contact-meta__list {
  margin-top: 1rem;
  list-style: none;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgb(255 255 255 / 0.62);
}

.contact-meta__list > li + li {
  margin-top: 0.35rem;
}

.contact-meta__note {
  color: rgb(255 255 255 / 0.42);
}

.contact-meta__map {
  margin-top: 1.15rem;
  min-height: 2.75rem;
  font-size: 0.875rem;
  line-height: 1.4286;
  font-weight: 600;
  color: var(--offwhite);
}

.contact-meta__emails {
  margin-top: 1rem;
  list-style: none;
}

.contact-meta__emails > li + li {
  margin-top: 0.15rem;
}

.contact-meta__invoice {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgb(255 255 255 / 0.62);
}

.contact-director {
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 1.35rem 0;
  opacity: 0.88;
}

.contact-director__fields {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
}

.contact-director__fields dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.42);
}

.contact-director__fields dd {
  margin-top: 0.3rem;
}

.contact-link {
  display: inline-flex;
  min-height: 2.75rem;
  max-width: 100%;
  align-items: center;
  word-break: break-all;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.28em;
  text-decoration-color: rgb(255 255 255 / 0.28);
}

.contact-link:hover {
  text-decoration-color: var(--offwhite);
}

.contact-link:focus-visible {
  outline: 2px solid var(--offwhite);
  outline-offset: 3px;
}

.contact-missing {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.12rem 0.4rem;
  background: var(--warning);
  color: var(--ink);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .media-stage-content {
    padding-bottom: 3.5rem;
  }

  .media-stage--contact .media-stage-content {
    padding-bottom: 3rem;
  }

  .contact-directory-wrap {
    padding-block: 4.75rem 5.5rem;
  }

  .contact-directory {
    gap: 4rem;
  }

  .contact-people {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-person {
    padding: 1.85rem 1.35rem;
    border-right: 1px solid var(--line-dark);
  }

  .contact-person:nth-child(2n) {
    border-right: 0;
  }

  .contact-person:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .contact-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-meta {
    padding: 1.85rem 1.35rem;
    border-right: 1px solid var(--line-dark);
  }

  .contact-meta:nth-child(2n) {
    border-right: 0;
  }

  .contact-meta:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .contact-director__fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .contact-directory-wrap {
    padding-block: 5.5rem 6.25rem;
  }

  .contact-people {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-person {
    padding: 2rem 1.65rem;
  }

  .contact-person:nth-child(2n) {
    border-right: 1px solid var(--line-dark);
  }

  .contact-person:last-child,
  .contact-person:nth-child(3n) {
    border-right: 0;
  }

  .contact-person:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .contact-secondary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-meta {
    padding: 2rem 1.65rem;
  }

  .contact-meta:nth-child(2n) {
    border-right: 1px solid var(--line-dark);
  }

  .contact-meta:last-child,
  .contact-meta:nth-child(3n) {
    border-right: 0;
  }

  .contact-meta:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

/* ==========================================================================
   Právní stránka + 404
   ========================================================================== */
.legal-page {
  border-bottom: 1px solid var(--line);
  padding-top: calc(var(--header-height) + 2.5rem);
  padding-bottom: 4rem;
}

.legal-page .container-site {
  max-width: 48rem;
}

.legal-page__title {
  margin-top: 1rem;
  font-size: 2.25rem;
  line-height: 1.1111;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
}

.legal-page__body {
  margin-top: 2.5rem;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--muted-strong);
}

.legal-page__body > :not(:last-child) {
  margin-bottom: 1.5rem;
}

.legal-page__body a {
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-page__back {
  margin-top: 3rem;
}

.legal-page__back a {
  font-size: 0.875rem;
  line-height: 1.4286;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 768px) {
  .legal-page {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
  }

  .legal-page__title {
    font-size: 3rem;
    line-height: 1;
  }
}

/* ==========================================================================
   prefers-reduced-motion — MUSÍ zůstat poslední v kaskádě
   ========================================================================== */
@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;
  }

  .js .reveal,
  .js .reveal.is-visible,
  .js .reveal.reveal-from-left,
  .js .reveal.reveal-from-right,
  .js .reveal.reveal-from-left.is-visible,
  .js .reveal.reveal-from-right.is-visible,
  .js .why-heading-reveal.reveal,
  .js .why-heading-reveal.reveal.is-visible,
  .js .why-row,
  .js .reveal.is-visible .why-row,
  .js .hero-line__inner,
  .js .hero-actions::before,
  .js .hero-reveal--cta,
  .js .hero-reveal--meta {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
    animation: none;
  }

  .hero-video__media {
    display: none;
  }

  .image-slot > img,
  .image-slot:hover > img,
  .link-arrow:hover svg,
  .service-row:hover .service-row-arrow {
    transform: none;
    transition: none;
  }

  .btn:hover svg,
  .btn--hero:hover svg {
    translate: none;
  }

  .nav-link::after {
    transition: none;
  }
}
