/*
Theme Name: Ateliér Prostory
Theme URI:
Author: Petra Šilberská
Description: Vlastní téma pro Ateliér Prostory — zahradní a krajinná architektura.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Private
Text Domain: atelier-prostory
*/

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

:root {
    --white:      #ffffff;
    --black:      #141414;
    --green:      #4a7a58;
    --green-mid:  #3a6347;
    --green-dark: #1A4A52;
    --green-pale: #edf2e9;
    --warm:       #EFF5EC;
    --lime:       #ABF34F;
    --muted:      #4a4a4a;
    --muted-light:#888;
    --border:     #e4e0da;

    --px:   clamp(24px, 6vw, 120px);
    --py:   clamp(48px, 6vw, 96px);
    --max:  1620px;
}

html {
    scroll-behavior: smooth;
    font-size: clamp(18px, 1.25vw, 22px);
    overflow-x: hidden;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    line-height: 1.15;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

.wrap {
    max-width: var(--max);
    margin: 0 auto;
}

/* ── SCROLL ANIMATIONS ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── NAV ── */
#main-nav {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 20px);
    max-width: var(--max);
    z-index: 100;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    border-radius: 0;
    box-shadow: none;
    transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}

#main-nav.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: rgba(0,0,0,0.08);
    box-shadow: none;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo-img,
.footer-logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.nav-logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.04em;
    font-weight: 400;
    color: var(--black);
}

.nav-logo-text span {
    display: block;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--green-dark);
    font-weight: 300;
    margin-top: 1px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-links a {
    color: var(--green-dark);
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--black); }

/* Při překladu (GT přidá .translated-ltr) zmenšit nav */
.translated-ltr #main-nav .nav-links,
.translated-rtl #main-nav .nav-links {
    gap: 16px;
    font-size: 0.72rem;
}
.translated-ltr #main-nav .nav-right,
.translated-rtl #main-nav .nav-right {
    gap: 12px;
}

/* ── LANG SWITCHER ── */
.nav-lang {
    display: flex;
    align-items: center;
    gap: 2px;
}
.nav-lang-btn {
    background: none;
    border: none;
    padding: 4px 7px;
    font-size: 0.72rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--green-dark);
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}
.nav-lang-btn:hover {
    background: var(--green-pale);
}
.nav-lang-btn.active {
    background: var(--green-dark);
    color: #fff;
}

.nav-cta {
    background: var(--lime);
    color: var(--green-dark) !important;
    padding: 9px 22px;
    border-radius: 6px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover {
    background: #96d93a !important;
    transform: translateY(-1px);
}

/* ── MEGA MENU ── */
.has-mega { position: static !important; }

.mega-chevron {
    margin-left: 4px;
    vertical-align: middle;
    transition: transform 0.25s;
}
.has-mega:hover .mega-chevron { transform: rotate(180deg); }

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.08);
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 200;
}
.has-mega:hover .mega-chevron { transform: rotate(180deg); }
#main-nav:has(.mega-open) {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.has-mega.mega-open .mega-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.has-mega.mega-open .mega-chevron { transform: rotate(180deg); }

.mega-menu-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    padding: 8px var(--px);
}

.mega-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 28px 24px;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s;
}
.mega-item:hover { background: rgba(26, 74, 82, 0.06); }

.mega-item-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}
.mega-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.mega-item:hover .mega-item-img img { transform: scale(1.04); }
.mega-item-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--green-dark);
    line-height: 1.3;
}
.mega-item-desc {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.6;
    margin-top: 4px;
}

/* ── HAMBURGER ── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    border-radius: 0;
    transition: all 0.3s;
}

/* ── MOBILE MENU ── */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: var(--green-dark);
    z-index: 1000;
    padding: 80px 0 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: rgba(255,255,255,0.6);
}

.mobile-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.mobile-menu-links li a {
    display: block;
    padding: 14px 28px;
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}
.mobile-menu-links li a:hover { color: var(--lime); }
.mobile-menu-links li.is-active > a { color: var(--lime) !important; }

.mobile-submenu-item a {
    font-size: 0.875rem !important;
    color: rgba(255,255,255,0.65) !important;
    padding-left: 20px !important;
}
.mobile-submenu-item a:hover { color: var(--lime) !important; }
.mobile-submenu-item.is-active > a { color: var(--lime) !important; }

.mobile-cta {
    color: #fff;
    font-weight: 500;
}

.mobile-menu-lang {
    display: flex;
    gap: 8px;
    padding: 16px 28px 28px;
}
.mobile-menu-lang .nav-lang-btn {
    color: rgba(255,255,255,0.6);
}
.mobile-menu-lang .nav-lang-btn.active,
.mobile-menu-lang .nav-lang-btn:hover {
    color: var(--lime);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}
.mobile-menu-overlay.open { display: block; }

@media (max-width: 900px) {
    .nav-right { display: none; }
    .nav-hamburger { display: flex; }
    .mobile-menu { width: 100vw; border-radius: 0; }
}

/* ── HERO ── */
.hero-outer {
    max-width: var(--max);
    margin: 88px 10px 0;
    overflow: hidden;
    border-radius: 8px;
}

@media (min-width: calc(1620px + 20px)) {
    .hero-outer { margin-left: auto; margin-right: auto; }
}

.hero {
    height: clamp(500px, calc(100vh - 150px), 900px);
    position: relative;
    display: grid;
    grid-template-columns: 1fr 300px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(26, 74, 82, 0.82) 0%,
        rgba(26, 74, 82, 0.65) 40%,
        rgba(26, 74, 82, 0.20) 70%,
        rgba(26, 74, 82, 0.00) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(48px, 6vw, 80px) clamp(40px, 5vw, 80px);
}

.hero h1 {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(16px);
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-claim {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(40px, 4.5vw, 70px);
    font-weight: 300;
    color: white;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeUp 0.9s ease forwards;
    animation-delay: 0.4s;
}

.hero-claim em {
    font-style: italic;
    color: rgba(171, 243, 79, 0.78);
}

.hero-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.88);
    max-width: 680px;
    line-height: 1.5;
    margin-bottom: 40px;
    font-weight: 400;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.9s ease forwards;
    animation-delay: 0.6s;
}

.hero-btns {
    display: flex;
    gap: 12px;
    align-items: center;
    opacity: 0;
    transform: translateY(16px);
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

@keyframes heroFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.hero-strips {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255,255,255,0.25);
    background: rgba(26, 74, 82, 0.30);
}

.hero-strip {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px 28px;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-decoration: none;
    overflow: hidden;
    transition: flex 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-strip:first-child { border-top: none; }

.hero-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--strip-img, none);
    background-size: cover;
    background-position: center 30%;
    opacity: 0;
    transition: opacity 0.45s ease;
    z-index: 0;
}

.hero-strip::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(26, 74, 82, 0.90) 0%,
        rgba(26, 74, 82, 0.55) 60%,
        rgba(26, 74, 82, 0.25) 100%
    );
    opacity: 0;
    transition: opacity 0.45s ease;
    z-index: 0;
}

.hero-strip:hover { flex: 1.6; }
.hero-strip:hover::before,
.hero-strip:hover::after { opacity: 1; }

/* Strip obrázky jsou nastaveny dynamicky přes inline CSS custom property --strip-img (z ACF _obrazek_sluzby) */

.hero-strip-num {
    position: relative;
    z-index: 1;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.hero-strip-name {
    position: relative;
    z-index: 1;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.82rem, 1vw, 0.98rem);
    font-weight: 300;
    color: rgba(255,255,255,0.9);
    line-height: 1.25;
    transition: color 0.3s ease;
}

.hero-strip-arrow {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-top: 10px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease, color 0.3s ease;
}

.hero-strip:hover .hero-strip-num  { color: rgba(255,255,255,0.55); }
.hero-strip:hover .hero-strip-name { color: var(--lime); }
.hero-strip:hover .hero-strip-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--lime);
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.22s;
    cursor: pointer;
    font-weight: 500;
}

.btn-primary-cta { background: var(--lime); color: var(--green-dark); }
.btn-primary-cta:hover { background: #96d93a; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20,45,30,0.2); }

.btn-ghost {
    color: rgba(255,255,255,0.8);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.35);
    border-radius: 0;
    padding: 4px 0;
}
.btn-ghost:hover { color: white; border-color: white; }

.btn-outline-dark { background: transparent; color: var(--black); border: 1.5px solid var(--black); }
.btn-outline-dark:hover { background: var(--black); color: white; transform: translateY(-2px); }

.btn-outline-green { background: transparent; color: var(--green-dark); border: 1.5px solid var(--green-dark); }
.btn-outline-green:hover,
.omne-bio .btn-outline-green:hover { background: var(--green-dark); color: white !important; transform: translateY(-2px); }

.btn-outline-white-new { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.5); }
.btn-outline-white-new:hover { background: rgba(255,255,255,0.1); border-color: white; transform: translateY(-2px); }

/* ── SECTION COMMON ── */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--green);
    font-weight: 500;
    margin-bottom: 16px;
}

.section-eyebrow::before {
    content: '';
    display: block;
    width: 22px;
    height: 1px;
    background: var(--green);
}

.section-title {
    font-size: clamp(2.2rem, 3.5vw, 3.2rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.section-title em {
    font-style: italic;
    color: var(--lime);
}

.link-text {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--lime);
    padding-bottom: 3px;
    transition: color 0.2s, border-color 0.2s;
}
.link-text:hover { color: var(--black); border-color: var(--black); }

/* ── PAGE HERO ── */
.page-hero-outer {
    max-width: var(--max);
    margin: 88px 10px 0;
    border-radius: 8px;
    overflow: hidden;
}

@media (min-width: calc(1620px + 20px)) {
    .page-hero-outer { margin-left: auto; margin-right: auto; }
}

.page-hero {
    position: relative;
    height: clamp(400px, 65vh, 720px);
    display: flex;
    align-items: flex-end;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.page-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(26, 74, 82, 0.78) 0%,
        rgba(26, 74, 82, 0.40) 40%,
        rgba(26, 74, 82, 0.15) 75%,
        rgba(26, 74, 82, 0.00) 100%
    );
}

.page-hero-content {
    position: relative;
    z-index: 1;
    padding: clamp(32px, 5vw, 64px) clamp(40px, 5vw, 80px);
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
}

.page-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 300;
    color: white;
    line-height: 1.1;
    letter-spacing: -0.01em;
}
h1.section-eyebrow {
    font-family: 'Open Sans', sans-serif;
}
h1.section-eyebrow::before,
.page-hero-content .section-eyebrow::before {
    background: rgba(255, 255, 255, 0.55);
}

.page-hero-title em {
    font-style: italic;
    color: var(--lime);
}

.single-sluzba .page-hero-title {
    max-width: 10em;
}

.page-hero-claim {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    font-weight: 300;
    color: rgba(255,255,255,0.85);
    margin-top: 16px;
    max-width: 20em;
    line-height: 1.4;
}
.page-hero-claim em {
    font-style: italic;
    color: var(--lime);
}

.page-hero-subtitle {
    margin-top: 16px;
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    color: rgba(255,255,255,0.7);
    max-width: 520px;
    line-height: 1.6;
    font-weight: 400;
}

/* ── HERO PROJEKT NAV ── */
.hero-projekt-nav {
    position: absolute;
    bottom: 28px;
    right: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.hero-projekt-nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(26, 74, 82, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-size: 0.78rem;
    font-family: 'Open Sans', sans-serif;
    letter-spacing: 0.02em;
    transition: background 0.2s, border-color 0.2s;
}

.hero-projekt-nav-btn:hover {
    background: rgba(26, 74, 82, 0.85);
    border-color: rgba(255,255,255,0.4);
}

.hero-projekt-nav-label {
    white-space: nowrap;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    transition: max-width 0.35s ease, opacity 0.2s ease;
}

.hero-projekt-nav-btn:hover .hero-projekt-nav-label {
    max-width: 200px;
    opacity: 1;
}

.hero-projekt-nav-arrow {
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1;
}

/* ── SINGLE SLUZBA ── */
.sluzba-intro {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: clamp(48px, 6vw, 96px);
    margin: 0 0 64px;
}
.sluzba-intro p {
    grid-column: 2;
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 300;
    color: var(--green-dark);
    line-height: 1.7;
}
/* Dvousloupcová varianta — bez prázdného levého sloupce */
.sluzba-intro--two-col {
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 5vw, 80px);
}
.sluzba-intro--two-col p {
    grid-column: auto;
}

.sluzba-text {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.85;
}
.sluzba-text a,
.faq-answer-inner a {
    color: var(--green-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(30, 61, 42, 0.35);
    transition: text-decoration-color 0.2s;
}
.sluzba-text a:hover,
.faq-answer-inner a:hover {
    text-decoration-color: var(--green-dark);
}

/* ── DALŠÍ SLUŽBY ── */
.sluzba-dalsi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sluzba-dalsi-karta {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--green-pale);
    transition: box-shadow 0.25s, transform 0.25s;
}
.sluzba-dalsi-karta:hover {
    box-shadow: 0 8px 32px rgba(30,61,42,0.10);
    transform: translateY(-3px);
}

.sluzba-dalsi-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.sluzba-dalsi-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.sluzba-dalsi-karta:hover .sluzba-dalsi-img img { transform: scale(1.04); }

.sluzba-dalsi-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.sluzba-dalsi-body h3 {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--green-dark);
    margin: 0;
    line-height: 1.35;
}

.sluzba-kroky-intro {
    margin-bottom: 32px;
    color: var(--muted);
    line-height: 1.7;
}

.sluzba-kroky {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: kroky;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sluzba-kroky li {
    counter-increment: kroky;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 16px;
    align-items: start;
}

.sluzba-kroky li::before {
    content: counter(kroky, decimal-leading-zero);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--green);
    padding-top: 5px;
}

.sluzba-krok-title {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Open Sans', sans-serif;
    color: var(--green-dark);
    margin: 0 0 8px;
}

.sluzba-kroky li p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.75;
    margin: 0;
}

/* ── FINANCE KARTY ── */
.finance-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 8px;
    margin-left: -24px;
    width: calc(100% + 24px);
}
.finance-items--has-intro {
    margin-top: 32px;
}
.finance-item {
    background: var(--green-pale);
    border-radius: 5px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.finance-item-nazev {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green);
    margin: 0;
}
.finance-item-cena {
    font-family: 'Poppins', sans-serif;
    font-size: 1.333rem; /* 24px */
    font-weight: 300;
    color: var(--green-dark);
    margin: 0;
    line-height: 1.2;
}
.finance-item-popis {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
    margin-top: 4px;
}
.finance-cta-btn {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    margin-left: -24px;
    width: calc(100% + 24px);
    border-radius: 6px;
    color: var(--green-dark);
    border-color: var(--green-dark);
}
.finance-cta-btn:hover {
    background: var(--green-dark);
    color: white;
    border-color: var(--green-dark);
    transform: none;
}

.sluzba-galerie-outer {
    margin: 0 0 8px;
}

.sluzba-galerie-wrap {
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.sluzba-galerie {
    display: flex;
    transition: transform 0.5s ease;
}

.sluzba-galerie-captions {
    min-height: 1.6em;
    padding: 10px 0 0;
}

.sluzba-galerie-captions .galerie-caption {
    display: none;
}

.sluzba-galerie-captions .galerie-caption.is-active {
    display: block;
}

.sluzba-galerie-slide {
    flex: 0 0 100%;
}

.sluzba-galerie-slide img {
    width: 100%;
    aspect-ratio: 16/7;
    object-fit: cover;
    display: block;
}

.galerie-caption {
    font-size: 0.78rem;
    color: var(--muted);
    text-align: center;
    padding: 10px 16px 0;
    line-height: 1.5;
    font-style: italic;
}

.sluzba-galerie-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
}

.sluzba-galerie-prev,
.sluzba-galerie-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(10,25,15,0.5);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.sluzba-galerie-prev:hover,
.sluzba-galerie-next:hover {
    background: rgba(10,25,15,0.8);
}

.sluzba-realizace-grid {
    grid-template-columns: repeat(2, 1fr) !important;
}

.sluzba-realizace-grid .projekty-grid-info h3 {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
    color: var(--green-dark);
}

/* ── SLUZBA ROW ── */
.sluzba-row {
    display: grid;
    grid-template-columns: 60px 1fr 1.4fr;
    gap: 24px 32px;
    align-items: start;
    padding: 56px 0;
    border-bottom: 1px solid var(--border);
}

.sluzba-row:first-of-type {
    border-top: 1px solid var(--border);
}

.sluzba-row-num {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-style: italic;
    color: var(--lime);
    line-height: 1;
}

.sluzba-row-title h2 {
    font-size: clamp(1.3rem, 1.8vw, 1.7rem);
    font-weight: 300;
    color: var(--black);
    line-height: 1.2;
    margin-bottom: 16px;
}

.sluzba-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.sluzba-pill {
    display: inline-block;
    padding: 5px 14px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green-dark);
    background: rgba(237, 242, 233, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--lime);
    border-radius: 0;
}

.sluzba-row-body p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 24px;
}

.sluzba-row-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sluzba-row-list li {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.sluzba-row-list li:last-child {
    border-bottom: none;
}

/* ── SLUZBY GRID ── */
.sluzby-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.sluzba-tile {
    display: flex;
    flex-direction: column;
    border-radius: 0;
    overflow: hidden;
    background: var(--warm);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sluzba-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.08);
}

.sluzba-tile-img {
    aspect-ratio: 16/9;
    border-radius: 6px;
    overflow: hidden;
}

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

.sluzba-tile:hover .sluzba-tile-img img {
    transform: scale(1.04);
}

.sluzba-tile-body {
    padding: 36px 40px 44px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sluzba-tile-num {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-style: italic;
    color: var(--muted-light);
    margin-bottom: 12px;
}

.sluzba-tile-body h2 {
    font-size: clamp(1.3rem, 1.8vw, 1.7rem);
    font-weight: 300;
    color: var(--black);
    margin-bottom: 14px;
    line-height: 1.2;
}

.sluzba-tile-body p {
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 24px;
    flex: 1;
}

/* ── STACK CARDS ── */
.stack-section {
    padding: 80px 0 0;
    margin: 0 10px;
}

.stack-cards {
    position: relative;
}

.stack-card {
    position: sticky;
    width: 100%;
    height: clamp(660px, 90vh, 980px);
    background: var(--warm);
}

.stack-card-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.stack-card:first-child .stack-card-img { overflow: hidden; }
.stack-card:last-child  .stack-card-img { overflow: hidden; }

.stack-card-inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(40px, 5vw, 72px) var(--px) !important;
}

.stack-card-img {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.stack-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stack-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.15) 40%,
        rgba(0, 0, 0, 0.00) 70%
    );
}

.stack-card-body {
    position: relative;
    z-index: 1;
    max-width: 420px;
    background: rgba(26, 74, 82, 0.62);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 32px 36px;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.stack-card-body.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.stack-card-body h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.67rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 12px;
}
.stack-card-body h3::before {
    background: rgba(255, 255, 255, 0.5);
}
.stack-card-body h4 {
    font-size: clamp(1.05rem, 1.45vw, 1.2rem);
    font-weight: 300;
    color: white;
    line-height: 1.2;
    margin-bottom: 16px;
}
.stack-card-body .btn {
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: none;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255,255,255,0.35);
    transition: color 0.2s, text-decoration-color 0.2s;
}
.stack-card-body .btn:hover {
    color: white;
    text-decoration-color: white;
    transform: none;
}

/* ── FAQ ACCORDION ── */
.faq-list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid var(--green-pale);
}
.faq-item:first-child { border-top: 1px solid var(--green-pale); }

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    cursor: pointer;
    list-style: none;
}
.faq-question h3 {
    font-size: 1rem;
    font-weight: 400;
    color: var(--green-dark);
    margin: 0;
    line-height: 1.4;
}

.faq-toggle {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--green);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}
.faq-item.is-open .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
    margin: 0;
}
.faq-item.is-open .faq-answer {
    grid-template-rows: 1fr;
}
.faq-answer-inner {
    overflow: hidden;
    padding-bottom: 0;
    transition: padding-bottom 0.35s ease;
}
.faq-item.is-open .faq-answer-inner {
    padding-bottom: 20px;
}
.faq-answer-inner p {
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 12px;
}
.faq-answer-inner p:last-child { margin-bottom: 0; }

/* ── PROJEKTY HORIZONTAL SCROLL ── */
.proj-scroll-section {
    padding: 0 0 var(--py);
}

.proj-scroll-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 var(--px) 48px;
}

.proj-scroll-outer {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 var(--px) 16px;
}
.proj-scroll-outer::-webkit-scrollbar { display: none; }

.proj-scroll-track {
    display: flex;
    gap: 20px;
    width: max-content;
}

.proj-card {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: clamp(280px, 32vw, 400px);
    border-radius: 0;
    overflow: hidden;
    background: var(--warm);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}
.proj-card:hover { transform: translateY(-4px); }

.proj-card-img {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--green-dark);
    border-radius: 6px;
    overflow: hidden;
}
.proj-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.proj-card:hover .proj-card-img img { transform: scale(1.04); }

.proj-card-num {
    position: absolute;
    bottom: 16px;
    left: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255,255,255,0.18);
    line-height: 1;
    pointer-events: none;
}

.proj-card-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(6px);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green);
    padding: 5px 12px;
    border-radius: 0;
    font-weight: 500;
}

.proj-card-body {
    padding: 24px 28px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.proj-card-body h3 {
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--black);
    line-height: 1.3;
    margin: 0;
}
.proj-card-meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0;
}

/* ── SLUZBA CARD ── */
.sluzba-card {
    display: block;
    position: relative;
    width: 100%;
    height: clamp(280px, 35vw, 480px);
    border-radius: 0;
    overflow: hidden;
    background: var(--green-dark);
    background-size: cover;
    background-position: center;
    text-decoration: none;
    margin-bottom: 16px;
    transition: transform 0.4s ease;
}

.sluzba-card:hover {
    transform: scale(1.01);
}

.sluzba-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(26, 74, 82, 0.88) 0%,
        rgba(26, 74, 82, 0.55) 50%,
        rgba(26, 74, 82, 0.15) 100%
    );
    transition: background 0.4s ease;
}

.sluzba-card:hover .sluzba-card-overlay {
    background: linear-gradient(
        100deg,
        rgba(26, 74, 82, 0.92) 0%,
        rgba(26, 74, 82, 0.65) 55%,
        rgba(26, 74, 82, 0.25) 100%
    );
}

.sluzba-card-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(32px, 4vw, 56px);
    max-width: 680px;
}

.sluzba-card-num {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-style: italic;
    color: rgba(255,255,255,0.45);
    margin-bottom: 12px;
}

.sluzba-card h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    font-weight: 300;
    color: white;
    line-height: 1.15;
    margin-bottom: 16px;
}

.sluzba-card p {
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 1rem;
}

.sluzba-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 3px;
    transition: color 0.2s, border-color 0.2s;
}

.sluzba-card:hover .sluzba-card-link {
    color: white;
    border-color: white;
}

/* ── SLUZBA QUOTE ── */
.sluzba-quote {
    padding: 56px 0;
    border-bottom: 1px solid var(--border);
}

.sluzba-quote-inner {
    background: var(--green-pale);
    border-radius: 0;
    padding: clamp(32px, 4vw, 56px) clamp(32px, 5vw, 80px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sluzba-quote-inner p {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-style: italic;
    color: var(--green-dark);
    line-height: 1.5;
}

.sluzba-quote-inner span {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green);
}

/* ── SERVICES ── */
.services {
    padding: var(--py) var(--px);
    background: var(--white);
}

.services-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr 1fr;
    gap: 20px;
}

.service-card {
    background: var(--warm);
    padding: 44px 36px 52px;
    border: 2px solid transparent;
    border-radius: 5px;
    box-shadow: 0 2px 12px rgba(26,74,82,0.06);
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
    cursor: default;
    display: flex;
    flex-direction: column;
}
.service-card:hover { background: var(--warm); border-color: var(--lime); box-shadow: 0 8px 32px rgba(26,74,82,0.12); }
.service-card--featured { padding: 56px 40px 64px; }
.service-card--featured h3 { font-size: 1.45rem; }
.service-card-link { margin-top: auto; padding-top: 24px; }

.service-num {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    color: var(--muted-light);
    margin-bottom: 32px;
    font-style: italic;
}

.service-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 22px;
    color: var(--green);
}

.service-card h3 {
    font-size: clamp(1.15rem, 1.2vw, 1.375rem);
    font-weight: 300;
    margin-bottom: 24px;
    line-height: 1.3;
    min-height: 4rem;
}

.service-card p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.75;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green-dark);
    border-bottom: 1px solid var(--lime);
    padding-bottom: 2px;
    transition: opacity 0.2s;
}
.service-card-link:hover { opacity: 0.65; }

/* Zvýraznění odkazu na stránce Služby */
.sluzba-row-body .service-card-link {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
    margin-top: 24px;
    gap: 8px;
    transition: color 0.2s, border-color 0.2s;
}
.sluzba-row-body .service-card-link:hover {
    opacity: 1;
    color: var(--green-dark);
    border-color: var(--green-dark);
}

/* ── PROJECTS ── */
.project-section {
    padding: 0 var(--px) var(--py);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.project-card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    border-radius: 0;
    overflow: hidden;
    background: var(--warm);
    min-height: 540px;
}

.project-img {
    position: relative;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.project-card:hover .project-img img { transform: scale(1.04); }

.project-img-overlay {
    position: absolute;
    top: 24px;
    left: 24px;
}

.project-tag {
    display: inline-block;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green);
    padding: 6px 16px;
    border-radius: 0;
    font-weight: 500;
}

.project-body {
    padding: 56px 52px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-body h3 {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 300;
    margin-bottom: 24px;
    line-height: 1.2;
}

.project-meta {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.meta-label {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted-light);
}

.meta-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--black);
}

.project-body > p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.82;
    flex: 1;
    margin-bottom: 40px;
}

/* ── PROJEKTY FILTER ── */
.projekty-filter-wrap {
    padding: 48px var(--px) 0;
}

.projekty-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.projekty-pill {
    padding: 9px 20px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.projekty-pill:hover {
    border-color: var(--green);
    color: var(--green);
}

.projekty-pill.active {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: #fff;
}

/* ── PROJEKTY GRID ── */
.projekty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 48px;
    row-gap: 56px;
}

.projekty-grid-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.projekty-grid-img {
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--warm);
}

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

.projekty-grid-card:hover .projekty-grid-img img {
    transform: scale(1.04);
}

.projekty-grid-info {
    padding: 16px 4px 0;
}

.projekty-grid-info h2 {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    font-weight: 300;
    line-height: 1.3;
    margin: 0 0 4px;
    color: var(--green-dark);
}

.projekty-grid-info p {
    font-size: 0.82rem;
    color: var(--muted);
    margin: 0;
}

@media (max-width: 900px) {
    .projekty-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .projekty-grid { grid-template-columns: 1fr; }
}

/* ── SINGLE PROJEKT ── */
.projekt-section {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: clamp(48px, 6vw, 96px);
    align-items: start;
    padding: 64px 0;
    border-top: 1px solid var(--border);
}

.projekt-section-label {
    padding-top: 4px;
    position: sticky;
    top: 120px;
}

.projekt-section-label p,
.projekt-section-label h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.15;
    color: var(--green-dark);
    margin: 0;
}

.projekt-detail-img {
    margin-top: 24px;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 3/4;
}

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

.projekt-popis {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.85;
    margin-bottom: 40px;
}

.projekt-meta-table {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
}

.projekt-meta-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.projekt-meta-label {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-light);
    padding-top: 2px;
}

.projekt-meta-value {
    font-size: 0.9rem;
    color: var(--black);
    line-height: 1.6;
}

.spoluprace-dl {
    margin: 0;
    padding: 0;
}
.spoluprace-dl dt {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-light);
    margin-top: 10px;
}
.spoluprace-dl dt:first-child {
    margin-top: 0;
}
.spoluprace-dl dd {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--black);
}

.projekt-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.projekt-gallery-grid a {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    cursor: zoom-in;
}

.projekt-gallery-grid img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.projekt-gallery-grid a:hover img {
    transform: scale(1.03);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.open {
    display: flex;
}

.lightbox-img-wrap {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-wrap img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    padding: 12px;
    transition: color 0.2s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: #fff;
}

.lightbox-close { top: 24px; right: 24px; font-size: 2rem; }
.lightbox-prev  { left: 24px; top: 50%; transform: translateY(-50%); font-size: 2rem; }
.lightbox-next  { right: 24px; top: 50%; transform: translateY(-50%); font-size: 2rem; }

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    text-align: center;
    max-width: 80vw;
    margin: 0;
    display: none;
}

@media (max-width: 768px) {
    .projekt-section {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .projekt-gallery-grid {
        grid-template-columns: 1fr;
    }
    .finance-items {
        margin-left: 0;
        width: 100%;
        grid-template-columns: 1fr;
    }
    .finance-cta-btn {
        margin-left: 0;
        width: 100%;
    }
}

/* ── CAROUSEL ── */
.carousel-wrap { position: relative; overflow: hidden; }

.carousel-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-track .project-card { min-width: 100%; }

.carousel-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.carousel-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--black);
}
.carousel-btn:hover { border-color: var(--black); background: var(--black); color: white; }

.carousel-dots { display: flex; gap: 8px; align-items: center; }

.carousel-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.25s;
}
.carousel-dot.active { background: var(--black); width: 20px; border-radius: 0; }

.carousel-counter { margin-left: auto; font-size: 0.78rem; color: var(--muted-light); }

/* ── ABOUT ── */
.about-outer {
    padding: 0 10px 40px;
}

.about {
    max-width: var(--max);
    margin: 0 auto;
    padding: var(--py) var(--px);
    background: var(--green-dark);
    color: white;
    border-radius: 8px;
}

.about-body {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(48px, 7vw, 100px);
    align-items: center;
}

.about-img-wrap {
    position: relative;
}

.about-img-wrap img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 8px;
}

.about-img-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--lime);
    color: var(--green-dark);
    padding: 24px 28px;
    border-radius: 6px;
    font-size: 0.78rem;
    line-height: 1.5;
}

.about-img-badge strong {
    display: block;
    font-size: 2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 4px;
}

.about .section-eyebrow { color: rgba(255,255,255,0.5); font-size: 0.72rem; }
.about .section-eyebrow::before { background: rgba(255,255,255,0.3); }
.about .section-title { color: white; margin-bottom: 32px; }

.about p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 18px;
    font-weight: 400;
}

/* ── REFERENCES ── */
.references {
    padding: var(--py) var(--px);
    background: var(--white);
}

.ref-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 64px;
}

.ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.ref-card {
    padding: 44px 40px;
    border-radius: 5px;
    background: var(--warm);
    transition: transform 0.25s, box-shadow 0.25s;
}
.ref-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.07);
}

.ref-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 24px;
    color: var(--lime);
    font-size: 0.9rem;
}

.ref-card p {
    font-size: 1rem;
    color: var(--muted);
    font-style: italic;
    line-height: 1.85;
    margin-bottom: 28px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

.ref-author {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--black);
}

.ref-place {
    font-size: 0.74rem;
    color: var(--muted-light);
    margin-top: 3px;
}

/* ── SLUZBY NAV PILLS ── */
.sluzby-nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 32px var(--px) 0;
}

.sluzby-nav-pill {
    padding: 9px 20px;
    border-radius: 0;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.sluzby-nav-pill:hover {
    border-color: var(--green);
    color: var(--green);
}

/* ── KONTAKT ── */
.kontakt-section {
    padding: var(--py) var(--px);
}

.kontakt-inner {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(48px, 8vw, 120px);
    align-items: start;
}

.kontakt-name {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.6rem, 2.2vw, 2.2rem);
    font-weight: 300;
    font-style: italic;
    margin: 12px 0 40px;
    color: var(--green-dark);
}

.kontakt-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.kontakt-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0;
}

.kontakt-label {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green);
    font-weight: 500;
}

.kontakt-list a,
.kontakt-list span {
    color: var(--black);
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.5;
}
.kontakt-list a:hover { color: var(--green-dark); }

.kontakt-form .section-eyebrow {
    margin-bottom: 24px;
}

.kontakt-form-nadpis {
    display: block !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: clamp(1.4rem, 1.8vw, 1.8rem) !important;
    font-weight: 300 !important;
    color: var(--green-dark) !important;
    margin: 40px 0 12px !important;
}

.kontakt-form-pokyn {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 28px;
}

/* ── FORMINATOR OVERRIDE ── */
.forminator-ui .forminator-input,
.forminator-ui .forminator-textarea,
.forminator-ui select {
    border: none !important;
    border-bottom: 1.5px solid var(--border) !important;
    border-radius: 0;
    padding: 12px 0 !important;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 0.95rem !important;
    color: var(--black) !important;
    background: transparent !important;
    box-shadow: none !important;
    transition: border-color 0.25s !important;
}
.forminator-ui .forminator-input:hover,
.forminator-ui .forminator-textarea:hover,
.forminator-ui .forminator-input:focus,
.forminator-ui .forminator-textarea:focus {
    border-bottom-color: var(--green) !important;
    outline: none !important;
    box-shadow: none !important;
}
.forminator-ui .forminator-label,
.forminator-ui label {
    font-family: 'Open Sans', sans-serif !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: var(--muted-light) !important;
    font-weight: 500 !important;
    margin-bottom: 8px !important;
}
.forminator-ui .forminator-btn-submit,
.forminator-ui button[type="submit"] {
    background: var(--green-dark) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0;
    padding: 16px 40px !important;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.06em !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}
.forminator-ui .forminator-btn-submit:hover,
.forminator-ui button[type="submit"]:hover {
    background: var(--green) !important;
}

/* ── CTA ── */
.cta-outer {
    padding: 0 var(--px) var(--py);
}

.cta-section {
    max-width: var(--max);
    margin: 0 auto;
    background: var(--green-dark);
    border-radius: 8px;
    padding: clamp(60px, 7vw, 110px) clamp(40px, 6vw, 100px);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: clamp(32px, 5vw, 80px);
}

.cta-section h2,
.cta-section .cta-heading {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    max-width: 13em;
    color: #fff;
}

.cta-section h2 em,
.cta-section .cta-heading em {
    font-style: italic;
    color: var(--lime);
}

.cta-section p {
    font-size: 1rem;
    color: rgba(255,255,255,0.65);
    max-width: 480px;
    line-height: 1.8;
    font-weight: 400;
}

.cta-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

/* ── FOOTER ── */
footer {
    background: var(--green-dark);
    color: rgba(255,255,255,0.75);
    border-radius: 0;
    padding: clamp(40px, 5vw, 72px) var(--px);
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: var(--max);
    margin: 0 auto;
}

.footer-row1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.footer-row2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
    font-size: 0.8rem;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-legal-sep { color: rgba(255,255,255,0.25); }

.footer-credit { color: rgba(255,255,255,0.35); }

.footer-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.footer-logo-img {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.footer-logo .nav-logo-text {
    color: rgba(255,255,255,0.9);
}
.footer-logo .nav-logo-text span {
    color: var(--lime);
}

.footer-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

footer a { color: rgba(255,255,255,0.75); transition: color 0.2s; }
footer a:hover { color: var(--lime); }
.footer-row1 { border-bottom-color: rgba(255,255,255,0.12); }

/* ── AKTUALITY ── */
.aktuality-outer {
    padding: var(--py) var(--px) clamp(32px, 4vw, 56px);
}

.aktuality-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.aktualita-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.aktualita-card:hover {
    box-shadow: 0 8px 32px rgba(30,61,42,0.10);
    transform: translateY(-3px);
}

.aktualita-card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.aktualita-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.aktualita-card:hover .aktualita-card-img img {
    transform: scale(1.04);
}

.aktualita-card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.aktualita-date {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-light);
    margin-bottom: 10px;
}

.aktualita-card-body h2 {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    font-weight: 300;
    color: var(--black);
    margin-bottom: 12px;
    line-height: 1.3;
}

.aktualita-excerpt {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 20px;
}

.aktualita-card-body .service-card-link {
    margin-top: auto;
}

.aktuality-pagination {
    margin-top: 64px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.aktuality-pagination .page-numbers {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    transition: all 0.2s;
}

.aktuality-pagination .page-numbers.current,
.aktuality-pagination .page-numbers:hover {
    background: var(--green-dark);
    color: white;
    border-color: var(--green-dark);
}

.aktuality-empty {
    color: var(--muted);
    padding: 60px 0;
}

/* Single aktualita */
.aktualita-single-outer {
    padding: var(--py) var(--px);
}

.aktualita-single-meta {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-light);
    margin-bottom: 40px;
}

.aktualita-single-img {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 56px;
    aspect-ratio: 16/7;
}

.aktualita-single-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aktualita-single-content {
    max-width: 780px;
}

.aktualita-single-content p {
    color: var(--muted);
    line-height: 1.85;
    margin-bottom: 20px;
}

.aktualita-single-content a {
    color: var(--green);
    text-decoration: underline;
    text-decoration-color: rgba(74,122,88,0.4);
    transition: text-decoration-color 0.2s;
}
.aktualita-single-content a:hover {
    text-decoration-color: var(--green-dark);
}

.aktualita-single-content h2,
.aktualita-single-content h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    margin: 40px 0 16px;
    color: var(--black);
}

/* ── BLOG SINGLE ── */
.blog-post-header {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}
.blog-post-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 300;
    color: var(--black);
    line-height: 1.2;
    margin: 12px 0 20px;
    max-width: 18em;
}
.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.blog-post-cat {
    background: var(--lime);
    color: var(--green-dark);
    padding: 3px 10px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: opacity 0.2s;
}
.blog-post-cat:hover { opacity: 0.75; }
.blog-post-outer {
    margin-top: 88px;
    padding: 0 var(--px) var(--py);
}
.blog-post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 64px;
    align-items: start;
}
.blog-post-content p {
    color: var(--muted);
    line-height: 1.85;
    margin-bottom: 20px;
}
.blog-post-content a {
    color: var(--green);
    text-decoration: underline;
    text-decoration-color: rgba(74,122,88,0.4);
}
.blog-post-content a:hover { text-decoration-color: var(--green-dark); }
.blog-post-content img,
.aktualita-single-content img { border-radius: 6px; }

.blog-post-content h2,
.blog-post-content h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    margin: 40px 0 16px;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 136px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.sidebar-heading {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
    font-weight: 400;
}
.sidebar-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.sidebar-related-list li {
    border-bottom: 1px solid var(--border);
}
.sidebar-related-list li:first-child {
    border-top: 1px solid var(--border);
}
.sidebar-related-list a {
    display: block;
    padding: 12px 0;
    font-size: 0.9rem;
    color: var(--black);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s;
}
.sidebar-related-list a:hover { color: var(--green-dark); }
.sidebar-related-date {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 4px;
}

/* Sidebar CTA Petra */
.sidebar-petra {
    background: var(--green-dark);
    padding: 28px 24px;
    color: white;
    border-radius: 8px;
}
.sidebar-petra-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    display: block;
    filter: grayscale(20%);
}
.sidebar-petra-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 8px;
    color: white;
}
.sidebar-petra-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.75);
    margin-bottom: 0;
}
.sidebar-petra .btn-primary-cta {
    display: block;
    text-align: center;
    width: 100%;
}

@media (max-width: 900px) {
    .blog-post-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; }
}

/* ── O MNĚ PAGE ── */
.omne-sections-outer {
    padding: var(--py) var(--px);
}

/* Intro sekce — foto + bio */
.omne-intro-body {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: clamp(32px, 4vw, 56px);
    align-items: start;
}

.omne-photo {
    position: relative;
    flex-shrink: 0;
}

.omne-photo img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.omne-bio p {
    color: var(--muted);
    line-height: 1.85;
    margin-bottom: 18px;
}

.omne-bio a,
.omne-bio strong { color: var(--green-dark); }

.omne-cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    margin-top: 28px;
}

.omne-section {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    align-items: start;
    padding: 56px 0;
}

.omne-section-label {
    position: sticky;
    top: 100px;
    padding-top: 4px;
}

.omne-section-label h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    font-style: italic;
    font-weight: 400;
    color: var(--green-dark);
    margin: 0;
}

.omne-section-body {
    color: var(--muted);
    line-height: 1.85;
}

.omne-section-body p {
    margin-bottom: 16px;
}

.omne-section-body p:last-child {
    margin-bottom: 0;
}

.omne-section-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.omne-section-body ul li {
    padding: 22px 0 22px 20px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.omne-section-body ul li:first-child {
    border-top: 1px solid var(--border);
}

.omne-section-body ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--green);
    font-size: 0.85em;
}

.omne-section-body a:not(.btn) {
    color: var(--green-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.omne-section-body a:hover {
    color: var(--green-dark);
}

.omne-section-body strong {
    color: var(--black);
    font-weight: 500;
}

@media (max-width: 768px) {
    .omne-intro-body {
        grid-template-columns: 1fr;
    }

    .omne-photo {
        max-width: 280px;
    }

    .omne-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .omne-section-label {
        position: static;
    }
}

/* ══════════════════════════════════════
   NOTEBOOK (max 1280px)
══════════════════════════════════════ */
@media (max-width: 1280px) {

    /* Stack karty — rozšíření o ~20px */
    .stack-section { margin: 0; }

    /* About — foto trochu menší */
    .about-body { grid-template-columns: 0.75fr 1.25fr; }
}

/* ══════════════════════════════════════
   RESPONSIVE — TABLET (max 1024px)
══════════════════════════════════════ */
@media (max-width: 1024px) {

    /* Nav */
    #main-nav {
        width: calc(100% - 40px);
        padding: 12px 20px;
    }
    .nav-logo-img { height: 44px; }
    .nav-logo-text { display: none; }
    .nav-right { gap: 10px; align-items: center; flex-wrap: nowrap; }
    .nav-links { gap: 10px; align-items: center; flex-wrap: nowrap; }
    .nav-links a { white-space: nowrap; font-size: 0.72rem; }
    .nav-cta { padding: 8px 12px; white-space: nowrap; font-size: 0.72rem; }
    .nav-lang-btn { padding: 4px 5px; font-size: 0.68rem; }

    /* Hero outer — posun dolů pod menu */
    .hero-outer,
    .page-hero-outer { margin-top: 84px; }

    /* O mně — zúžit sloupce */
    .omne-intro-body { grid-template-columns: 200px 1fr; }
    .omne-section { grid-template-columns: 180px 1fr; }

    /* Aktuality — 2 sloupce */
    .aktuality-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }

    /* Hero — strips přechází do horizontální lišty pod contentem */
    .hero {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
        height: clamp(420px, 62vh, 620px);
    }
    .page-hero { height: clamp(420px, 62vh, 620px); }
    .hero-strips {
        flex-direction: row;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.18);
    }
    .hero-strip {
        padding: 16px 18px;
        border-top: none;
        border-left: 1px solid rgba(30,61,42,0.10);
        justify-content: flex-end;
    }
    .hero-strip:first-child { border-left: none; }
    .hero-strip:hover { flex: 1.5; }
    .hero-strip-name { font-size: 0.75rem; }

    /* Služby grid — 2 sloupce */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Reference — 2 sloupce, 3. karta schovaná */
    .ref-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .ref-card:nth-child(3) { display: none; }

    /* Projekt detail + single-sluzba */
    .projekt-section {
        grid-template-columns: 220px 1fr;
        padding: 48px 0;
    }
    .sluzba-intro {
        grid-template-columns: 220px 1fr;
    }
    .sluzba-intro--two-col {
        grid-template-columns: 1fr 1fr;
    }

    /* Stránka Služby — tighter grid */
    .sluzba-row {
        grid-template-columns: 48px 1fr 1.4fr;
        gap: 20px 24px;
        padding: 40px 0;
    }
    .sluzba-row-num { font-size: 1.4rem; }
}

/* ══════════════════════════════════════
   TABLET — 820px
══════════════════════════════════════ */
@media (max-width: 820px) {

    /* Hero — dále snížit výšku na iPadu Air */
    .hero,
    .page-hero { height: clamp(380px, 58vh, 520px); }
    .hero-strip-name { font-size: 0.68rem; }
    .hero-strip { padding: 14px 12px; }

    /* Stack karty — snížit o ~30px */
    .stack-card { height: clamp(360px, 55vh, 540px); }

    /* About — foto zarovnat nahoře s nadpisem */
    .about-body { align-items: flex-start; }

    /* Reference — 2 sloupce */
    .ref-grid { grid-template-columns: repeat(2, 1fr); }

    /* Footer row1 */
    .footer-row1 {
        flex-wrap: wrap;
        gap: 20px;
    }
    .footer-contact { text-align: left; }
    .footer-row2 { flex-wrap: wrap; gap: 12px; }

    /* Stránka Služby — 2 sloupce (číslo schované) */
    .sluzba-row {
        grid-template-columns: 1fr 1.2fr;
        gap: 24px;
        padding: 32px 0;
    }
    .sluzba-row-num { display: none; }

    /* single-sluzba: zúžit label sloupec */
    .projekt-section {
        grid-template-columns: 180px 1fr;
        padding: 40px 0;
    }
    .sluzba-intro {
        grid-template-columns: 180px 1fr;
    }
    .sluzba-intro--two-col {
        grid-template-columns: 1fr 1fr;
    }
    .sluzba-realizace-grid { grid-template-columns: repeat(2, 1fr) !important; }

    /* O mně — foto + bio pod sebou */
    .omne-intro-body { grid-template-columns: 1fr; }
    .omne-photo { max-width: 220px; }
    .omne-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .omne-section-label { position: static; }
}

/* ══════════════════════════════════════
   RESPONSIVE — MOBIL (max 768px)
══════════════════════════════════════ */
@media (max-width: 768px) {

    /* Typografie */
    html { font-size: 16px; }

    /* Další služby */
    .sluzba-dalsi-grid { grid-template-columns: 1fr; }

    /* Nav */
    #main-nav {
        width: 100%;
        padding: 10px 16px;
        top: 0;
    }
    .nav-logo-img,
    .footer-logo-img { height: 44px; }

    .mobile-menu { width: 100vw; border-radius: 0; }

    /* Hero — 1 sloupec, strips schovat, nižší výška, světlejší overlay */
    .hero-outer,
    .page-hero-outer {
        margin: 72px 6px 0;
        border-radius: 6px;
    }
    .hero {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 60vh;
    }
    .hero-strips { display: none; }
    .hero-bg::after,
    .page-hero-bg::after {
        background: linear-gradient(
            100deg,
            rgba(26, 74, 82, 0.88) 0%,
            rgba(26, 74, 82, 0.60) 55%,
            rgba(26, 74, 82, 0.10) 100%
        );
    }
    .hero-claim { font-size: clamp(2.2rem, 8vw, 3rem); }
    .hero-content { justify-content: flex-start; padding-top: 32px; padding-bottom: 64px; }
    .hero-btns { flex-wrap: wrap; }

    /* Page hero */
    .page-hero { min-height: clamp(260px, 45vh, 420px); height: auto; }
    .page-hero-content { justify-content: flex-start; padding-top: 32px; padding-bottom: 64px; }
    .page-hero-title { font-size: clamp(1.8rem, 6vw, 2.6rem); }
    .hero-projekt-nav { display: none; }

    /* Stack karty */
    .stack-section { margin: 0 6px; padding-top: 48px; }
    .stack-intro {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px;
    }
    .stack-card { height: clamp(320px, 50vw, 440px); }

    /* Služby grid — 1 sloupec */
    .services-grid { grid-template-columns: 1fr; }
    .services-top { flex-direction: column; align-items: flex-start; gap: 16px; }

    /* Blog single */
    .blog-post-outer { margin-top: 72px; }
    .blog-post-header { padding: 32px 0 28px; margin-bottom: 32px; }

    /* Aktuality — 1 sloupec */
    .aktuality-grid { grid-template-columns: 1fr; gap: 24px; }

    /* Stránka Služby — 1 sloupec */
    .sluzba-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 28px 0;
    }
    .sluzba-row-num { display: block; font-size: 0.85rem; margin-bottom: 4px; }
    .sluzba-row-title h2 { font-size: 1.2rem; margin-bottom: 12px; }

    /* single-sluzba — 1 sloupec, sticky label vypnout */
    .projekt-section {
        grid-template-columns: 1fr;
        padding: 52px 0;
        gap: 20px;
    }
    .projekt-section-label { position: static; }
    .sluzba-intro,
    .sluzba-intro--two-col {
        grid-template-columns: 1fr;
    }
    .sluzba-intro p { grid-column: 1; }
    .sluzba-realizace-grid { grid-template-columns: 1fr !important; }

    /* About sekce */
    .about {
        border-radius: 8px;
        padding: var(--py) clamp(20px, 6vw, 48px);
    }
    .about-body {
        grid-template-columns: 1fr;
    }
    .about-img-wrap {
        order: 2;
        max-width: 100%;
    }

    /* Reference — 1 sloupec, všechny 3 karty */
    .ref-grid { grid-template-columns: 1fr !important; }
    .ref-card:nth-child(3) { display: block !important; }
    .ref-top { flex-direction: column; align-items: flex-start; gap: 16px; }

    /* Footer */
    .footer-row1 {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .footer-contact { text-align: left; }
    .footer-row2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* CTA banner */
    .cta-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding: clamp(40px, 8vw, 72px) clamp(24px, 6vw, 56px);
        border-radius: 8px;
    }
    .cta-section p { max-width: 100%; }
    .cta-btns { flex-direction: row; flex-wrap: wrap; justify-content: center; }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    .footer-links {
        flex-wrap: wrap;
        gap: 16px;
    }

    /* Kontakt */
    .kontakt-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Sluzby grid (výpis) */
    .sluzby-grid { grid-template-columns: 1fr; }

    /* O mně */
    .omne-sections-outer { padding: var(--py) clamp(20px, 5vw, 40px); }
}

/* ══════════════════════════════════════
   RESPONSIVE — MALÝ MOBIL (max 480px)
══════════════════════════════════════ */
@media (max-width: 480px) {

    #main-nav {
        width: 100%;
        padding: 8px 12px;
    }

    .hero-outer,
    .page-hero-outer { margin: 68px 4px 0; border-radius: 4px; }

    .section-title { font-size: clamp(1.8rem, 7vw, 2.4rem); }

    .ref-card { padding: 28px 24px; }
    .service-card { padding: 28px 24px 36px; }

    .cta-outer { padding: 0 8px var(--py); }
    .cta-section { border-radius: 8px; }
}

/* ── HP PROJEKTY GRID ── */
.hp-projekty {
    padding: calc(var(--py) / 2) var(--px) var(--py);
}

.hp-projekty-intro {
    padding-bottom: 64px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.hp-projekty-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
}


.hp-proj-card {
    position: relative;
    overflow: hidden;
    display: block;
    aspect-ratio: 1/1;
    text-decoration: none;
    border-radius: 5px;
}

/* Sudé karty — foto viditelná, text rovnou čitelný přes lehký overlay */
.hp-proj-card--inverted .hp-proj-overlay {
    background: rgba(26, 74, 82, 0.72);
}
.hp-proj-card--inverted .hp-proj-title {
    color: white;
    transform: translateY(0);
    border-color: rgba(255,255,255,0.25);
}
.hp-proj-card--inverted .hp-proj-typ {
    color: rgba(255,255,255,0.7);
}
.hp-proj-card--inverted:hover .hp-proj-overlay {
    background: rgba(26, 74, 82, 0) !important;
}
.hp-proj-card--inverted:hover .hp-proj-title {
    color: rgba(255,255,255,0) !important;
}
.hp-proj-card--inverted:hover .hp-proj-typ {
    color: rgba(255,255,255,0) !important;
}
.hp-proj-card--inverted:hover .hp-proj-img img {
    transform: scale(1.06);
}

.hp-proj-img {
    width: 100%;
    height: 100%;
}

.hp-proj-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hp-proj-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 74, 82, 0);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(20px, 3vw, 40px);
    transition: background 0.4s ease;
}

.hp-proj-typ {
    display: block;
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: transparent;
    margin-top: 6px;
    transition: color 0.35s ease;
}

.hp-proj-title {
    font-size: clamp(1.1rem, 1.6vw, 1.6rem);
    font-weight: 300;
    color: transparent;
    line-height: 1.3;
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transform: translateY(10px);
    transition: color 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}

.hp-proj-card:hover .hp-proj-overlay {
    background: rgba(26, 74, 82, 0.72);
}

.hp-proj-card:hover .hp-proj-typ {
    color: rgba(255,255,255,0.6);
}

.hp-proj-card:hover .hp-proj-title {
    color: white;
    border-color: rgba(255,255,255,0.25);
    transform: translateY(0);
}

.hp-proj-card:hover .hp-proj-img img {
    transform: scale(1.06);
}

/* ── HP PORTFOLIO GRID — tablet 2 sloupce, šachovnice ── */
/* PHP vzor: N I N I  I N I N → chceme: N I  I N  N I  I N */
@media (max-width: 1024px) {
    .hp-projekty-grid { grid-template-columns: repeat(2, 1fr); }

    /* Karty 3 a 6 (PHP normální) → zobrazit jako inverted */
    .hp-projekty-grid .hp-proj-card:nth-child(3) .hp-proj-overlay,
    .hp-projekty-grid .hp-proj-card:nth-child(6) .hp-proj-overlay { background: rgba(26,74,82,0.72); }
    .hp-projekty-grid .hp-proj-card:nth-child(3) .hp-proj-title,
    .hp-projekty-grid .hp-proj-card:nth-child(6) .hp-proj-title { color: white; transform: translateY(0); border-color: rgba(255,255,255,0.25); }
    .hp-projekty-grid .hp-proj-card:nth-child(3) .hp-proj-typ,
    .hp-projekty-grid .hp-proj-card:nth-child(6) .hp-proj-typ { color: rgba(255,255,255,0.7); }

    /* Karty 4 a 5 (PHP inverted) → zobrazit jako normální */
    .hp-projekty-grid .hp-proj-card--inverted:nth-child(4) .hp-proj-overlay,
    .hp-projekty-grid .hp-proj-card--inverted:nth-child(5) .hp-proj-overlay { background: rgba(26,74,82,0) !important; }
    .hp-projekty-grid .hp-proj-card--inverted:nth-child(4) .hp-proj-title,
    .hp-projekty-grid .hp-proj-card--inverted:nth-child(5) .hp-proj-title { color: transparent !important; transform: translateY(10px) !important; border-color: rgba(255,255,255,0) !important; }
    .hp-projekty-grid .hp-proj-card--inverted:nth-child(4) .hp-proj-typ,
    .hp-projekty-grid .hp-proj-card--inverted:nth-child(5) .hp-proj-typ { color: transparent !important; }
}

/* ── HP PORTFOLIO GRID — mobil 1 sloupec, čisté střídání N I N I N I N I ── */
@media (max-width: 768px) {
    .hp-projekty-grid { grid-template-columns: 1fr; }

    /* Odvolat tablet přepisy karet 3 a 4 */
    .hp-projekty-grid .hp-proj-card:nth-child(3) .hp-proj-overlay { background: rgba(26,74,82,0) !important; }
    .hp-projekty-grid .hp-proj-card:nth-child(3) .hp-proj-title { color: transparent !important; transform: translateY(10px) !important; border-color: rgba(255,255,255,0) !important; }
    .hp-projekty-grid .hp-proj-card:nth-child(3) .hp-proj-typ { color: transparent !important; }
    .hp-projekty-grid .hp-proj-card--inverted:nth-child(4) .hp-proj-overlay { background: rgba(26,74,82,0.72) !important; }
    .hp-projekty-grid .hp-proj-card--inverted:nth-child(4) .hp-proj-title { color: white !important; transform: translateY(0) !important; border-color: rgba(255,255,255,0.25) !important; }
    .hp-projekty-grid .hp-proj-card--inverted:nth-child(4) .hp-proj-typ { color: rgba(255,255,255,0.7) !important; }

    /* Karty 5 a 7 (PHP inverted) → normální */
    .hp-projekty-grid .hp-proj-card--inverted:nth-child(5) .hp-proj-overlay,
    .hp-projekty-grid .hp-proj-card--inverted:nth-child(7) .hp-proj-overlay { background: rgba(26,74,82,0) !important; }
    .hp-projekty-grid .hp-proj-card--inverted:nth-child(5) .hp-proj-title,
    .hp-projekty-grid .hp-proj-card--inverted:nth-child(7) .hp-proj-title { color: transparent !important; transform: translateY(10px) !important; border-color: rgba(255,255,255,0) !important; }
    .hp-projekty-grid .hp-proj-card--inverted:nth-child(5) .hp-proj-typ,
    .hp-projekty-grid .hp-proj-card--inverted:nth-child(7) .hp-proj-typ { color: transparent !important; }

    /* Karty 6 a 8 (PHP normální) → inverted */
    .hp-projekty-grid .hp-proj-card:nth-child(6) .hp-proj-overlay,
    .hp-projekty-grid .hp-proj-card:nth-child(8) .hp-proj-overlay { background: rgba(26,74,82,0.72) !important; }
    .hp-projekty-grid .hp-proj-card:nth-child(6) .hp-proj-title,
    .hp-projekty-grid .hp-proj-card:nth-child(8) .hp-proj-title { color: white !important; transform: translateY(0) !important; border-color: rgba(255,255,255,0.25) !important; }
    .hp-projekty-grid .hp-proj-card:nth-child(6) .hp-proj-typ,
    .hp-projekty-grid .hp-proj-card:nth-child(8) .hp-proj-typ { color: rgba(255,255,255,0.7) !important; }
}

/* ── BLOG FILTR RUBRIK ── */
.blog-filtr {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 48px;
}

.blog-filtr-item {
    display: inline-block;
    padding: 8px 20px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--green-dark);
    border: 1px solid rgba(30,61,42,0.25);
    border-radius: 6px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.blog-filtr-item:hover {
    background: var(--green-dark);
    color: white;
    border-color: var(--green-dark);
}

.blog-filtr-item.is-active {
    background: var(--green-dark);
    color: white;
    border-color: var(--green-dark);
}

/* ── SEARCH BAR ── */
.nav-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--green-dark);
    display: flex;
    align-items: center;
    padding: 4px;
    transition: opacity 0.2s;
}
.nav-search-toggle:hover { opacity: 0.65; }

.nav-search-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--green-dark);
    z-index: 101;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    padding: 0 var(--px);
}
.nav-search-bar.is-open {
    transform: translateY(0);
}

.nav-search-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 72px;
}

.nav-search-inner form {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-search-inner input[type="search"] {
    flex: 1;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    color: white;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    padding: 8px 0;
    outline: none;
}
.nav-search-inner input[type="search"]::placeholder { color: rgba(255,255,255,0.6); }
.nav-search-inner input[type="search"]::-webkit-search-cancel-button { display: none; }

.nav-search-inner form button[type="submit"] {
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.nav-search-inner form button[type="submit"]:hover { opacity: 1; }

.nav-search-close {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    padding: 4px 8px;
    transition: color 0.2s;
}
.nav-search-close:hover { color: white; }

/* ── 404 SEARCH FORM ── */
.search-form-404 {
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
}

.search-form-404 input[type="search"] {
    flex: 1;
    padding: 16px 20px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    border: none;
    outline: none;
    background: var(--white);
    color: var(--black);
    -webkit-appearance: none;
}

.search-form-404 input[type="search"]::placeholder {
    color: var(--muted-light);
}

.search-form-404 input[type="search"]::-webkit-search-cancel-button {
    display: none;
}

.search-form-404 button[type="submit"] {
    padding: 16px 32px;
    background: var(--green-dark);
    color: var(--white);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.search-form-404 button[type="submit"]:hover {
    background: var(--green);
}

@media (max-width: 480px) {
    .search-form-404 { flex-direction: column; }
    .search-form-404 button[type="submit"] { width: 100%; }
}
