html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

:root {
    /* Colors - Premium Navy & Charcoal Palette */
    --color-primary: #1a56db;
    /* Confident CTA Blue */
    --color-primary-hover: #1e429f;
    --color-bg: #ffffff;
    --color-bg-alt: #f9fafb;
    /* Light grey for sections */
    --color-text: #111827;
    /* Dark Charcoal */
    --color-text-muted: #4b5563;
    /* Muted Grey */
    --color-text-light: #9ca3af;
    --color-border: #e5e7eb;

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Spacing & Sizing */
    --container-width: 1200px;
    --section-padding: clamp(4rem, 8vw, 4rem);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.025em;
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: var(--section-padding) 0;
}

.section-alt {
    background-color: var(--color-bg-alt);
}

/* Typography Utilities */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--color-primary);
}

.font-bold {
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-border);
    color: var(--color-text);
}

.btn-outline:hover {
    border-color: var(--color-text);
    background-color: var(--color-bg-alt);
}

/* Navigation */
.header {
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 75px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .logo-img {
        height: 65px;
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--color-primary);
}

/* Header new elements */
.header .container {
    gap: 2rem;
}

.header-logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.header-portrait {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 70% 20%;
    border: 2px solid var(--color-border);
    flex-shrink: 0;
    display: block;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.header-linkedin {
    display: flex;
    align-items: center;
    color: #0a66c2;
    transition: opacity 0.2s;
}

.header-linkedin:hover {
    opacity: 0.7;
}

.header-contact {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
    padding-bottom: 2px;
}

.header-contact:hover {
    border-bottom-color: var(--color-primary);
}

@media (max-width: 768px) {
    .header-portrait {
        display: none;
    }

    .header-actions {
        display: none;
    }
}


/* Mobile Menu Button - Hamburger */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
    padding-top: clamp(2rem, 5vh, 5rem);
    padding-bottom: clamp(4rem, 10vh, 10rem);
    background-color: #f8f6f2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-trust {
    font-size: 0.875rem;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Trust Bar */
.trust-bar {
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.logo-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    filter: grayscale(100%);
    opacity: 0.6;
}

.logo-item {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-text-light);
}

/* Services */
.section-header {
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: #f8f6f2;
    padding: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 56, 168, 0.15);
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card-icon {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.process-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.process-list li {
    font-size: 0.875rem;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.process-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 800;
}

.card .link {
    margin-top: auto;
    font-weight: 600;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--color-text);
    position: relative;
}

.testimonial-text::before {
    content: "„";
    font-size: 3rem;
    position: absolute;
    top: -1rem;
    left: -1rem;
    opacity: 0.1;
    font-family: serif;
}

.testimonial-author {
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    font-size: 1rem;
    color: var(--color-text);
}

.testimonial-author span {
    font-size: 0.8125rem;
    color: var(--color-text);
    font-weight: 600;
}

/* Client Case Study Boxes */
.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.client-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.client-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
}

.client-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.client-card p {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.client-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    background: var(--color-bg-alt);
    color: var(--color-primary);
    border-radius: 2rem;
    white-space: nowrap;
}

/* Trust Bar */
.trust-bar {
    padding: 3rem 0;
    background: white;
}

.logo-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3.5rem;
    opacity: 0.4;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.logo-strip img {
    max-height: 2.5rem;
    object-fit: contain;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-strip img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Featured Partnerships Section */
.partnerships-section {
    padding: 8rem 0;
    background: #fdfdfd;
}

.partnership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.partnership-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-primary);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.partnership-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--color-primary);
}

.partnership-card h4 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.partnership-card p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
    color: var(--color-text);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    padding: 0.35rem 0.85rem;
    background: var(--color-bg-alt);
    color: var(--color-primary);
    border-radius: 4px;
}

/* Footer Improvements */
.footer {
    padding: 5rem 0 2rem;
    background: var(--color-bg-alt);
    color: var(--color-text);
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-column h4 {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
}

.footer-column p {
    color: var(--color-text);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-text);
    font-size: 1.05rem;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-socials a {
    color: var(--color-text);
}

.footer-socials a:hover {
    color: var(--color-primary);
}

.footer-logo {
    display: block;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    filter: none;
    /* Resetting logo filter for light footer */
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* CTA Box - Less prominent, clean design */
.cta-box {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    padding: clamp(3rem, 6vw, 4.5rem) 2rem;
    border-radius: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), #60a5fa);
}

.cta-box h2 {
    color: var(--color-text) !important;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-box p {
    color: var(--color-text-muted) !important;
    font-size: clamp(1.1rem, 1.25vw, 1.2rem);
    margin-bottom: 2.5rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-box .btn-cta {
    background: var(--color-primary);
    color: white;
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    transition: all 0.2s ease;
    display: inline-block;
}

.cta-box .btn-cta:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 4rem 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
        z-index: 1000;
        visibility: hidden;
        /* Hide from screen readers & interaction when closed */
    }

    .nav-links.active {
        right: 0;
        visibility: visible;
    }

    .nav-links a {
        font-size: 1.25rem;
        width: 100%;
        text-align: center;
    }

    body.menu-open {
        overflow: hidden;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-column {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .grid-cards,
    .partnership-grid,
    .client-grid {
        grid-template-columns: 1fr !important;
    }

    /* Responsive overrides for elements with inline styles */
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns: 2fr 1fr"],
    [style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    [style*="padding: 4rem"],
    [style*="padding: 5rem"] {
        padding: 2.5rem 1rem !important;
    }

    /* All H1 headings capped at 2.2rem on mobile — overrides any inline style */
    h1 {
        font-size: 2.2rem !important;
    }

    [style*="font-size: 2.5rem"] {
        font-size: 1.8rem !important;
    }

    /* Container width overrides */
    [style*="max-width: 800px"],
    [style*="max-width: 900px"] {
        max-width: 100% !important;
    }
}

/* Blog / Article Content Styling */
.content h1,
.content h2,
.content h3,
.content h4 {
    color: var(--color-text);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.content ul,
.content ol {
    margin-bottom: 2rem;
    padding-left: 0.5rem;
}

.content ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 1rem;
    color: var(--color-text);
    line-height: 1.7;
}

.content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 7px;
    height: 7px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transform: rotate(45deg);
}

.content ol {
    counter-reset: item;
    list-style: none;
}

.content ol li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text);
    line-height: 1.7;
}

.content ol li::before {
    counter-increment: item;
    content: counter(item) ".";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.content img {
    margin: 3.5rem 0;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-content h1 {
        font-size: 2.1rem;
    }
}

/* Blog Content Styles */
.content a {
    text-decoration: underline;
    color: var(--color-primary);
}

.content a:hover {
    color: var(--color-primary-hover);
}


/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    text-align: left;
    justify-content: flex-start;
}

.breadcrumbs a {
    color: var(--color-text-muted);
    transition: color 0.2s ease;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

.breadcrumbs .separator {
    color: var(--color-text-light);
    font-size: 0.75rem;
}

.breadcrumbs .current {
    color: var(--color-text-light);
    font-weight: 500;
}

/* Mobile: hide current page label and its separator for cleaner breadcrumbs */
@media (max-width: 768px) {
    .breadcrumbs .current {
        display: none;
    }

    /* Hide the separator immediately before .current (always 2nd from last) */
    .breadcrumbs>*:nth-last-child(2) {
        display: none;
    }
}

/* Split Layout for Services and Trainings */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* 3 Column Process Grid */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

/* AI Summary Section for Blog Posts */
.ai-summary {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 3.5rem;
    padding: 1.5rem;
    background-color: #fcfcfc;
    border-radius: 0.75rem;
    border: 1px solid var(--color-border);
}

.blog-article {
    max-width: 850px !important;
    margin: 0 auto;
}

.ai-summary::before {
    content: "SHRNUTÍ ČLÁNKU";
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}