/* Redakční obsah jednotlivých podstránek Elektrorevize */
.detail {
  padding: 64px clamp(35px, 6vw, 90px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.detail[hidden] {
  display: none;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 64px;
}
.detail h2 {
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0 0 24px;
}
.detail h3 {
  font-size: 21px;
  margin: 34px 0 12px;
}
.detail p,
.detail li {
  color: #55555b;
  font-size: 15px;
  line-height: 1.75;
}
.detail ul {
  padding-left: 20px;
}
.detail li::marker {
  color: var(--red);
}
.detail .notice {
  background: var(--soft);
  border-left: 4px solid var(--red);
  padding: 20px 24px;
  margin: 28px 0;
}
.detail .notice p {
  margin: 0;
}
.facts {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  align-self: start;
}
.facts div {
  background: #fff;
  padding: 19px;
}
.facts small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.facts strong {
  font-size: 14px;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.price-table th,
.price-table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}
.price-table th {
  background: var(--ink);
  color: #fff;
}
.price-table td:last-child {
  font-weight: 800;
  white-space: nowrap;
}
.deadline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 30px;
}
.deadline-links a {
  padding: 9px 12px;
  background: var(--soft);
  font-size: 13px;
  font-weight: 800;
}
.deadline-block {
  scroll-margin-top: 20px;
  margin: 0 0 42px;
}
.deadline-note {
  padding: 14px 16px;
  background: var(--soft);
}
.table-scroll {
  overflow-x: auto;
}
.deadline-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}
.deadline-table th,
.deadline-table td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
}
.deadline-table th {
  color: #fff;
  background: var(--ink);
}
.deadline-table tr:nth-child(even) td {
  background: var(--soft);
}
.deadline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 30px;
}
.deadline-links a {
  padding: 9px 12px;
  background: var(--soft);
  font-size: 13px;
  font-weight: 800;
}
.deadline-block {
  scroll-margin-top: 20px;
  margin: 0 0 42px;
}
.deadline-note {
  padding: 14px 16px;
  background: var(--soft);
}
.table-scroll {
  overflow-x: auto;
}
.deadline-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}
.deadline-table th,
.deadline-table td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
}
.deadline-table th {
  color: #fff;
  background: var(--ink);
}
.deadline-table tr:nth-child(even) td {
  background: var(--soft);
}
.documents {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.documents a {
  border: 1px solid var(--line);
  padding: 18px;
  font-weight: 800;
  font-size: 13px;
}
.documents a:hover {
  border-color: var(--red);
  color: var(--red);
}
.image-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0;
}
.image-strip img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: var(--soft);
}

/* Fotogalerie PVM Servis. Po kliknutí se fotografie otevře v plné velikosti. */
.pvm-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.pvm-photo-grid a {
  display: block;
  overflow: hidden;
  background: var(--soft);
  aspect-ratio: 4 / 3;
}
.pvm-photo-grid button,
.directory-reference-grid button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.pvm-photo-grid button {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.directory-reference-grid button {
  height: 140px;
  padding: 16px;
  border: 1px solid var(--line);
}
.directory-reference-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-empty {
  grid-column: 1 / -1;
}
.image-contain {
  object-fit: contain;
  background: var(--soft);
}

/* Společný celoobrazovkový prohlížeč fotografií. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  padding: 30px;
  background: rgba(12, 12, 14, 0.94);
}
.lightbox[hidden] {
  display: none;
}
.lightbox figure {
  margin: 0;
  text-align: center;
}
.lightbox figure img {
  max-width: 100%;
  max-height: calc(100vh - 100px);
  object-fit: contain;
}
.lightbox button {
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-size: 54px;
}
.lightbox-close {
  position: absolute;
  top: 10px;
  right: 20px;
}
.lightbox-counter {
  margin-top: 8px;
  color: #fff;
}
.lightbox-open {
  overflow: hidden;
}
.pvm-photo-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}
.pvm-photo-grid a:hover img {
  transform: scale(1.035);
}

/* Databázový registrační formulář je samostatná PHP stránka v obsahu webu. */
.training-registration {
  display: block;
  width: 100%;
  min-height: 1100px;
  border: 0;
  background: #fff;
}
@media (max-width: 760px) {
  .detail {
    padding: 46px 20px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .documents {
    grid-template-columns: 1fr;
  }
  .image-strip {
    grid-template-columns: 1fr;
  }
  .image-strip img {
    height: 210px;
  }
  .pvm-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lightbox {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    padding: 16px 4px;
  }
  .lightbox button {
    font-size: 40px;
  }
  .price-table {
    display: block;
    overflow-x: auto;
  }
}
