/* Gerontocentrum – vzhled navazuje na původní web (růžová #ea556f, písmo Open Sans) */
:root {
  --rose: #ea556f;
  --rose-dark: #d8405b;
  --text: #555;
  --head: #444;
  --line: #ececec;
  --wrap: 1080px;
}
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 100%;
  background-color: #5b5b5b;
  background-image: linear-gradient(270deg, #1e1e1e 0%, #464646 100%);
  background-attachment: fixed;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: transparent;
}
#stranka > .topbar, #stranka > .site-header, #stranka > .obsah { background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--rose); text-decoration: none; }
a:hover { color: var(--rose-dark); }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 1000; }
.skip-link:focus { left: 0; }
.text-center { text-align: center; }
.text-right { text-align: right; }

h1, h2, h3, h4, h5, h6 { color: var(--head); line-height: 1.3; margin: 0 0 .5em; font-weight: 700; text-rendering: optimizeLegibility; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.3em; }
ul, ol { margin: 0 0 1.3em; padding-left: 1.3em; }
li { margin-bottom: .4em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.3em 0; }
.uppercase { text-transform: uppercase; letter-spacing: .05em; }
.hnadpis { font-size: 2.6em; text-transform: uppercase; font-weight: 300; margin: 0; padding: 0; }
.hnadpis2 { font-weight: 300 !important; font-size: 1.4em !important; }
.just, .just p { text-align: justify; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 15px; }
.wrap-uzky { max-width: 900px; margin: 0 auto; padding: 0 15px; }

/* ---------- horní lišta ---------- */
.topbar { background: linear-gradient(90deg, #fff 0%, #e6e6e6 100%) !important; height: 46px; }
.topbar .wrap { display: flex; justify-content: flex-end; align-items: center; height: 46px; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.nav li { margin: 0; position: relative; }
.nav a { color: #666; text-transform: uppercase; font-weight: 600; font-size: .875rem; letter-spacing: .02em; display: block; }
.nav-top a { color: #4d4d4d; font-size: .78rem; padding: 0 .7rem; }
.nav-top li + li::before, .nav-main > li + li::before { content: ""; position: absolute; left: 0; top: 50%; height: 15px; margin-top: -7px; border-left: 1px solid #ddd; }
.nav-top li:last-child a { padding-right: 0; }
.nav-top a:hover, .nav-main a:hover, .nav .current-menu-item > a { color: var(--rose); }
.nav-top .current-menu-item > a { color: #111; }

/* ---------- hlavička ---------- */
.site-header { height: 91px; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); position: relative; z-index: 20; }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 91px; }
.logo { display: block; line-height: 0; }
.logo img { width: 252px; height: auto; }
.menu-toggle { display: none; background: none; border: 0; padding: 12px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: #555; margin: 5px 0; }
.nav-main > li > a { padding: .4rem .78rem; line-height: 1.2; }
.nav-main > li.current-menu-item > a,
.nav-main > li.current-menu-ancestor > a,
.nav-main > li.current_page_item > a,
.nav-main > li.current-page-ancestor > a { color: var(--rose); }
.nav-main > li:last-child > a { padding-right: 0; }
.nav-mobil-extra { display: none; }
.menu-item-has-children > a::after { content: ""; display: inline-block; width: 5px; height: 5px; border-right: 1.5px solid #aaa; border-bottom: 1.5px solid #aaa; transform: rotate(45deg); margin: 0 0 3px 6px; }
.sub-menu { list-style: none; margin: 0; padding: .6rem 0; position: absolute; left: 0; top: 100%; min-width: 260px; background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .18); display: none; z-index: 30; }
.sub-menu a { padding: .45rem 1.1rem; border: 0 !important; text-transform: none; font-weight: 600; font-size: .875rem; white-space: nowrap; }
.menu-item-has-children:hover > .sub-menu, .menu-item-has-children:focus-within > .sub-menu { display: block; }

/* ---------- obsah ---------- */
.obsah { min-height: 40vh; }
.entry-content > :first-child { margin-top: 0; }
.row { display: flex; flex-wrap: wrap; max-width: var(--wrap); margin: 0 auto; padding: 0; }
.row-full { max-width: none; }
.row-inner { margin: 0 -15px; max-width: none; }
.row-middle { align-items: center; }
.row-center { justify-content: center; }
.col { padding: 0 15px; width: 100%; flex: 0 0 100%; max-width: 100%; }
.col-inner { padding-bottom: 30px; }
.row-small > .col { padding: 0 9px; }
.row-small > .col > .col-inner { padding-bottom: 18px; }
@media (min-width: 850px) {
  .col-1 { flex-basis: 8.3333%; max-width: 8.3333%; } .col-2 { flex-basis: 16.6667%; max-width: 16.6667%; }
  .col-3 { flex-basis: 25%; max-width: 25%; } .col-4 { flex-basis: 33.3333%; max-width: 33.3333%; }
  .col-5 { flex-basis: 41.6667%; max-width: 41.6667%; } .col-6 { flex-basis: 50%; max-width: 50%; }
  .col-7 { flex-basis: 58.3333%; max-width: 58.3333%; } .col-8 { flex-basis: 66.6667%; max-width: 66.6667%; }
  .col-9 { flex-basis: 75%; max-width: 75%; } .col-10 { flex-basis: 83.3333%; max-width: 83.3333%; }
  .col-11 { flex-basis: 91.6667%; max-width: 91.6667%; } .col-12 { flex-basis: 100%; max-width: 100%; }
}
.sekce { padding-top: 30px; padding-bottom: 30px; }
.gap { display: block; clear: both; }

.divider { width: 100%; max-width: 30px; height: 3px; background: var(--rose); margin: 1em 0 1.3em; }
.text-center .divider { margin-left: auto; margin-right: auto; }
.divider-seda { background: rgba(0, 0, 0, .1); }
.divider-mini { height: 2px; background: rgba(0, 0, 0, .1); margin: .6em 0 1em; }
.col-inner > .divider:first-child { margin-top: .3em; }

/* tlačítka */
.btn { display: inline-block; background: var(--rose); color: #fff; border: 2px solid var(--rose); font: inherit; font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em; font-size: .9375rem; line-height: 2.1; padding: 0 1.4em; margin: 0 .6em .6em 0; cursor: pointer; text-align: center; }
.btn:hover { background: var(--rose-dark); border-color: var(--rose-dark); color: #fff; }
.btn-small { font-size: .75rem; line-height: 1.9; padding: 0 1.45em; margin-bottom: 0; }
.btn-outline { background: transparent; color: var(--rose); }
.btn-outline:hover { background: var(--rose); color: #fff; }
.btn-gray { border-color: #bbb; color: #bbb; }
.btn-gray:hover { background: #bbb; border-color: #bbb; color: #fff; }
.btn-white { background: #fff; border-color: #fff; color: var(--head); }
.btn-white:hover { background: #f1f1f1; border-color: #f1f1f1; color: var(--head); }

/* banner, záhlaví s fotkou, box */
.banner { position: relative; background-size: cover; background-repeat: no-repeat; overflow: hidden; }
.text-box { position: absolute; text-align: center; color: #fff; }
.text-box h3 { color: #fff; font-size: 1.9rem; margin-bottom: .2em; }
.text-box p { color: #fff; margin-bottom: .8em; }
.text-box, .text-box p, .just .text-box p { text-align: center; }
.text-box-dark, .text-box-dark h3, .text-box-dark p { color: var(--head); }
.page-hero { background-size: cover; background-repeat: no-repeat; width: 100%; }
.page-title { text-align: center; padding-top: 17px; }
.page-title h1 { margin: 0; }
.page-title .lead { font-size: 1.15rem; opacity: .7; margin: .4em 0 0; text-align: center; }
.message-box { color: #fff; padding: 15px 40px; margin-bottom: 1.3em; }
.message-box p { color: #fff; margin: 0; }
.message-box .col { padding-bottom: 0; }
.message-box .col-inner { padding-bottom: 0; }
.img { margin: 0 auto; }
.img img { display: block; margin: 0 auto; }
.img-fit { width: 100%; object-fit: cover; }
.col.text-center .img { margin-left: auto; margin-right: auto; }

/* seznam dokumentů a lidí */
.dokumenty { margin-bottom: 1.3em; }
.dok { display: flex; align-items: center; padding: 17px 0; border-bottom: 1px solid var(--line); }
.dok:first-child { padding-top: 8px; }
.dok > strong, .dok > div:first-child { flex: 0 0 58.3333%; padding-right: 1em; }
.dok > a, .dok > div:last-child { flex: 0 0 auto; margin: 0; }
.dok .pozice { font-weight: 400; font-style: italic; }
.odkaz-mail { color: var(--rose); font-weight: 600; }
.lide .dok { align-items: flex-start; padding: 12px 0; }

/* aktuality */
.clanek { margin-bottom: 4.6rem; }
.clanek-titulek { font-size: 1.3rem; margin: 0; }
.clanek-titulek a { color: var(--head); }
.clanek-datum { font-size: .8125rem; opacity: .7; }
.clanek p { margin-bottom: 1.1em; }
.pagination { margin: 2rem 0; text-align: center; }
.pagination a, .pagination span { display: inline-block; padding: .2rem .8rem; }
.clanek-detail { padding-top: 24px; padding-bottom: 60px; }
.clanek-detail .entry-title { font-size: 1.75rem; margin-bottom: .2em; }
.clanek-detail .entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.clanek-detail .entry-content td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.stranka { padding-bottom: 0; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content iframe { max-width: 100%; border: 0; }

/* galerie (jádro WP) */
.gallery { display: grid; gap: 8px; margin: 0 0 1.3em; grid-template-columns: repeat(2, 1fr); }
.gallery-item { margin: 0; overflow: hidden; }
.gallery-icon { line-height: 0; overflow: hidden; }
.gallery-icon a { display: block; }
.gallery-item img { width: 100%; height: 160px; object-fit: cover; transition: transform .5s; }
.gallery-item a:hover img { transform: scale(1.06); }
.gallery-caption { display: none; }
@media (min-width: 600px) {
  .gallery-columns-3 { grid-template-columns: repeat(3, 1fr); } .gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
  .gallery-columns-5 { grid-template-columns: repeat(5, 1fr); } .gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }
}
.gallery-columns-5 .gallery-item img { height: 120px; object-fit: contain; }

/* lightbox */
.lb { position: fixed; inset: 0; background: rgba(0, 0, 0, .9); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.lb img { max-width: 92vw; max-height: 90vh; box-shadow: 0 0 30px #000; }
.lb button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; padding: .4rem .9rem; line-height: 1; }
.lb .lb-x { top: 8px; right: 8px; } .lb .lb-p { left: 8px; top: 50%; } .lb .lb-n { right: 8px; top: 50%; }

/* formulář */
.formular { max-width: 640px; margin: 0 auto 2rem; }
.formular input[type=text], .formular input[type=email], .formular textarea { width: 100%; font: inherit; padding: .6em .8em; border: 1px solid #ccc; border-radius: 0; background: #fff; color: var(--text); }
.formular input:focus, .formular textarea:focus { outline: 2px solid var(--rose); outline-offset: 0; }
.formular-ok { background: #e7f6ea; border-left: 4px solid #3a9a50; padding: 1em; }
.formular-chyba { background: #fdecee; border-left: 4px solid var(--rose); padding: 1em; }
.web-pole { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* patička */
.site-footer { padding: 6px 0 30px; color: #aaa; font-size: .875rem; }
.site-footer .wrap { max-width: var(--wrap); }
.nav-footer { border-bottom: 1px solid rgba(255, 255, 255, .1); padding: 8px 0 4px; display: inline-flex; min-width: 55%; }
.nav-footer a { color: #8a8a8a; font-size: .75rem; letter-spacing: .05em; margin-right: .9rem; }
.nav-footer a:hover { color: #fff; }
.copy { margin: .5rem 0 0; color: #b5b5b5; }

/* A+ A A- */
.font-resizer { position: fixed; z-index: 999; right: 10px; bottom: 10px; display: flex; flex-direction: column; }
.font-resizer button { width: 40px; height: 38px; border-radius: 50%; border: 0; background: var(--rose); color: #fff; font: italic 700 1rem 'Open Sans', sans-serif; margin: 3px; cursor: pointer; padding: 0; }
.font-resizer button:hover { background: #353535; }

/* ---------- mobil ---------- */
@media (max-width: 849px) {
  .topbar { display: none; }
  .site-header { height: 70px; }
  .header-in { height: 70px; justify-content: flex-start; }
  .menu-toggle { display: block; margin-left: -12px; }
  .logo { margin: 0 auto; padding-right: 36px; }
  .logo img { width: 205px; }
  .menu-hlavni { display: none; position: absolute; left: 0; right: 0; top: 70px; background: #fff; box-shadow: 0 6px 12px rgba(0, 0, 0, .15); padding: 8px 20px 18px; }
  .menu-hlavni.otevrene { display: block; }
  .nav { display: block; }
  .nav-main > li + li > a { border: 0; }
  .nav-main a, .nav-mobil-extra a { padding: .65rem 0 !important; border-bottom: 1px solid var(--line); }
  .nav-mobil-extra { display: block; margin-top: 10px; }
  .menu-item-has-children > a::after { display: none; }
  .sub-menu { display: block; position: static; box-shadow: none; padding: 0 0 0 1rem; }
  .row { display: block; }
  .row-middle, .row-center { display: block; }
  .clanky { margin-left: 0; }
  .dok { flex-wrap: wrap; }
  .dok > strong, .dok > div:first-child, .dok > a, .dok > div:last-child { flex: 1 1 100%; }
  .message-box { padding: 15px; }
  .hnadpis { font-size: 2rem; }
  .text-box h3 { font-size: 1.3rem; }
  .font-resizer button { width: 36px; height: 34px; }
}
@media print { .topbar, .site-header, .font-resizer, .site-footer { display: none; } html { background: #fff; } }
