/* Final studio pass: predictable type metrics and isolated component layers. */
:root {
  --lime: #90c531;
  --navy: #202831;
  --ink: #172c45;
  --copy: #526079;
}

html { font-size: 16px; }
body {
  min-width: 320px;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-stretch: normal;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

/* Header and page navigation */
.topline .container { font-family: Arial, Helvetica, sans-serif; font-size: 14px; }
.site-header:after {
  content: "slansky@strechyslansky.cz\A 739 412 577";
  white-space: pre;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}
.site-header:before {
  border-radius: 1px;
  box-shadow: inset 0 0 0 2px #fff, inset 0 -4px 0 0 var(--lime);
}
.site-header { height: 210px !important; }
.site-header .topline { display: block !important; height: 51px; }
.site-header .nav-row { height: 159px; }
.site-header .main-nav { top: 119px; }
.main-nav a { font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1; white-space: nowrap; }
.breadcrumbs {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0 auto !important;
  padding: 10px 0;
  color: #59637a;
  font-size: 14px;
  line-height: 1.35;
}
.breadcrumbs span { margin: 0; }
.breadcrumbs a { color: var(--ink); }
.page-hero { padding: 38px 0 48px; background: #f5f6f6; }
.page-hero h1, .prose h1 { color: var(--lime); font-size: clamp(2rem, 4vw, 2.65rem); letter-spacing: 0; }

/* Home service introduction and cards */
.hero + section.section > h2 { line-height: 1.2; letter-spacing: 0; }
.hero + section.section > h2:after {
  content: "kompletní střechařské práce od krovů po krytinu";
  margin-left: 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}
.hero + section.section > h2:before {
  content: "UKÁZKY NAŠÍ PRÁCE ›";
  font-family: Arial, Helvetica, sans-serif;
  white-space: nowrap;
}
.service-card h3,
.reference-card h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}
.service-card h3 { font-size: 25px; line-height: 1.2; }
.service-card p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--copy);
}
.service-card a {
  min-width: 108px;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}
.button, .service-card a {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: .015em;
}

/* About area and accordion */
.two-column p { font-size: 16px; line-height: 1.7; }
.two-column ul { margin: 26px 0 0; padding: 0; }
.two-column li {
  min-height: 130px;
  display: flex;
  align-items: center;
  padding: 14px 0 14px 130px;
  color: var(--copy);
  font-size: 16px;
  line-height: 1.75;
}
.two-column li:before {
  top: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
}
.two-column li:nth-child(1):before { content: "▤"; }
.two-column li:nth-child(2):before { content: "⌂"; }
.accordion details { overflow: hidden; }
.accordion summary {
  position: relative;
  list-style: none;
  padding: 25px 56px 25px 35px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:after {
  content: "+";
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--lime);
  font-size: 20px;
  font-weight: 400;
}
.accordion details[open] summary:after { content: "–"; }
.accordion details p { font-size: 16px; line-height: 1.65; }

/* References */
.reference-card h3 { font-size: 25px; line-height: 1.45; }

/* Gallery dialog: every visual layer is explicitly positioned. */
.gallery-lightbox {
  display: block;
  overflow: hidden;
  background: #050505 !important;
}
.gallery-lightbox > img {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  display: block;
  width: auto;
  height: auto;
  max-width: min(62vw, 900px);
  max-height: 58vh;
  object-fit: contain;
  box-shadow: 0 12px 44px rgba(0, 0, 0, .55);
}
.gallery-lightbox .gallery-thumbs {
  position: absolute;
  z-index: 1;
  top: 102px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px;
  width: min(56vw, 1070px);
  opacity: .28;
}
.gallery-lightbox .gallery-thumbs button {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}
.gallery-lightbox .gallery-thumbs img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: 1;
  object-fit: cover;
}
.gallery-lightbox .gallery-count { z-index: 5; font: 700 14px/1 Arial, Helvetica, sans-serif; }
.gallery-lightbox .gallery-tools { z-index: 5; }
.gallery-lightbox .gallery-prev,
.gallery-lightbox .gallery-next {
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 80px;
  font-size: 54px;
  line-height: 1;
}
.gallery-lightbox .gallery-close { z-index: 6; }

@media (max-width: 719px) {
  body { font-size: 16px; }
  .breadcrumbs { padding: 8px 0; font-size: 13px; }
  .hero + section.section > h2:after { white-space: normal; margin: 7px 0 0; }
  .two-column li { min-height: 108px; padding-left: 104px; font-size: 15px; }
  .two-column li:before { width: 78px; height: 78px; font-size: 30px; }
  .accordion summary { padding: 20px 48px 20px 22px; }
  .accordion details p { padding: 18px 22px; font-size: 15px; }
  .gallery-lightbox > img { max-width: 88vw; max-height: 50vh; top: 54%; }
  .gallery-lightbox .gallery-thumbs { top: 82px; width: 88vw; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
  .gallery-lightbox .gallery-prev, .gallery-lightbox .gallery-next { width: 44px; font-size: 46px; }
}
