/* Свободен смях – стилове (клинично чист вид, PT Serif + PT Sans) */
:root {
  --zlato: #967c2c;
  --zlato-tm: #5f4e1c;
  --modra-sv: #59a6c0;
  --modra: #224bc3;
  --modra-tm: #1a3a99;
  --pozadi: #faf9f5;
  --plocha: #f3efe2;
  --text: #2d281b;
  --linka: #d9d3c0;
  --sedy: #6b6450;
  --serif: "PT Serif", Georgia, serif;
  --sans: "PT Sans", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: #ffffff; color: var(--text); font-family: var(--sans);
  font-size: 18px; line-height: 1.65; padding-bottom: 82px;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--modra); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.22; margin: 0 0 16px; color: var(--text); }
h2 { font-size: 34px; }
p { margin: 0 0 16px; }
.ramec { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.ramec--uzky { width: min(820px, calc(100% - 48px)); }

/* záhlaví */
.zahlavi { border-bottom: 1px solid var(--linka); background: #fff; }
.zahlavi .ramec { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--zlato-tm); font-family: var(--serif); font-weight: 700; font-size: 24px; white-space: nowrap; }
.logo svg { width: 36px; height: 36px; flex: 0 0 36px; }

/* tlačítka */
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; font-family: var(--sans); font-weight: 700; border-radius: 3px; cursor: pointer; letter-spacing: .01em; }
.btn-cta { background: var(--modra); color: #fff; border: 1px solid var(--modra-tm); }
.btn-cta:hover { background: var(--modra-tm); }
.btn-cta-xl { min-height: 84px; min-width: 330px; padding: 0 40px; font-size: 23px; }
.tl-zahlavi { min-height: 50px; padding: 0 26px; font-size: 17px; }

/* úvod */
.otevreni { border-bottom: 1px solid var(--linka); background: linear-gradient(90deg, #fff 0%, #fff 55%, var(--pozadi) 55%); }
.otevreni__mrizka { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 64px 0; }
.nadtitul { font-size: 15px; text-transform: uppercase; letter-spacing: .14em; color: var(--zlato); font-weight: 700; border-bottom: 1px solid var(--linka); padding-bottom: 10px; display: inline-block; }
.otevreni h1 { font-size: 48px; color: var(--zlato-tm); }
.otevreni__perex { font-size: 20px; color: #4a4330; margin-bottom: 30px; }
.otevreni__fakta { margin-top: 30px; border-collapse: collapse; font-size: 16px; min-width: 330px; }
.otevreni__fakta th, .otevreni__fakta td { border-top: 1px solid var(--linka); padding: 8px 18px 8px 0; text-align: left; }
.otevreni__fakta th { color: var(--sedy); font-weight: 400; width: 120px; }
.otevreni__fakta td { font-weight: 700; }
.otevreni__foto { margin: 0; border: 1px solid var(--linka); padding: 10px; background: #fff; }
.otevreni__foto figcaption { font-size: 15px; color: var(--sedy); padding: 10px 4px 0; border-top: 1px solid var(--linka); margin-top: 10px; }

/* oddíly */
.oddil { padding: 84px 0; border-bottom: 1px solid var(--linka); }
.oddil--plocha { background: var(--pozadi); }
.cislo-oddilu { font-family: var(--serif); font-size: 15px; color: var(--modra-sv); letter-spacing: .2em; border-top: 2px solid var(--modra-sv); display: inline-block; padding-top: 6px; margin-bottom: 14px; }
.uvodni { max-width: 46em; font-size: 19px; }
.zdroj { font-size: 15px; color: var(--sedy); margin-top: 16px; }

/* nabídka */
.nabidka { display: grid; grid-template-columns: 1.3fr .9fr; gap: 56px; align-items: center; }
.seznam { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--linka); }
.seznam li { border-bottom: 1px solid var(--linka); padding: 12px 0 12px 32px; position: relative; }
.seznam li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 12px; height: 6px; border-left: 2px solid var(--modra); border-bottom: 2px solid var(--modra); transform: rotate(-45deg); }
.nabidka__box { border: 1px solid var(--linka); border-top: 4px solid var(--zlato); padding: 34px 30px; background: #fff; text-align: center; }
.nabidka__nadpis { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--zlato-tm); margin-bottom: 8px; }
.nabidka__box .btn-cta-xl { width: 100%; min-width: 0; }

/* tabulky */
.fakta { display: grid; grid-template-columns: 1.35fr .65fr; gap: 44px; align-items: start; }
.tabulka { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--linka); }
.tabulka th, .tabulka td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--linka); vertical-align: top; }
.tabulka thead th { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--sedy); font-weight: 700; background: var(--plocha); }
.tabulka td:last-child { font-size: 15px; color: var(--sedy); }
.velke { font-family: var(--serif); font-weight: 700; font-size: 40px; line-height: 1.1; color: var(--modra); white-space: nowrap; }
.typy tbody th { font-family: var(--serif); font-size: 20px; color: var(--zlato-tm); width: 30%; }
.typy td:last-child { font-size: 18px; color: var(--text); }
.graf { margin: 0; border: 1px solid var(--linka); background: #fff; padding: 8px; }

/* poznatky */
.poznatky { list-style: none; counter-reset: p; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--linka); }
.poznatky li { counter-increment: p; padding: 26px 28px 10px 0; border-right: 1px solid var(--linka); }
.poznatky li + li { padding-left: 28px; }
.poznatky li:last-child { border-right: 0; }
.poznatky li::before { content: counter(p, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 42px; color: var(--modra-sv); line-height: 1; margin-bottom: 12px; }
.poznatky h3 { font-size: 22px; }
.poznatky p { font-size: 17px; }
.poznatky cite { font-style: normal; font-size: 15px; color: var(--sedy); }

/* citáty */
.citaty { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--linka); background: #fff; }
.citaty figure { margin: 0; padding: 28px 28px 24px; border-right: 1px solid var(--linka); }
.citaty figure:last-child { border-right: 0; }
.citaty blockquote { margin: 0 0 14px; font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.45; }
.citaty figcaption { font-size: 15px; color: var(--sedy); border-top: 1px solid var(--linka); padding-top: 10px; }

/* FAQ */
.dotazy { margin: 0; border-top: 1px solid var(--linka); }
.dotazy dt { font-family: var(--serif); font-weight: 700; font-size: 21px; padding-top: 20px; color: var(--zlato-tm); }
.dotazy dd { margin: 6px 0 0; padding-bottom: 20px; border-bottom: 1px solid var(--linka); }

/* závěr */
.zaver { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.zaver__foto { margin: 0; border: 1px solid var(--linka); padding: 10px; }
.zaver__text p { font-size: 19px; margin-bottom: 28px; }

/* podstránky */
.podhlava { border-bottom: 1px solid var(--linka); background: var(--pozadi); padding: 56px 0 44px; }
.podhlava h1 { font-size: 42px; color: var(--zlato-tm); margin-bottom: 8px; }
.podhlava p { color: var(--sedy); font-size: 19px; margin: 0; }
.uzke { width: min(820px, calc(100% - 48px)); margin: 0 auto; }
.text-stranka { padding: 56px 0 72px; }
.text-stranka h2 { font-size: 24px; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--linka); }
.text-stranka li { margin-bottom: 8px; }
.dvojice { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.hodnoty { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 32px; border: 1px solid var(--linka); }
.hodnoty div { padding: 22px; border-right: 1px solid var(--linka); }
.hodnoty div:last-child { border-right: 0; }
.hodnoty h3 { font-size: 20px; color: var(--zlato-tm); margin-bottom: 6px; }
.hodnoty p { font-size: 17px; margin: 0; }
.karta { border: 1px solid var(--linka); padding: 30px; background: #fff; }
.formular { display: grid; gap: 16px; }
.formular label { display: grid; gap: 6px; font-weight: 700; font-size: 17px; }
.formular input, .formular textarea { font: inherit; font-size: 18px; padding: 12px 14px; border: 1px solid #bfb79e; border-radius: 2px; background: #fff; color: var(--text); }
.formular input:focus, .formular textarea:focus { outline: 2px solid var(--modra-sv); outline-offset: 1px; }
.tl-odeslat { justify-self: start; min-height: 58px; padding: 0 36px; font-size: 18px; border: 1px solid var(--zlato-tm); background: var(--zlato-tm); color: #fff; }
.tl-odeslat:hover { background: var(--text); }
.dekujeme { border: 1px solid var(--modra-sv); border-left: 4px solid var(--modra-sv); padding: 22px; background: #f2f8fb; }

/* patička */
.paticka { flex-shrink: 0; border-top: 1px solid var(--linka); background: var(--pozadi); padding: 30px 0; font-size: 15px; color: var(--sedy); }
.paticka .ramec { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.paticka nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.paticka a { color: var(--sedy); font-size: 14px; }

/* popup a lišta (vkládá js/script.js) */
.modal-overlay { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 22, 30, .82); }
.modal-overlay.show { display: flex; }
.modal { position: relative; width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; color: var(--text); text-align: center; padding: 50px 46px 38px; border: 1px solid var(--linka); border-top: 6px solid var(--modra); border-radius: 2px; }
.modal .close { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; border: 1px solid var(--text); background: #fff; color: var(--text); font-size: 30px; line-height: 1; cursor: pointer; border-radius: 2px; }
.modal .close:hover { background: var(--text); color: #fff; }
.modal .badge { display: inline-block; border: 1px solid var(--zlato); color: var(--zlato-tm); font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 16px; margin-bottom: 16px; }
.modal h3 { font-family: var(--serif); font-size: 46px; line-height: 1.08; color: var(--modra); margin: 0 0 10px; }
.modal > p { font-size: 21px; font-weight: 700; margin: 0 0 18px; }
.modal .offer { border-top: 1px solid var(--linka); border-bottom: 1px solid var(--linka); padding: 14px 0; margin-bottom: 24px; }
.modal .offer p { margin: 5px 0; font-size: 18px; }
.modal .btn-cta-xl { width: 100%; min-width: 0; min-height: 88px; font-size: 23px; padding: 12px 24px; }
.modal .btn, .modal .cta { white-space: normal; overflow-wrap: anywhere; line-height: 1.25; max-width: 100%; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; align-items: center; justify-content: center; gap: 24px; padding: 10px 16px; background: #fff; border-top: 2px solid var(--modra); color: var(--text); }
.sticky-cta > span { font-weight: 700; font-size: 17px; }
.sticky-cta .btn-cta { min-height: 60px; padding: 0 30px; font-size: 19px; flex: 0 0 auto; }

/* responzivita */
@media (max-width: 980px) {
  .poznatky, .citaty { grid-template-columns: 1fr; }
  .poznatky li, .poznatky li + li { padding: 22px 0 8px; border-right: 0; border-bottom: 1px solid var(--linka); }
  .citaty figure { border-right: 0; border-bottom: 1px solid var(--linka); }
  .fakta { grid-template-columns: 1fr; }
  .graf { max-width: 460px; }
}
@media (max-width: 820px) {
  body { font-size: 17px; }
  h2 { font-size: 28px; }
  .ramec, .ramec--uzky, .uzke { width: calc(100% - 32px); }
  .otevreni { background: #fff; }
  .otevreni__mrizka { grid-template-columns: 1fr; gap: 28px; padding: 30px 0 36px; }
  .otevreni h1 { font-size: 32px; }
  .otevreni__perex { font-size: 18px; margin-bottom: 22px; }
  .otevreni__fakta { min-width: 0; width: 100%; }
  .btn-cta-xl { min-width: 0; width: 100%; min-height: 74px; font-size: 20px; padding: 10px 18px; }
  .oddil { padding: 56px 0; }
  .nabidka, .zaver, .dvojice { grid-template-columns: 1fr; gap: 30px; }
  .hodnoty { grid-template-columns: 1fr; }
  .hodnoty div { border-right: 0; border-bottom: 1px solid var(--linka); }
  .tabulka th, .tabulka td { padding: 12px 10px; }
  .tabulka thead { display: none; }
  .fakta .tabulka tr { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--linka); }
  .fakta .tabulka td { border-bottom: 0; padding: 6px 12px; }
  .fakta .tabulka td.velke { padding-top: 16px; font-size: 34px; }
  .fakta .tabulka td:last-child { padding-bottom: 16px; }
  .typy tbody th { width: 38%; font-size: 17px; }
  .typy td:last-child { font-size: 16px; }
  .podhlava h1 { font-size: 32px; }
  .karta { padding: 22px 16px; }
  .logo { font-size: 19px; gap: 8px; }
  .logo svg { width: 30px; height: 30px; flex-basis: 30px; }
  .tl-zahlavi { min-height: 46px; padding: 0 14px; font-size: 15px; }
}
@media (max-width: 600px) {
  .modal { padding: 46px 18px 24px; }
  .modal h3 { font-size: 34px; }
  .modal > p { font-size: 19px; }
  .modal .btn-cta-xl { min-height: 72px; font-size: 19px; padding: 10px 14px; }
  .sticky-cta { flex-wrap: nowrap; gap: 10px; padding: 8px 10px; }
  .sticky-cta > span { white-space: normal; min-width: 0; flex: 1 1 auto; font-size: 14px; line-height: 1.25; }
  .sticky-cta .btn-cta { min-height: 48px; padding: 0 16px; font-size: 15px; white-space: nowrap; }
  body { padding-bottom: 74px; }
}
