/* =========================================
   1. CORE DESIGN SYSTEM & TYPOGRAPHY
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bs-primary: #a100ff;
    --text-dark: #111111;
    --text-muted: #5a5a65;
    --bg-white: #ffffff;
    --bg-light-fresh: #f4f5f8;
    --hr-purple-glow: rgba(126, 81, 161, 0.4);
    --hr-dark: #111111;
    --hr-gray: #e4e4e7;
    --easing: cubic-bezier(0.19, 1, 0.22, 1);
    --arrow-svg-filled: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 47.1 38.7'%3E%3Cpath fill='%23a100ff' d='M44.296.006l-41.484-.006C.497,0-.824,2.648.571,4.496l24.97,33.126c1.62,2.149,5.043,1.007,5.048-1.685l.035-17.87c.002-.879.413-1.704,1.113-2.233l14.251-10.782C48.134,3.428,46.987.006,44.296.006Z'/%3E%3C/svg%3E");
    
    /* Globální proměnné s barvami a jejich RGB varianty pro RGBA opacity */
    --color1: #006BFF;
    --color1-rgb: 0, 107, 255;
    --color2: #e42227;
    --color2-rgb: 228, 34, 39;
    --color3: #51ae31;
    --color3-rgb: 81, 174, 49;
    --color4: #f7a70a;
    --color4-rgb: 247, 167, 10;
    --color5: #FF5B00;
    --color5-rgb: 255, 91, 0;
}


body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-muted);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    --theme-color: var(--bs-primary);
    --theme-color-rgb: 161, 0, 255;
    --theme-glow: var(--hr-purple-glow);
    position: relative;
}

/* Dynamické přeřazení barev podle regionu */
body.color1 { --theme-color: var(--color1); --theme-color-rgb: var(--color1-rgb); --theme-glow: rgba(var(--color1-rgb), 0.4); }
body.color2 { --theme-color: var(--color2); --theme-color-rgb: var(--color2-rgb); --theme-glow: rgba(var(--color2-rgb), 0.4); }
body.color3 { --theme-color: var(--color3); --theme-color-rgb: var(--color3-rgb); --theme-glow: rgba(var(--color3-rgb), 0.4); }
body.color4 { --theme-color: var(--color4); --theme-color-rgb: var(--color4-rgb); --theme-glow: rgba(var(--color4-rgb), 0.4); }
body.color5 { --theme-color: var(--color5); --theme-color-rgb: var(--color5-rgb); --theme-glow: rgba(var(--color5-rgb), 0.4); }

/* Dynamické přeřazení barev POUZE pro konkrétní sekci (pokud body zůstane výchozí fialové) */
.color1 { --theme-color: var(--color1); --theme-color-rgb: var(--color1-rgb); --theme-glow: rgba(var(--color1-rgb), 0.4); }
.color2 { --theme-color: var(--color2); --theme-color-rgb: var(--color2-rgb); --theme-glow: rgba(var(--color2-rgb), 0.4); }
.color3 { --theme-color: var(--color3); --theme-color-rgb: var(--color3-rgb); --theme-glow: rgba(var(--color3-rgb), 0.4); }
.color4 { --theme-color: var(--color4); --theme-color-rgb: var(--color4-rgb); --theme-glow: rgba(var(--color4-rgb), 0.4); }
.color5 { --theme-color: var(--color5); --theme-color-rgb: var(--color5-rgb); --theme-glow: rgba(var(--color5-rgb), 0.4); }

h1, h2, h3, h4, h5, h6, .display-1, .display-3, .display-4, .display-5, .navbar-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.display-1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    letter-spacing: -0.05em;
    line-height: 1.1;
}
.display-3 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
}
.lead {
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    font-weight: 500;
    line-height: 1.7;
    color: var(--text-muted);
}

.text-purple {
    color: var(--theme-color) !important;
}
.text-accent {
    color: var(--theme-color) !important;
}
strong {
    color: var(--text-dark);
    font-weight: 700;
}

.bg-white {
    background-color: var(--bg-white) !important;
}
.bg-light-fresh {
    background-color: var(--bg-light-fresh) !important;
}
.bg-lightpurple {
	background-color: rgba(var(--theme-color-rgb), 0.08) !important;
}
.bg-darkpurple {
    background-color:var(--theme-color);
}
.bg-light-red {
    background-color: rgba(var(--theme-color-rgb), 0.05) !important;
}

.section-spacing {
    padding-top: 120px;
    padding-bottom: 120px;
}
 .section-spacing-bottom {
        padding-bottom: 120px;
    }
@media (min-width: 992px) {
    .section-spacing {
        padding-top: 200px;
        padding-bottom: 200px;
    }
    .section-spacing-bottom {
        padding-bottom: 200px;
    }
}

/* =========================================
   2. TLAČÍTKA A NAVIGACE
   ========================================= */
.navbar-glass {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 1140px;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 100px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    padding: 0.5rem 2rem !important;
    z-index: 1030;
    transition: all 0.3s ease;
}
@media (max-width: 991px) {
    .navbar-glass {
        border-radius: 24px;
        padding: 1rem 1.5rem !important;
    }
}

.nav-link {
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
    color: var(--text-muted) !important;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--theme-color);
    transition: width 0.3s ease-in-out;
}
.nav-link:hover::after {
    width: 100%;
}
.nav-link:hover {
    color: var(--theme-color) !important;
}
.dropdown-item-hover {
    transition: all 0.3s var(--easing);
}
.dropdown-item-hover:hover,
.dropdown-item-hover:focus {
    background-color: var(--bg-light-fresh) !important;
    color: var(--theme-color) !important;
}
.btn-primary {
    background-color: var(--text-dark) !important;
    border: 2px solid var(--text-dark) !important;
    color: #ffffff !important;
    border-color:var(--bg-white)!important;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.9rem 2.4rem;
    border-radius: 99px;
    position: relative;
    transition: all 0.4s var(--easing);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--theme-color) !important;
    border-color: var(--theme-color) !important;
    box-shadow: 0 15px 30px var(--theme-glow) !important;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent !important;
    border: 2px solid rgba(17, 17, 17, 0.18) !important;
    color: var(--text-dark) !important;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.9rem 2.4rem;
    border-radius: 99px;
    position: relative;
    transition: all 0.4s var(--easing);
    box-shadow: none;
}
.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--text-dark) !important;
    border-color: var(--text-dark) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 24px rgba(17, 17, 17, 0.18) !important;
    transform: translateY(-2px);
}

.btn-secondary.btn-sm {
    font-size: 0.875rem;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
}

.btn-solid-purple {
    background-color: var(--theme-color) !important;
    border-color: var(--theme-color) !important;
    color: #ffffff !important;
}

.btn-arrow-effect {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-arrow-effect::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 1.1em;
    margin-left: 0;
    opacity: 0;
    background-color: currentColor;
    -webkit-mask-image: var(--arrow-svg-filled);
    mask-image: var(--arrow-svg-filled);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transition: all 0.4s var(--easing);
    transform: translateX(-10px) scaleX(-1);
}
.btn-arrow-effect:hover::after {
    width: 1.2em;
    opacity: 1;
    margin-left: 0.6rem;
    transform: translateX(0) scaleX(-1);
}

.btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}
.btn-arrow::after {
    content: '';
    display: inline-block;
    width: 1.2em;
    height: 1.1em;
    background-color: currentColor;
    -webkit-mask-image: var(--arrow-svg-filled);
    mask-image: var(--arrow-svg-filled);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transition: transform 0.4s var(--easing), margin-left 0.4s var(--easing);
    transform: translateX(0) scaleX(-1);
}
.btn-arrow:hover::after,
.btn-arrow:focus::after {
    transform: translateX(4px) scaleX(-1);
}

.btn-arrow-sm {
    font-size: 0.875rem;
    padding: 0.7rem 1.5rem !important;
    min-height: auto;
    gap: 0.5rem;
}
.btn-arrow-sm::after {
    width: 1em;
    height: 0.9em;
}

.modal-header, .modal-footer {    border-bottom: none!important; border-top: none!important; }
.login-modal .modal-content, .partner-modal .modal-content {
    border: 1px solid rgba(var(--theme-color-rgb), 0.12);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
.login-modal .modal-header, .partner-modal .modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.5rem 1.5rem 1rem;
}
.login-modal .modal-body, .partner-modal .modal-body {
    padding: 1.5rem;
}
.login-modal .modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1rem 1.5rem 1.5rem;
}
.login-modal .btn-primary {
    border-radius: 999px;
    padding: 0.8rem 1.35rem;
}
.login-modal .link-muted {
    color: var(--text-muted);
    text-decoration: none;
}
.login-modal .link-muted:hover {
    color: var(--theme-color);
}
.modal-img-cover {
    object-fit: cover;
    object-position: center top;
}
/* =========================================
   3. HERO DYNAMICKÉ STÍNY, MASKA & PARALLAX
   ========================================= */
.hero-banner {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--theme-color);
    overflow: hidden;
    padding-top: 100px;
    overflow-anchor: none;
    contain: paint;
}
.hero-banner .text-accent, .hero-banner h1, .hero-banner p, .hero-banner .lead {
    color: var(--bg-white) !important;
}
.hero-banner .btn-primary {
    background-color: var(--bg-white) !important;
    color: var(--theme-color) !important;
    border-color: var(--bg-white) !important;
}
.hero-banner .btn-primary:hover, .hero-banner .btn-primary:focus {
    background-color: #111111 !important;
    border-color: #111111 !important;
    color: #ffffff !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2) !important;
}
h2 {
    color: var(--theme-color) !important;
}

.hero-banner-content {
    position: relative;
    z-index: 2;
}
.hero-img-absolute {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    z-index: 4 !important;
}
.hero-shape-container {
    position: relative;
    width: 100%;
    aspect-ratio: 47 / 38;
    transform: scaleX(-1) scale(1.4);
}

.hero-arrow-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: visible;
}
.hero-arrow-border path.bg-path {
    fill: none;
    stroke: #ffffff;
    stroke-width: 0.3;
}
.hero-arrow-border path.animated-path {
    fill: none;
    stroke: #ff5b00;
    stroke-width: 0.3;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 2s cubic-bezier(0.5, 1, 1, 0.5), stroke 0.5s ease;
    filter: drop-shadow(0 0 3px rgba(255, 91, 0, 0.5));
}
.hero-img-absolute:hover .hero-arrow-border path.animated-path {
    stroke-dashoffset: 0;
}

.hero-mask-wrapper {
    width: 100%;
    height: 100%;
    background-color: var(--hr-gray);
    -webkit-mask-image: var(--arrow-svg-filled);
    mask-image: var(--arrow-svg-filled);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    overflow: hidden;
}
.hero-hover-zoom {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.hero-hover-zoom .parallax-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1) scale(1.1);
    transition: transform 2s var(--easing);
}
.hero-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 40%, rgba(0,0,0,0.6) 130%);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    transition: opacity 1.5s var(--easing);
}
.hero-img-absolute:hover .hero-vignette {
    opacity: 1;
}

@media (max-width: 991px) {
    .hero-img-absolute {
        position: relative;
        right: -10%;
        top: 0;
        transform: none;
        width: 80%;
    }
    .hero-shape-container {
        transform: scaleX(-1) scale(1.15);
    }
}

.timeline-ambient-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 400px;
    background: linear-gradient(90deg, var(--theme-color), #00d2ff);
    filter: blur(150px);
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
}

/* =========================================
   4. NOVÉ KOMPONENTY HOMEPAGE
   ========================================= */

/* 4.1 Filtrace a karty programů */
.grant-filter-shell {
    background: transparent;
    border: none;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    z-index: 2;
}
.grant-filter-shell::before {
    display: none;
}
.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: 1rem;
}
.filter-row--region {
    margin-bottom: 0;
}
.filter-btn {
    background: transparent;
    border: 1px solid rgba(15, 18, 40, 0.12);
    color: rgba(15, 18, 40, 0.85);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    cursor: pointer;
    min-height: 2.75rem;
}
.filter-btn:hover {
    border-color: rgba(15, 18, 40, 0.18);
    color: rgba(15, 18, 40, 0.95);
}
.filter-btn.active {
    background: rgba(15, 18, 40, 0.95);
    border-color: rgba(15, 18, 40, 0.95);
    color: white;
}
.filter-btn-sm {
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    min-height: 2rem;
}
.filter-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    min-width: 20rem;
    flex: 1;
}
.filter-section-label {
    min-width: 9rem;
    color: rgba(15, 18, 40, 0.55);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
}
.filter-section-label--compact {
    color: rgba(15, 18, 40, 0.4);
}
.filter-section-body {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.archive-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 18, 40, 0.12);
    color: rgba(15, 18, 40, 0.65);
    background: transparent;
    transition: border-color 0.25s ease, color 0.25s ease;
}
.archive-link:hover {
    border-color: rgba(15, 18, 40, 0.18);
    color: rgba(15, 18, 40, 0.9);
}

.filter-btn-color1 {
    border-color: rgba(29, 156, 216, 0.5);
    color: var(--color1);
    background-color: transparent;
}
.filter-btn-color1:hover, .filter-btn-color1.active {
    background-color: var(--color1) !important;
    border-color: var(--color1) !important;
    color: #ffffff !important;
}
.filter-btn-color2 {
    border-color: rgba(228, 34, 39, 0.5);
    color: var(--color2)
    background-color: transparent;
}
.filter-btn-color2:hover, .filter-btn-color2.active {
    background-color: var(--color2) !important;
    border-color: var(--color2) !important;
    color: #ffffff !important;
}
.filter-btn-color3 {
    border-color: rgba(81, 174, 49, 0.5);
    color: var(--color3);
    background-color: transparent;
}
.filter-btn-color3:hover, .filter-btn-color3.active {
    background-color: var(--color3) !important;
    border-color: var(--color3) !important;
    color: #ffffff !important;
}
.filter-btn-color4 {
    border-color: rgba(247, 167, 10, 0.5);
    color:  var(--color4);
    background-color: transparent;
}
.filter-btn-color4:hover, .filter-btn-color4.active {
    background-color:  var(--color4) !important;
    border-color:  var(--color4) !important;
    color: #ffffff !important;
}
.filter-btn-color5 {
    border-color: rgba(139, 63, 144, 0.5);
    color: var(--color5);
    background-color: transparent;
}
.filter-btn-color5:hover, .filter-btn-color5.active {
    background-color: var(--color5) !important;
    border-color: var(--color5) !important;
    color: #ffffff !important;
}

.grant-card {
    background: radial-gradient(circle at 16% 16%, rgba(161, 0, 255, 0.06), transparent 22%), radial-gradient(circle at 86% 14%, rgba(0, 212, 255, 0.05), transparent 20%), linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
    border: none;
    border-radius: 28px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.45s var(--easing), box-shadow 0.45s var(--easing), background 0.45s var(--easing);
    box-shadow: 0 28px 80px rgba(15, 18, 40, 0.08);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    z-index: 1;
    text-decoration: none;
    color: inherit;
}
.grant-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.5) 24%, transparent 100%), radial-gradient(circle at 24% 18%, rgba(255,255,255,0.95), transparent 26%);
    box-shadow: inset 0 0 0 1px rgba(15, 18, 40, 0.03);
    pointer-events: none;
    z-index: 1;
}
.grant-card::after {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    top: 4%;
    right: -22%;
    background: #1d9cd8;
    opacity: 0.03;
    -webkit-mask-image: var(--arrow-svg-filled);
    mask-image: var(--arrow-svg-filled);
    -webkit-mask-size: cover;
    mask-size: cover;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    pointer-events: none;
    transform: rotate(12deg);
    z-index: 0;
}
.grant-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 40px 96px rgba(15, 18, 40, 0.16);
}
.grant-card > * {
    position: relative;
    z-index: 2;
}
.grant-card h4 {
    position: relative;
    font-size: clamp(1.9rem, 2.3vw, 2.3rem);
    line-height: 1.05;
    margin-bottom: 1rem;
    z-index: 2;
    color: #0f1620;
    letter-spacing: -0.03em;
}
.grant-card p {
    color: #6d6d80;
    font-size: 0.98rem;
    line-height: 1.8;
    z-index: 2;
}

.grant-card .grant-card-footer {
    padding-top: 1.5rem;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-top: none !important;
    position: relative;
    z-index: 2;
}
.grant-card .grant-price {
    display: block;
    color: var(--text-dark);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.grant-card .grant-price.status {
    color: #7a7a8c;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.grant-card .grant-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 18, 40, 0.08);
    background: rgba(255,255,255,0.96);
    color: inherit !important;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    box-shadow: 0 16px 35px rgba(15, 18, 40, 0.06);
    transition: transform 0.3s var(--easing), box-shadow 0.3s var(--easing), border-color 0.3s var(--easing);
}
.grant-card .grant-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(15, 18, 40, 0.08);
}
.grant-card .grant-action i {
    transition: transform 0.3s var(--easing);
}
.grant-card .grant-action:hover i {
    transform: translateX(4px);
}

.grant-card.color1 .grant-action {
    color: #1d9cd8 !important;
    border-color: rgba(29, 156, 216, 0.16);
}
.grant-card.color2 .grant-action {
    color: #e42227 !important;
    border-color: rgba(228, 34, 39, 0.16);
}
.grant-card.color3 .grant-action {
    color: #51ae31 !important;
    border-color: rgba(81, 174, 49, 0.16);
}
.grant-card.color4 .grant-action {
    color: #f7a70a !important;
    border-color: rgba(247, 167, 10, 0.16);
}
.grant-card.color5 .grant-action {
    color: #8b3f90 !important;
    border-color: rgba(139, 63, 144, 0.16);
}

.grant-card.color1 .grant-tag {
    color: #1d9cd8;
}
.grant-card.color2 .grant-tag {
    color: #e42227;
}
.grant-card.color3 .grant-tag {
    color: #51ae31;
}
.grant-card.color4 .grant-tag {
    color: #f7a70a;
}
.grant-card.color5 .grant-tag {
    color: #8b3f90;
}

.grant-tag {
    color: var(--text-dark);
    font-size: 0.8rem;
    padding-bottom: 1.5rem;
    border-radius: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: inline-block;
    margin-bottom: 0;
    background: transparent;
    box-shadow: none;
}
.grant-tag.status-budouci {
    color: var(--text-muted);
}
.grant-tag.color1, .grant-tag.color2, .grant-tag.color3, .grant-tag.color4, .grant-tag.color5 {
    background: transparent;
}
.grant-tag.color5.status-budouci {
    color: #8b3f90;
}

/* 4.2 Karta „Zobrazit všechny výzvy“ */
.grant-card-more {
	background: linear-gradient(135deg, var(--theme-color) 0%, rgba(var(--theme-color-rgb), 0.7) 100%) !important;
    color: var(--bg-white) !important;
    text-align: center;
    padding-bottom: 2.5rem;
}

/* Skrytí výchozího bílého odlesku z běžných karet */
.grant-card-more::before {
    display: none !important;
}

/* Využití existující šipky z ::after jako vodoznaku na pozadí */
.grant-card-more::after {
    background: var(--bg-white) !important;
    opacity: 0.05 !important;
    /* Velmi jemný vodoznak */ width: 280px !important;
    height: 280px !important;
    top: auto !important;
    bottom: -15% !important;
    right: -10% !important;
    transform: rotate(-15deg) !important;
}

.grant-card-more h4 {
    color: var(--bg-white) !important;
    font-size: clamp(1.4rem, 2vw, 1.8rem) !important;
}

/* Kontejner pro rolovací číslo a plus */
.grant-card-more .counter-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--bg-white);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* Omezení výšky samotného odometeru, aby se při rolování neukazovala další čísla */
.grant-card-more .counter {
    height: 4.5rem;
    font-size: 4.5rem;
    color: var(--bg-white);
}

.grant-item .grant-card {
    height: 100%;
}

.grant-card-more .grant-action-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--bg-white);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    backdrop-filter: blur(10px);
    transition: all 0.3s var(--easing);
}

.grant-card-more:hover .grant-action-more {
    background: var(--bg-white);
    color: var(--theme-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.grant-card-more:hover .grant-action-more i {
    transform: translateX(4px);
}

/* 4.3 Nekonečný Carousel (Marquee) */
.marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding: 1rem 0;
}
.marquee-wrapper::before, .marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-white), transparent);
}
.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-white), transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scrollMarquee 30s linear infinite;
}
.marquee-track.slow {
    animation-duration: 45s;
}
.marquee-track:hover, body.modal-open .marquee-track {
    animation-play-state: paused !important;
}
@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.33333%);
    }
}
.img-fluid2 {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}
.partner-logo-box {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    width: 225px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--easing);
    /* Pokud je místo loga jen textový placeholder, bude také bílý */
    color: #ffffff !important; 
}


.partner-logo-box:hover svg,
.partner-logo-box:hover img {
    filter: grayscale(0%) opacity(1) !important;
}


.partner-logo-box svg, .partner-logo-box img {
   filter: grayscale(0%) opacity(1);
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    padding: 0.5rem !important;
}
.partner-logo-img {
  width: auto !important; 
  max-width: 100%;
  height: 75px !important;
  display: block;
  margin: 0 auto; 
  object-fit: contain; 
  object-position: center; 
}
/* 4.4 Aktuality karty */
.news-card {
    height: 400px;
    border-radius: 20px;
    background-color: var(--hr-dark);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem 2rem;
    color: white;
    text-decoration: none;
    transition: transform 0.4s var(--easing);
}
.news-card.important {
    border: 12px solid var(--theme-color);
}
.news-card.important .news-card-content {
     margin: -12px;
}
.news-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    transition: opacity 0.4s;
    opacity: 0.8;
}
.news-card:hover {
    transform: translateY(-5px);
}
.news-card:hover::before {
    opacity: 1;
}
.news-card-content {
    position: relative;
    z-index: 2;
}
.news-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--bg-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.news-card h4 {
    color: white;
    margin-bottom: 0;
    line-height: 1.4;
}

/* 4.5 Správní rada  */
.board-section {
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 100px;
}
.board-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 2rem calc(50vw - 160px);
}
.board-slider-wrapper::-webkit-scrollbar {
    display: none;
}
.board-track {
    display: flex;
    gap: 2rem;
    width: max-content;
}

.board-card {
    width: 320px;
    flex-shrink: 0;
    scroll-snap-align: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-bottom: 3px solid transparent;
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.5s var(--easing);
    opacity: 0.4;
    transform: scale(0.85);
}
.board-card.active {
    opacity: 1;
    transform: scale(1);
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--theme-color);
    box-shadow: 0 20px 40px rgba(var(--theme-color-rgb), 0.08);
}
.board-card:hover {
    opacity: 1;
    border-bottom-color: var(--theme-color);
}

.board-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    background: var(--hr-gray);
}
.board-card .name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}
.board-card .title {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
}
.board-card .intro {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: -webkit-box;
    overflow: hidden;
}

.board-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}
.board-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(var(--theme-color-rgb), 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}
.board-dot.active {
    background: var(--theme-color);
    transform: scale(1.3);
}
.board-dot:hover {
    background: rgba(var(--theme-color-rgb), 0.5);
}

/* =========================================
   5. OBSAHOVÉ SEKCE A HARMONOGRAM (Detail programu)
   ========================================= */
.timeline-section {
    position: relative;
    overflow: hidden;
}
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0;
    padding: 2rem 0;
    z-index: 1;
    counter-reset: timeline-counter;
}
.timeline-center-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: rgba(0,0,0,0.06);
    z-index: 1;
}
.timeline-center-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--theme-color) 0%, rgba(var(--theme-color-rgb), 0) 100%);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 3rem;
    z-index: 2;
    counter-increment: timeline-counter;
}
.timeline-item:nth-child(odd) {
    justify-content: flex-start;
}
.timeline-content {
    width: 45%;
    position: relative;
}

.timeline-glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-bottom: 3px solid transparent;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--easing);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}
.timeline-bg-number {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    color: var(--theme-color);
    opacity: 0.04;
    transition: all 0.5s var(--easing);
    pointer-events: none;
}
.timeline-bg-number::before {
    content: counter(timeline-counter);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 3px solid var(--theme-color);
    box-shadow: 0 0 0 6px rgba(var(--theme-color-rgb), 0.08);
    z-index: 3;
    transition: all 0.4s var(--easing);
    display: flex;
    align-items: center;
    justify-content: center;
}
.timeline-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--theme-color);
    transition: all 0.4s var(--easing);
}
.timeline-item::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 5%;
    height: 2px;
    background: rgba(var(--theme-color-rgb), 0.15);
    z-index: 1;
    transition: all 0.4s var(--easing);
}
.timeline-item:nth-child(odd)::before {
    right: 50%;
}
.timeline-item:nth-child(even)::before {
    left: 50%;
}
.timeline-item:hover .timeline-dot {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 0 10px rgba(var(--theme-color-rgb), 0.15);
}
.timeline-item:hover .timeline-dot::after {
    box-shadow: 0 0 10px var(--theme-color);
}
.timeline-item:hover::before {
    background: var(--theme-color);
}
.timeline-item:hover .timeline-glass-card {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-5px);
    border-bottom-color: var(--theme-color);
    box-shadow: 0 20px 40px rgba(var(--theme-color-rgb), 0.08);
}
.timeline-item:hover .timeline-bg-number {
    transform: translateY(10px);
    opacity: 0.08;
}

@media (max-width: 991px) {
    .timeline-container {
        padding: 1rem 1rem;
    }
    .timeline-center-line {
        left: 24px;
        transform: none;
    }
    .timeline-item, .timeline-item:nth-child(odd) {
        justify-content: flex-end;
        padding-left: 60px;
    }
    .timeline-content {
        width: 100%;
    }
    .timeline-dot {
        left: 10px;
    }
    .timeline-item::before,
.timeline-item:nth-child(odd)::before,
.timeline-item:nth-child(even)::before {
        left: 24px;
        width: 36px;
        right: auto;
    }
}

.for-me-card {
    background: var(--bg-white);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--easing);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    height: 100%;
    z-index: 1;
}
.for-me-card::before {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background-color: var(--theme-color);
    -webkit-mask-image: var(--arrow-svg-filled);
    mask-image: var(--arrow-svg-filled);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    opacity: 0.05;
    transform: scaleX(-1) rotate(-15deg);
    transition: all 0.4s var(--easing);
    z-index: -1;
}
.for-me-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(var(--theme-color-rgb), 0.08);
    border-color: rgba(var(--theme-color-rgb), 0.2);
}
.for-me-card:hover::before {
    opacity: 0.15;
    transform: scaleX(-1) rotate(0deg) scale(1.2);
}
.check-icon {
    color: var(--theme-color);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: -2px;
}

.benefits {
    position: relative;
    background-color: var(--theme-color);
    box-shadow: inset 0 25px 40px -15px rgba(0, 0, 0, 0.5);
}
.benefits .container {
    position: relative;
    z-index: 2;
}
.benefits .lead {
    color: rgba(255,255,255,0.8);
}

.benefit-featured-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s var(--easing);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1;
}
.benefit-featured-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    opacity: 0;
    transition: opacity 0.5s var(--easing);
    pointer-events: none;
    z-index: -1;
}
.benefit-featured-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}
.benefit-featured-card:hover::before {
    opacity: 1;
}
.benefit-featured-icon {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
    position: relative;
    z-index: 5;
}
.benefit-featured-content {
    position: relative;
    z-index: 5;
}
.benefit-featured-content h4 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 0.25rem;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.benefit-featured-content p {
    color: rgba(255,255,255,0.85);
}

@media (max-width: 575px) {
    .benefit-featured-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    .benefit-featured-icon {
        margin: 0 auto;
    }
    .display-1 {
    font-size: clamp(2rem, 10vw, 3rem); 
  }   
}

.benefit-high-contrast-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s var(--easing);
    height: 100%;
}
.benefit-high-contrast-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(var(--theme-color-rgb), 0.5);
    transform: translateY(-5px);
}
.benefit-high-contrast-card i {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
    display: inline-block;
}
.benefit-high-contrast-card p {
    color: rgba(255,255,255,0.7);
}

.document-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 16px;
    background: var(--bg-light-fresh);
    margin-bottom: 1rem;
    border: 1px solid transparent;
    transition: all 0.3s var(--easing);
}
.document-item:hover {
    background: var(--bg-white);
    border-color: rgba(var(--theme-color-rgb), 0.2);
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
    transform: translateX(10px);
}
.doc-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(var(--theme-color-rgb), 0.1);
    color: var(--theme-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.doc-download-btn {
    flex-shrink: 0;
    transition: all 0.3s var(--easing);
    min-width: 70px;
}
.doc-download-btn .doc-icon-wrapper {
    background-color: var(--bg-white);
    border: 1px solid rgba(var(--theme-color-rgb), 0.15);
    color: var(--theme-color);
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    transition: all 0.3s var(--easing);
    border-radius: 10px;
}
.doc-download-btn:hover .doc-icon-wrapper {
    background-color: var(--theme-color);
    color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--theme-color-rgb), 0.25);
    border-color: var(--theme-color);
}
.doc-download-btn span {
    transition: color 0.3s ease;
}
.doc-download-btn:hover span {
    color: var(--theme-color) !important;
}

/* =========================================
   6. FORMULÁŘ A FAQ (včetně stepperu)
   ========================================= */
.form-control, .form-select, .form-floating > .form-control, .form-floating > .form-select {
    border-radius: 8px;
    border: 1px solid rgba(var(--theme-color-rgb), 0.35);
    background-color: var(--bg-white);
    transition: all 0.2s ease;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(var(--theme-color-rgb), 0.03);
}
.form-control:focus,
.form-select:focus,
.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border-color: var(--theme-color);
    box-shadow: 0 0 0 3px rgba(var(--theme-color-rgb), 0.15);
}
.form-check-input:checked {
    background-color: var(--theme-color);
    border-color: var(--theme-color);
}
input[type="file"].form-control {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    border-radius: 8px;
}
input[type="file"].form-control::file-selector-button {
    background-color: var(--bg-light-fresh);
    color: var(--text-dark);
    border: none;
    border-right: 1px solid rgba(0,0,0,0.1);
    padding: 0.8rem 1.25rem;
    margin: -0.8rem -1rem;
    margin-right: 1rem;
    transition: all 0.2s;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
}
input[type="file"].form-control:hover::file-selector-button {
    background-color: #e2e5eb;
}
.textarea-contact {
    height: 160px !important;
    padding-top: 1.5rem !important;
}

.form-mini-stepper {
    position: relative;
    margin-top: 3.5rem;
    text-align: left;
}
.form-mini-stepper::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 10px;
    bottom: 20px;
    width: 2px;
    background: rgba(var(--theme-color-rgb), 0.15);
    z-index: 1;
}
.mini-step {
    display: flex;
    align-items: flex-start;
    position: relative;
    margin-bottom: 2.5rem;
    z-index: 2;
}
.mini-step:last-child {
    margin-bottom: 0;
}
.mini-step-icon {
    width: 46px;
    height: 46px;
    background: var(--bg-light-fresh);
    border: 2px solid var(--theme-color);
    color: var(--theme-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: 0 0 0 8px var(--bg-light-fresh);
    flex-shrink: 0;
    transition: all 0.3s var(--easing);
}
.mini-step.active .mini-step-icon {
    background: var(--theme-color);
    color: #fff;
    box-shadow: 0 5px 15px rgba(var(--theme-color-rgb), 0.25), 0 0 0 8px var(--bg-light-fresh);
}
.mini-step-content {
    margin-left: 1.25rem;
    padding-top: 0.5rem;
}
.mini-step-content h6 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}
.mini-step-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.4;
}

.accordion-item {
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
    background: transparent;
}
.accordion-button {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark) !important;
    padding: 2rem 0;
    box-shadow: none !important;
    background: transparent !important;
}
.accordion-button:not(.collapsed) {
    color: var(--theme-color) !important;
}
.accordion-button::after {
    background-image: none !important;
    background-color: var(--theme-color) !important;
    -webkit-mask-image: var(--arrow-svg-filled);
    mask-image: var(--arrow-svg-filled);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    width: 1.5rem;
    height: 1.5rem;
    transform: rotate(90deg);
    transition: transform 0.4s var(--easing), background-color 0.4s var(--easing);
}
.accordion-button:not(.collapsed):after {
    background-color: var(--theme-color) !important;
    filter: none;
    transform: rotate(-90deg);
}
.accordion-body {
    padding: 0 0 2rem 0;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.contact-card {
    background: var(--bg-light-fresh);
    border-radius: 24px;
    padding: 3rem 2rem;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: all 0.4s var(--easing);
}
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(var(--theme-color-rgb), 0.08);
    border-color: rgba(var(--theme-color-rgb), 0.1);
}
.contact-avatar {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    transition: all 0.4s var(--easing);
}
.contact-card:hover .contact-avatar {
    transform: scale(1.05) rotate(-2deg);
}

svg.bi {
  height: 2rem;
  width: auto;
  margin: 0.5rem;
}

.form-floating > .form-control-plaintext ~ label::after, 
.form-floating > .form-control:focus ~ label::after, 
.form-floating > .form-control:not(:placeholder-shown) ~ label::after, 
.form-floating > .form-select ~ label::after {
    background-color: transparent;
}
/* =========================================
   7. PATIČKA
   ========================================= */
.footer-premium {
    --theme-color: var(--bs-primary);
    --theme-color-rgb: 161, 0, 255;  
    background-color: #050508;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}
.footer-ambient-glow {
    position: absolute;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 300px;
    background: radial-gradient(ellipse, rgba(var(--theme-color-rgb), 0.15) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}
.footer-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
    font-weight: 500;
    transition: color 0.3s ease;
}
.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--bg-white);
    transition: width 0.3s var(--easing);
}
.footer-link:hover {
    color: var(--bg-white);
}
.footer-link:hover::after {
    width: 100%;
}
.social-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    transition: all 0.4s var(--easing);
    text-decoration: none;
}
.social-glass:hover {
    background: var(--theme-color);
    border-color: var(--theme-color);
    color: var(--bg-white);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(var(--theme-color-rgb), 0.3);
}

/* =========================================
   8. SCROLL HIGHLIGHT EFEKT
   ========================================= */
.text-highlight-section em, .text-highlight-section i {
    font-style: normal;
    color: var(--text-dark);
    background-image: linear-gradient(120deg, rgba(var(--theme-color-rgb), 0.2) 0%, rgba(var(--theme-color-rgb), 0.15) 100%);
    background-repeat: no-repeat;
    background-size: 0% 100%;
    background-position: left center;
    border-radius: 6px;
    padding: 0.1em 0.2em;
    transition: background-size 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}
.text-highlight-section.is-visible em, .text-highlight-section.is-visible i {
    background-size: 100% 90%;
}

/* =========================================
   9. GLOBÁLNÍ ŠIPKY (PLÁTNO & ANIMACE)
   ========================================= */
#homerun-global-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}
.global-dynamic-arrow {
    position: absolute;
    top: -12px;
    left: -15px;
    width: 30px;
    height: 24px;
    offset-rotate: auto 180deg;
    pointer-events: none;
}
.global-dynamic-arrow svg {
    width: 100%;
    height: 100%;
    transform: rotate(-35deg);
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
}

#arrow-anchor {
    position: absolute;
    top: 50%;
    right: 20%;
    width: 0;
    height: 0;
    z-index: 3;
    pointer-events: none;
    overflow-anchor: none;
}
@media (max-width: 991px) {
    #arrow-anchor {
        top: 80%;
        right: 50%;
    }
}
.flying-arrow {
    position: absolute;
    top: -12px;
    left: -15px;
    width: 30px;
    height: 24px;
    opacity: 0;
    offset-rotate: auto 180deg;
}
.flying-arrow svg {
    width: 100%;
    height: 100%;
    transform: rotate(-35deg);
}
.outline-arrow path {
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.5;
    opacity: 0.9;
}
.solid-arrow {
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.15));
}

@keyframes flyInPath {
    0% {
        offset-distance: 0%;
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        offset-distance: 100%;
        opacity: 0;
    }
}
@keyframes flyLoopPath {
    0% {
        offset-distance: 0%;
        opacity: 0;
        transform: scale(0.5);
    }
    5% {
        opacity: 1;
        transform: scale(1.1);
    }
    95% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        offset-distance: 100%;
        opacity: 0;
        transform: scale(0.5);
    }
}

/* =========================================
   10. SEKCE KRAJ A ROLOVACÍ POČÍTADLA
   ========================================= */
.region-stats-container {
    display: flex;
    flex-direction: column;
}
.region-stats-title {
    color: var(--text-dark);
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}
.counter-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    transition: transform 0.4s var(--easing);
    
    min-width: 120px; 
    max-width: 180px; 
    flex: 1 1 0%;
}
.counter-block:hover {
    transform: translateY(-8px);
}
.counter-circle {
    width: clamp(120px, 12vw, 160px);
    height: clamp(120px, 12vw, 160px);
    
    background-color: var(--bg-white);
    border: none;
    color: var(--theme-color);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.04),
        inset 0 0 0 1px rgba(var(--theme-color-rgb), 0.25),
        inset 0 10px 30px rgba(var(--theme-color-rgb), 0.05);
    transition: all 0.5s var(--easing);
    flex-shrink: 0;
    position: relative;
}
.counter-block:hover .counter-circle {
    background-color: var(--theme-color);
    color: var(--bg-white);
    box-shadow: 0 15px 35px var(--theme-glow), 0 0 0 10px rgba(0,0,0,0.03);
    transform: scale(1.05);
}
.counter-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.3;
    transition: color 0.4s var(--easing);
}
.counter-block:hover .counter-label {
    color: var(--theme-color);
}

/* =========================================
   11. ROLOVACÍ EFEKT POČÍTADLA (ODOMETER)
   ========================================= */
.counter {
    line-height: 1;
    position: relative;
    display: flex;
    overflow: hidden;
    align-items: center;
    height: 3.5rem;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: currentColor;
    margin: 0;
}
.counter > span {
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 2.5s var(--easing);
    transform: translateY(0);
    line-height: 1;
}
.counter > span span {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.counter > span:nth-child(1) {
    transition-delay: 0s;
}
.counter > span:nth-child(2) {
    transition-delay: 0.1s;
}
.counter > span:nth-child(3) {
    transition-delay: 0.2s;
}
.counter > span:nth-child(4) {
    transition-delay: 0.3s;
}
.counter > span:nth-child(5) {
    transition-delay: 0.4s;
}
/* =========================================
   UNIVERZÁLNÍ LUXUSNÍ POČÍTADLA
   ========================================= */


.counter-block:hover {
    transform: none; 
}



.counter-block:hover .counter-circle {
    background: linear-gradient(135deg, var(--theme-color) 0%, rgba(var(--theme-color-rgb), 0.75) 100%);
    color: var(--bg-white);
    box-shadow: 
        0 20px 40px rgba(var(--theme-color-rgb), 0.25),
        0 0 0 8px rgba(var(--theme-color-rgb), 0.1);
    transform: translateY(-8px) scale(1.05);
}

.counter-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.3;
    transition: color 0.4s var(--easing);
}

.counter-block:hover .counter-label {
    color: var(--theme-color);
}
/* =========================================
   12. DOKUMENTY KE STAŽENÍ
   ========================================= */
.doc-link {
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    transition: all 0.4s var(--easing);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    height: 100%;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.doc-link:hover {
    background: var(--bg-white);
    border-color: var(--theme-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    color: var(--theme-color);
}

.doc-link i {
    color: var(--theme-color);
    font-size: 1.2rem;
    transition: transform 0.4s var(--easing);
}

.doc-link:hover i {
    transform: scale(1.1);
}

.doc-link .text-nowrap {
    color: var(--text-muted);
    font-size: 0.8em;
    font-weight: 500;
    margin-left: 0.4rem;
    transition: color 0.4s var(--easing);
}

.doc-link:hover .text-nowrap {
    color: var(--theme-color);
    opacity: 0.8;
}

/* =========================================
   13. SPECIÁLNÍ WYSIWYG ODRÁŽKY
   ========================================= */
.specialwysiwyg ul {
    list-style: none;
    padding-left: 0;
}
.specialwysiwyg li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}
.specialwysiwyg li::before {
    content: '\F26A';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--theme-color);
    font-size: 1.2rem;
}

/* =========================================
   14. TEXT COLLAPSE (Zobrazit více u dlouhého textu)
   ========================================= */
.text-collapse-content {
    max-height: 250px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease;
}
.text-collapse-content.expanded {
    max-height: 2000px;
}
.text-collapse-content:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
}
.min-vh-50 {
    min-height: 50vh;
}

/* =========================================
   15. GALERIE (Zvětšení fotek na hover)
   ========================================= */
.hover-zoom img {
    transition: transform 0.5s var(--easing);
}
.hover-zoom:hover img {
    transform: scale(1.08);
}
/* =========================================
   16. KARTY PARTNERŮ
   ========================================= */
.partner-card-glass {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-bottom: 3px solid transparent;
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.5s var(--easing);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.partner-card-glass:hover {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--theme-color);
    box-shadow: 0 20px 40px rgba(var(--theme-color-rgb), 0.08);
    transform: translateY(-5px);
}

.partner-card-glass .partner-logo-wrapper {
    width: 100%;
    height: 140px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    background: var(--bg-white);
    border: 1px solid rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.4s var(--easing);
}

.partner-card-glass .partner-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.partner-card-glass:hover .partner-logo-wrapper {
    transform: scale(1.02);
}

.partner-card-glass .name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.partner-card-glass .title {
    font-size: 0.85rem;
    color: var(--theme-color);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.partner-card-glass .intro {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.partner-card-glass .partner-scroll-text {
    max-height: 170px;
    overflow-y: auto;
    padding-right: 8px;
    margin-bottom: 0;
}

.partner-card-glass .partner-scroll-text::-webkit-scrollbar {
    width: 4px;
}
.partner-card-glass .partner-scroll-text::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 4px;
}
.partner-card-glass .partner-scroll-text::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}
.partner-card-glass .partner-scroll-text::-webkit-scrollbar-thumb:hover {
    background: var(--theme-color);
}
.region .partner-logo-box {
  width: 95px;
  height: 60px;}
/* =========================================
   NAPSALI O NÁS - MOBILNÍ HORIZONTÁLNÍ GRID
   ========================================= */
@media (max-width: 767px) {
    #napsaliGrid {
        display: grid !important;
        grid-template-rows: repeat(2, 1fr);
        grid-auto-flow: column;
        grid-auto-columns: 80vw;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 1.5rem;
        margin-left: 0;
        margin-right: 0;
        padding-bottom: 1rem;
    }

    #napsaliGrid::-webkit-scrollbar {
        display: none;
    }

    #napsaliGrid > .news-card-wrapper {
        width: 100% !important;
        margin-top: 0 !important;
        padding: 0 !important;
    }
}

@media (max-width: 767px) {
    #napsaliGrid {
        display: grid !important;
        grid-auto-flow: column;
        grid-auto-columns: 80vw;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 1.5rem;
        margin-left: 0;
        margin-right: 0;
        padding-bottom: 1rem;
        grid-template-rows: 1fr;
    }

    #napsaliGrid::-webkit-scrollbar { display: none; }
    
    #napsaliGrid > .news-card-wrapper {
        width: 100% !important;
        margin-top: 0 !important;
        padding: 0 !important;
    }

    #napsaliGrid:has(.news-card-wrapper:not(.d-none):nth-last-child(n+4)) {
        grid-template-rows: repeat(2, 1fr);
    }
}
/* =========================================
   AKTUALITY - MOBILNÍ GRID PŘI ROZBALENÍ
   ========================================= */
@media (max-width: 767px) {
    #aktualityGrid:has(.news-card-wrapper:nth-child(4):not(.d-none)) {
        display: grid !important;
        grid-template-rows: repeat(2, 1fr); 
        grid-auto-flow: column;
        grid-auto-columns: 85vw;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 1.5rem;
        margin-left: 0;
        margin-right: 0;
        padding-bottom: 1rem;
    }

    #aktualityGrid:has(.news-card-wrapper:nth-child(4):not(.d-none))::-webkit-scrollbar {
        display: none;
    }

    #aktualityGrid:has(.news-card-wrapper:nth-child(4):not(.d-none)) > .news-card-wrapper {
        width: 100% !important;
        margin-top: 0 !important;
        padding: 0 !important;
    }
}
/* =========================================
   PARTNEŘI TADY - MOBILNÍ HORIZONTÁLNÍ GRID
   ========================================= */
@media (max-width: 767px) {
    #partneriGrid {
        display: grid !important;
        grid-template-rows: 1fr; 
        grid-auto-flow: column;
        grid-auto-columns: 85vw; 
        overflow-x: auto;
        scrollbar-width: none; 
        -ms-overflow-style: none;
        gap: 1.5rem;
        margin-left: 0;
        margin-right: 0;
        padding-bottom: 1.5rem; 
    }

    #partneriGrid::-webkit-scrollbar {
        display: none;
    }

    #partneriGrid > .col {
        width: 100% !important;
        padding: 0 !important;
        margin-top: 0 !important;
    }
}


/* =========================================
   HERO BANNER - KOMPAKTNÍ VERZE (cca 500px)
   ========================================= */
.hero-banner.hero-banner-sm {
    min-height: 560px;
    height: 50vh;
    padding-top: 75px;
}

.hero-banner.hero-banner-sm h1.display-1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem) !important;
    margin-bottom: 1rem !important;
}

.hero-banner.hero-banner-sm .lead {
    font-size: clamp(1rem, 1.5vw, 1.15rem) !important;
    margin-bottom: 2rem !important;
}

@media (min-width: 992px) {
    .hero-banner.hero-banner-sm .hero-img-absolute {
        width: 36%;
        right: 0%;
    }
    
    .hero-banner.hero-banner-sm .hero-shape-container {
        transform: scaleX(-1) scale(1.05); 
    }
}

/* Úprava chování na mobilu */
@media (max-width: 991px) {
    .hero-banner.hero-banner-sm {
        min-height: auto;
        height: auto;
        padding-bottom: 4rem !important;
        padding-top: 120px;
    }
    
    .hero-banner.hero-banner-sm .hero-img-absolute {
        width: 65%; /* O něco menší než ve velké verzi */
        margin-top: 1.5rem;
    }
    
    .hero-banner.hero-banner-sm .hero-shape-container {
        transform: scaleX(-1) scale(1);
    }
}

.umbraco-forms-hidden {
    display: none;
    visibility: hidden;
}
.footerLogo svg{
    height: 27px;
    width: auto;
}
.footerLogo svg g .st1{
    fill: #ffffff !important;
}
.umbraco-forms-richtext p{
    margin: 0;
    padding-top: 1.5rem;
}
.umbraco-forms-richtext + label {
    padding-top: 0 !important;
    padding-left: 0 !important;
}
.form-check-input {
    width: 1.25em !important;
    height: 1.25em !important;
}

.form-switch .form-check-input{
    width: 2.5em !important;
    margin-top: 0em !important;
    height: 1.5em !important;
    border: 1px solid rgba(var(--theme-color-rgb), 0.35) !important;
}
.text-white-copy {
    color: var(--text-muted) !important;
}