* { box-sizing: border-box; }
html { background: #fff; }
body { margin: 0; color: #242424; background: #fff; font: 17px/1.6 Arial, Helvetica, sans-serif; }
a { color: inherit; }
.site { width: min(100% - 40px, 1040px); margin: 0 auto; }
.header { padding: 22px 0 18px; border-bottom: 1px solid #e3e3e3; }
.brand-logo { display: inline-block; }
.brand-logo img { display: block; width: min(100%, 430px); height: auto; }
.content { padding: 34px 0 56px; }
.welcome { text-align: center; padding: 8px 0 24px; }
h1 { margin: 0 0 10px; font-size: clamp(27px, 4vw, 36px); line-height: 1.25; font-weight: 700; }
.lead { margin: 0; color: #555; font-size: 19px; }
.partners { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 42px; padding: 20px 10px 28px; border-bottom: 1px solid #e3e3e3; }
.partners img { display: block; max-width: 150px; max-height: 58px; width: auto; height: auto; object-fit: contain; }
.intro { max-width: 760px; margin: 30px auto 42px; }
h2 { margin: 0 0 14px; font-size: 25px; line-height: 1.3; }
.offer-list { margin: 0; padding-left: 24px; }
.offer-list li { margin: 5px 0; }
.contact { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 24px; padding: 16px 18px; background: #f7f7f7; border-left: 3px solid #555; }
.contact p { margin: 0; }
.contact a { text-decoration: none; }
.contact a:hover { text-decoration: underline; }
.topics { border-top: 1px solid #e3e3e3; padding-top: 30px; }
.topics > p { margin: 0 0 18px; color: #555; }
.topic-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.topic { display: block; min-height: 88px; padding: 16px 18px; border: 1px solid #ddd; border-radius: 3px; text-decoration: none; transition: border-color .15s, background .15s; }
.topic:hover { border-color: #777; background: #fafafa; }
.topic strong { display: block; margin-bottom: 5px; font-size: 18px; }
.topic span { color: #666; font-size: 14px; }
.footer { padding: 18px 0 28px; border-top: 1px solid #e3e3e3; color: #666; font-size: 14px; }
@media (max-width: 600px) { .site { width: min(100% - 28px, 1040px); } .partners { gap: 22px; } .partners img { max-width: 120px; } .contact { display: block; } .contact p + p { margin-top: 7px; } }

/* Doplneni jednotneho vzhledu tematickych stranek */
.header > a { display: inline-block; }
.header .logo { display: block; width: min(100%, 430px); height: auto; max-height: 120px; object-fit: contain; object-position: left center; }
.header .brand { margin-top: 6px; font-size: 15px; color: #555; font-weight: 600; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 14px 0; border-bottom: 1px solid #e3e3e3; }
.nav a { color: #333; text-decoration: none; font-size: 15px; }
.nav a:hover, .back:hover { text-decoration: underline; }
.content { min-width: 0; overflow-wrap: anywhere; }
.content img { max-width: 100%; height: auto; }
.content table { max-width: 100%; border-collapse: collapse; }
.content h1 { margin: 0 0 22px; }
.content p { line-height: 1.65; }
.back { color: #333; text-decoration: none; }
.footer p { margin: 8px 0 0; }

/* Uvodni prehled: tri sloupce a posledni odkaz uprostred */
.topic-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.topic:last-child { grid-column: 2; }
.contact, .contact p, .contact a, .contact strong { font-style: normal !important; }

@media (max-width: 800px) {
  .topic-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic:last-child { grid-column: 1 / -1; width: min(100%, 360px); justify-self: center; }
}
@media (max-width: 560px) {
  .topic-list { grid-template-columns: 1fr; }
  .topic:last-child { grid-column: 1; width: 100%; }
  .nav { gap: 7px 13px; }
}
