:root {
    --c-dark-olive: #222A09;
    --c-olive: #4A5A2A;
    --c-accent-green: #6E8619;
    --c-light-green: #8BA534;
    --c-blue: #354D9C;
    --c-light-blue: #0E6BA8;
    --c-nav-green: #617616;
    --c-bg-cream: #F9F7F5;
    --c-bg-light-blue: #E8F0F8;
    --c-bg-section: #F0F4E8;
    --c-white: #FFFFFF;
    --c-text: #121212;
    --c-text-mid: #333333;
    --c-text-light: #444444;
    --c-text-muted: #555555;
    --c-border: #E5DFD3;
    --c-border-light: rgba(230, 224, 212, 0.50);

    --f-serif: 'Merriweather', Georgia, serif;
    --f-sans: 'Inter', -apple-system, sans-serif;

    --container-max: 1200px;
    --section-pad: 80px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    font-family: var(--f-sans);
    color: #121212;
    line-height: 1.83;
    font-size: clamp(16px, 0.13vw + 15.5px, 18px);
    background: var(--c-white);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

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

/* --- Accessibility: Skip Navigation --- */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--c-blue);
    color: var(--c-white);
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.2s ease;
}

.skip-to-content:focus {
    top: 0;
}

/* --- Accessibility: Focus Styles --- */
:focus-visible {
    outline: 2px solid var(--c-blue);
    outline-offset: 2px;
}

a:focus-visible {
    outline: 2px solid var(--c-blue);
    outline-offset: 2px;
    border-radius: 2px;
}

/* --- LAYOUT: CONTAINER --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- HEADER: SITE HEADER WRAPPER --- */
.site-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: box-shadow 0.3s ease;
    border-top: 1.25px solid #627216;
}

/* --- Header: Top Contact Bar --- */
.top-bar {
    background: #F9F7F5;
    color: #202020;
    padding: 0;
    font-size: 14px;
    height: 35px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #E5DFD3;
    position: relative;
    z-index: 20;
    transition: height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.site-header-wrapper.scrolled .top-bar {
    height: 28px;
    font-size: 12px;
}

.top-bar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0 40px;
}

.contact-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.contact-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

.icon-phone {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

.icon-mail {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
    margin-top: 2px;
}

.top-bar .label {
    color: #303030;
    font-weight: 400;
    font-size: 14px;
}

.phone-link,
.email-link {
    font-weight: 500;
    color: #1a1a1a;
    font-size: 14px;
}

.phone-link:hover,
.email-link:hover {
    color: var(--c-blue);
}

.sep {
    width: 1.25px;
    height: 16px;
    background: #202020;
    margin: 0 8px;
    display: inline-block;
}

/* --- Header: Main Navigation --- */
.main-header {
    background: #FFFFFF;
    border-bottom: 1px solid var(--c-border);
    padding: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 65px;
    transition: height 0.3s ease;
}

.site-header-wrapper.scrolled .header-inner {
    height: 55px;
}

.nav-left ul,
.nav-right ul {
    display: flex;
    gap: 36px;
}

.nav-left a,
.nav-right a {
    font-size: 18px;
    font-weight: 600 !important;
    color: #627216;
    letter-spacing: 0.3px;
    padding: 6px 0;
    position: relative;
    text-decoration: none;
    border-bottom: none;
    transition: color 0.2s;
}

.nav-left a:hover,
.nav-right a:hover {
    color: #4E5F12;
}

/* --- Nav: underline base (always present, zero width) --- */
.nav-left a::after,
.nav-right a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: #2E549E;
    border-radius: 1px;
    transition: width 0.2s ease;
}

/* --- Nav: underline expand on hover --- */
.nav-left a:hover::after,
.nav-right a:hover::after {
    width: 100%;
}

.nav-left a.active {
    color: #627216;
}

/* --- Nav: active underline (permanent, olive) --- */
.nav-left a.active::after,
.nav-right a.active::after {
    width: 100%;
    background: #627216;
    transition: none;
}

.nav-right a.active {
    color: #627216;
}

/* --- Header: Logo spacer (invisible block reserving space for the absolute logo) --- */
.logo-spacer {
    flex-shrink: 0;
    transition: width 0.3s ease;
}

.top-bar-inner .logo-spacer {
    width: 336px;
}

.site-header-wrapper.scrolled .top-bar-inner .logo-spacer {
    width: 269px;
}

.header-inner .logo-spacer {
    width: 320px;
}

.site-header-wrapper.scrolled .header-inner .logo-spacer {
    width: 253px;
}

/* --- Header: Logo --- */
.logo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    padding-bottom: 2px;
}

.logo-img {
    height: 100px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

.site-header-wrapper.scrolled .logo-img {
    height: 80px;
}

.site-header-wrapper.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 36px;
}

.nav-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 36px;
}

.lang-switch {
    display: flex;
    align-items: center;
    cursor: default;
    pointer-events: none;
}

.flag-cz {
    width: 40px;
    height: auto;
}

/* --- Header: Hamburger Button (mobile only) --- */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 6px;
    z-index: 200;
}

.hamburger-line {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--c-dark-olive);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- Header: Mobile Navigation Panel (right-side overlay) --- */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: var(--c-white);
    z-index: 150;
    padding: 80px 32px 32px;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    transform: translateX(0);
    visibility: visible;
}

.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 140;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 32px;
}

.mobile-nav-links li a {
    display: block;
    padding: 14px 0;
    font-size: 18px;
    font-weight: 600;
    color: #627216;
    border-bottom: 1px solid var(--c-border-light);
    transition: color 0.2s ease;
}

.mobile-nav-links li:last-child a {
    border-bottom: none;
}

.mobile-nav-links li a:hover {
    color: #4E5F12;
}

.mobile-nav-links li a[aria-current="page"] {
    color: #1a5276;
    font-weight: 700;
    border-left: 3px solid #1a5276;
    padding-left: 12px;
    background: rgba(26, 82, 118, 0.06);
}

.mobile-nav-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--c-border);
    margin-top: auto;
}

.mobile-nav-phone,
.mobile-nav-email {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--c-text);
    transition: color 0.2s;
}

.mobile-nav-phone:hover,
.mobile-nav-email:hover {
    color: var(--c-blue);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: visible;
}

/* --- Hero: Background & Overlay --- */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Hero: Side Cards --- */
.hero-side-cards {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
}

.side-card {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.97);
    padding: 18px 32px 18px 16px;
    border-radius: 0 10px 10px 0;
    width: auto;
    min-width: min(344px, 90vw);
    max-width: 344px;
    height: 76px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 22px;
    color: var(--c-dark-olive);
    overflow: hidden;
    transition: max-width 1.6s cubic-bezier(0.3, 1.3, 0.6, 1),
        background-color 0.6s ease,
        box-shadow 0.6s ease;
}

.side-card:not(:hover) {
    transition: max-width 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.side-card:hover {
    max-width: 800px;
    background: var(--c-white);
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.15);
}

.side-card-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #2E549E;
    position: relative;
    margin-right: 14px;
}

.side-card-icon::after {
    content: '';
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: white;
    transition: background-color 0.3s ease;
}

.side-card-icon svg,
.side-card-svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
    transition: filter 0.3s ease;
}

.side-card-active .side-card-icon {
    background: #2E549E;
}

.side-card-active .side-card-icon svg,
.side-card-active .side-card-svg {
    stroke: var(--c-light-blue);
}

.side-card:hover .side-card-icon::after {
    background: #354D9C;
}

.side-card:hover .side-card-svg {
    filter: brightness(0) invert(1);
}

.side-card-text {
    text-transform: uppercase;
    flex-shrink: 0;
    white-space: nowrap;
}

.side-card-desc {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    font-style: normal;
    color: #323D0D;
    line-height: 22px;
    margin-left: 0;
    padding-left: 0;
    padding-top: 20px;
    padding-bottom: 20px;
    margin-top: -20px;
    margin-bottom: -20px;
    text-transform: none;
    white-space: pre-line;
    text-align: left;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    white-space: nowrap;
    transition: max-width 0.2s ease, opacity 0s;
}

.side-card:hover .side-card-desc {
    max-width: 400px;
    margin-left: 16px;
    padding-left: 18px;
    opacity: 1;
    white-space: pre-line;
    transition: max-width 1.6s cubic-bezier(0.3, 1.3, 0.6, 1),
        opacity 0.8s ease 0.1s,
        margin-left 1.6s cubic-bezier(0.3, 1.3, 0.6, 1);
}

.side-card-desc::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 48px;
    width: 2px;
    background: #91202F;
    border-radius: 99px;
    opacity: 0;
    transition: opacity 0.1s ease;
}

.side-card:hover .side-card-desc::before {
    opacity: 1;
    transition: opacity 0.6s ease 0.1s;
}

.side-card-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: 0;
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-card:hover .side-card-arrow {
    margin-left: 16px;
    margin-right: 0;
}

.arrow-icon {
    width: 18px;
    height: 33px;
    display: block;
}

/* --- Hero: Content & CTA --- */
.hero-content {
    position: relative;
    z-index: 5;
    text-align: left;
    color: var(--c-white);
    padding: 60px 0;
    margin-left: 27.5vw;
    margin-bottom: 108px;
}

@media (max-width: 1400px) {
    .hero-content {
        margin-left: 380px;
    }
}

@media (max-width: 1300px) {
    .top-bar .label {
        display: none;
    }
}

.hero-title {
    font-family: var(--f-serif);
    font-size: clamp(22px, 0.78vw + 19px, 34px);
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.18;
    text-transform: uppercase;
    text-shadow: 0px 0px 32px rgba(0, 0, 0, 0.60);
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    line-height: 36px;
    opacity: 1;
    text-shadow: 0px 0px 32px rgba(0, 0, 0, 0.60);
    margin-bottom: 32px;
}

.btn-hero {
    display: inline-block;
    background: transparent;
    color: #FFFFFF;
    padding: 12px 32px;
    border: 2px solid #FFFFFF;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 30.5px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-hero:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* --- Hero: Motto --- */
.hero-motto {
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.motto-img {
    display: block;
    height: auto;
    max-width: 400px;
}

@media (max-width: 1400px) {
    .motto-img {
        max-width: 320px;
    }
}

/* --- Hero: Mobile Service Buttons (visible below 1024px) --- */
.hero-mobile-services {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.hero-mobile-btn {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.97);
    padding: 14px 20px 14px 14px;
    border-radius: 10px;
    height: auto;
    min-height: 64px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 18px;
    color: var(--c-dark-olive);
    text-decoration: none;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.hero-mobile-btn:hover {
    background: var(--c-white);
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-mobile-btn-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #2E549E;
    position: relative;
    margin-right: 12px;
}

.hero-mobile-btn-icon::after {
    content: '';
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
}

.hero-mobile-btn-icon img {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
    filter: none;
}

.hero-mobile-btn-text {
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    text-transform: uppercase;
    letter-spacing: 0;
}

/* --- PARTNERS BAR --- */
.partners-bar {
    background: #F9F7F5;
    padding: 16px 0;
}

.partners-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2.5vw, 40px);
    flex-wrap: nowrap;
    padding: 0 48px;
}

.partners-inner img {
    height: clamp(20px, 2.2vw, 36px);
    width: auto;
    object-fit: contain;
    opacity: 1;
    transition: all 0.3s;
    flex-shrink: 1;
    min-width: 0;
}

.partners-inner img:hover {
    opacity: 1;
}

/* --- INTRO SECTION --- */
.intro-section {
    padding: var(--section-pad) 0 300px;
    text-align: center;
    background: linear-gradient(0deg, rgba(230, 224, 212, 0) 90%, #E6E0D4 100%), white;
}

.intro-content {
    max-width: 100%;
}

.section-title {
    font-family: var(--f-serif);
    font-size: clamp(22px, 0.65vw + 19.5px, 32px);
    font-weight: 400;
    color: var(--c-dark-olive);
    line-height: 1.5;
    margin-bottom: 2px;
}

.text-accent {
    color: #354D9C;
    font-weight: 700;
}

.text-accent-blue {
    color: var(--c-blue);
    font-weight: 700;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 0px;
}

.divider-line {
    width: 68px;
    height: 2px;
    background: #354613;
    border-radius: 1px;
}

.divider-diamond {
    color: #627216;
    font-size: 32px;
    font-weight: 500;
    line-height: 48px;
}

.intro-section p {
    color: var(--c-text);
    font-size: 18px;
    line-height: 35.2px;
    font-weight: 400;
    text-align: left;
}

.intro-section p strong {
    font-weight: 500;
}

/* --- SERVICES DETAIL & PROJECT CARDS --- */

.services-detail {
    padding: 0 0 4px;
    background: var(--c-white);
    margin-top: -320px;
}

.services-detail p,
.service-projects .detail-card p {
    color: #121212;
    font-size: 18px;
    line-height: 33px;
    margin-bottom: 12px;
    font-weight: 400;
}

/* Pomocná třída pro vynucení zalomení na desktopu */
.desktop-br {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-br {
        display: inline;
    }
}


.services-detail p strong {
    font-family: var(--f-serif);
    font-weight: 700;
    font-size: 20px;
    color: #121212;
}

.service-projects .detail-card p strong {
    font-weight: 400;
    font-family: inherit;
    font-size: inherit;
}

.detail-card {
    background: #F7F4ED;
    border: 2px solid #E2DDD4;
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.detail-card.card-white {
    background: #FFFFFF;
    border-color: #EBE9E5;
}

.services-suspended-card .projects-row {
    margin-top: 32px;
    gap: 40px;
    flex-wrap: wrap;
}

.sub-project {
    text-align: left;
    padding: 20px 32px !important;
    background: #F7F4ED;
    border: 2px solid #E2DDD4;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    width: fit-content;
    max-width: 100%;
    height: auto;
}

.suspended-highlight {
    color: #91202F;
    font-weight: 500;
}

.detail-card p:last-child {
    margin-bottom: 0;
}

/* --- Services: Accent Blocks --- */
.accent-block {
    padding: 0 40px;
    margin: 48px 0;
    border-left: 2px solid #91202F;
    display: flow-root;
}

.accent-block p {
    margin: 0 !important;
}

.accent-bar-olive {
    border-left-color: #91202F;
    border-left-width: 2px;
}

.accent-bar-olive p em strong {
    color: #91202F;
    font-family: var(--f-serif);
    font-size: 20px;
    font-style: normal;
}

.accent-bar-crimson {
    border-left-color: #91202F;
}

.accent-bar-crimson p em strong {
    color: #91202F;
    font-family: var(--f-serif);
    font-size: 20px;
    font-style: normal;
}

.accent-block p {
    color: #121212;
    font-size: 18px;
    line-height: 33px;
    font-weight: 400;
}

.accent-block p:last-child {
    margin-bottom: 0;
}

/* --- Services: Project Cards --- */
.service-projects {
    padding: 0 0 var(--section-pad);
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-card {
    border: 2px solid var(--c-border-light);
    border-radius: 20px;
    padding: 28px 32px;
    background: var(--c-white);
    box-shadow: 1px 2px 32px 8px rgba(230, 224, 212, 0.25);
    transition: box-shadow 0.3s;
    width: fit-content;
}

.project-card:hover {
    box-shadow: 1px 2px 32px 12px rgba(230, 224, 212, 0.35);
}

.main-project {
    text-align: center;
    margin-top: 0;
    margin-bottom: 48px;
    background: #B82633 !important;
    border: none !important;
    color: #FFFBF5;
    width: fit-content;
    box-shadow: 0 6px 20px rgba(184, 38, 51, 0.35) !important;
    border-radius: 16px;
    padding: 28px 36px;
}

.main-project h3 {
    font-family: var(--f-sans);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #FFFBF5;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
}

.main-project h3 .text-accent-blue {
    color: #f8d2d6;
    font-weight: 500;
    font-size: 20px;
    display: inline-block;
    transform: translateY(-1px);
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.25);
}

.projects-row {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

/* --- Services: Sub-Projects --- */
.sub-project h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    line-height: 24px;
}

.sub-project h4 .text-accent-blue {
    color: var(--c-blue);
    font-weight: inherit;
}

.sub-project p {
    font-size: 16px !important;
    color: #555555;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 28px;
}

/* --- SECTION LABELS & TITLES (SHARED) --- */

.section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.section-label.center {
    justify-content: center;
}

.label-icon {
    font-size: 16px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.label-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.label-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.label-text {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #627216;
    line-height: 30px;
}

.section-title-large {
    font-family: var(--f-serif);
    font-size: clamp(22px, 0.65vw + 19.5px, 32px);
    font-weight: 700;
    color: #101412;
    margin-bottom: 40px;
    line-height: 1.3;
}

.section-title-large.center {
    text-align: center;
}

/* --- STEPS PROCESS --- */
.steps-section {
    padding: var(--section-pad) 0;
    background: white;
    text-align: center;
}

.steps-section .container {
    max-width: 1200px;
}

.steps-section .section-label {
    justify-content: center;
}

.steps-section .section-title-large {
    text-align: center;
    margin-bottom: 24px;
}

.steps-section>.container>p {
    text-align: center;
    font-size: 18px;
    line-height: 35.2px;
    color: var(--c-text);
    margin-bottom: 48px;
}

.steps-card {
    background: #F7F4ED;
    padding: 32px;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 2px solid #E2DDD4;
    border-radius: 16px;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.step-row {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.step-row:nth-child(2),
.step-row:nth-child(4) {
    margin-left: clamp(0px, 2.5vw, 48px);
}

.step-icon {
    width: auto;
    height: 92px;
    flex-shrink: 0;
    display: block;
}

.step-desc {
    font-size: 16px;
    color: var(--c-text-mid);
    line-height: 28px;
    font-weight: 400;
    margin: 0;
}

.step-row:nth-child(1) .step-desc {
    max-width: 745px;
    width: 100%;
}

.step-row:nth-child(2) .step-desc {
    max-width: 794px;
    width: 100%;
}

.step-row:nth-child(3) .step-desc {
    max-width: 600px;
    width: 100%;
}

.step-row:nth-child(4) .step-desc {
    max-width: 765px;
    width: 100%;
}

.step-row:nth-child(5) .step-desc {
    max-width: 1002px;
    width: 100%;
}

/* --- STATS BANNER --- */
.stats-banner {
    padding: 60px 0;
    margin: -32px auto 0px !important;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1440px;
    display: block;
    box-shadow: 0 10px 40px rgba(184, 38, 51, 0.3);
    border-radius: 20px;
}

@media (max-width: 1550px) {
    .stats-banner {
        max-width: calc(100% - 100px);
    }
}

@media (max-width: 1280px) {
    .stats-banner {
        max-width: calc(100% - 48px);
    }
}

.stats-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #B82633;
    border-radius: 20px;
    z-index: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-family: var(--f-serif);
    font-size: clamp(36px, 1.3vw + 31px, 56px);
    font-weight: 700;
    color: #F6F3EF;
    display: block;
    line-height: 1.1;
    margin-bottom: 8px;
    text-shadow: 0 0 15px rgba(255, 245, 200, 0.1);
}

.stat-line {
    display: block;
    width: 48px;
    height: 3px;
    background: #CC6979;
    margin: 16px auto;
    border-radius: 100px;
}

.stat-label {
    display: block;
    font-family: var(--f-sans);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #F1EFEC;
    line-height: 28.5px;
}

/* --- ABOUT SECTION --- */
.about-section {
    padding: 64px 0;
    background: #F8F5F0;
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(248, 245, 240, 0) 100%);
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0px 0px 64px 4px #E6E0D4;
    border: 6px solid #E6E0D4;
    margin: 0;
    padding: 0;
}

.about-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    background: var(--c-dark-olive);
    color: var(--c-white);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.about-text .section-title-large {
    color: var(--c-dark-olive);
    letter-spacing: 1px;
}

.about-text p {
    color: var(--c-text-light);
    font-size: 16px;
    line-height: 25.6px;
    margin-top: 16px;
    letter-spacing: 0.3px;
    font-weight: 400;
}

.about-text .about-checkmarks {
    margin-top: 24px;
}

.about-text .about-checkmarks li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--c-dark-olive);
    letter-spacing: 1px;
    line-height: 25.6px;
    margin-bottom: 20px;
}

.check-icon-img {
    width: 22px;
    height: 22px;
    display: block;
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--c-dark-olive);
    padding: 9px 32px;
    border: 2px solid var(--c-dark-olive);
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 30.5px;
    transition: all 0.3s;
    margin-top: 24px;
}

.btn-outline:hover {
    background: var(--c-dark-olive);
    color: var(--c-white);
}

/* --- FLEET SECTION --- */
.fleet-section {
    padding: 64px 0;
    background: #F8F5F0;
    position: relative;
}

.fleet-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(0deg, #FFFFFF 0%, rgba(248, 245, 240, 0) 100%);
    pointer-events: none;
}

.fleet-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 104px;
    align-items: center;
}

.fleet-text .section-title-large {
    color: var(--c-dark-olive);
    letter-spacing: 1px;
    line-height: 44.8px;
}

.fleet-text p {
    color: var(--c-text-light);
    font-size: 16px;
    line-height: 25.6px;
    margin-top: 16px;
    letter-spacing: 1px;
    font-weight: 400;
}

.fleet-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fleet-cars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 0;
    min-width: 100%;
}

.fleet-photo {
    min-width: 0;
}

.fleet-photo img {
    width: 100%;
    aspect-ratio: 16 / 8.5;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid white;
    box-shadow: 4px 4px 32px rgba(0, 0, 0, 0.10);
}

.fleet-eu-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--c-white);
    padding: 14px 20px;
    border-radius: 8px;
    border: 1px solid var(--c-border);
    font-size: 12px;
    color: var(--c-dark-olive);
    line-height: 19.2px;
    letter-spacing: 0.5px;
    width: max-content;
    max-width: 100%;
}

@media (max-width: 992px) {
    .fleet-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .fleet-eu-badge {
        width: 100%;
        max-width: none;
        justify-content: center;
        text-align: center;
    }

    .fleet-cars {
        width: 100%;
    }
}

.fleet-eu-badge strong {
    font-weight: 600;
}

.eu-flag {
    font-size: 24px;
    flex-shrink: 0;
    border-radius: 2px;
}

/* --- CONTACT SECTION --- */
.contact-section {
    padding: 20px 0;
    background: var(--c-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-detail {
    display: flex;
    gap: 14px;
    margin-top: 20px;
    align-items: center;
}

.contact-icon {
    flex-shrink: 0;
}

.contact-icon-img {
    width: 32px;
    height: 32px;
    display: block;
}

.contact-detail div {
    font-size: 16px;
    line-height: 32px;
    color: var(--c-text-light);
    letter-spacing: 0.5px;
    font-weight: 400;
}

.contact-detail strong {
    color: var(--c-text-light);
    font-size: 18px;
    font-weight: 600;
    line-height: 40px;
    letter-spacing: 0.5px;
}

/* --- Contact section: clickable links (phone, email, address) --- */
.contact-link,
.address-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.contact-link:hover,
.address-link:hover {
    color: var(--c-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.working-hours-card {
    display: flex;
    gap: 20px;
    background: var(--c-white);
    padding: 20px 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    align-items: flex-start;
    box-shadow: 2px 2px 32px rgba(0, 0, 0, 0.10);
    border: 1px solid var(--c-border);
}

.hours-icon {
    flex-shrink: 0;
    margin-top: 20px;
}

.hours-icon-img {
    width: 28px;
    height: 28px;
    display: block;
}

.working-hours-card strong {
    font-size: 18px;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
    color: var(--c-text-light);
    line-height: 36px;
    letter-spacing: 0.5px;
}

.working-hours-card p {
    font-size: 16px;
    color: var(--c-text-light);
    line-height: 28px;
    letter-spacing: 0.5px;
    font-weight: 400;
}

.coverage-map {
    display: flex;
    align-items: stretch;
    gap: 24px;
    border: 2px solid #E6E0D4;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 1px 2px 8px rgba(230, 224, 212, 0.25);
}

.map-placeholder {
    flex: 0 0 50%;
    align-self: stretch;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.map-info {
    flex: 1;
    padding: 24px 28px 24px 0;
}

.map-info ul {
    list-style: disc;
    padding-left: 20px;
}

.map-info li {
    font-size: 16px;
    color: var(--c-text-mid);
    margin-bottom: 10px;
    line-height: 24px;
    letter-spacing: 0.5px;
    font-weight: 400;
}

/* --- GRANTS SECTION --- */
.grants-section {
    padding: 64px 0 var(--section-pad);
    background: #F8F5F0;
    position: relative;
}

.grants-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(248, 245, 240, 0) 100%);
    pointer-events: none;
}

.grants-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(0deg, #FFFFFF 0%, rgba(248, 245, 240, 0) 100%);
    pointer-events: none;
}

.grants-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.grant-card {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 20px 24px;
    text-align: center;
    box-shadow: 2px 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.grant-card:hover {
    box-shadow: 4px 8px 24px rgba(0, 0, 0, 0.10);
    transform: translateY(-2px);
}

.grant-card strong {
    font-size: 16px;
    font-weight: 500;
    display: block;
    margin-bottom: 2px;
    color: var(--c-dark-olive);
    letter-spacing: 0.5px;
}

.grant-card p {
    font-size: 14px;
    color: var(--c-text-light);
    letter-spacing: 0.5px;
    font-weight: 400;
    margin-top: -6px;
}

/* --- FOOTER --- */
.site-footer {
    background: #34470A;
    color: rgba(255, 255, 255, 0.8);
    padding: 64px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1.4fr 1.6fr;
    gap: clamp(20px, 4vw, 64px);
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 64px);
}

/* --- Footer: Logo & About --- */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 70px;
    width: auto;
}

.footer-about p {
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 12px;
    color: #E3E4E2;
    font-weight: 500;
}

.footer-about .footer-ids {
    font-size: 16px;
    color: #E3E4E2;
    font-weight: 500;
    margin-bottom: 8px;
    opacity: 1;
}

.footer-col h3 {
    font-family: var(--f-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--c-white);
    margin-bottom: 8px;
}

.footer-col h3::after {
    content: '';
    display: block;
    width: 64px;
    height: 2px;
    background: var(--c-accent-green);
    border-radius: 90px;
    margin-top: 10px;
    margin-bottom: 24px;
}

/* --- Footer: Navigation --- */
.footer-nav li {
    margin-bottom: 8px;
}

.footer-icon-img {
    width: 20px;
    height: 20px;
    display: block;
}

.footer-nav a {
    font-size: 16px;
    color: #E3E4E2;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--c-accent-green);
}

/* --- Footer: Coverage --- */
.footer-coverage ul {
    list-style: none;
    padding-left: 0;
}

.footer-coverage li {
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 24px;
    letter-spacing: 0.5px;
    color: #E3E4E2;
    font-weight: 400;
    padding-left: 18px;
    position: relative;
}

.footer-coverage li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.footer-coverage li:first-child {
    font-weight: 500;
    color: #F1F2F1;
}

/* --- Footer: Contact & Hours --- */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 18px;
    margin-bottom: 12px;
    color: #F1F2F1;
    font-weight: 500;
    letter-spacing: 0.5px;
    flex-wrap: wrap;
    word-break: break-word;
}

.footer-contact-item .footer-icon-img {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 3px;
}

.footer-hours {
    margin-top: 16px;
    padding-top: 16px;
    border-top: none;
}

.footer-hours div {
    font-size: 16px;
    line-height: 26px;
    color: #E3E4E2;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.footer-hours strong {
    font-size: 18px;
    font-weight: 500;
    color: #F1F2F1;
    letter-spacing: 0.5px;
}

/* --- Footer: clickable phone and email links --- */
.footer-link {
    color: #F1F2F1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--c-accent-green);
    text-decoration: underline;
}

/* --- Footer: copy-to-clipboard items (IČO, datová schránka) --- */
.footer-copy {
    cursor: pointer;
    color: #E3E4E2;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
    transition: color 0.2s, border-bottom-color 0.2s;
}

.footer-copy:hover {
    color: var(--c-accent-green);
    border-bottom-color: var(--c-accent-green);
}

.footer-copy.copied {
    color: var(--c-accent-green);
    border-bottom-color: var(--c-accent-green);
}

/* --- COPYRIGHT BAR --- */
.copyright-bar {
    background: #222A09;
    padding: 14px 0;
    font-size: 14px;
    color: #999E8E;
    font-weight: 500;
}

.copyright-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.copyright-sep {
    color: #555C4A;
}

.copyright-bar a {
    color: #999E8E;
    font-weight: 500;
    transition: color 0.2s;
}

.copyright-bar a:hover {
    color: var(--c-accent-green);
}

/* --- RESPONSIVE: MAIN PAGES --- */

/* --- Breakpoint: 1200px (large tablets, small laptops) --- */
@media (max-width: 1200px) {
    .fleet-grid {
        gap: 60px;
    }

    .grants-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-banner {
        max-width: calc(100% - 48px);
    }

}

/* --- Breakpoint: 1024px (tablets — switch to hamburger) --- */
@media (max-width: 1024px) {
    .hero-side-cards {
        display: none;
    }

    .hero-mobile-services {
        display: grid;
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
    }

    .btn-hero {
        display: none;
    }

    .nav-left,
    .nav-right {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    .top-bar {
        display: none;
    }

    .logo-spacer {
        display: none;
    }

    .site-header-wrapper {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        border-bottom: 1px solid var(--c-border);
        background: #FFFFFF;
    }

    .main-header {
        flex: 1;
        border-bottom: none;
    }

    .header-inner {
        justify-content: flex-end;
        gap: 0;
        height: 60px;
        padding: 0 16px 0 0;
    }

    .logo-center {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        padding: 8px 0 8px 16px;
        flex-shrink: 0;
        order: -1;
    }

    .logo-img {
        height: 50px;
    }

    .site-header-wrapper.scrolled .logo-img {
        height: 44px;
    }

    .stats-banner {
        margin: 0;
        border-radius: 0 !important;
        max-width: 100%;
    }

    .stats-banner::before {
        border-radius: 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

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

    .hero-content {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        padding: 32px 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-motto {
        position: absolute;
        bottom: -1px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }

    .motto-img {
        max-width: 320px;
    }

    .about-grid {
        gap: 40px;
    }

    .fleet-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .step-row:nth-child(2),
    .step-row:nth-child(4) {
        margin-left: 0;
    }

    .steps-section .section-label {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* --- Breakpoint: 900px (large phones landscape, small tablets) --- */
@media (max-width: 900px) {

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .coverage-map {
        flex-direction: column;
    }

    .map-placeholder {
        flex: none;
    }

    .map-info {
        padding: 0 24px 24px;
    }
}

/* --- Breakpoint: 768px (phones) --- */
@media (max-width: 768px) {
    .grants-grid {
        grid-template-columns: 1fr;
    }

    .projects-row {
        flex-direction: column;
    }

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

    .partners-bar {
        border-radius: 0;
        padding: 16px 8px;
    }

    .partners-inner {
        flex-wrap: wrap;
        gap: 12px 16px;
        padding: 0 16px;
    }

    .partners-inner img {
        height: 24px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin: 0 auto;
    }

    .step-row {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .step-icon {
        height: 64px;
    }
}

/* --- Breakpoint: 480px (small phones) --- */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .motto-img {
        max-width: 220px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-title {
        line-height: 32px;
    }

    .hero-subtitle {
        line-height: 28px;
    }

    .hero-content {
        padding-top: 48px;
    }

    .hero-mobile-services {
        grid-template-columns: 1fr;
    }

    .section-title-large {
        line-height: 30px;
    }

    .fleet-eu-badge {
        flex-direction: column;
        text-align: center;
    }

    .onas-goals-card {
        padding: 32px 24px;
    }

    .partners-inner img {
        height: 20px;
    }

    .partners-inner {
        gap: 12px;
    }
}

/* --- SUBPAGE: SHARED STYLES --- */

.subpage-hero {
    padding: 80px 0 0px;
    text-align: center;
    background: linear-gradient(to bottom, #F3EFE7 0%, #FFFFFF 100%);
}

.subpage-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--f-sans);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--c-accent-green);
    text-transform: uppercase;
    margin-bottom: 8px;
    line-height: 30px;
}

.badge-heart {
    width: 14px;
    height: 14px;
}

.subpage-title {
    font-size: 2rem;
    font-weight: 800;
    color: #222A09;
    margin-bottom: 16px;
    line-height: 1.3;
    font-family: var(--f-serif);
}

.nav-left a.active,
.nav-right a.active {
    color: #627216;
    font-weight: 700;
}

/* --- SUBPAGE: DOKUMENTY --- */

.documents-section {
    padding: 20px 0 var(--section-pad);
}

.doc-category {
    margin-bottom: 50px;
}

.doc-category-title {
    font-family: var(--f-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid #627216;
}

.doc-table {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.doc-row {
    display: grid;
    grid-template-columns: 60px 1fr 120px 80px 120px;
    align-items: center;
    padding: 12px 16px;
    background: #F9F7F2;
    border: 1px solid rgba(228, 223, 215, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    margin-bottom: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.doc-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.doc-icon {
    width: 32px;
    height: 32px;
    display: block;
    object-fit: contain;
}

.doc-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--c-text);
}

.doc-date {
    font-size: 15px;
    font-weight: 400;
    color: var(--c-text);
}

.doc-size {
    font-size: 15px;
    font-weight: 400;
    color: var(--c-text);
}

.doc-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 4px;
    line-height: 1;
    border: 2px solid var(--c-text-mid);
    border-radius: 8px;
    color: var(--c-text-mid);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.doc-download:hover {
    background: rgba(46, 84, 158, 0.1);
    border: 2px solid #2E549E;
    color: #2E549E;
}

.doc-show-more {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 16px 0 0 0;
    padding: 8px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--f-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--c-blue);
    transition: all 0.25s ease;
}

.doc-show-more:hover {
    color: var(--c-light-blue);
}

.show-more-arrow {
    width: 14px;
    height: auto;
    transition: transform 0.3s ease;
}

.doc-show-more.active .show-more-arrow {
    transform: rotate(180deg);
}

.doc-hidden-rows {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.doc-hidden-rows.expanded {
    max-height: 800px;
    opacity: 1;
}

/* --- SUBPAGE: O NAS --- */

.onas-intro-section {
    padding: 0 0 50px;
}

.onas-intro-card {
    background: #F7F4ED;
    border: 2px solid #E2DDD4;
    border-radius: 16px;
    padding: 32px 32px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.onas-intro-card p {
    font-size: 18px;
    line-height: 30px;
    color: #121212;
    margin-bottom: 12px;
}

.onas-intro-card p:last-child {
    margin-bottom: 0;
}

.onas-intro-card p strong {
    font-family: var(--f-serif);
    font-weight: 700;
    font-size: 20px;
    color: #121212;
}

.onas-director-section {
    padding: 0 0 20px;
}

.onas-director-block {
    border-left: 2px solid #91202F;
    padding-left: 40px;
}

.onas-director-title {
    font-family: var(--f-serif);
    font-size: 22px;
    font-weight: 700;
    color: #91202F;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.onas-director-block p {
    font-size: 18px;
    line-height: 30px;
    color: #121212;
    margin-bottom: 6px;
}

.onas-director-signature {
    font-family: var(--f-sans);
    color: #91202F !important;
    font-style: italic;
    font-weight: 500;
}

.onas-timeline-section {
    padding: 20px 0 80px;
}

.onas-timeline-heading {
    font-family: var(--f-sans);
    font-size: 24px;
    font-weight: 600;
    color: #333333;
    text-align: center;
    margin-bottom: -20px;
    position: relative;
}

.onas-timeline-heading::after {
    content: '';
    display: block;
    width: 200px;
    height: 2px;
    background: #627216;
    margin: 6px auto 40px;
    border-radius: 16px;
}

.onas-timeline {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0 32px;
    max-width: 900px;
    margin: 0 auto;
    align-items: start;
}

.onas-timeline-left-col {
    text-align: right;
}

.onas-timeline-right-col {
    text-align: left;
}

.onas-timeline-center {
    display: flex;
    justify-content: center;
}

.onas-timeline-img {
    height: 500px;
    width: auto;
    object-fit: contain;
}

.onas-timeline-item h3 {
    font-family: var(--f-sans);
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 6px;
}

.onas-timeline-item h3 em {
    font-style: normal;
    font-weight: 600;
}

.onas-timeline-item p {
    font-family: var(--f-sans);
    font-size: 14px;
    font-weight: 400;
    color: #444444;
    line-height: 1.7;
    letter-spacing: 0.5px;
}

.onas-timeline-left-col .onas-timeline-item:first-child {
    margin-top: 115px;
}

.onas-timeline-left-col .onas-timeline-item:nth-child(2) {
    margin-top: 105px;
}

.onas-timeline-right-col .onas-timeline-item:first-child {
    margin-top: 20px;
}

.onas-timeline-right-col .onas-timeline-item:nth-child(2) {
    margin-top: 125px;
}

.onas-goals-section {
    padding: 0 0 80px;
    background: linear-gradient(to bottom, #FFFFFF 96px, #F7F4ED 96px);
}

.onas-goals-card {
    background: #FFFFFF;
    border: 2px solid #E6E0D4;
    border-radius: 16px;
    padding: 48px 64px;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.onas-goals-icon {
    margin-bottom: 16px;
}

.onas-goals-icon img {
    width: 48px;
    height: 48px;
    margin: 0 auto;
}

.onas-goals-title {
    font-family: var(--f-sans);
    font-size: 24px;
    font-weight: 600;
    color: #333333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    position: relative;
}

.onas-goals-title::after {
    content: '';
    display: block;
    width: 160px;
    height: 2px;
    background: #627216;
    margin: 12px auto 24px;
    border-radius: 2px;
}

.onas-goals-card p {
    font-size: 16px;
    line-height: 28px;
    color: var(--c-text-mid);
    margin-bottom: 12px;
}

.onas-goals-card p:last-child {
    margin-bottom: 0;
}

.onas-details-section {
    padding: 0 0 80px;
    background: #F7F4ED;
}

.onas-details-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 64px;
    max-width: 1200px;
    margin: 0 auto;
}

.onas-detail-title {
    font-family: var(--f-sans);
    font-size: 24px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 2px;
    padding-bottom: 6px;
    border-bottom: 2px solid #627216;
    display: inline-block;
}

.onas-detail-col p {
    font-size: 16px;
    line-height: 28px;
    color: var(--c-text-mid);
    margin-top: 20px;
}

.onas-check-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.onas-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 24px;
    color: var(--c-text-mid);
    margin-bottom: 16px;
}

.onas-check-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* --- SUBPAGE: TYM --- */

.team-section {
    padding: 0 0 var(--section-pad);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    text-align: center;
    padding: 0;
    background: transparent;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-4px);
}

.team-photo {
    width: min(320px, 100%);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.team-name {
    font-family: var(--f-sans);
    font-size: 24px;
    font-weight: 600;
    color: #222A09;
    letter-spacing: 0.12px;
    margin-bottom: 0px;
}

.team-role {
    font-family: var(--f-sans);
    font-size: 16px;
    font-weight: 600;
    color: #70821D;
    letter-spacing: 0.08px;
    margin-bottom: 12px;
}

.team-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--f-sans);
    font-size: 16px;
    font-weight: 400;
    color: #666666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.team-contact-item:hover {
    color: #0E6BA8;
}

.team-contact-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* --- SUBPAGE: GALERIE --- */

.gallery-section {
    padding: 24px 0 var(--section-pad);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.gallery-filter-btn {
    padding: 10px 28px;
    border: 1px solid var(--c-border);
    border-radius: 30px;
    background: transparent;
    font-family: var(--f-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text);
    cursor: pointer;
    transition: all 0.25s ease;
}

.gallery-filter-btn:hover {
    border-color: var(--c-olive);
    color: var(--c-olive);
}

.gallery-filter-btn.active {
    background: var(--c-olive);
    border-color: var(--c-olive);
    color: var(--c-white);
}

.gallery-grid {
    --cols: 8;
    --gap: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--gap);
    margin: 0 auto;
    max-width: 1440px;
}

.gallery-item {
    width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(14, 107, 168, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-icon-zoom {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-icon-zoom {
    transform: scale(1);
}

.gallery-icon-zoom::before {
    content: '';
    width: 32px;
    height: 32px;
    background: url('images/ui/icon-magnifier.webp') no-repeat center;
    background-size: contain;
    filter: brightness(0) invert(1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- Galerie: Lightbox Modal --- */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex !important;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Leave space for arrows on wide screens */
    max-width: calc(100% - 160px);
    max-height: 90vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border: 3px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 60px rgba(0, 0, 0, 0.6);
    border-radius: 6px;
    user-select: none;
    transition: opacity 0.15s ease;
}

/* --- Close button: top-right corner of viewport --- */
.lightbox-close {
    position: fixed;
    top: 18px;
    right: 24px;
    width: 44px;
    height: 44px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
    z-index: 10001;
    line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    transform: scale(1.1);
}

/* --- Arrows: in free space beside the image --- */
.lightbox-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    border-radius: 50%;
    background: transparent;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
    z-index: 10001;
    line-height: 1;
}

.lightbox-arrow:hover,
.lightbox-arrow:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    transform: translateY(-50%) scale(1.12);
}

.arrow-prev {
    left: 24px;
}

.arrow-next {
    right: 24px;
}

/* --- Lightbox responsive: medium screens --- */
@media (max-width: 1100px) {
    .lightbox-content {
        max-width: calc(100% - 120px);
    }

    .lightbox-arrow {
        width: 48px;
        height: 48px;
        font-size: 38px;
    }

    .arrow-prev {
        left: 16px;
    }

    .arrow-next {
        right: 16px;
    }
}

/* --- Lightbox responsive: narrow screens — controls on the image --- */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 100%;
        max-height: 100vh;
        padding: 0 4px;
    }

    .lightbox-img {
        max-height: 80vh;
        border-width: 2px;
        border-radius: 4px;
    }

    /* Close stays in top-right, with bg for visibility */
    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 30px;
        background: rgba(0, 0, 0, 0.45);
        color: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .lightbox-close:hover,
    .lightbox-close:focus-visible {
        background: rgba(0, 0, 0, 0.65);
    }

    /* Arrows overlap the image with subtle bg */
    .lightbox-arrow {
        width: 44px;
        height: 44px;
        font-size: 32px;
        background: rgba(0, 0, 0, 0.35);
        color: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .lightbox-arrow:hover,
    .lightbox-arrow:focus-visible {
        background: rgba(0, 0, 0, 0.6);
        transform: translateY(-50%) scale(1.08);
    }

    .arrow-prev {
        left: 10px;
    }

    .arrow-next {
        right: 10px;
    }
}

/* --- Lightbox responsive: very small screens --- */
@media (max-width: 480px) {
    .lightbox-close {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
        font-size: 26px;
    }

    .lightbox-arrow {
        width: 38px;
        height: 38px;
        font-size: 26px;
    }

    .arrow-prev {
        left: 6px;
    }

    .arrow-next {
        right: 6px;
    }

    .lightbox-img {
        max-height: 75vh;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- SUBPAGE: KONTAKT (uses shared contact-section styles) --- */
.contact-section-subpage {
    margin-bottom: 80px;
}

/* --- MODALS --- */

/* --- Modal: Shared Base --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.03);
    z-index: 1000;
    justify-content: center;
    align-items: flex-start;
    padding: 32px;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--c-white);
    border-radius: 12px;
    width: 1440px;
    max-width: 100%;
    max-height: 100%;
    overflow-y: auto;
    padding: 164px 120px 80px;
    position: relative;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.12);
    border: 1px solid #E4DED4;
}

.modal-close {
    position: absolute;
    top: 48px;
    right: 100px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-close img {
    display: block;
    width: 48px;
    height: auto;
}

.modal-logo {
    position: absolute;
    top: 48px;
    left: 101px;
    margin-bottom: 0;
}

.modal-logo img {
    height: 80px;
}

.modal h2 {
    font-family: var(--f-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 24px;
}

.modal p {
    font-size: 15px;
    color: var(--c-text-mid);
    line-height: 1.8;
    margin-bottom: 12px;
}

.modal ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.modal li {
    font-size: 15px;
    color: var(--c-text-mid);
    line-height: 1.8;
    margin-bottom: 4px;
}

.modal a {
    color: var(--c-blue);
    text-decoration: underline;
}

.modal .highlight-box {
    padding: 20px 24px;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    margin: 20px 0;
    font-size: 15px;
}

.modal .highlight-box a {
    color: var(--c-blue);
    font-weight: 700;
}

/* --- Modal: Jak Postupovat --- */
.modal-jak-postupovat-custom {
    padding: 160px 100px 80px !important;
}

.modal-label-green {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #627216;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-family: var(--f-sans);
    letter-spacing: 0.5px;
}

.modal-heart-icon {
    width: 20px;
    height: 20px;
}

.modal-title-main {
    font-family: var(--f-serif);
    font-size: 24px;
    font-weight: 900;
    color: #232B0A;
    margin-bottom: 8px;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.modal-subtitle {
    font-family: var(--f-serif);
    font-size: 16px !important;
    font-weight: 400;
    color: #222222 !important;
    margin-bottom: 40px !important;
    font-style: normal;
    letter-spacing: 0.01em;
}

.modal-subtitle2 {
    font-family: var(--f-serif);
    font-size: 18px !important;
    font-weight: 400;
    color: #222222 !important;
    margin-bottom: 40px !important;
    font-style: normal;
    letter-spacing: 0.01em;
}

.modal-subtitle2up {
    font-family: var(--f-serif);
    font-size: 18px !important;
    font-weight: 400;
    color: #050505 !important;
    font-style: normal;
    letter-spacing: 0.01em;
    margin-bottom: 2px !important;
}

.modal-subtitle4up {
    font-family: var(--f-serif);
    font-size: 16px !important;
    font-weight: 400;
    color: #222222 !important;
    margin-bottom: 2px !important;
    font-style: normal;
    letter-spacing: 0.01em;
}

.modal-process-box {
    background: #F7F4ED;
    border: 2px solid #E2DDD4;
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 48px;
}

.modal-process-box>p {
    font-family: var(--f-sans);
    font-weight: 400;
    font-size: 18px !important;
    color: #121212 !important;
    line-height: 33px;
    margin-bottom: 0;
}

.process-item {
    margin-bottom: 24px;
}

.process-item h3 {
    color: #91202F;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
    font-family: var(--f-sans);
}

.process-item p {
    font-family: var(--f-sans);
    font-size: 17px !important;
    color: #111111 !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
    font-weight: 700;
    padding-left: 16px;
}

.process-item:last-of-type {
    margin-bottom: 0;
}

.modal-blue-bold {
    color: #354D9C;
    font-weight: 700;
    font-size: 18px;
    margin-top: 16px;
    font-family: var(--f-sans);
}

.modal-contacts-block {
    border-left: 3px solid #91202F;
    padding-left: 32px;
    margin-top: 40px;
}

.contacts-title {
    font-size: 20px;
    margin-bottom: 16px;
    font-family: var(--f-sans);
    text-transform: none;
    color: #111111;
}

.contacts-title .title-red {
    color: #91202F;
    font-weight: 700;
}

.contacts-title .title-black {
    color: #111111;
    font-weight: 600;
}

.modal-contact-list {
    list-style: none !important;
    padding-left: 0 !important;
}

.modal-contact-list li {
    position: relative;
    padding-left: 22px;
    font-size: 18px !important;
    color: #121212 !important;
    margin-bottom: 10px !important;
    line-height: 1.5;
    font-weight: 500;
}

.modal-contact-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #121212;
    font-weight: bold;
}

.modal-contact-list .loc-note {
    color: #121212;
    font-weight: 500;
}

.modal-contact-list a {
    color: #354D9C !important;
    text-decoration: none !important;
    font-weight: 600;
}

/* --- Modal: Pecovatelska Sluzba --- */
.modal-pecovatelska-custom {
    padding-top: 160px !important;
}

.modal-text-intro {
    font-family: var(--f-sans) !important;
    font-size: 18px !important;
    margin-top: 28px !important;
    margin-bottom: 12px !important;
    color: #121212 !important;
    font-weight: 500 !important;
}

.modal-red-pill {
    background: #B82633;
    color: #F5B3B9;
    padding: 32px 40px;
    border-radius: 16px;
    display: inline-block;
    text-align: center;
    margin-top: 0;
    margin-bottom: 48px;
    background: #B82633 !important;
    border: none !important;
    color: #FFFBF5;
    width: fit-content;
    box-shadow: 0 6px 20px rgba(184, 38, 51, 0.35) !important;
    border-radius: 16px;
    padding: 28px 36px;
    display: inline-block;
    font-family: var(--f-sans);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
}

.modal-red-pill .text-accent-blue {
    color: #f8d2d6;
    font-weight: 500;
    font-size: 20px;
    display: inline-block;
    transform: translateY(-1px);
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.25);
    margin-right: 4px;
}

.box-title-red {
    color: #91202F;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 16px;
    font-family: var(--f-sans);
}

.modal-bullet-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 0px !important;
}

.modal-bullet-list li {
    position: relative;
    padding-left: 24px;
    font-size: 17px !important;
    color: #121212 !important;
    margin-bottom: 12px !important;
    line-height: 1.6;
    font-weight: 500;
}

.modal-bullet-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #121212;
    font-weight: bold;
}

.box-small {
    padding: 24px 32px !important;
    width: fit-content;
    max-width: 100%;
}

.modal-bottom-text {
    margin-top: 60px;
    max-width: 1100px;
}

.modal-section-cenik {
    margin: 32px 0 32px;
}

.modal-cenik-flex {
    display: flex;
    align-items: center;
    gap: 32px;
}

.cenik-info-side {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cenik-section-title {
    color: #202020 !important;
    font-size: 18px !important;
    font-weight: 700;
    margin-bottom: 0px !important;
    font-family: var(--f-sans);
    line-height: 1.2;
}

.cenik-secondary-text {
    font-family: var(--f-sans);
    font-size: 13px;
    font-weight: 500;
    color: #303030;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.cenik-open-btn {
    color: #354D9C !important;
    font-family: var(--f-sans);
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    width: fit-content;
}

.cenik-open-btn:hover {
    color: #91202F !important;
}

.pdf-paper-link {
    text-decoration: none !important;
    display: inline-block;
}

.pdf-paper-tile {
    width: 110px;
    height: 155px;
    background: #FFFFFF;
    border: 2px solid #EBE9E5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.pdf-paper-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pdf-paper-overlay {
    position: absolute;
    inset: 0;
    background: rgba(14, 107, 168, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.paper-icon-zoom {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.paper-icon-zoom::before {
    content: '';
    width: 24px;
    height: 24px;
    background: url('images/ui/icon-magnifier.webp') no-repeat center;
    background-size: contain;
    filter: brightness(0) invert(1);
}

.pdf-paper-link:hover .pdf-paper-tile {
    border-color: #0E6BA8;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(14, 107, 168, 0.15);
}

.pdf-paper-link:hover .pdf-paper-overlay {
    opacity: 1;
}

.pdf-paper-link:hover .paper-icon-zoom {
    transform: scale(1);
}

.pdf-paper-link:hover .pdf-paper-icon img {
    transform: scale(1.1);
}

.modal-bottom-text p {
    font-size: 18px !important;
    color: #121212 !important;
    line-height: 33px !important;
    margin-bottom: 24px !important;
    font-weight: 500;
}

.modal-bottom-text p:nth-child(2) {
    margin-bottom: 0 !important;
}

.modal-bottom-text p:last-child {
    margin-bottom: 0 !important;
}

/* --- Modal: Socialni Sluzby --- */
.modal-jak-postupovat-custom,
.modal-pecovatelska-custom,
.modal-socialni-sluzby-custom,
.modal-prubeh-custom {
    padding: 160px 100px 80px !important;
}

.modal-jak-postupovat-custom .modal-process-box,
.modal-pecovatelska-custom .modal-process-box,
.modal-socialni-sluzby-custom .modal-process-box,
.modal-prubeh-custom .modal-process-box {
    margin-bottom: 24px !important;
}

.modal-socialni-sluzby-custom .modal-title-main {
    margin-bottom: 32px !important;
}

/* --- Modal: Prubeh --- */
.modal-prubeh-custom .modal-title-main {
    color: var(--c-accent-olive) !important;
}

.modal-prubeh-custom .modal-subtitle {
    margin-bottom: 8px;
}

.modal-prubeh-custom .modal-subtitle:last-of-type {
    margin-bottom: 40px;
}

.box-title-underline {
    color: #91202F;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    font-family: var(--f-sans);
    display: inline-block;
    border-bottom: 2px solid #91202F;
    padding-bottom: 6px;
    padding-right: 6px;
    letter-spacing: 0.5px;
    line-height: 18px;
}

.modal .link-style-text {
    color: #354D9C !important;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    font-size: 18px;
    margin-bottom: 24px;
    font-family: var(--f-sans);
    display: block;
}

.text-blue-bold {
    color: #354D9C;
    font-weight: 700;
}

.modal-box-footer {
    margin-top: 20px;
    font-size: 17px;
    line-height: 1.7;
    font-weight: 500;
}

.box-white {
    background-color: #FFFFFF !important;
    border: 2px solid #EBE9E5 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
}

.modal-socialni-sluzby-custom .modal-bullet-list li {
    margin-bottom: 8px !important;
}

/* --- SCROLL REVEAL --- */

/* --- Reveal: initial hidden state (only with JS) --- */
.js-loaded [data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* --- Reveal: visible state --- */
.js-loaded [data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Reveal: stagger delays --- */
.js-loaded [data-reveal-delay="1"] {
    transition-delay: 0.1s;
}

.js-loaded [data-reveal-delay="2"] {
    transition-delay: 0.2s;
}

.js-loaded [data-reveal-delay="3"] {
    transition-delay: 0.3s;
}

.js-loaded [data-reveal-delay="4"] {
    transition-delay: 0.4s;
}

/* --- RESPONSIVE: SUBPAGES --- */

/* --- Subpage Breakpoint: 1480px --- */
@media (max-width: 1480px) {
    .gallery-grid {
        max-width: 1200px;
        --cols: 7;
    }
}

/* --- Subpage Breakpoint: 1200px --- */
@media (max-width: 1200px) {
    .gallery-grid {
        --cols: 6;
    }

    .subpage-hero {
        padding-top: 48px;
    }
}

/* --- Subpage Breakpoint: 1024px --- */
@media (max-width: 1024px) {
    .subpage-hero {
        padding-top: 24px;
    }

    .gallery-grid {
        --cols: 5;
    }

    .modal {
        padding: 80px 40px 40px;
    }

    .modal-logo {
        left: 40px;
        top: 24px;
    }

    .modal-logo img {
        height: 50px;
    }

    .modal-close {
        right: 40px;
        top: 24px;
    }

    .modal-close img {
        width: 32px;
    }

    .modal-jak-postupovat-custom,
    .modal-pecovatelska-custom,
    .modal-socialni-sluzby-custom,
    .modal-prubeh-custom {
        padding: 80px 40px 40px !important;
    }

    .onas-details-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- Subpage Breakpoint: 900px --- */
@media (max-width: 900px) {
    .gallery-grid {
        --cols: 4;
    }
}

/* --- Subpage Breakpoint: 768px (team grid) --- */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin: 0 auto;
    }
}

/* --- Subpage Breakpoint: 650px (timeline collapse) --- */
@media (max-width: 650px) {
    .onas-timeline {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .onas-timeline-center {
        display: none;
    }

    .onas-timeline-left-col,
    .onas-timeline-right-col {
        display: contents;
    }

    .onas-timeline-item {
        text-align: center;
        margin-top: 0 !important;
    }

    .onas-timeline-right-col .onas-timeline-item:first-child {
        order: 1;
    }

    .onas-timeline-left-col .onas-timeline-item:first-child {
        order: 2;
    }

    .onas-timeline-right-col .onas-timeline-item:nth-child(2) {
        order: 3;
    }

    .onas-timeline-left-col .onas-timeline-item:nth-child(2) {
        order: 4;
    }
}

/* --- Subpage Breakpoint: 768px --- */
@media (max-width: 768px) {
    .subpage-title {
        font-size: 26px;
    }

    .doc-row {
        grid-template-columns: 42px 1fr auto;
        gap: 6px 8px;
    }

    .doc-date {
        font-size: 12px;
        grid-column: 2 / 3;
        grid-row: 2;
    }

    .doc-size {
        font-size: 12px;
        grid-column: 3 / 4;
        grid-row: 2;
    }

    .doc-icon {
        grid-row: 1 / 3;
    }

    .doc-download {
        grid-column: 1 / -1;
        margin-top: 4px;
    }

    .gallery-grid {
        --cols: 3;
        --gap: 6px;
        max-width: 100%;
        padding: 0;
    }

    .modal-overlay {
        padding: 0;
    }

    .modal {
        padding: 60px 20px 30px;
        border-radius: 0;
        max-height: 100vh;
        width: 100%;
    }

    .modal-logo {
        left: 16px;
        top: 14px;
    }

    .modal-logo img {
        height: 40px;
    }

    .modal-close {
        right: 8px;
        top: 8px;
        padding: 8px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-close img {
        width: 28px;
    }

    .modal-jak-postupovat-custom,
    .modal-pecovatelska-custom,
    .modal-socialni-sluzby-custom,
    .modal-prubeh-custom {
        padding: 60px 20px 30px !important;
    }

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

/* --- Subpage Breakpoint: 480px --- */
@media (max-width: 480px) {
    .gallery-grid {
        --cols: 2;
        --gap: 4px;
    }

    .subpage-title {
        font-size: 22px;
    }

    .onas-goals-card {
        padding: 24px 16px;
    }

    .modal-cenik-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal {
        padding: 52px 16px 24px;
    }

    .modal-process-box {
        padding: 20px 16px;
    }

    .modal-title-main {
        font-size: 20px;
    }

    .modal-subtitle {
        font-size: 14px;
    }

    .modal-label-green {
        font-size: 12px;
    }

    .modal p {
        font-size: 15px;
    }
}

/* --- ACCESSIBILITY: REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
    .js-loaded [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .lightbox-img {
        transition: none;
    }

    .nav-left a::after,
    .nav-right a::after {
        transition: none;
    }
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 40px 0 80px;
}

.sitemap-card {
    background: var(--c-white);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--c-border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.sitemap-card h2 {
    color: var(--c-primary);
    font-family: var(--f-serif);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--c-border);
}

.sitemap-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sitemap-card li a {
    color: var(--c-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 4px 0;
}

.sitemap-card li a:hover,
.sitemap-card li a:focus {
    color: var(--c-blue);
    padding-left: 6px;
}

/* --- SEO & Accessibility Helper Classes (Technical Headings) --- */

/* Vizuální shoda s původním H3 v modálu */
.modal-step-title {
    font-family: var(--f-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: #222A09;
    margin-bottom: 8px;
    display: block;
}

/* Zajištění, aby H2 vypadalo jako H1 v rámci modálu */
h2.modal-title-main {
    font-size: clamp(20px, 0.8vw + 20px, 32px);
    font-weight: 800;
    color: #222A09;
    font-family: var(--f-serif);
    margin-bottom: 16px;
}

/* --- ACCESSIBILITY: REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {

    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}