/* svpkvary.cz — styl webu. Barvy podle loga SVP. Bez externích fontů. */
:root {
  --blue: #2f8fcc;
  --blue-dark: #1d6694;
  --blue-soft: #e8f4fc;
  --yellow: #eec216;
  --yellow-soft: #fdf6dc;
  --green: #a7b52a;
  --green-soft: #f3f6df;
  --text: #24303a;
  --muted: #5d6b76;
  --line: #dde3e8;
  --bg: #ffffff;
  --bg-alt: #f6f8fa;
  --radius: 10px;
  --wrap: 72rem;
  --narrow: 46rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 1.0625rem; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--blue-dark); text-underline-offset: 2px; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.25; color: #17384f; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-top: 0; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
main.wrap { padding-top: 2.5rem; padding-bottom: 3.5rem; }
main.wrap:not(.wide) { max-width: calc(var(--narrow) + 2rem); }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.meta { color: var(--muted); font-size: .9em; }

/* hlavička a menu */
.site-header { background: #fff; border-bottom: 4px solid var(--yellow); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5.5rem; }
.brand img { display: block; width: 180px; height: auto; }
.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .15rem; }
.site-nav a, .site-nav button {
  display: block; padding: .55rem .75rem; border-radius: 6px; color: var(--text); text-decoration: none;
  font: inherit; font-size: .98rem; font-weight: 600; background: none; border: 0; cursor: pointer;
}
.site-nav a:hover, .site-nav button:hover { background: var(--blue-soft); color: var(--blue-dark); }
.site-nav a[aria-current="page"], .site-nav .active > button { color: var(--blue-dark); box-shadow: inset 0 -3px 0 var(--blue); }
.has-sub { position: relative; }
.has-sub > button::after { content: ""; display: inline-block; margin-left: .4rem; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
.sub { list-style: none; margin: 0; padding: .4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(23, 56, 79, .12); }
.sub a { font-weight: 500; }
.sub a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--blue); }
.menu-toggle { display: none; }
@media (min-width: 62.01rem) {
  .sub { position: absolute; top: 100%; left: 0; min-width: 19rem; display: none; }
  .has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { display: block; }
}
@media (max-width: 62rem) {
  .header-inner { flex-wrap: wrap; padding-top: .6rem; padding-bottom: .6rem; }
  .brand img { width: 150px; }
  .js .menu-toggle {
    display: inline-flex; align-items: center; gap: .5rem; font: inherit; font-weight: 600; padding: .55rem 1rem;
    border: 2px solid var(--blue); border-radius: 6px; background: #fff; color: var(--blue-dark); cursor: pointer;
  }
  .js .menu-toggle::before { content: "☰"; font-size: 1.2rem; line-height: 1; }
  .js .menu-toggle[aria-expanded="true"]::before { content: "✕"; }
  .site-nav { width: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; padding-bottom: .5rem; }
  .site-nav a, .site-nav button { width: 100%; text-align: left; }
  .sub { border: 0; box-shadow: none; padding: 0 0 0 1rem; }
  .js .has-sub:not(.open) .sub { display: none; }
}

/* úvod */
.hero { position: relative; min-height: 26rem; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #2e4a2a; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 30, 45, .05) 20%, rgba(10, 30, 45, .78)); z-index: 1; }
.hero-text { position: relative; z-index: 2; padding-top: 4rem; padding-bottom: 2.5rem; width: 100%; }
.hero h1 { color: #fff; max-width: 40rem; margin-bottom: .4rem; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.hero p { max-width: 38rem; font-size: 1.15rem; margin: .3rem 0; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.actions { margin-top: 1.2rem !important; display: flex; flex-wrap: wrap; gap: .6rem; }
.btn { display: inline-block; padding: .7rem 1.2rem; border-radius: 999px; background: var(--yellow); color: #1f2a00; font-weight: 700; text-decoration: none; text-shadow: none; }
.btn:hover { background: #f7d64a; color: #1f2a00; }
.btn-light { background: rgba(255, 255, 255, .92); color: var(--blue-dark); }
.btn-light:hover { background: #fff; color: var(--blue-dark); }
.intro { background: var(--yellow-soft); border-radius: var(--radius); padding: 1.5rem 1.75rem; }
.intro h2 { margin-top: 0; }
.lead-text { font-size: 1.15rem; }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.tiles a { display: block; height: 100%; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius); text-decoration: none; color: var(--text); background: #fff; transition: box-shadow .15s, transform .15s; }
.tiles li:nth-child(3n+2) a { border-top-color: var(--blue); }
.tiles li:nth-child(3n) a { border-top-color: var(--yellow); }
.tiles a:hover { box-shadow: 0 8px 24px rgba(23, 56, 79, .12); transform: translateY(-2px); }
.tiles h3 { margin: 0 0 .4rem; color: var(--blue-dark); }
.tiles p { margin: 0; color: var(--muted); font-size: .95rem; }
.contact-box { margin-top: 3rem; background: var(--blue-soft); border-radius: var(--radius); padding: 1.5rem 1.75rem; }
.contact-box h2 { margin-top: 0; }
.phone { font-size: 1.5rem; font-weight: 700; margin: .3rem 0; }
.phone a { text-decoration: none; }
.more { margin-top: 1rem; font-weight: 600; }

/* aktuality */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1.25rem; }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.card-img { display: block; aspect-ratio: 16 / 10; background: var(--bg-alt); }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 1rem 1.2rem 1.2rem; }
.card h2, .card h3 { font-size: 1.15rem; margin: 0 0 .25rem; }
.card h2 a, .card h3 a { text-decoration: none; }
.card p { margin: .4rem 0 0; }
.entry-meta { color: var(--muted); font-size: .9rem; margin: .2rem 0 0; }
.entry-header { margin-bottom: 1.5rem; }
.lead { margin: 0 0 1.5rem; }
.lead img { width: 100%; border-radius: var(--radius); display: block; }
.back { margin-top: 2.5rem; }

/* obsah stránek */
.content > :first-child { margin-top: 0; }
.content blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; background: var(--green-soft); border-left: 4px solid var(--green); border-radius: 0 var(--radius) var(--radius) 0; }
.content ul { padding-left: 1.3rem; }
.content li { margin: .35rem 0; }
.content h4 { margin-bottom: .2rem; }
.content h4 + p { margin-top: 0; }
.content figure { margin: 1.5rem 0; }
.content figcaption { color: var(--muted); font-size: .9rem; margin-top: .3rem; }
.content img { border-radius: 6px; }
.alignleft { float: left; margin: .3rem 1.2rem .8rem 0; }
.alignright { float: right; margin: .3rem 0 .8rem 1.2rem; }
.aligncenter { display: block; margin: 1rem auto; }
.sekce { overflow: hidden; margin: 1.5rem 0; }
.sekce h3 { margin-top: 0; }
.sekce-img { float: left; width: 80px; height: auto; margin: .2rem 1.2rem .8rem 0; border-radius: 0 !important; }
.img-link { display: inline-block; }
.content h3 { clear: both; }
.content::after { content: ""; display: block; clear: both; }
.figures { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.figures figure { margin: 0; }
.figures img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.docs { list-style: none; padding: 0 !important; }
.docs li { padding: .7rem 1rem .7rem 2.6rem; border: 1px solid var(--line); border-radius: var(--radius); position: relative; margin: .5rem 0; }
.docs li::before { content: ""; position: absolute; left: 1rem; top: 1.05rem; width: .9rem; height: 1.1rem; border: 2px solid var(--blue); border-radius: 2px; }
.gallery { list-style: none; margin: 1rem 0 2.5rem; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .6rem; }
.gallery li { margin: 0; }
.gallery a { display: block; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; transition: transform .2s; }
.gallery a:hover img { transform: scale(1.04); }
.plain { list-style: none; padding: 0; margin: 0; }

/* lightbox */
.lb { position: fixed; inset: 0; background: rgba(8, 14, 20, .94); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb img { max-width: calc(100vw - 2rem); max-height: calc(100vh - 6rem); border-radius: 4px; }
.lb button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; font-size: 1.6rem; width: 3rem; height: 3rem; border-radius: 50%; cursor: pointer; }
.lb button:hover { background: rgba(255, 255, 255, .25); }
.lb .lb-close { top: 1rem; right: 1rem; }
.lb .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb .lb-count { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: #cfd8df; font-size: .9rem; }

/* patička */
.site-footer { background: #17384f; color: #d9e4ec; font-size: .95rem; border-top: 4px solid var(--green); }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin: 0 0 .6rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem 2rem; padding-top: 2.5rem; padding-bottom: 1.5rem; }
.footer-grid p { margin: 0 0 .6rem; }
.site-footer .meta { color: #b6c6d2; }
.plain li { margin: .25rem 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1rem; padding-bottom: 1.5rem; color: #b6c6d2; font-size: .85rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 40rem) {
  body { font-size: 1rem; }
  main.wrap { padding-top: 1.75rem; }
  .hero { min-height: 22rem; }
  .alignleft, .alignright { float: none; margin: 1rem 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .site-header nav, .menu-toggle, .site-footer, .hero > img { display: none; }
  .hero { color: var(--text); min-height: 0; }
  .hero::before { display: none; }
}
