:root {
    --hzs-blue: #142142;
    --hzs-gold: #e0ad12;
    --hzs-card: rgba(255, 255, 255, 0.08);
    --hzs-card-border: rgba(255, 255, 255, 0.12);
    --hzs-text: #f3f6ff;
    --hzs-muted: rgba(243, 246, 255, 0.78);
    --hzs-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

html, body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--hzs-text);
    background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)),
    url('../images/zebrik-hzs.png') no-repeat right bottom / min(38vw, 540px),
    var(--hzs-blue);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 10%, rgba(224, 173, 18, 0.10), transparent 28%);
    pointer-events: none;
    z-index: 0;
}

.page-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 1.5rem 1rem 3rem;
}

.hzs-badge {
    position: absolute;
    top: 2.1rem;
    right: 2.1rem;
    width: clamp(70px, 8vw, 130px);
    height: auto;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
    z-index: 2;
}

.warning-section {
    max-width: 900px;
    background-color: rgba(224, 173, 18, 0.1);
    border: 1px solid rgba(224, 173, 18, 0.3);
    border-radius: 1.2rem;
    margin: 0 auto;
    padding: 1.6rem;
}

.warning-title {
    color: var(--hzs-gold);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
}

.warning-item {
    color: var(--hzs-text);
    font-size: 0.9rem;
}

.warning-item strong {
    color: var(--hzs-gold);
}

.portal-label {
    color: var(--hzs-gold);
    letter-spacing: 0.4em;
}

.hero {
    padding-top: 2.5rem;
    padding-bottom: 1.75rem;
}

.hero h1 {
    color: var(--hzs-gold);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

.hero-subtle {
    color: var(--hzs-muted);
    max-width: 760px;
    margin: 0 auto 1.2rem;
    text-align: center;
}

.search-panel {
    max-width: 760px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.2rem;
    box-shadow: var(--hzs-shadow);
    backdrop-filter: blur(10px);
    padding: 0.75rem;
}

.search-panel .form-control {
    background: rgba(255, 255, 255, 0.96);
    border: 0;
    min-height: 52px;
    padding-left: 1rem;
    border-radius: 0.9rem;
}

.search-panel .btn {
    min-height: 52px;
    border-radius: 0.9rem;
    font-weight: 600;
    padding-inline: 1.25rem;
}

.quick-links {
    max-width: 1180px;
    margin: 2rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 1rem;
}

.quick-links .text-muted {
    color: var(--hzs-muted) !important;
}

.quick-link {
    text-decoration: none;
    color: var(--hzs-text);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 1.2rem;
    padding: 1rem 0.75rem;
    min-height: 118px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.65rem;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
    backdrop-filter: blur(8px);
}

.quick-link:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(224, 173, 18, 0.35);
    color: #fff;
}

.quick-link i {
    font-size: 1.6rem;
    color: var(--hzs-gold);
    line-height: 1;
}

.quick-link span {
    font-size: 0.94rem;
    line-height: 1.25;
    font-weight: 600;
}

.content-grid {
    max-width: 1600px;
    margin: 2.5rem auto 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.35rem;
    align-items: start;
}

.content-grid > * {
    min-width: 0;
}

@media (min-width: 768px) {
    .content-grid {
    grid-template-columns: repeat(2, 1fr);
    }

    /* 3. sloupec přes celou šířku */
    .content-grid > :nth-child(3) {
    grid-column: span 2;
    }
}

@media (min-width: 992px) {
    .content-grid {
    grid-template-columns: repeat(3, 1fr);
    }

    /* vrátíme zpět normální chování */
    .content-grid > :nth-child(3) {
    grid-column: auto;
    }
}
    
/* .panel {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--hzs-card-border);
    border-radius: 1.4rem;
    box-shadow: var(--hzs-shadow);
    backdrop-filter: blur(10px);
    padding: 1rem;
    height: 100%;
} */

.section-heading {
    color: var(--hzs-gold);
    font-weight: 700;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--hzs-gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.service-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    padding: 1.6rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1.2rem;
    box-shadow: 0 10px 24px rgba(0,0,0,0.2);
    transition: transform .15s ease, box-shadow .15s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(0,0,0,0.25);
}

.service-content {
    flex: 1;
}

.service-card .card-title {
    font-weight: 700;
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
}

.service-card .card-text {
    color: var(--hzs-muted);
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.service-icon {
    font-size: 5.2rem;
    color: var(--hzs-gold);
    opacity: 0.9;
    flex-shrink: 0;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 34px rgba(0,0,0,0.28);
}

.service-cover {
    aspect-ratio: 16 / 9;
    background: radial-gradient(circle at top left, rgba(224,173,18,0.35), transparent 42%), linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

.service-cover i {
    font-size: 3rem;
    color: var(--hzs-gold);
    opacity: 0.95;
}

.service-card .card-body {
    color: var(--hzs-text);
}

.service-card .card-title {
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.service-card .card-text {
    color: var(--hzs-muted);
    min-height: 84px;
}

.btn-hzs {
    background: var(--hzs-gold);
    color: #142142;
    border: 0;
    font-weight: 700;
    border-radius: 0.85rem;
    padding: 0.7rem 1rem;
}

.btn-hzs:hover {
    background: #f0bc1a;
    color: #101a35;
}

.notice-subhead {
    color: var(--hzs-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.notice-list .list-group-item {
    background: rgba(255,255,255,0.08);
    color: var(--hzs-text);
    border-color: rgba(255,255,255,0.10);
    padding: 1.6rem;
}

.notice-list .list-group-item div {
    color: var(--hzs-muted);
}

.notice-list small {
    color: var(--hzs-muted);
    display: block;
    margin-bottom: 0.2rem;
}

.notice-archive-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1rem;
    padding-left: 1rem;
    color: var(--hzs-gold);
    text-decoration: none;
    font-weight: 600;
    transition: color .18s ease, transform .18s ease;
}

.notice-archive-link:hover {
    color: #d9dde7;
    transform: translateX(2px);
}

.notice-archive-link i {
    font-size: 1rem;
    line-height: 1;
}

.accordion {
    max-width: 900px;
    margin: 0 auto;
    --bs-accordion-border-width: 0;
    --bs-accordion-inner-border-radius: 1.2rem;
    --bs-accordion-btn-focus-box-shadow: none;
}

.accordion-item {
    border: 0;
    border-radius: 1.2rem;
    overflow: hidden;
    background: transparent;
}

.accordion-header {
    margin: 0;
}

.accordion-button {
    background: #fff;
    border: 0;
    box-shadow: none;
    border-radius: 0 !important;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-item:first-of-type > .accordion-header .accordion-button,
.accordion-item:not(:first-of-type) > .accordion-header .accordion-button {
    border-top-left-radius: 1.2rem !important;
    border-top-right-radius: 1.2rem !important;
}

.accordion-button.collapsed {
    color: var(--hzs-blue);
    border-bottom-left-radius: 1.2rem !important;
    border-bottom-right-radius: 1.2rem !important;
}

.accordion-button:not(.collapsed) {
    background: #fff;
    color: var(--hzs-blue);
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    box-shadow: none;
}

.accordion-collapse {
    background: transparent;
    border: 0;
}

.accordion-body {
    background: rgba(20, 33, 66, 0.9);
    color: var(--hzs-text);
    border: 1px solid rgba(255,255,255,0.1);
    border-top: 0;
    border-bottom-left-radius: 1.2rem;
    border-bottom-right-radius: 1.2rem;
}

.accordion-body a {
    color: var(--hzs-gold);
    text-decoration: underline;
}

.accordion-body a:hover {
    color: #d9dde7;
}

.footer-note {
    max-width: 1600px;
    margin: 1.5rem auto 0;
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
}

@media (max-width: 767.98px) {
    .hzs-badge {
    width: 72px;
    top: 0.8rem;
    right: 0.8rem;
    }

    .hero {
        padding-top: 3.4rem;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .quick-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-link {
        min-height: 104px;
        padding: 0.85rem 0.65rem;
    }

    body {
        background:
            linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)),
            url('../images/zebrik-hzs.png') no-repeat right bottom / 58vw,
            var(--hzs-blue);
    }
}

@media (max-width: 992px) {
    .footer-note {
        padding: 0.6rem;
        background: rgba(20, 33, 66, 0.9);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 1.2rem;
        box-shadow: 0 10px 24px rgba(0,0,0,0.2);
    }
}   