/* Design System & Variables */
:root {
    --primary: #4A6FA5;
    --primary-light: #A2BBDE;
    --primary-mid: #315993;
    --primary-dark: #1C427B;
    --accent: #E6AD22;
    --accent-light: #FFD97B;
    --accent-dark: #B07D00;
    /* tmavá zlatá z loga */
    --text: #333333;
    --text-muted: #666666;
    --bg: #FFFFFF;
    --bg-alt: #F8F9FA;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --container-width: 85%;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
    overflow-x: hidden;
}

@media (max-width: 992px) {
    html {
        scroll-padding-top: 80px;
    }
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.9rem, 8vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    font-size: 1rem;
    /* 16px */
    line-height: 1.7;
    max-width: 70ch;
    /* Limit text width for readability */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Layout */
.container {
    width: var(--container-width);
    max-width: 1440px;
    margin: 0 auto;
}

section {
    padding: 100px 0;
}

.usp {
    padding-top: 130px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

nav.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 1.05rem;
    font-weight: 500;
    position: relative;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Po scrollu – tmavé texty na bílém pozadí */
nav.scrolled .nav-links a {
    color: var(--text);
    text-shadow: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to top right, var(--accent-dark) 0%, var(--accent-light) 100%);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* CTA tlačítko v navigaci – "Kontakt" */
.nav-links .nav-cta {
    background: linear-gradient(135deg, var(--primary-mid) 0%, var(--primary) 100%);
    color: white !important;
    text-shadow: none !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links .nav-cta:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-mid) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 111, 165, 0.4);
}

/* Podtržení skryjeme – tlačítko ho nepotřebuje */
.nav-links .nav-cta::after {
    display: none !important;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section – full-width fotka s overlay */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Fotka jako absolutní pozadí */
.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    z-index: 0;
}

/* Gradient overlay – tmavý vlevo (kontrast textu), prosvětlený vpravo (fotka lidí) */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(15, 25, 50, 0.80) 0%,
            /* tmavé vlevo – bílý text čitelný */
            rgba(15, 25, 50, 0.45) 45%,
            /* přechod */
            rgba(15, 25, 50, 0.08) 70%,
            /* světlé – fotka viditelná */
            rgba(15, 25, 50, 0.00) 100%
            /* zcela průhledné vpravo */
        );
    z-index: 1;
}

/* Obsah přes overlay */
.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    padding-top: 120px;
    padding-bottom: 100px;
    max-width: 600px;
    /* text vlevo, max ~40% šířky */
}

.hero-content h1 {
    color: #ffffff;
    margin-bottom: 24px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.90);
    margin-bottom: 40px;
    max-width: 60ch;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-cta .btn {
    padding: 20px 42px;
    font-size: 1.1rem;
}

.hero-cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--primary);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Hero text reveal animace */
@keyframes hero-reveal {
    from {
        opacity: 0;
        transform: translateY(36px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    animation: hero-reveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.15s both;
}

.hero-content p {
    animation: hero-reveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.hero-content .hero-cta {
    animation: hero-reveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.65s both;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 2.2rem;
    text-decoration: none;
    z-index: 2;
    animation: hero-bounce 2s ease-in-out infinite;
    transition: color 0.3s ease;
}

.hero-scroll:hover {
    color: rgba(255, 255, 255, 1);
}

@keyframes hero-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(10px); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    line-height: 1;
    font-weight: 600;
    cursor: pointer;
    border: none;
    -webkit-appearance: none;
    appearance: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(28, 66, 123, 0.35);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #142f5a 0%, var(--primary-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(28, 66, 123, 0.45);
}

/* Outline tlačítko – používá se v hero sekci */
.btn-outline {
    background: transparent;
    color: white;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 2px white, inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.hero-cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--primary);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Bento Grid (USP Section) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.bento-item {
    background: linear-gradient(135deg, var(--primary-mid) 0%, var(--primary) 100%);
    color: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bento-item:hover {
    transform: translateY(-5px) scale(1.07);
    background: linear-gradient(135deg, var(--primary-mid) 0%, var(--primary) 100%);
}

.bento-item p {
    font-size: 1.1rem;
}

.bento-item i {
    font-size: 2.5rem;
    background: linear-gradient(to top right, var(--accent-dark) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
    display: inline-block;
    /* Zásadní změna: aby se ikona točila kolem svého středu, nesmí být roztáhnutá na celou šířku */
    transition: all 0.3s ease;
}

.bento-item:hover i {
    transform: scale(1.2) rotate(5deg);
    /* Přesně jako u karet služeb */
}

/* Sekce nadpis – Outfit, původní formát, tmavá zlatá */
.section-heading {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 56px;
    display: block;
    position: relative;
}

/* Blikající kurzor pro typing efekt */
.typewriter-cursor {
    display: inline-block;
    width: 4px;
    background-color: var(--accent-dark);
    animation: blink 0.8s infinite;
    margin-left: 6px;
    vertical-align: baseline;
    height: 1em;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Dekorativní linka pod nadpisem */
.section-heading::after {
    content: '';
    display: block;
    width: 126px;
    height: 4px;
    background: var(--accent-dark);
    border-radius: 2px;
    margin: 16px auto 0;
}

/* Services Section */
.services {
    position: relative;
    overflow: hidden;
}

.services-sun {
    position: absolute;
    left: -60px;
    top: 20px;
    width: 420px;
    height: 420px;
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
    animation: sun-rotate 40s linear infinite;
}

.services-sun svg {
    width: 100%;
    height: 100%;
}

.services .container {
    position: relative;
    z-index: 1;
}

/* Glassmorphism Cards (Services) */

/* Bento layout pro služby: 2 velké karty vlevo, sloupec 2 malých vpravo */
.services-bento {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    grid-template-rows: auto;
    gap: 24px;
    align-items: stretch;
}

/* Sloupec malých karet – flexbox svislo */
.services-small-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 340px;
    /* Širší sloupec = užší velké dlaždice s produkty */
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 111, 165, 0.12);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Vycentrování vertikálně (na druhé ose) */
    align-items: center;
    /* Vycentrování horizontálně pro flex položky */
    gap: 16px;
    /* Zvětšená mezera pro lepší dýchání obsahu */
}

/* CTA tlačítko v kartě služby */
.service-card .btn {
    align-self: center;
    text-align: center;
    margin-top: 12px;
    /* Zvětšení mezery nad tlačítkem */
    margin-bottom: 4px;
    /* Zvětšení mezery pod tlačítkem */
}

.service-card h3 {
    text-align: center;
    margin-top: 8px;
    /* Zvětšení mezery nad nadpisem */
    margin-bottom: 6px;
    /* Zvětšení mezery pod nadpisem (kompenzuje flex gap) */
}

.service-card p {
    font-size: 1.1rem;
}

.service-card i {
    font-size: 2.2rem;
    color: var(--primary);
    align-self: center;
    /* Zarovnání ikony na střed */
}

.service-card--large {
    background: white;
    box-shadow: var(--shadow-sm);
}

/* Menší karty – flexibilně vľ rosí na zbylý prostor */
.service-card--small {
    flex: 1 1 0;
    background: var(--bg-alt);
    box-shadow: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background: white;
}

.service-card img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    /* Zvětšení mezery pod obrázkem */
    transition: transform 0.8s cubic-bezier(0.15, 0.85, 0.35, 1);
}

.service-card:hover img {
    transform: scale(1.04) rotate(1.5deg);
}

/* About Section – obrázek přes 60 % vlevo, glass karta vpravo */
.about {
    display: grid;
    grid-template-columns: 1fr;
    overflow-x: clip; /* clip nezabrání vertikálnímu přesahu, na rozdíl od hidden */
    padding: 20px 0 80px;
}

.about-bg-image {
    grid-area: 1 / 1;
    align-self: center;
    width: 82%;
    height: auto;
    margin-left: -22%; /* posun vlevo: kafe a sešit vyjedou mimo viewport */
    z-index: 0;
    mask-image:
        linear-gradient(to right, black 0%, black 92%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image:
        linear-gradient(to right, black 0%, black 92%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-composite: destination-in;
}

.about-container {
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 72px 0;
    position: relative;
    cursor: default;
    z-index: 1;
}

/* Glassmorphism dlaždice zasahující přes fotku */
.about-glass-card {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    padding: 64px 56px;
    width: 65%;
    z-index: 2;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1), inset 0 0 30px rgba(255, 255, 255, 0.5);
    text-align: left;
    transition: transform 0.5s ease;
}

/* Úprava nadpisu uvnitř dlaždice */
.about-glass-card .section-heading {
    margin-bottom: 32px;
    text-align: left;
    background: none;
    -webkit-text-fill-color: var(--accent-dark);
    text-shadow: 0 -1px 0 rgba(255, 255, 255, 0.6), 0 2px 4px rgba(0, 0, 0, 0.12);
}

/* Dekorativní linka pod nadpisem musí být také zarovnána vlevo */
.about-glass-card .section-heading::after {
    margin: 16px 0 0;
}

.about-glass-card p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text);
    margin: 0;
}

/* CTA Banner */
.cta-banner {
    padding: 84px 0 120px;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-mid) 0%, var(--primary) 100%);
    color: white;
    text-align: center;
    border: none;
    box-shadow: 0 20px 40px rgba(15, 25, 50, 0.2);
    padding: 64px 32px;
    overflow: hidden;
    /* Dostatek vnitřního prostoru */
    border-radius: var(--radius-lg);
    /* Zajištění stejného zaoblení jako service-card */
}

/* Zamezení zbělání dlaždice z původní třídy service-card */
.cta-card:hover {
    background: linear-gradient(135deg, var(--primary-mid) 0%, var(--primary) 100%);
    box-shadow: 0 25px 50px rgba(15, 25, 50, 0.3);
}

/* Zlatá záře za sluncem */
.cta-card::before {
    content: '';
    position: absolute;
    right: -20px;
    top: -80px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(225, 173, 1, 0.18) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* Dekorativní sluníčko */
.cta-sun {
    position: absolute;
    right: -90px;
    top: -100px;
    width: 320px;
    height: 320px;
    opacity: 0.14;
    pointer-events: none;
    z-index: 0;
    animation: sun-rotate 30s linear infinite;
}

.cta-sun svg {
    width: 100%;
    height: 100%;
}

/* Obsah karty nad dekorací */
.cta-card h2,
.cta-card p,
.cta-card .cta-buttons {
    position: relative;
    z-index: 1;
}

@keyframes sun-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.cta-card h2 {
    color: white;
    margin-bottom: 24px;
}

.cta-card .typewriter-cursor {
    background-color: white;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto 40px;
    font-size: 1.3rem;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Tlačítko Vytočit */
.btn-call {
    background: linear-gradient(to top right, var(--accent-dark) 0%, var(--accent) 100%);
    color: white;
    transition: background 0.3s ease, color 0.3s ease;
    animation: pulse-call-gold 1.5s infinite;
}

/* Hover na tlačítku Vytočit: bílá + bílé pulzování */
.btn-call:hover {
    background: white;
    color: var(--primary);
    animation: pulse-call 1.5s infinite;
}

.btn-write {
    background: transparent;
    color: white;
    box-shadow: inset 0 0 0 2px white;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.btn-write .btn-icon {
    font-size: 1.1em;
    display: inline-block;
    width: 0;
    opacity: 0;
    overflow: hidden;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transition: width 0.4s ease, margin-left 0.4s ease, margin-right 0.4s ease, opacity 0.4s ease;
    vertical-align: middle;
}

.btn-write:hover .btn-icon {
    width: 1em;
    opacity: 1;
    overflow: visible;
    margin-left: 10px !important;
    margin-right: -6px !important;
    animation: pulse-arrow 0.8s infinite alternate ease-in-out;
}

@keyframes pulse-arrow {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(4px);
    }
}

/* Hover na tlačítku Radši napíšu: Glass efekt, modrý text */
.btn-write:hover {
    background: rgba(255, 255, 255, 0.85);
    /* Glass efekt */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--primary) !important;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9);
}

/* Animace pulzování – bílá (hover na celou kartu) */
@keyframes pulse-call {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Animace pulzování – zlatá (hover přímo na tlačítko) */
@keyframes pulse-call-gold {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 217, 123, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 217, 123, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 217, 123, 0);
    }
}


/* Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.3s ease;
}

/* Bento dlaždice potřebují rychlejší transform pro hover scale efekt */
.bento-item[data-reveal] {
    transition: opacity 0.8s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

.bento-item[data-reveal].revealed:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: var(--shadow-md);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #142f5a 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0 40px;
}

.footer-grid {
    display: flex;
    justify-content: center;
    /* Přesně podle vašeho zadání: vycentrování na střed */
    align-items: flex-start;
    gap: 80px;
    /* Mezera mezi sloupci */
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.footer-info {
    flex: 0 1 auto;
    min-width: 300px;
}

.footer-links {
    flex: 0 1 auto;
    min-width: 230px;
}

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.footer-links h2 {
    margin-bottom: 25px;
    font-size: 1.3rem;
    /* Jemnější zvětšení nadpisů v zápatí */
    color: white;
}

.footer-links li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Pro kontakt (poslední sloupec) ponecháme širší řádkování kvůli ikonám */
.footer-links:last-of-type li {
    margin-bottom: 16px;
}

.footer-links li i {
    font-size: 1.4rem;
    /* Zvětšené ikony u kontaktů */
    width: 30px;
    /* Fixní šířka, aby byly texty přesně pod sebou i při různě širokých ikonách */
    text-align: center;
    margin-right: 16px;
    /* Zvětšení mezery mezi ikonou a textem */
}

.footer-links a:not(.btn) {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.footer-links a:not(.btn):hover {
    background: linear-gradient(to top right, var(--accent-dark) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


.footer-links .btn-write {
    padding: 16px 32px;
}

.footer-links .btn-write:hover,
.footer-links .btn-write:hover .btn-icon {
    color: var(--primary-dark) !important;
}

.footer-links .btn-write:hover {
    transform: none;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    /* Vycentrování všeho pod čarou */
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    /* Copyright a kredit pod sebou pro lepší centrování */
    align-items: center;
    gap: 20px;
}

.footer-credit {
    display: flex;
    align-items: flex-end;
    /* Srovnání se spodní linií loga */
    gap: 12px;
    font-family: 'Outfit', sans-serif;
}

.footer-credit span {
    text-align: right;
    line-height: 1.1;
    font-size: 0.85rem;
    /* Jemné doladění, aby text seděl přesně na lince s logem */
}

.footer-credit a {
    display: flex;
    align-items: flex-end;
}

.footer-credit img {
    height: 35px;
    display: block;
    /* Klíčové: odstraní mezeru pod obrázkem (baseline offset) */
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-credit a:hover img {
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .footer-credit {
        justify-content: center;
    }
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 16px 24px 24px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        gap: 14px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
        pointer-events: none;
    }

    .nav-links.menu-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
        pointer-events: auto;
    }

    .mobile-menu-btn {
        display: block;
        color: white;
    }

    nav.scrolled .mobile-menu-btn {
        color: var(--primary);
    }

    .nav-links a {
        color: var(--primary-dark) !important;
        text-shadow: none !important;
    }

    .nav-links .nav-cta {
        background: none !important;
        border: none !important;
        color: var(--primary-dark) !important;
        padding: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        font-weight: 500 !important;
        text-shadow: none !important;
    }

    .nav-links .nav-cta::after {
        display: block !important;
    }

    .nav-links .nav-cta:hover::after {
        width: 100% !important;
    }



    .hero-content {
        max-width: 100%;
        padding-top: 100px;
        padding-bottom: 80px;
    }

    .hero-content p {
        max-width: 100%;
    }

    .hero-overlay {
        background: linear-gradient(to right,
                rgba(15, 25, 50, 0.85) 0%,
                rgba(15, 25, 50, 0.50) 50%,
                rgba(15, 25, 50, 0.10) 100%);
    }

    /* Services bento – přeplánovat na 2 sloupce */
    .services-bento {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .services-small-col {
        width: auto;
        flex-direction: row;
        grid-column: 1 / -1;
    }

    .service-card--small {
        flex: 1;
    }

    .footer-grid {
        gap: 40px;
    }

    .about-container {
        padding: 48px 0;
    }

    .about-glass-card {
        padding: 44px 36px;
    }
}

/* Mezizobrazení zápatí: 2 linky nahoře, info dole vycentrované */
@media (min-width: 769px) and (max-width: 1081px) {
    .footer-grid > :nth-child(2) { order: 1; }
    .footer-grid > :nth-child(3) { order: 2; }
    .footer-grid > :nth-child(1) {
        order: 3;
        flex-basis: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-grid > :nth-child(1) .footer-logo {
        justify-content: center;
    }
}

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

    section {
        padding: 60px 0;
    }

    .hero-bg-img {
        object-position: 70% 50%;
    }

    .usp {
        padding-top: 78px;
    }

    .cta-banner {
        padding: 42px 0 60px;
    }

    .container {
        width: 90%;
    }

    /* Services – vše na 1 sloupec */
    .services-bento {
        grid-template-columns: 1fr;
    }

    .services-small-col {
        flex-direction: column;
        width: auto;
    }

    .service-card--small {
        flex: none;
    }

    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    /* About sekce na mobilu – obrázek nahoře, karta dole */
    .about {
        display: block;
        overflow-x: hidden;
    }

    .about-bg-image {
        display: block;
        width: 100%;
        height: auto;
        margin-left: 0;
        mask-image:
            linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%),
            linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
        -webkit-mask-image:
            linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%),
            linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
        mask-composite: intersect;
        -webkit-mask-composite: destination-in;
    }

    .about-container {
        padding: 0;
        flex-direction: column;
        justify-content: flex-start;
    }

    .about-glass-card {
        width: 95%;
        margin-left: 0;
        margin-top: -10%;
        padding: 40px 24px;
    }

    .footer-grid {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .footer-info,
    .footer-links {
        min-width: unset;
        width: 100%;
        text-align: center;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 16px;
    }

    .footer-links li {
        justify-content: center;
    }
}

/* ===== PRODUCT PAGE HERO (pevné pozadí vlevo, obrázek vpravo) ===== */

/* Nav modrá na stránkách se světlým hero – před i po scrollu */
.page-light nav .nav-links a {
    color: var(--primary-dark);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.page-light nav.scrolled .nav-links a {
    color: var(--text);
}

.page-light nav .nav-links .nav-cta {
    color: white !important;
}

.page-light nav .mobile-menu-btn {
    color: var(--primary-dark);
}

/* Nav na FAQ stránce – tmavý hero, světlý text */
.page-faq nav .mobile-menu-btn {
    color: white;
}

.page-faq nav.scrolled .nav-links a {
    color: var(--text);
}

.page-faq nav.scrolled .nav-links .nav-cta {
    background: linear-gradient(135deg, var(--primary-mid) 0%, var(--primary) 100%);
    border: none;
    color: white !important;
}

/* Kontakt – obrysový styl na tmavém hero */
.page-faq nav .nav-links .nav-cta {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.65);
    color: white !important;
    text-shadow: none !important;
    padding: 8px 22px;
}

.page-faq nav .nav-links .nav-cta:hover {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    border-color: rgba(255, 255, 255, 0.90);
    color: white !important;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.10);
    transform: translateY(-1px);
}

/* Po scrollu – zpět na plný modrý gradient */
.page-faq nav.scrolled .nav-links .nav-cta {
    background: linear-gradient(135deg, var(--primary-mid) 0%, var(--primary) 100%);
    border: none;
    color: white !important;
    padding: 10px 22px;
}

.page-faq nav.scrolled .nav-links .nav-cta:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-mid) 100%);
    box-shadow: 0 4px 12px rgba(74, 111, 165, 0.4);
    border: none;
}

/* =====================================================
   Contact Page Nav (dark hero – same treatment as FAQ)
   ===================================================== */

.page-contact nav .mobile-menu-btn {
    color: white;
}

.page-contact nav.scrolled .nav-links a {
    color: var(--text);
}

.page-contact nav .nav-links .nav-cta {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.65);
    color: white !important;
    text-shadow: none !important;
    padding: 8px 22px;
}

.page-contact nav .nav-links .nav-cta:hover {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    border-color: rgba(255, 255, 255, 0.90);
    color: white !important;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.10);
    transform: translateY(-1px);
}

.page-contact nav.scrolled .nav-links .nav-cta {
    background: linear-gradient(135deg, var(--primary-mid) 0%, var(--primary) 100%);
    border: none;
    color: white !important;
    padding: 10px 22px;
}

.page-contact nav.scrolled .nav-links .nav-cta:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-mid) 100%);
    box-shadow: 0 4px 12px rgba(74, 111, 165, 0.4);
    border: none;
}

/* =====================================================
   Contact Page – Hero Tiles
   ===================================================== */

.contact-hero-perex {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.2rem;
    line-height: 1.6;
}

.contact-tile {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 20px 24px;
    text-decoration: none;
    color: white;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.contact-tile:hover {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    border-color: rgba(255, 255, 255, 0.90);
    color: white;
    transform: translateX(6px);
}

.contact-tile-icon {
    font-size: 1.3rem;
    background: linear-gradient(to top right, var(--accent-dark) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    width: 26px;
    text-align: center;
    flex-shrink: 0;
}

.contact-tile-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.contact-tile-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    opacity: 0.60;
}

.contact-tile-value {
    font-size: 1rem;
    font-weight: 600;
}

.contact-tile-arrow {
    font-size: 0.85rem;
    opacity: 0.38;
    transition: opacity 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.contact-tile:hover .contact-tile-arrow {
    opacity: 0.85;
    transform: translateX(3px);
}

/* =====================================================
   Contact Page – Form Section
   ===================================================== */

.contact-form-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 64px;
    align-items: start;
}

.contact-form-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.9rem;
    color: var(--primary-dark);
    margin-bottom: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.form-label .form-optional {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-left: 4px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid rgba(74, 111, 165, 0.20);
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: var(--text);
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border: 2.5px solid var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.10);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-textarea {
    resize: vertical;
    min-height: 148px;
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 8px;
}

.form-gdpr {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.form-gdpr a {
    color: var(--primary);
    text-decoration: underline;
}

.form-success[hidden] {
    display: none;
}

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px 24px;
    gap: 16px;
}

.form-success-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-success-heading {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin: 0;
}

.form-success-text {
    color: var(--text-muted);
    margin: 0;
}

/* Contact info card */
.contact-info-card {
    background: var(--bg-alt);
    border-radius: 20px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-info-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-info-item-icon {
    font-size: 1.05rem;
    background: linear-gradient(to top right, var(--accent-dark) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-info-item-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-info-item-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.contact-info-item-value {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
}

.contact-info-item-value a {
    color: var(--primary);
    text-decoration: none;
}

.contact-info-item-value a:hover {
    text-decoration: underline;
}

/* Legal section */
.legal-section {
    padding: 56px 0;
    background: var(--bg-alt);
}

.legal-heading {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 28px;
}

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

.legal-block p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-block a {
    color: var(--primary);
    text-decoration: none;
    line-height: 2;
}

.legal-block a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

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

    .contact-info-card {
        padding: 28px 24px;
    }
}

@media (min-width: 550px) and (max-width: 992px) {
    .contact-info-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px 32px;
    }

    .contact-info-card-title {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .contact-info-col--links {
        grid-column: 1;
        grid-row: 2;
    }

    .contact-info-col--billing {
        grid-column: 2;
        grid-row: 2 / 4;
        align-self: start;
    }

    .contact-info-col--docs {
        grid-column: 1;
        grid-row: 3;
        align-self: start;
    }
}

.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (max-width: 768px) {
    .contact-form-section {
        padding: 52px 0;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 20px;
    }

    .form-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

.page-hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0;
    /* Pevné světlé pozadí vlevo – bg-alt sahá přes celou stránku,
       obrázek ho přepisuje jen vpravo */
    background: var(--bg-alt);
}

/* Obrázek: pravá polovina viewportu, plná výška */
.page-hero-img {
    position: absolute;
    right: 0;
    top: 0;
    width: 65%;
    height: 100%;
    z-index: 0;
}

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

/* Jemné přechod na levém okraji obrázku – plynulé napojení na bg-alt */
.page-hero-img::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 25%;
    height: 100%;
    background: linear-gradient(to right, var(--bg-alt), transparent);
    z-index: 1;
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 2;
    padding-top: 140px;
    padding-bottom: 100px;
}

/* Text zabírá levou polovinu containeru */
.page-hero-content {
    max-width: 520px;
}

.page-hero-content h1 {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(3.4rem, 7vw, 5rem);
    font-weight: 700;
    margin-bottom: 20px;
    animation: hero-reveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.15s both;
}

.page-hero-content h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--accent-dark), var(--accent-light));
    border-radius: 2px;
    margin-top: 16px;
}

.page-hero-content p {
    font-size: 1.35rem;
    color: var(--text);
    margin-bottom: 36px;
    max-width: 100%;
    line-height: 1.7;
    animation: hero-reveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.page-hero-content .hero-cta {
    animation: hero-reveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.65s both;
}

/* Outline tlačítko na světlém pozadí */
.page-hero-outline {
    color: var(--primary-dark) !important;
    box-shadow: inset 0 0 0 2px var(--primary) !important;
    backdrop-filter: none !important;
}

.page-hero-outline:hover {
    background: rgba(74, 111, 165, 0.08) !important;
    box-shadow: inset 0 0 0 2px var(--primary) !important;
    color: var(--primary-dark) !important;
    transform: translateY(-2px) !important;
}

/* Primární tlačítko – normální hover */
.page-hero-content .hero-cta .btn-primary:hover {
    background: linear-gradient(135deg, #142f5a 0%, var(--primary-dark) 100%);
    color: white;
    backdrop-filter: none;
    border-color: transparent;
}

/* Section perex */
.section-perex {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: -32px auto 56px;
    line-height: 1.7;
}

/* Benefits sekce – tmavé modré pozadí */
.benefits {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-mid) 60%, var(--primary) 100%);
}

.benefits .section-heading {
    background: none;
    -webkit-text-fill-color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.benefits .section-heading::after {
    background: white;
}

.benefits .typewriter-cursor {
    background-color: white;
}

/* Benefits Grid (6 items, 3 columns) */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}


.benefit-card {
    background:
        linear-gradient(to right, var(--accent-dark), var(--accent-light)) top / 100% 4px no-repeat,
        white;
    border-radius: var(--radius-md);
    padding: 36px 28px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

.benefit-card i {
    font-size: 2.4rem;
    background: linear-gradient(to top right, var(--accent-dark) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    margin-bottom: 18px;
    transition: transform 0.3s ease;
}

.benefit-card:hover i {
    transform: scale(1.15) rotate(5deg);
}

.benefit-card h3 {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 100%;
}

/* Why Us bento (4 items, 2×2) */
.why-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Process Steps (4 horizontal steps) */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 36px;
    left: calc(12.5% + 20px);
    right: calc(12.5% + 20px);
    height: 2px;
    background: linear-gradient(to right, var(--accent-dark), var(--accent-light));
    z-index: 0;
    transform-origin: left center;
    transform: scaleX(var(--line-progress, 0));
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
    opacity: 0.2;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.process-step.step-active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes step-pop {
    0%   { transform: scale(0.75); box-shadow: 0 4px 15px rgba(74, 111, 165, 0.3); }
    60%  { transform: scale(1.18); box-shadow: 0 0 0 10px rgba(74, 111, 165, 0.15), 0 8px 25px rgba(74, 111, 165, 0.4); }
    100% { transform: scale(1);   box-shadow: 0 4px 15px rgba(74, 111, 165, 0.3); }
}

.process-step-num {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-mid) 0%, var(--primary) 100%);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(74, 111, 165, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step.step-active .process-step-num {
    animation: step-pop 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.process-step:hover .process-step-num {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(74, 111, 165, 0.45);
}

.process-step h3 {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.process-step p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 100%;
}

/* CTA pod timeline */
.process-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 56px;
}

/* Sekundární btn-write na světlém pozadí – přebarvení z bílé na modrou */
.process-cta-secondary {
    color: var(--primary) !important;
    box-shadow: inset 0 0 0 2px var(--primary) !important;
}

.process-cta-secondary:hover {
    background: rgba(49, 89, 147, 0.06) !important;
    box-shadow: inset 0 0 0 2px var(--primary) !important;
    color: var(--primary) !important;
    transform: none !important;
}

.process-cta-secondary:hover .btn-icon {
    color: var(--primary) !important;
}

/* Financing Cards (2 columns) */
.financing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.financing-card {
    background: white;
    border: 1px solid rgba(74, 111, 165, 0.1);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.financing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.financing-card i {
    font-size: 2.4rem;
    background: linear-gradient(to top right, var(--accent-dark) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    transition: transform 0.3s ease;
}

.financing-card:hover i {
    transform: scale(1.15) rotate(5deg);
}

.financing-card h3 {
    font-size: clamp(1.5rem, 2.5vw, 1.85rem);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0;
}

/* Sekundární tlačítko ve financing kartách – světlé pozadí, externý odkaz */
.financing-card .btn-icon {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--primary);
}

.financing-card-btn {
    margin-top: 20px;
    color: var(--primary) !important;
    box-shadow: inset 0 0 0 2px var(--primary) !important;
}

.financing-card-btn:hover {
    background: rgba(74, 111, 165, 0.06) !important;
    box-shadow: inset 0 0 0 2px var(--primary) !important;
    color: var(--primary) !important;
    transform: none !important;
}

.financing-card-btn:hover .btn-icon {
    color: var(--primary) !important;
}

.financing-card p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 100%;
    line-height: 1.7;
}

/* Benefits CTA (klimatizace page) */
.benefits-cta {
    text-align: center;
    margin-top: 40px;
}

/* Calculator Section */
.calc-wrapper {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 48px;
    align-items: center;
}

.calc-inputs {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 8px 40px rgba(28, 66, 123, 0.35);
    min-width: 400px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ---- dark-card overrides ---- */

/* gradient na text nadpisu; ikona uvnitř dědí transparent — resetujeme ji */
.calc-inputs .calc-section-label {
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.calc-inputs .calc-info i {
    background: none;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.90);
}

.calc-inputs .calc-tooltip {
    background: white;
    -webkit-text-fill-color: var(--primary-dark);
    color: var(--primary-dark);
}

.calc-inputs .calc-tooltip::after {
    border-top-color: white;
    background: none;
}

.calc-inputs .room-label {
    color: rgba(255, 255, 255, 0.90);
}

.calc-inputs .room-input-wrap {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.35);
}

.calc-inputs .room-input-wrap:focus-within {
    border-color: rgba(255, 255, 255, 0.80);
    background: rgba(255, 255, 255, 0.28);
}

.calc-inputs .room-m3 {
    color: white;
    -webkit-text-fill-color: white;
}

.calc-inputs .room-m3::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.calc-inputs .room-unit {
    color: rgba(255, 255, 255, 0.60);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.60);
}

.calc-inputs .btn-remove-room {
    color: rgba(255, 255, 255, 0.45);
}

.calc-inputs .btn-remove-room:hover {
    color: white;
}

.calc-inputs .btn-add-room {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.40);
    color: white;
    -webkit-text-fill-color: white;
}

.calc-inputs .btn-add-room:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.70);
}

.calc-inputs .checkbox-box {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
}

.calc-inputs .calc-checkbox input:checked + .checkbox-box {
    background: rgba(255, 255, 255, 0.22);
    border-color: var(--accent-light);
}

.calc-inputs .calc-checkbox input:checked + .checkbox-box::after {
    border-color: var(--accent);
}

.calc-inputs .checkbox-label {
    color: rgba(255, 255, 255, 0.90);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.90);
}

.calc-section-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
}

.rooms-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.room-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.room-label {
    font-size: 0.95rem;
    color: var(--text);
    white-space: nowrap;
    min-width: 96px;
}

.room-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-alt);
    border: 1.5px solid rgba(28, 66, 123, 0.15);
    border-radius: 10px;
    padding: 8px 14px;
    width: 156px;
    flex: none;
    transition: border-color 0.2s ease;
}

.room-input-wrap:focus-within {
    border-color: var(--primary);
}

.room-m3 {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    width: 100%;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.room-m3::-webkit-inner-spin-button,
.room-m3::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.room-unit {
    font-size: 0.9rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.btn-remove-room {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    line-height: 1;
}

.btn-remove-room:hover {
    color: #c0392b;
}

.btn-add-room {
    margin-left: calc(96px + 16px);
    width: 156px;
    background: none;
    border: 1.5px dashed rgba(28, 66, 123, 0.3);
    border-radius: 10px;
    color: var(--primary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-add-room:hover {
    border-color: var(--primary);
    background: rgba(28, 66, 123, 0.04);
}

.calc-extras {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calc-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.calc-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-box {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.5px solid rgba(28, 66, 123, 0.3);
    background: white;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.calc-checkbox input:checked + .checkbox-box {
    background: var(--primary);
    border-color: var(--primary);
}

.calc-checkbox input:checked + .checkbox-box::after {
    content: '';
    width: 5px;
    height: 9px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
    display: block;
}

.checkbox-label {
    font-size: 0.95rem;
    color: var(--text);
}

.calc-submit {
    align-self: center;
}

/* Výsledkový panel */
.calc-result {
    background: white;
    border-radius: 0 20px 20px 0;
    padding: 36px 32px 36px calc(32px + 28px);
    box-shadow: 0 4px 24px rgba(28, 66, 123, 0.07);
    margin-left: -28px;
    z-index: 1;
    min-height: 320px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* partially visible by default, expands on calculate */
    width: 320px;
    flex-shrink: 0;
    overflow: hidden;
    transition: width 0.52s cubic-bezier(0.4, 0, 0.2, 1);
}

.calc-result.is-expanded {
    width: min(700px, calc(85vw - 432px));
    border-radius: 20px;
    overflow: visible;
    transition: width 0.52s cubic-bezier(0.4, 0, 0.2, 1), overflow 0s 0.52s;
}

.calc-placeholder {
    /* absolutely centered in the VISIBLE portion (left: 28px skips the overlap) */
    position: absolute;
    left: 28px;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    color: var(--text-muted);
    padding: 0 40px 0 16px;
}

.calc-placeholder i {
    font-size: 2.5rem;
    background: linear-gradient(to top right, var(--accent-dark) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.calc-placeholder p {
    font-size: 0.95rem;
    max-width: 240px;
    line-height: 1.6;
}

.calc-output {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: calcFadeIn 0.4s ease forwards;
}

@keyframes calcFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.calc-config-badge {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-radius: 14px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.calc-config-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.calc-config-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.calc-config-type {
    font-family: 'Michroma', sans-serif;
    font-size: 0.95rem;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 4px 12px;
    white-space: nowrap;
}

.calc-units-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 14px;
}

.calc-units-list li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 0.92rem;
    color: white;
}

.calc-units-list li i {
    font-size: 0.7rem;
    background: linear-gradient(to top right, var(--accent-dark) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    flex-shrink: 0;
}

.calc-unit-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
}

.calc-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    border-top: 1px solid var(--bg-alt);
    padding-top: 16px;
}

.calc-price-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.calc-price-value {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 700;
    color: var(--primary-dark);
}

.calc-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.calc-cta-prompt {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.calc-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.calc-contact-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.calc-contact-heading span {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.calc-contact-heading i {
    background: linear-gradient(to top right, var(--accent-dark) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
    width: 1.4em;
    text-align: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.calc-cta-row .btn {
    justify-content: center;
}

/* Info tooltip */
.calc-info {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.9rem;
    outline: none;
}

.calc-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.55;
    padding: 10px 14px;
    border-radius: 10px;
    width: 230px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease;
    z-index: 200;
    text-transform: none;
    letter-spacing: 0;
    white-space: normal;
}

.calc-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--primary);
}

.calc-info:hover .calc-tooltip,
.calc-info:focus-visible .calc-tooltip,
.calc-info.is-open .calc-tooltip {
    opacity: 1;
}

@media (max-width: 992px) {
    /* tablet + mobil: pod sebou */
    .calc-wrapper {
        flex-direction: column;
    }

    .calc-inputs {
        width: 100%;
        min-width: unset;
        max-width: 480px;
        flex-shrink: 1;
        padding: 28px 24px;
    }

    .calc-result {
        width: 100%;
        min-width: unset;
        max-width: unset;
        flex-shrink: 1;
        margin-left: 0;
        border-radius: 20px;
        overflow: visible;
        transition: none;
    }

    .calc-result.is-expanded {
        width: 100%;
        border-radius: 20px;
    }

    .calc-contact-heading {
        justify-content: center;
    }

    .calc-placeholder {
        position: static;
        padding: 0;
    }

    .btn-add-room {
        margin-left: calc(96px + 16px);
        width: 156px;
    }

    .calc-cta-prompt {
        text-align: center;
    }

    .calc-cta-row {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .calc-inputs,
    .calc-result {
        padding: 24px 20px;
        max-width: unset;
    }

    .calc-result {
        min-height: 200px;
        padding: 24px 20px;
    }

    .calc-tooltip {
        left: 0;
        transform: none;
        width: min(210px, calc(100vw - 40px));
    }

    .calc-tooltip::after {
        left: 12px;
        transform: none;
    }

    .room-input-wrap {
        width: auto;
        flex: 1;
    }

    .btn-add-room {
        margin-left: 0;
        width: 100%;
    }
}

/* FAQ Accordion */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 48px;
    align-items: start;
}

.faq-col {
    display: flex;
    flex-direction: column;
}

.faq-col.faq-single {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

.faq-item {
    border-bottom: 1px solid rgba(74, 111, 165, 0.15);
}

.faq-col > .faq-item:first-child {
    border-top: 1px solid rgba(74, 111, 165, 0.15);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-align: left;
    gap: 16px;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question span {
    flex: 1;
}

.faq-icon {
    font-size: 0.85rem;
    color: var(--accent-dark);
    transition: transform 0.35s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer {
    max-height: 600px;
}

.faq-answer p {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 100%;
    padding: 0 4px 20px;
}

/* Active nav indicator */
.nav-links a.active::after {
    width: 100%;
}

/* ===== RESPONSIVE – new page components ===== */
@media (max-width: 992px) {
    .page-hero {
        flex-direction: column;
        align-items: stretch;
        min-height: unset;
        overflow: visible;
    }

    .page-hero-img {
        position: relative;
        width: 70%;
        height: auto;
        right: auto;
        top: auto;
        opacity: 1;
        margin: 72px auto 0;
    }

    body.page-light .page-hero-img {
        margin-bottom: -48px;
    }

    .page-hero-img::before {
        display: none;
    }

    .page-hero-img img {
        height: auto;
        object-fit: unset;
        object-position: unset;
        -webkit-mask-image: radial-gradient(ellipse at center, black 50%, transparent 82%);
        mask-image: radial-gradient(ellipse at center, black 50%, transparent 82%);
    }

    .page-hero .container {
        padding-top: 16px;
        padding-bottom: 48px;
    }

    .page-hero-content {
        max-width: 100%;
    }

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

    /* Vertikální timeline na tabletech i mobilech */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .process-steps::before {
        display: block;
        top: 36px;
        left: 35px;
        right: auto;
        width: 2px;
        height: calc(100% - 72px);
        transform-origin: top center;
        transform: scaleY(var(--line-progress, 0));
        background: linear-gradient(to bottom, var(--accent-dark), var(--accent-light));
    }

    .process-step {
        display: grid;
        grid-template-columns: 72px 1fr;
        column-gap: 24px;
        row-gap: 4px;
        text-align: left;
        padding-bottom: 48px;
        opacity: 0.2;
        transform: translateX(-10px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .process-step.step-active {
        transform: translateX(0);
    }

    .process-step:last-child {
        padding-bottom: 0;
    }

    .process-step-num {
        grid-column: 1;
        grid-row: 1 / 3;
        margin: 0;
        align-self: start;
    }

    .process-step h3 {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
        margin-top: 18px;
        margin-bottom: 4px;
    }

    .process-step p {
        grid-column: 2;
        grid-row: 2;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .page-hero .container {
        padding-top: 40px;
        padding-bottom: 48px;
    }

    .page-hero-img {
        width: 85%;
    }

    /* Fallback bez JS – jednosloupcový grid */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .benefit-card {
        padding: 24px 20px;
    }

    /* Dvě hromádky aktivované JavaScriptem */
    .benefits.piles-active .benefits-grid {
        display: block;
        position: relative;
        /* výška nastavena JS podle reálné výšky karet */
    }

    .benefits.piles-active .benefit-card {
        position: absolute;
        width: 100%;
        left: 0;
        padding: 20px 14px;
        z-index: calc(10 - var(--pile-depth, 0));
        transform: scale(calc(1 - var(--pile-depth, 0) * 0.018));
        transform-origin: top center;
        transition: top 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.3s ease,
                    opacity 0.25s ease;
    }

    /* Přečtená hromádka – nahoře */
    .benefits.piles-active .benefit-card.card-seen {
        top: calc(var(--pile-depth, 0) * 8px);
    }

    /* Nepřečtená hromádka – dole (offset nastaven JS přes --pile-sep) */
    .benefits.piles-active .benefit-card:not(.card-seen) {
        top: calc(var(--pile-sep, 260px) + var(--pile-depth, 0) * 8px);
    }

    /* CTA tlačítko po přečtení všech karet */
    .benefit-pile-cta {
        position: absolute;
        left: 50%;
        top: var(--pile-sep, 260px);
        transform: translateX(-50%) translateY(12px);
        white-space: nowrap;
        opacity: 0;
        transition: opacity 0.4s ease, transform 0.4s ease;
        pointer-events: none;
    }

    .benefit-pile-cta.visible {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }

    .benefit-pile-cta.visible:hover {
        transform: translateX(-50%) translateY(-2px);
    }

    /* Šipky mezi hromádkami */
    .pile-swipe-hint {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        pointer-events: none;
        opacity: 1;
        transition: opacity 0.3s ease;
    }

    .pile-swipe-hint.hint-hidden {
        opacity: 0;
    }

    .pile-swipe-hint i {
        color: var(--primary);
        font-size: 1.2rem;
        animation: hint-pulse 1.4s ease-in-out infinite;
    }

    .pile-swipe-hint i:nth-child(2) {
        animation-delay: 0.15s;
    }

    .pile-swipe-hint i:nth-child(3) {
        animation-delay: 0.3s;
    }

    @keyframes hint-pulse {
        0%, 100% { opacity: 0.25; transform: translateY(0); }
        50%       { opacity: 1;    transform: translateY(-4px); }
    }

    .why-bento {
        grid-template-columns: 1fr;
    }

    .financing-cards {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .faq-col + .faq-col > .faq-item:first-child {
        border-top: none;
    }

    .section-perex {
        margin-top: -16px;
        margin-bottom: 40px;
    }

    .financing-card {
        padding: 28px 24px;
    }

    .bento-item {
        padding: 24px;
    }
}

/* =====================================================
   FAQ Page Hero
   ===================================================== */

.faq-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    min-height: 72vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.faq-hero-sun {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.faq-hero-sun svg {
    width: 100%;
    height: 100%;
}

.faq-hero-sun--gold {
    width: 400px;
    height: 400px;
    right: 8%;
    top: 50%;
    margin-top: -140px;
    opacity: 0.22;
    animation: sun-rotate 50s linear infinite;
}

.faq-hero-sun--white {
    width: 210px;
    height: 210px;
    right: 24%;
    top: 50%;
    margin-top: -230px;
    opacity: 0.10;
    animation: sun-rotate 30s linear infinite reverse;
}

.faq-hero-container {
    display: flex;
    align-items: center;
    gap: 64px;
    padding-top: 140px;
    padding-bottom: 100px;
    position: relative;
    z-index: 1;
}

.faq-hero-left {
    flex: 0 0 auto;
}

.faq-hero-heading {
    font-size: clamp(3.4rem, 7vw, 5rem);
    line-height: 1.05;
    color: white;
    letter-spacing: -0.01em;
}

.faq-hero-accent {
    color: white;
}

.faq-hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 420px;
}

.faq-cat-tile {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 22px 24px;
    text-decoration: none;
    color: white;
    font-size: 1.05rem;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.faq-cat-tile:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--accent);
    transform: translateX(6px);
    color: white;
}

.faq-cat-icon {
    font-size: 1.4rem;
    background: linear-gradient(to top right, var(--accent-dark) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    width: 26px;
    text-align: center;
    flex-shrink: 0;
}

.faq-cat-name {
    flex: 1;
}

.faq-cat-arrow {
    font-size: 0.85rem;
    opacity: 0.40;
    transition: opacity 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.faq-cat-tile:hover .faq-cat-arrow {
    opacity: 0.85;
    transform: translateX(3px);
}

/* FAQ page content blocks */
.faq-page-block {
    padding: 56px 0;
}

.faq-page-block:last-of-type {
    padding-bottom: 0;
}

.faq-block-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 44px;
}

.faq-block-icon {
    font-size: 1.5rem;
    background: linear-gradient(to top right, var(--accent-dark) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    flex-shrink: 0;
}

.faq-block-title {
    font-size: 1.9rem;
    color: var(--primary-dark);
    margin: 0;
}

@media (min-width: 993px) {
    .page-faq .cta-banner {
        margin-top: 48px;
    }
}

@media (max-width: 992px) {
    .faq-hero-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
        padding-top: 110px;
        padding-bottom: 64px;
    }

    .faq-hero-right {
        max-width: 100%;
        width: 100%;
    }

    .faq-hero-sun--gold {
        width: 210px;
        height: 210px;
        right: 11%;
        margin-top: -210px;
    }

    .faq-hero-sun--white {
        width: 110px;
        height: 110px;
        right: 30%;
        margin-top: -260px;
    }
}

@media (max-width: 768px) {
    .faq-hero-container {
        padding-top: 96px;
        padding-bottom: 48px;
    }

    .faq-page-block {
        padding: 36px 0;
    }

    .faq-page-block:last-of-type {
        padding-bottom: 48px;
    }

    .faq-block-header {
        margin-bottom: 32px;
    }

    .faq-hero-sun--gold {
        width: 160px;
        height: 160px;
    }

    .faq-hero-sun--white {
        width: 84px;
        height: 84px;
    }
}

/* =====================================================
   Realizace Page Nav (dark hero – same as FAQ/Contact)
   ===================================================== */

.page-realizace nav .mobile-menu-btn {
    color: white;
}

.page-realizace nav.scrolled .nav-links a {
    color: var(--text);
}

.page-realizace nav .nav-links .nav-cta {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.65);
    color: white !important;
    padding: 8px 22px;
}

.page-realizace nav .nav-links .nav-cta:hover {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    border-color: rgba(255, 255, 255, 0.90);
}

.page-realizace nav.scrolled .nav-links .nav-cta {
    background: linear-gradient(135deg, var(--primary-mid) 0%, var(--primary) 100%);
    border: none;
    color: white !important;
    padding: 10px 22px;
}

.page-realizace nav.scrolled .nav-links .nav-cta:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-mid) 100%);
    box-shadow: 0 4px 12px rgba(74, 111, 165, 0.4);
    border: none;
}

/* Scrolled hamburger – stránky s tmavým hero */
.page-realizace nav.scrolled .mobile-menu-btn,
.page-contact nav.scrolled .mobile-menu-btn,
.page-faq nav.scrolled .mobile-menu-btn {
    color: var(--primary);
}


/* =====================================================
   Case Studies Section
   ===================================================== */

.case-studies-section {
    padding: 80px 0 64px;
}

.page-realizace .section-heading {
    margin-top: 80px;
}

#pripadove-studie {
    scroll-margin-top: 0px;
}

#galerie {
    scroll-margin-top: 0px;
}

.case-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.case-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Photo area */
.case-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.case-photo--placeholder {
    background: linear-gradient(135deg, var(--primary-mid) 0%, var(--primary) 60%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 2.5rem;
}

.case-photo-btn {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
}

.case-photo-btn picture {
    display: block;
    width: 100%;
    height: 100%;
}

.case-photo-btn img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.case-photo-btn:hover img {
    transform: scale(1.04);
}

.case-photo-zoom {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.case-photo-btn:hover .case-photo-zoom {
    opacity: 1;
}

/* Card body */
.case-body {
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.case-title {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    color: var(--primary-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Reveal wrapper */
.case-reveal-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Case header – nadpis + toggle vedle sebe */
.case-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
}

.case-header .case-title {
    margin-bottom: 0;
    flex: 1;
}

/* Toggle group – tactile tlačítka */
.case-toggle-group {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.case-toggle {
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: box-shadow 0.1s, transform 0.1s, background 0.1s;
    white-space: nowrap;
}

/* Neaktivní – vyvýšená klávesa */
.case-toggle:not(.is-active) {
    background: #f5f7fa;
    color: #3a4558;
    border: 1px solid #c8d0de;
    box-shadow: 0 3px 0 #b0baca;
    transform: translateY(0);
}

.case-toggle:not(.is-active):hover {
    background: #fff;
    box-shadow: 0 3px 0 #9aaabb;
}

.case-toggle:not(.is-active):active {
    box-shadow: 0 1px 0 #b0baca;
    transform: translateY(2px);
}

/* Aktivní – zmáčknutá klávesa */
.case-toggle.is-active {
    border: 1px solid;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.18);
    transform: translateY(2px);
}

.case-toggle--problem.is-active,
.case-toggle--solution.is-active {
    background: #fdf0d5;
    color: var(--accent-dark);
    border-color: #d4a030;
}

/* State labels (zachováno pro zpětnou kompatibilitu) */
.case-state-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: opacity 0.35s, color 0.35s;
}

.case-state-label--problem {
    color: var(--accent-dark);
    opacity: 1;
}

.case-state-label--solution {
    color: var(--primary);
    opacity: 0.35;
}

.case-reveal-wrapper.is-solution .case-state-label--problem {
    opacity: 0.35;
}

.case-reveal-wrapper.is-solution .case-state-label--solution {
    opacity: 1;
}

/* Range slider */
.case-slider {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 5px;
    border-radius: 3px;
    outline: none;
    cursor: grab;
    background: linear-gradient(
        to right,
        var(--primary) 0%,
        var(--primary) var(--val, 0%),
        #dde3ed var(--val, 0%),
        #dde3ed 100%
    );
    transition: background 0.1s;
}

.case-slider:active {
    cursor: grabbing;
}

.case-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%234A6FA5' d='M5 8l-3 3V5l3 3zm6 0l3-3v6l-3-3zm-5 0h4' stroke='%234A6FA5' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
    border: 2px solid var(--primary);
    box-shadow: 0 2px 8px rgba(28, 66, 123, 0.2);
    transition: box-shadow 0.2s, transform 0.2s;
}

.case-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 2px 14px rgba(28, 66, 123, 0.35);
    transform: scale(1.1);
}

.case-slider::-moz-range-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary);
    box-shadow: 0 2px 8px rgba(28, 66, 123, 0.2);
    cursor: grab;
}

/* Text panels */
.case-panels {
    display: grid;
    flex: 1;
}

.case-panel {
    grid-area: 1 / 1;
    transition: opacity 0.4s ease;
}

.case-panel p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 100%;
    margin: 0;
}

.case-panel--problem {
    opacity: 1;
}

.case-panel--solution {
    opacity: 0;
    pointer-events: none;
}

.case-reveal-wrapper.is-solution .case-panel--problem {
    opacity: 0;
    pointer-events: none;
}

.case-reveal-wrapper.is-solution .case-panel--solution {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 1600px) {
    .case-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 1100px) {
    .page-realizace .section-heading {
        margin-top: 0;
    }

    .case-toggle {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .case-studies-section {
        padding: 56px 0 40px;
    }

    #pripadove-studie,
    #galerie {
        scroll-margin-top: 24px;
    }

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

    .case-body {
        padding: 22px 22px 26px;
    }
}

/* =====================================================
   Gallery – Masonry
   ===================================================== */

.gallery-section {
    padding: 80px 0 80px;
}

.gallery-masonry {
    columns: 3;
    column-gap: 16px;
}

.gallery-masonry img {
    width: 100%;
    display: block;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    break-inside: avoid;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-masonry img:hover {
    transform: scale(1.015);
    box-shadow: var(--shadow-md);
}

@media (max-width: 992px) {
    .gallery-masonry {
        columns: 2;
    }
}

@media (max-width: 540px) {
    .gallery-section {
        padding-bottom: 56px;
    }

    .gallery-masonry {
        columns: 1;
    }
}

/* =====================================================
   Lightbox
   ===================================================== */

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

.lightbox.is-open {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    background: none;
    border: none;
    color: white;
    font-size: 2.8rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: white;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.28);
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-family: var(--font-body);
}

/* =====================================================
   404 Page
   ===================================================== */

.not-found-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.not-found-sun-bg {
    position: absolute;
    width: 560px;
    height: 560px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.1;
    pointer-events: none;
}

.not-found-sun-deco {
    position: absolute;
    width: 200px;
    height: 200px;
    bottom: -40px;
    right: -40px;
    opacity: 0.07;
    pointer-events: none;
}

.not-found-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.not-found-code {
    font-family: 'Michroma', sans-serif;
    font-size: clamp(6rem, 20vw, 11rem);
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.not-found-heading {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    color: white;
    margin: 0;
    line-height: 1.3;
}

.not-found-perex {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    margin: 0;
}

.not-found-tiles {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.not-found-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.not-found-tile:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
}

.not-found-tile i {
    color: var(--accent);
    font-size: 1.1rem;
}

/* Nav transparent na 404 */
.page-404 nav {
    background: transparent;
    box-shadow: none;
}

.page-404 nav.scrolled {
    background: var(--primary-dark);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.page-404 nav .nav-links a {
    color: rgba(255, 255, 255, 0.85);
}

.page-404 nav .nav-links a:hover {
    color: white;
}

.page-404 nav.scrolled .nav-links .nav-cta {
    background: linear-gradient(135deg, var(--primary-mid) 0%, var(--primary) 100%);
    border: none;
    color: white !important;
    padding: 10px 22px;
}

@media (max-width: 768px) {
    .not-found-tiles {
        flex-direction: column;
        width: 100%;
    }

    .not-found-tile {
        justify-content: center;
    }
}

/* Mobile nav – Kontakt link visible in open dropdown (must come last to override all page-specific rules) */
@media (max-width: 992px) {
    nav .nav-links.menu-open .nav-cta,
    nav.scrolled .nav-links.menu-open .nav-cta {
        color: var(--primary-dark) !important;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
}