/*
 * Súbor: css/pages/havarie.css
 * Obsah: Odlišnosti havarijnej služby: kontaktné hero, prvé kroky, zabezpečenie opravy a fotografie.
 * Použitie: havarie-a-opravy-inzinierskych-sieti.html.
 * Zapojenie: Po css/main.css; presné poradie uvádza css/README.md.
 * Závislosti: css/main.css, jeho farebné premenné a triedy komponentu.
 */

@media (max-width: 767px) {
  .project-panel {
    order: initial;
  }

  .project-panel:nth-child(1),
  .project-panel:nth-child(2),
  .project-panel:nth-child(3) {
    order: initial;
  }

  .project-panel:nth-child(3) {
    grid-column: span 2;
  }
}

html .hero-intro .hero.hero--emergency {
  min-height: 0;
  padding: 96px 0 56px;
  background: var(--palette-dark) url("../../VSETKY_IMG/SLUZBA_HAVARIE/hero/havarie-hero.webp") center 60% / cover no-repeat;
}

html .hero-intro .hero.hero--emergency::before {
  inset: 0;
  height: auto;
  background: linear-gradient(90deg, rgb(15 25 35 / 95%), rgb(15 25 35 / 83%) 52%, rgb(15 25 35 / 40%));
}

html .hero-intro .hero--emergency .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding: 0;
  text-align: left;
}

.hero--emergency .hero-copy {
  width: 100%;
  max-width: 720px;
  padding: 0;
  background: none;
}

.hero--emergency .hero-copy::before {
  display: none;
}

.hero--emergency .hero-copy .eyebrow {
  margin: 0 0 18px;
  color: var(--palette-yellow);
}

.hero--emergency .hero-copy h1 {
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(36px, 4.2vw, 60px);
  line-height: 1.06;
  text-wrap: balance;
}

.hero--emergency .hero-call {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  padding: 18px 24px;
  border: 2px solid var(--palette-yellow);
  border-radius: 12px;
  background: var(--palette-yellow);
  color: #172333;
  text-decoration: none;
}

.hero-call__prompt {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.hero-call__number {
  font-size: clamp(27px, 3.1vw, 42px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.15;
  white-space: nowrap;
}

.hero-call__action {
  font-size: 13px;
  font-weight: 600;
}

.hero--emergency .hero-call:hover {
  background: #ffda3b;
}

.hero--emergency .hero-copy .hero-lead {
  margin: 24px 0 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.6;
}

.hero-emergency-form {
  min-width: 0;
  padding: clamp(24px, 2.8vw, 36px);
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 16px;
  background: var(--palette-light);
  color: var(--palette-dark);
  box-shadow: 0 18px 48px rgb(0 0 0 / 20%);
}

.hero-emergency-form__eyebrow {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.hero--emergency .hero-emergency-form h2 {
  margin-bottom: 20px;
  color: var(--palette-dark);
  font-size: 26px;
}

.hero-emergency-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
}

.hero-emergency-form input,
.hero-emergency-form textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #9a9389;
  border-radius: 6px;
  background: #fff;
  color: #243142;
  font: inherit;
  font-size: 16px;
}

.hero-emergency-form textarea {
  min-height: 86px;
  resize: vertical;
}

.hero--emergency .hero-emergency-form .btn {
  width: 100%;
  margin-top: 4px;
  white-space: normal;
  text-align: center;
}

.hero-emergency-form button:disabled {
  opacity: .65;
  cursor: wait;
}

.hero--emergency :is(a,button,input,textarea):focus-visible {
  outline: 3px solid var(--palette-yellow);
  outline-offset: 4px;
}

.hero--emergency .hero-call:focus-visible {
  outline-color: #fff;
}

@media (max-width: 900px) {
  html .hero-intro .hero--emergency .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-emergency-form {
    max-width: 620px;
  }
}

@media (max-width: 767px) {
  html .hero-intro .hero.hero--emergency {
    padding: 84px 0 32px;
  }

  html .hero-intro .hero--emergency .hero-grid {
    width: calc(100% - 40px);
    margin-inline: auto;
  }

  .hero--emergency .hero-copy h1 {
    font-size: clamp(32px, 8vw, 44px);
  }

  .hero--emergency .hero-call {
    width: 100%;
    padding: 16px 18px;
  }

  .hero--emergency .hero-copy .hero-lead {
    font-size: 16px;
  }
}

.emergency-steps {
  padding-block: clamp(56px, 5vw, 88px);
  background: color-mix(in srgb, var(--bg) 78%, white);
  color: var(--text);
}

.emergency-steps__heading {
  max-width: 1100px;
  margin: 0 auto 48px;
  text-align: center;
}

.emergency-steps__heading h2 {
  margin-bottom: 22px;
  font-size: clamp(28px, 2.8vw, 44px);
  line-height: 1.2;
  font-weight: 800;
  text-wrap: balance;
}

.emergency-steps__heading>p:last-child {
  margin-bottom: 0;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.6;
}

.emergency-steps__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 4.2vw, 72px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.emergency-steps__card {
  position: relative;
  min-width: 0;
  padding: clamp(22px, 2.2vw, 38px);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: 13px;
  background: rgb(255 255 255 / 48%);
}

.emergency-steps__card:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 44%;
  left: calc(100% + clamp(40px, 4.2vw, 72px) / 2);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text);
  font-size: 30px;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.emergency-steps__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 78%, white), var(--accent));
}

.emergency-steps__icon svg {
  width: 44px;
  height: 44px;
}

.emergency-steps__number {
  display: block;
  margin-bottom: 6px;
  color: #a78300;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.emergency-steps__card h3 {
  margin-bottom: 16px;
  font-size: clamp(22px, 1.65vw, 28px);
  font-weight: 800;
  line-height: 1.25;
}

.emergency-steps__card>p {
  margin-bottom: 24px;
  font-size: 17px;
  line-height: 1.5;
}

.emergency-steps__list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.emergency-steps__list li {
  position: relative;
  padding: 9px 14px 9px 42px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--bg) 53%, transparent);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.emergency-steps__list li::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 15px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 1100px) {
  .emergency-steps__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 52px;
    max-width: 680px;
    margin-inline: auto;
  }

  .emergency-steps__card:not(:last-child)::after {
    top: calc(100% + 26px);
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
  }
}

@media (max-width: 600px) {
  .emergency-steps__heading {
    margin-bottom: 32px;
  }

  .emergency-steps__heading h2 br {
    display: none;
  }

  .emergency-steps__card {
    padding: 24px 20px;
  }

  .emergency-steps__icon {
    width: 60px;
    height: 60px;
  }
}

.project-assurance {
  --assurance-row-gap: 24px;
  --assurance-panel-background: rgb(12 20 26 / 46%);
  padding-block: clamp(36px, 5vw, 72px);
}

.project-assurance::before {
  background: linear-gradient(180deg, rgb(12 20 26 / 20%), rgb(12 20 26 / 48%));
}

.project-assurance__inner {
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: var(--assurance-row-gap);
  min-height: 1180px;
  align-items: start;
}

.project-assurance__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  grid-template-areas: "copy brand";
  align-items: start;
  gap: clamp(24px, 4vw, 56px);
}

.project-assurance__brand {
  grid-area: brand;
  padding: 16px;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 14px;
  background: rgb(12 20 26 / 72%);
  backdrop-filter: blur(6px);
}

.project-assurance__brand img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.project-assurance__copy {
  grid-area: copy;
  width: 100%;
  max-width: 860px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 16px;
  background: var(--assurance-panel-background);
}

.project-assurance .project-assurance__copy .eyebrow {
  margin-bottom: 14px;
  color: var(--palette-yellow);
}

.project-assurance h2 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.15;
  text-wrap: balance;
}

.project-assurance__lead {
  margin: 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.65;
}

.project-assurance__support {
  margin: 16px 0 0;
  color: #dce0e2;
  font-size: 14px;
  line-height: 1.6;
}

.project-assurance .project-assurance__cta {
  margin-top: 24px;
  border-color: var(--palette-yellow);
  background: var(--palette-yellow);
  color: var(--palette-dark);
  white-space: normal;
  text-align: center;
}

.project-assurance .project-assurance__cta:hover {
  background: #ffda3b;
}

.project-assurance__benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project-assurance__benefit {
  min-width: 0;
  padding: 28px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-top: 3px solid var(--palette-yellow);
  border-radius: 12px;
  background: var(--assurance-panel-background);
}

.project-assurance__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: rgb(243 193 0 / 14%);
  color: var(--palette-yellow);
}

.project-assurance__icon :is(img,svg) {
  width: 30px;
  height: 30px;
}

.project-assurance__benefit h3 {
  margin-bottom: 12px;
  color: #fff;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.25;
}

.project-assurance__benefit p {
  margin: 0;
  color: #e6e9eb;
  font-size: 15px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .project-assurance {
    padding-bottom: var(--assurance-row-gap);
  }
}

@media (max-width: 1023px) {
  .project-assurance__intro {
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 20px;
  }

  .project-assurance__benefit {
    padding: 22px;
  }
}

@media (max-width: 767px) {
  .project-assurance__inner {
    min-height: 0;
    grid-template-rows: none;
    gap: 16px;
  }

  .project-assurance__intro {
    margin-bottom: 16px;
  }

  .project-assurance__intro {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy";
    gap: 20px;
  }

  .project-assurance__brand {
    display: none;
  }

  .project-assurance__copy {
    padding: 24px 20px;
  }

  .project-assurance__lead {
    font-size: 16px;
  }

  .project-assurance__benefits {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .project-assurance__benefit {
    padding: 22px;
  }

  .project-assurance__icon {
    margin-bottom: 14px;
  }
}
#referencie-firmy .references-heading h2 {
  margin-bottom: 16px;
}

#referencie-firmy .references-heading__promise {
  margin-top: 16px;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
}

#referencie-firmy .reference-marquee {
  overflow: hidden;
  width: 100%;
  padding-block: 4px;
}

#referencie-firmy .reference-track {
  display: flex;
  width: max-content;
  animation: emergency-reference-belt var(--belt-duration, 200s) linear infinite;
}

#referencie-firmy .reference-sequence {
  display: grid;
  grid-auto-columns: 240px;
  grid-template-rows: repeat(2, 190px);
  grid-auto-flow: column dense;
  gap: 12px;
  padding-right: 12px;
  flex: 0 0 auto;
}

#referencie-firmy .reference-project {
  grid-area: auto;
  aspect-ratio: auto;
}

#referencie-firmy .reference-project:nth-child(5n + 1) {
  grid-row: span 2;
}

#referencie-firmy .reference-project__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#referencie-firmy .reference-track:focus-within {
  animation-play-state: paused;
}

@keyframes emergency-reference-belt {


  to { transform: translateX(-50%); }

}

@media (max-width: 767px) {
  #referencie-firmy .reference-sequence {
    grid-auto-columns: 180px;
    grid-template-rows: repeat(2, 150px);
    gap: 8px;
    padding-right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #referencie-firmy .reference-marquee {
    overflow-x: auto;
  }

  #referencie-firmy .reference-track {
    animation: none;
  }

  #referencie-firmy .reference-sequence[aria-hidden="true"] {
    display: none;
  }
}
