/* Společné styly všech typů stránek */

:root
{
--red: #ef0d12;
      --red-dark: #d60b10;
      --blue: #0039d7;
      --blue-surface: rgba(0, 57, 215, .055);
      --blue-shadow: 0 10px 28px rgba(0, 57, 215, .10);
      --yellow: #F6F057;
      --yellow-surface: rgba(246, 240, 87, .32);
      --yellow-shadow: 0 10px 28px rgba(123, 117, 0, .16);
      --text: #343434;
      --muted: #6f6f6f;
      --bg: #edf1f5;
      --surface: rgba(255, 255, 255, .78);
      --surface-strong: rgba(255, 255, 255, .92);
      --line: rgba(20, 20, 20, .08);
      --white: #fff;
      --shadow: 0 16px 45px rgba(19, 32, 56, .10);
      --shadow-soft: 0 8px 24px rgba(19, 32, 56, .06);
      --radius: 22px;
      --radius-sm: 16px;
      --container: 1520px;
}

*
{
box-sizing: border-box
}

html
{
scroll-behavior: smooth
}

body
{
margin: 0;
      font-family: "Source Sans 3", Arial, sans-serif;
      color: var(--text);
      background: var(--bg);
      line-height: 1.6;
      font-size: 18px;
}

a
{
color: inherit;
      text-decoration: none
}

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

.container
{
width: min(calc(100% - 32px), var(--container));
      margin: 0 auto
}

.topbar
{
position: sticky;
      top: 0;
      z-index: 100;
      backdrop-filter: blur(16px);
      background: rgba(239, 13, 18, .92);
      box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, 0 8px 28px rgba(0, 0, 0, .12);
}

.topbar-inner
{
display: flex;
      align-items: center;
      justify-content: center;
      min-height: 46px;
      gap: 0;
}

.brand-mini
{
display: none
}

.mobile-toggle
{
display: none
}

.menu
{
display: flex;
      list-style: none;
      margin: 0;
      padding: 0;
}

.menu>li
{
position: relative
}

.menu>li>a
{
display: flex;
      align-items: center;
      gap: 8px;
      padding: 13px 18px;
      color: #fff;
      font-size: 20px;
      font-weight: 700;
      transition: .2s ease;
}

.menu>li.active>a
{
background: var(--blue);
      box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .14);
}

.menu>li:not(.active)>a:hover,
.menu>li:hover>a
{
background: rgba(255, 255, 255, .08);
}

.submenu
{
position: absolute;
      top: 100%;
      left: 0;
      min-width: 310px;
      background: rgba(255, 255, 255, .98);
      border: 1px solid rgba(0, 0, 0, .06);
      border-top: 4px solid var(--red);
      border-radius: 0 0 18px 18px;
      box-shadow: var(--shadow);
      padding: 10px 0;
      opacity: 0;
      pointer-events: none;
      transform: translateY(10px);
      transition: .22s ease;
}

.menu>li:hover .submenu
{
opacity: 1;
      pointer-events: auto;
      transform: none;
}

.submenu-group-title
{
display: block;
      padding: 12px 18px 6px;
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: .12em;
      color: #9a9a9a;
      font-weight: 800;
}

.submenu a
{
display: block;
      padding: 11px 18px;
      color: #444;
      font-size: 17px;
}

.submenu a:hover
{
background: #f7f7f8;
      color: var(--red);
}

.main-wrap
{
position: relative;
      z-index: 2;
      margin-top: -70px;
      padding-bottom: 50px;
}

.widget,
.panel
{
background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow-soft);
      backdrop-filter: blur(14px);
}

.widget
{
padding: 20px 20px 18px;
      margin-bottom: 18px;
}

.panel
{
padding: 22px 22px 18px;
}

.widget-title,
.panel-title
{
display: flex;
      align-items: center;
      gap: 10px;
      margin: 0 0 16px;
      color: #4a4a4a;
      font-size: 28px;
      font-weight: 800;
      letter-spacing: -.02em;
}

.widget-title i,
.panel-title i
{
color: var(--red);
      font-size: .84em;
}

.widget p,
.widget a,
.widget table
{
font-size: 18px;
}

.widget a
{
color: var(--red);
      font-weight: 700;
}

.widget a:hover
{
text-decoration: underline
}

.office-hours
{
width: 100%;
      border-collapse: collapse;
      margin: 0 0 10px;
      font-size: 18px;
}

.office-hours th,
.office-hours td
{
padding: 6px 0;
      text-align: left;
      font-weight: 700;
      border-bottom: 1px solid rgba(0, 0, 0, .04);
}

.office-hours tr:last-child th,
.office-hours tr:last-child td
{
border-bottom: 0
}

.office-hours .today
{
background: rgba(239, 13, 18, .08);
}

.office-address
{
margin: 0 0 16px;
      color: var(--muted);
      line-height: 1.55;
}

.office-address strong
{
color: var(--text);
}

.office-contact-list
{
display: grid;
      gap: 8px;
      margin-bottom: 20px;
}

.office-contact-item
{
display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
      padding: 10px 12px;
      border-radius: 12px;
      background: rgba(239, 13, 18, .06);
      color: var(--text);
      font-weight: 700;
}

.office-contact-item i
{
flex: 0 0 20px;
      color: var(--red);
      text-align: center;
}

.office-contact-item span,
.office-contact-item a
{
min-width: 0;
      overflow-wrap: anywhere;
}

.office-contact-item a
{
font-size: inherit;
}

.widget-subtitle
{
display: flex;
      align-items: center;
      gap: 8px;
      margin: 0 0 10px;
      color: #4a4a4a;
      font-size: 19px;
      font-weight: 800;
}

.widget-subtitle i
{
color: var(--red);
}

.office-note
{
margin: 10px 0 14px;
      color: var(--muted);
      line-height: 1.45;
}

.office-actions
{
display: grid;
      gap: 8px;
}

.widget .office-button
{
display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 11px 14px;
      border-radius: 12px;
      background: var(--red);
      color: #fff;
      text-align: center;
      text-decoration: none;
      transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.widget .office-button.secondary
{
border: 1px solid rgba(239, 13, 18, .18);
      background: rgba(239, 13, 18, .07);
      color: var(--red);
}

.widget .office-button:hover
{
background: #d90b10;
      box-shadow: 0 8px 18px rgba(239, 13, 18, .2);
      text-decoration: none;
      transform: translateY(-1px);
}

.widget .office-button.secondary:hover
{
background: rgba(239, 13, 18, .13);
}

.important-links
{
display: grid;
      gap: 8px;
}

.widget .important-link
{
display: grid;
      grid-template-columns: 24px minmax(0, 1fr) auto;
      align-items: center;
      gap: 9px;
      padding: 11px 10px;
      border-radius: 12px;
      color: var(--text);
      text-decoration: none;
      transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.important-link > i:first-child
{
color: var(--red);
      text-align: center;
}

.important-link .fa-chevron-right
{
color: #aaa;
      font-size: 12px;
      transition: transform .2s ease;
}

.widget .important-link:hover
{
background: rgba(239, 13, 18, .07);
      color: var(--red);
      text-decoration: none;
      transform: translateX(2px);
}

.important-link:hover .fa-chevron-right
{
transform: translateX(3px);
}

.virtual-box
{
aspect-ratio: 4/5;
      border-radius: 18px;
      border: 1px dashed rgba(0, 0, 0, .10);
      background: linear-gradient(135deg, #f5f7fa, #eaedf2);
      display: grid;
      place-items: center;
      text-align: center;
      color: #8c8c8c;
      font-size: 16px;
      margin-bottom: 12px;
}

.footer
{
position: relative;
      margin-top: 24px;
      color: #fff;
      background:
        linear-gradient(rgba(8, 10, 18, .80), rgba(8, 10, 18, .92)),
        url('https://www.obeclibrice.cz/wp-content/uploads/2022/08/DJI_0787-min-scaled.jpg') center/cover no-repeat;
      padding-top: 56px;
}

.footer-grid
{
display: grid;
      grid-template-columns: 1.2fr 1fr 280px;
      gap: 30px;
      align-items: start;
      padding-bottom: 34px;
}

.grant-block
{
background: rgba(255, 255, 255, .06);
      border: 1px solid rgba(255, 255, 255, .10);
      border-radius: 22px;
      padding: 20px;
      backdrop-filter: blur(10px);
}

.grant-block img
{
/* height: 54px; */
      object-fit: contain;
      margin-bottom: 18px;
      /* background: #fff; */
      /* padding: 8px; */
      /* border-radius: 10px; */
}

.grant-block p
{
margin: 0 0 16px;
      color: rgba(255, 255, 255, .95);
      font-size: 18px;
      line-height: 1.65;
}

.distribution-wrap
{
background: rgba(255, 255, 255, .04);
      border: 1px solid rgba(255, 255, 255, .09);
      border-radius: 22px;
      padding: 16px;
      backdrop-filter: blur(10px);
}

.distribution-image
{
display: block;
      width: 100%;
      max-width: 250px;
      margin-left: auto;
      border-radius: 14px;
      box-shadow: 0 16px 36px rgba(0, 0, 0, .24);
}

.footer-bottom
{
border-top: 1px solid rgba(255, 255, 255, .12);
      padding: 16px 0 22px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      color: rgba(255, 255, 255, .85);
      font-size: 16px;
}

.copy a
{
color: #ffc1c1
}

.socials
{
display: flex;
      gap: 10px
}

.socials a
{
width: 34px;
      height: 34px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: var(--red);
      color: #fff;
      box-shadow: 0 8px 20px rgba(239, 13, 18, .25);
}

.menu-overlay
{
position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, .45);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: .25s ease;
      z-index: 90;
}

.topbar
{
z-index: 100;
}

.alert-box
{
padding: 20px;
      text-align: center;
      /* background-color: #0101b7; */
      background-color: #FAF21C;
      color: #0101b7;
      z-index: 1000;
}

@media (max-width:1180px) {
.footer-grid
{
grid-template-columns: 1fr 1fr
}

.footer-grid aside
{
grid-column: 1 / -1
}
}

@media (max-width:900px) {
.topbar.open+.menu-overlay
{
opacity: 1;
        visibility: visible;
        pointer-events: auto;
}

.menu
{
z-index: 101;
}

.menu>li.open .submenu
{
display: block;
}

.topbar-inner
{
justify-content: space-between;
        padding: 0 12px;
}

.brand-mini
{
display: flex;
        align-items: center;
        gap: 10px;
        color: #fff;
        font-weight: 800;
}

.brand-mini img
{
width: 28px;
        height: 28px;
}

.mobile-toggle
{
display: grid;
        place-items: center;
        border: 0;
        background: none;
        color: #fff;
        font-size: 22px;
        padding: 8px;
}

.menu
{
position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--red);
        display: none;
        flex-direction: column;
}

.topbar.open .menu
{
display: flex;
}

.submenu
{
position: static;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        display: none;
        box-shadow: none;
        border: 0;
        border-radius: 0;
        padding: 0;
}

.menu>li:hover .submenu
{
display: block;
}

/* TYPOGRAFIE */

      .widget-title,
.panel-title
{
font-size: 25px;
}

.widget p,
.widget a,
.widget table,
.grant-block p
{
font-size: 17px;
}

.footer-grid
{
grid-template-columns: 1fr;
}

.distribution-image
{
margin-left: 0;
}

.footer-bottom
{
flex-direction: column;
        text-align: center;
}
}

.office-hours .time
{
padding: 2px 0;
}

.office-hours tr.today
{
background: rgba(239, 13, 18, .08);
}

.office-hours .time.open
{
color: #0a8f3d;
      font-weight: 800;
}
