/* Vopolde — draft-margin
   Chladná papírová plocha, černá a zelená. Jeden společný styl pro všechny stránky. */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #f1f2f0;
  color: #171917;
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: #2a6b3c; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

a:focus-visible,
:focus-visible {
  outline: 2px solid #2a6b3c;
  outline-offset: 3px;
}

/* ---------- mřížka ---------- */

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 28px;
  row-gap: 0;
}

.c7 { grid-column: 1 / span 7; }
.c9 { grid-column: 1 / span 9; }
.c8 { grid-column: 1 / span 8; }
.c6 { grid-column: 1 / span 6; }
.c5 { grid-column: 1 / span 5; }

/* ---------- typografie ---------- */

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  margin: 0;
}

h1 {
  font-size: clamp(34px, 5.6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h1 .h1-b {
  display: block;
  padding-left: 8.33%;
}

h2 {
  font-size: clamp(23px, 2.6vw, 31px);
  line-height: 1.15;
  margin-bottom: 22px;
}

h3 {
  font-size: 20px;
  line-height: 1.3;
  margin: 34px 0 12px;
}

p { margin: 0 0 20px; }
p:last-child { margin-bottom: 0; }

.lead { font-size: 19px; line-height: 1.75; }

.note {
  font-size: 13px;
  line-height: 1.6;
  color: #6a6e6a;
}

.sec-num {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  color: #8a6a20;
  display: inline-block;
  min-width: 46px;
}

/* ---------- hlavička a navigace ---------- */

.site-head { padding: 22px 0 0; }

.site-head__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid #171917;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: #171917;
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

.site-nav { margin-left: auto; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-nav a {
  font-size: 15px;
  color: #171917;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover { border-bottom-color: #2a6b3c; }
.site-nav a[aria-current="page"] { border-bottom-color: #2a6b3c; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #141614;
  color: #f1f2f0;
  padding: 10px 16px;
  z-index: 5;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 66px 0 0;
}

.hero__inner { position: relative; padding-left: 30px; }

.hero__rail {
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: #171917;
}

.hero__rail::before,
.hero__rail::after {
  content: "";
  position: absolute;
  left: -7px;
  width: 15px;
  height: 1px;
  background: #171917;
}
.hero__rail::before { top: 0; }
.hero__rail::after { bottom: 0; }

.hero__span {
  position: relative;
  grid-column: 1 / span 8;
  height: 1px;
  background: #171917;
  margin: 40px 0 0;
}

.hero__span::before,
.hero__span::after {
  content: "";
  position: absolute;
  top: -6px;
  height: 13px;
  width: 1px;
  background: #171917;
}
.hero__span::before { left: 0; }
.hero__span::after { right: 0; }

.hero__span span {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  background: #f1f2f0;
  padding: 0 14px;
  font-size: 13px;
  line-height: 1;
  color: #8a6a20;
  white-space: nowrap;
}

.hero__intro { margin-top: 34px; }

/* ---------- pásy a rytmus ---------- */

.band { padding: 72px 0; }
.band--r2 { padding: 88px 0; }
.band--r3 { padding: 104px 0; }
.band--alt { background: #e3e5e2; }

.band--dark {
  background: #141614;
  color: #f1f2f0;
}
.band--dark h2,
.band--dark h3 { color: #f1f2f0; }
.band--dark .note { color: #a4a9a3; }
.band--dark a { color: #8dbd9a; }
.band--dark .rule__line { background: #3a3e3a; }
.band--dark .check li::before { background: #8dbd9a; }
.band--dark .sec-num { color: #c2a05a; }

.rule { margin: 0 0 38px; }
.rule__line { height: 1px; background: #c8ccc6; }
.rule__mark {
  height: 3px;
  width: 16.66%;
  min-width: 96px;
  background: #2a6b3c;
  margin-top: 5px;
}

/* ---------- seznamy ---------- */

.check {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.check li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 13px;
}

.check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 13px;
  height: 1px;
  background: #2a6b3c;
}

.check--box li::before {
  top: 10px;
  width: 9px;
  height: 9px;
  background: none;
  border: 1px solid #2a6b3c;
}

/* ---------- hlavní obrázek ---------- */

.figure-main {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 28px;
  align-items: start;
}

.figure-main img {
  grid-column: 1 / span 7;
  width: 100%;
}

.figure-main figcaption {
  grid-column: 9 / span 4;
  position: relative;
  padding-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: #6a6e6a;
}

.figure-main figcaption::before {
  content: "";
  position: absolute;
  top: 26px;
  left: -32px;
  width: 32px;
  height: 1px;
  background: #8a6a20;
}

/* ---------- detailní obrázek v kontrastním pásu ---------- */

.detail-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 28px;
  row-gap: 36px;
  align-items: start;
}

.detail-grid .figure-detail {
  grid-column: 8 / span 5;
  margin: 0;
}

.detail-grid .figure-detail img { width: 100%; }

.detail-grid .figure-detail figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: #a4a9a3;
}

.detail-grid .detail-text { grid-column: 1 / span 6; }

/* ---------- dokumentové stránky ---------- */

.doc {
  position: relative;
  border-left: 1px solid #171917;
  padding-left: 30px;
}

.doc__sec { position: relative; margin-bottom: 46px; }
.doc__sec:last-child { margin-bottom: 0; }

.doc__sec::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 16px;
  width: 17px;
  height: 1px;
  background: #8a6a20;
}

.doc__sec h2 { margin-bottom: 16px; }

.contact-block {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid #c8ccc6;
}

.contact-block p { margin-bottom: 6px; }

/* ---------- patička ---------- */

.site-foot { padding: 0 0 54px; }

.site-foot__rule { height: 1px; background: #171917; }
.site-foot__mark {
  height: 3px;
  width: 16.66%;
  min-width: 96px;
  background: #2a6b3c;
  margin-top: 5px;
}

.site-foot__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 28px;
  row-gap: 30px;
  padding: 40px 0 30px;
}

.site-foot__brand { grid-column: 1 / span 5; }

.site-foot__brand p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: #6a6e6a;
  max-width: 34em;
}

.foot-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.1;
}

.site-foot__col-a { grid-column: 7 / span 3; }
.site-foot__col-b { grid-column: 10 / span 3; }

.site-foot h2 {
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: #8a6a20;
  margin-bottom: 12px;
}

.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 8px; font-size: 15px; }
.site-foot__col-a a { color: #171917; text-decoration: none; border-bottom: 1px solid transparent; }
.site-foot__col-a a:hover { border-bottom-color: #2a6b3c; }

.site-foot__base {
  border-top: 1px solid #c8ccc6;
  padding-top: 16px;
  font-size: 13px;
  color: #6a6e6a;
}

/* ---------- responzivita ---------- */

@media (max-width: 900px) {
  .wrap { padding: 0 22px; }

  .grid { column-gap: 0; }
  .c7, .c9, .c8, .c6, .c5 { grid-column: 1 / -1; }

  h1 .h1-b { padding-left: 0; }

  .hero { padding-top: 46px; }
  .hero__span { grid-column: 1 / -1; }

  .band { padding: 48px 0; }
  .band--r2 { padding: 52px 0; }
  .band--r3 { padding: 56px 0; }

  .figure-main { grid-template-columns: 1fr; row-gap: 14px; }
  .figure-main img { grid-column: 1; }
  .figure-main figcaption { grid-column: 1; padding-top: 0; }
  .figure-main figcaption::before { display: none; }

  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid .figure-detail,
  .detail-grid .detail-text { grid-column: 1; }
  .detail-grid .figure-detail { order: 2; }
  .detail-grid .detail-text { order: 1; }

  .site-foot__grid { grid-template-columns: 1fr; }
  .site-foot__brand,
  .site-foot__col-a,
  .site-foot__col-b { grid-column: 1; }
}

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .lead { font-size: 18px; }
  .hero__span span { font-size: 12px; padding: 0 10px; }
  .doc { padding-left: 20px; }
  .doc__sec::before { left: -20px; width: 12px; }
  .sec-num { min-width: 34px; }
}
