/* =========================================================================
   Úvodní stránka
   ========================================================================= */

/* ---------- hero ---------- */

.hm-hero { position: relative; overflow: hidden; background: var(--navy-deep); color: var(--white); isolation: isolate; }
.hm-hero-media { position: absolute; inset: 0; z-index: -1; }
.hm-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 35%; display: block; }
.hm-hero-media::after {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(11, 29, 51, .94) 0%, rgba(11, 29, 51, .7) 30%, rgba(11, 29, 51, .1) 55%, rgba(11, 29, 51, .25) 70%, rgba(11, 29, 51, .88) 100%),
        linear-gradient(0deg, rgba(11, 29, 51, .5) 0%, rgba(11, 29, 51, 0) 40%);
}
.hm-hero-inner { min-height: 330px; padding-top: 34px; padding-bottom: 34px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hm-hero-text { max-width: 660px; }
.hm-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(36px, 4.6vw, 66px);
    font-weight: 800; line-height: .98; letter-spacing: -.01em;
    text-transform: uppercase;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .4);
}
.hm-hero h1 span { color: var(--gold); }
.hm-tagline { margin: 0 0 14px; font-size: 15px; font-weight: 700; letter-spacing: .42em; text-transform: uppercase; }
.hm-hero-desc { margin: 0 0 20px; max-width: 440px; font-size: 15px; line-height: 1.55; opacity: .95; }
.hm-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hm-hero-actions .btn { min-height: 42px; font-size: 14.5px; }
.btn-gold { background: var(--gold-gradient); border-color: transparent; color: var(--navy-deep); box-shadow: 0 2px 8px rgba(168, 117, 67, .35); }
.btn-gold:hover { background: var(--gold-gradient); filter: brightness(1.06); color: var(--navy-deep); }
.btn-ghost-light { background: rgba(11, 29, 51, .35); border: 1.5px solid rgba(255, 255, 255, .85); color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--navy-deep); }
.btn i { font-size: .9em; }

.hm-pillars { display: flex; flex-direction: column; gap: 18px; list-style: none; margin: 0; padding: 0; width: 250px; flex: none; }
.hm-pillars a { display: flex; align-items: flex-start; gap: 14px; color: var(--white); text-decoration: none; }
.hm-pillars i { width: 32px; flex: none; font-size: 26px; text-align: center; color: var(--gold); }
.hm-pillars span { display: flex; flex-direction: column; font-size: 12.5px; opacity: .92; }
.hm-pillars b { font-size: 13.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; opacity: 1; }
.hm-pillars a:hover b { color: var(--gold-light); }

/* ---------- oznámení ---------- */

.hm-announce-wrap { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.hm-announce {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 18px;
    border-radius: 12px;
    background: #FFF4DC; border: 1px solid #F0D9AA;
    color: var(--navy-deep); text-decoration: none; font-size: 14.5px;
}
.hm-announce > i:first-child { font-size: 18px; color: var(--red); }
.hm-announce span { flex: 1; }
a.hm-announce:hover { border-color: var(--gold); }
a.hm-announce:hover > i:last-child { transform: translateX(3px); }
.hm-announce > i:last-child { transition: transform .15s; }

/* ---------- společné hlavičky sekcí ---------- */

.hm-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px; }
.hm-head h2 { margin: 0; }
.hm-head a { font-size: 13px; font-weight: 600; color: var(--navy); }
.hm-head a i { margin-left: 5px; font-size: 11px; }
.hm-title {
    display: flex; align-items: center; gap: 12px;
    font-size: 20px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.hm-title::before { content: ''; flex: none; width: 5px; height: 24px; border-radius: 3px; background: var(--gold); }
.hm-empty { margin: 0; padding: 18px; border-radius: 10px; background: #F7F7F7; font-size: 14px; color: var(--text-muted); }

/* ---------- aktuality ---------- */

.hm-news-row { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 28px; margin-top: 26px; align-items: start; }
.hm-news-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; }

.hm-featured {
    position: relative; display: flex; align-items: flex-end;
    min-height: 336px;
    border-radius: 6px; overflow: hidden;
    background: var(--navy-deep);
    color: var(--white); text-decoration: none;
}
.hm-featured .hm-featured-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hm-featured .hm-featured-img.is-graphic { object-fit: contain; background: var(--white); padding: 24px 24px 160px; }
.hm-featured::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 29, 51, .96) 0%, rgba(11, 29, 51, .7) 38%, rgba(11, 29, 51, 0) 70%); }
.hm-featured:hover .hm-featured-img:not(.is-graphic) { transform: scale(1.04); }
.hm-featured-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; }
.hm-featured-title { font-size: 22px; font-weight: 800; line-height: 1.22; text-wrap: balance; }
.hm-featured:hover .hm-featured-title { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.hm-featured-perex { font-size: 14px; line-height: 1.5; opacity: .9; }
.hm-featured .hm-meta time { color: var(--white); }

.hm-meta { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--text-muted); }

.hm-news-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hm-news-list li + li { border-top: 1px solid #EEF0F2; }
.hm-news-list a { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 14px; align-items: center; padding: 6px 0; color: var(--text); text-decoration: none; }
.hm-news-list li:first-child a { padding-top: 0; }
.hm-news-thumb { display: block; height: 76px; border-radius: 4px; overflow: hidden; background: #F4F5F7; border: 1px solid #EEF0F2; }
.hm-news-thumb img, .hm-news-thumb .img-placeholder { width: 100%; height: 100%; object-fit: cover; display: flex; }
.hm-news-thumb img.is-graphic { object-fit: contain; background: var(--white); padding: 6px; }
.hm-news-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hm-news-title { font-size: 14px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hm-news-list a:hover .hm-news-title { color: var(--red); }

/* ---------- události + instagram ---------- */

.hm-side { display: flex; flex-direction: column; gap: 20px; }
.hm-events { scroll-margin-top: 14px; }
.hm-event-list { list-style: none; margin: 0; padding: 0; }
.hm-event-list li + li { border-top: 1px solid #EEF0F2; }
.hm-event { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 18px; align-items: center; padding: 7px 0; color: var(--text); text-decoration: none; }
.hm-event-date {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 50px; border-radius: 6px;
    background: linear-gradient(180deg, #FBEBC8 0%, var(--gold-light) 100%);
    color: var(--navy-deep); line-height: 1;
}
.hm-event-date b { font-size: 20px; font-weight: 800; }
.hm-event-date span { margin-top: 3px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.hm-event-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hm-event-title { font-size: 14.5px; font-weight: 700; }
a.hm-event:hover .hm-event-title { color: var(--red); }
.hm-event-meta { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 12px; color: var(--text-muted); }
.hm-event-meta i { margin-right: 7px; color: var(--navy); }

.hm-insta .hm-head h2 { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; }
.hm-insta .hm-head h2 i { font-size: 22px; color: #D62976; }
.hm-insta-feed { min-height: 90px; border-radius: 8px; overflow: hidden; }

/* ---------- o federaci + vedení ---------- */

.hm-about-row { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 16px; margin-top: 30px; align-items: stretch; }
.hm-about {
    position: relative;
    display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; align-items: center;
    padding: 20px 24px 20px 0;
    border-radius: 14px;
    background: linear-gradient(90deg, #F2F3F5 0%, #FAFAFB 60%);
    overflow: hidden;
}
.hm-about-img { align-self: stretch; margin: -20px 0; position: relative; }
.hm-about-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent 100%); mask-image: linear-gradient(90deg, #000 60%, transparent 100%); }
.hm-about-text p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.55; color: #2A333E; }
.hm-about-text .hm-title { margin: 0 0 10px; font-size: 19px; }
.hm-about-text .btn { min-height: 38px; font-size: 14px; }
.hm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.hm-stats li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; }
.hm-stats i { font-size: 28px; color: var(--gold); margin-bottom: 4px; }
.hm-stats b { font-size: 18px; font-weight: 800; color: var(--navy-deep); }
.hm-stats span { font-size: 12px; line-height: 1.35; color: var(--text-muted); }

.hm-leaders { padding: 16px 18px; border-radius: 14px; background: var(--white); border: 1px solid #E5E5E5; box-shadow: 0 8px 30px rgba(16, 40, 70, .06); }
.hm-leaders h2 { font-size: 17px; font-weight: 800; }
.hm-leaders ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.hm-leaders li { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 8px 14px; border-radius: 10px; background: #F4F6F9; }
.hm-leader-photo { width: 88px; height: 88px; margin-bottom: 8px; border-radius: 50%; overflow: hidden; background: var(--gold-gradient); box-shadow: 0 0 0 3px var(--white), 0 4px 14px rgba(16, 40, 70, .18); }
.hm-leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hm-leaders b { font-size: 14.5px; }
.hm-leaders li > span:last-child { font-size: 13px; color: var(--text-muted); }

/* ---------- partneři ---------- */

.hm-partners { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.hm-partners-track {
    flex: 1; min-width: 0;
    display: flex; align-items: center; gap: 48px;
    list-style: none; margin: 0; padding: 10px 6px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 6px; scroll-behavior: smooth; scrollbar-width: none;
}
.hm-partners-track::-webkit-scrollbar { display: none; }
.hm-partners-track li { flex: none; scroll-snap-align: start; }
.hm-partners-track img { display: block; height: 46px; width: auto; max-width: 170px; object-fit: contain; transition: transform .15s; }
.hm-partners-track a:hover img { transform: scale(1.06); }
.hm-partners-btn {
    flex: none; width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #DCDCDC; border-radius: 50%;
    background: var(--white); color: var(--navy-deep); cursor: pointer;
}
.hm-partners-btn:hover { border-color: var(--navy); }
.hm-partners-btn[disabled] { opacity: .35; cursor: default; }
.hm-partners.is-static .hm-partners-btn { visibility: hidden; }

/* =========================================================================
   Responzivita
   ========================================================================= */

@media (max-width: 1280px) {
    .hm-news-row, .hm-about-row { grid-template-columns: minmax(0, 1fr) 340px; }
    .hm-about { grid-template-columns: 120px minmax(0, 1fr); }
    .hm-stats { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-left: 24px; }
}

@media (max-width: 1024px) {
    .hm-pillars { width: 220px; }
    .hm-news-row, .hm-about-row { grid-template-columns: minmax(0, 1fr); }
    .hm-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

@media (max-width: 860px) {
    .hm-hero-inner { flex-direction: column; align-items: flex-start; gap: 26px; }
    .hm-hero-media::after { background: linear-gradient(90deg, rgba(11, 29, 51, .92) 0%, rgba(11, 29, 51, .55) 100%); }
    .hm-pillars { width: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
    .hm-news-grid { grid-template-columns: minmax(0, 1fr); }
    .hm-side { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
    .hm-hero-inner { padding-top: 26px; padding-bottom: 26px; }
    .hm-tagline { letter-spacing: .25em; font-size: 13px; }
    .hm-hero-actions .btn { flex: 1 1 100%; }
    .hm-pillars { grid-template-columns: minmax(0, 1fr); }
    .hm-featured { min-height: 300px; }
    .hm-featured-title { font-size: 19px; }
    .hm-news-list a { grid-template-columns: 104px minmax(0, 1fr); }
    .hm-news-thumb { height: 66px; }
    .hm-about { grid-template-columns: minmax(0, 1fr); padding: 18px; }
    .hm-about-img { display: none; }
    .hm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; padding-left: 0; }
    .hm-partners-track { gap: 32px; }
    .hm-partners-track img { height: 36px; }
}
