/* Styly úvodní stránky */

.content-grid
{
display: grid;
      grid-template-columns: 300px minmax(0, 1.35fr) 380px;
      gap: 30px;
      align-items: start;
}

.news-list,
.board-list
{
display: flex;
      flex-direction: column;
      gap: 18px;
}

.news-item,
.board-item
{
background: var(--surface-strong);
      border: 1px solid rgba(0, 0, 0, .05);
      border-radius: 18px;
      padding: 16px 16px 14px;
      box-shadow: 0 3px 12px rgba(0, 0, 0, .03);
      transition: transform .18s ease, box-shadow .18s ease;
}

.news-item:hover,
.board-item:hover
{
transform: translateY(-2px);
      box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
}

.news-title,
.board-title
{
margin: 0 0 6px;
      color: var(--red);
      font-weight: 800;
      line-height: 1.14;
      letter-spacing: -.02em;
}

.news-title
{
font-size: 28px;
}

.board-title
{
font-size: 21px;
}

.news-meta,
.board-meta
{
display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      color: #7a7a7a;
      font-size: 15px;
      margin-bottom: 10px;
}

.news-meta i,
.board-meta i
{
font-size: 12px;
      color: #6f6f6f;
}

.board-meta
{
display: block;
      line-height: 1.4
}

.board-meta .cat
{
color: var(--red);
      font-weight: 800;
}

.news-excerpt
{
margin: 0;
      color: #666;
      font-size: 19px;
      line-height: 1.65;
}

.read-more,
.older-link,
.full-board-link
{
color: var(--red);
      font-weight: 800;
      font-size: 18px;
}

.read-more:hover,
.older-link:hover,
.full-board-link:hover
{
text-decoration: underline;
}

.older-link,
.full-board-link
{
display: inline-block;
      margin-top: 12px;
}

.mobile-switcher
{
display: none;
}

.mobile-tabs
{
display: none;
}

.mobile-tab-button
{
appearance: none;
      border: 0;
      background: transparent;
      color: var(--muted);
      font: inherit;
      font-size: 18px;
      font-weight: 800;
      padding: 14px 18px;
      border-radius: 14px;
      cursor: pointer;
      transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.mobile-tab-button:hover
{
background: rgba(239, 13, 18, .1);
      color: var(--red);
      transform: translateY(-2px);
      box-shadow: 0 8px 18px rgba(239, 13, 18, .12);
}

.mobile-tab-button.active
{
background: var(--red);
      color: #fff;
      box-shadow: 0 10px 24px rgba(239, 13, 18, .18);
}

.mobile-tab-button.active:hover
{
background: #d90b10;
      color: #fff;
      box-shadow: 0 12px 28px rgba(239, 13, 18, .3);
}

.mobile-panel
{
display: none;
}

.mobile-panel.active
{
display: block;
}

@media (max-width:1180px) {
.content-grid
{
grid-template-columns: 260px minmax(0, 1fr)
}

.news-col,
.board-col
{
display: none;
}

.sidebar-col
{
grid-column: 1;
        grid-row: 1;
}

.mobile-switcher
{
display: block;
        grid-column: 2;
        grid-row: 1;
}

.mobile-tabs
{
display: flex;
        gap: 10px;
        margin-bottom: 16px;
        background: rgba(255, 255, 255, .55);
        border: 1px solid var(--line);
        border-radius: 18px;
        padding: 8px;
        backdrop-filter: blur(12px);
}

.mobile-switcher .panel
{
padding: 16px;
}

.mobile-switcher .panel-title
{
margin-bottom: 14px;
}

.mobile-panel .news-list,
.mobile-panel .board-list
{
gap: 14px;
}

.mobile-panel .news-item,
.mobile-panel .board-item
{
padding: 14px;
}
}

@media (min-width:901px) and (max-width:1180px) {
.sidebar-col .widget-title
{
font-size: 22px;
}
}

@media (max-width:900px) {
.news-title
{
font-size: 24px;
}

.board-title
{
font-size: 20px;
}

.news-excerpt
{
font-size: 17px;
}

/* LAYOUT */

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

.news-col,
.board-col
{
display: none;
}

.mobile-switcher
{
grid-column: auto;
        grid-row: auto;
        order: 1;
}

.sidebar-col
{
grid-column: auto;
        grid-row: auto;
        order: 2;
}
}

/* Hero úvodní stránky */

.hero
{
position: relative;
      min-height: 620px;
      overflow: hidden;
      background: var(--bg);
}

.hero-slide
{
position: absolute;
      inset: 0;
      background-position: center 28%;
      background-size: cover;
      background-repeat: no-repeat;
      opacity: 0;
      transition: opacity 1.2s ease-in-out;
      will-change: opacity;
}

.hero-slide.active
{
opacity: 1;
}

.hero::before
{
content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(to bottom,
          rgba(0, 0, 0, .08) 0%,
          rgba(255, 255, 255, 0) 32%,
          rgba(237, 241, 245, .92) 82%,
          #edf1f5 100%);
      z-index: 1;
}

.hero .container
{
position: relative;
      min-height: 620px;
      z-index: 2;
}

/* .hero::after
{
content: "";
      position: absolute;
      inset: auto 0 -1px 0;
      height: 140px;
      background:
        radial-gradient(120% 100% at 50% 100%, rgba(255, 255, 255, 0) 42%, var(--bg) 43%);
      pointer-events: none;
}

*/

    .hero .container
{
position: relative;
      min-height: 620px;
}

.hero-logo
{
position: absolute;
      top: 58px;
      left: 8px;
      width: 132px;
      filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .22));
}

.hero-book
{
position: absolute;
      top: 5px;
      right: 18px;
      width: 40px;
      height: 40px;
      border-radius: 12px;
      background: rgba(255, 255, 255, .96);
      color: var(--red);
      display: grid;
      place-items: center;
      box-shadow: var(--shadow-soft);
      border: 1px solid rgba(0, 0, 0, .05);
      cursor: pointer;
      transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.hero-book:hover
{
background: var(--red);
      color: #fff;
      box-shadow: 0 12px 26px rgba(239, 13, 18, .3);
      transform: translateY(-2px) scale(1.06);
}

.hero-book:focus-visible
{
outline: 3px solid rgba(239, 13, 18, .35);
      outline-offset: 3px;
}

.hero-map
{
position: relative;
      height: 0;
      overflow: hidden;
      transition: height .45s ease;
}

.hero-map iframe
{
width: 100%;
      height: 620px;
      display: block;
}

.hero.map-open
{
display: none;
}

.hero-map.open
{
height: 620px;
}

.hero-map-close
{
position: absolute;
      top: 60px;
      right: 18px;
      z-index: 3;
      width: 40px;
      height: 40px;
      border: 0;
      border-radius: 14px;
      background: rgba(255, 255, 255, .96);
      color: var(--red);
      display: grid;
      place-items: center;
      font-size: 22px;
      cursor: pointer;
      box-shadow: var(--shadow-soft);
      border: 1px solid rgba(0, 0, 0, .06);
      transition: .2s ease;
}

.hero-map-close:hover
{
transform: translateY(-1px);
      background: #fff;
}

.hero-title-wrap
{
position: absolute;
      left: 0;
      right: 0;
      top: 12vh;
      text-align: center;
      padding: 0 20px;
}

.hero-title
{
display: inline-block;
      margin: 0;
      color: #fff;
      font-size: clamp(58px, 9.5vw, 152px);
      font-weight: 800;
      line-height: 1.02;
      letter-spacing: -.04em;
      text-shadow: 0 10px 28px rgba(0, 0, 0, .22);
      padding: .15em .62em;
      background: linear-gradient(90deg, rgba(238, 5, 11, 0) 0%, rgba(52, 52, 52, .48) 47%, rgba(45, 45, 45, .48) 53%, rgba(1, 1, 183, 0) 100%);
      border-radius: 24px;
}

@media (max-width:900px) {
.hero-map iframe,
.hero-map.open
{
height: 450px;
}

.hero-map-close
{
top: 60px;
        right: 18px;
        width: 42px;
        height: 42px;
        font-size: 20px;
}

.hero
{
min-height: 450px;
}

.hero .container
{
min-height: 450px;
}

.hero-logo
{
display: none;
}

/* .hero-logo
{
top: 70px;
        left: 12px;
        width: 96px;
}

*/

      .hero-title-wrap
{
top: 15vh;
        padding: 0 10px;
}

.hero-title
{
font-size: clamp(48px, 12vw, 88px);
        padding: .16em .38em;
}
}
