/*
 * Auto Kadet s.r.o. - Hlavní styly
 */

:root {
    /* Color Palette */
    --color-bg-primary: #F7F5F0;
    --color-bg-secondary: #EEECE8;
    --color-text-primary: #1C1917;
    --color-text-secondary: #78716C;
    --color-accent: #F0B429;
    --color-ui: #4A5568;
    --color-white: #FFFFFF;
    --color-border: #D4D0CB;
    --color-text-light: #A8A29E;

    /* Shadows & Overlays */
    --shadow-sm: rgba(0, 0, 0, 0.06);
    --shadow-md: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.12);
    --accent-glow: rgba(240, 180, 41, 0.35);
    --overlay-bg: rgba(28, 25, 23, 0.4);
    --overlay-shadow: rgba(28, 25, 23, 0.15);
    --overlay-light: rgba(0, 0, 0, 0.2);

    /* Typography */
    --font-display: 'Bebas Neue', 'Arial Narrow', Impact, sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --ls-micro: 0.1em;

    /* Layout */
    --max-width: 1200px;
    --nav-height-desktop: 64px;
    --nav-height-mobile: 56px;
    --section-padding: clamp(64px, 8vw, 96px);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 100px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height-mobile);
    font-size: 16px;
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    object-fit: cover;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: var(--section-padding) 0;
}

/* Typography Elements */
h1,
h2,
h3 {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
    font-weight: 400;
}

p,
a,
button,
input {
    font-family: var(--font-body);
}

.microlabel {
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: var(--ls-micro);
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.section-title {
    font-size: 42px;
    /* Zvýšené pro Bebas Neue */
    line-height: 1.15;
    color: var(--color-text-primary);
}

.section-desc {
    font-size: 16px;
    color: var(--color-text-secondary);
}

.accent-dot {
    color: var(--color-accent);
}

/* Icons */
.btn svg[aria-hidden="true"],
.nav-cta svg[aria-hidden="true"] {
    width: 20px;
    height: 20px;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    padding: 0 24px;
    border-radius: var(--radius-md);
    font-size: 16px;
    cursor: pointer;
    transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-text-primary);
    font-weight: 600;
}

.btn-primary:hover {
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-secondary {
    background-color: transparent;
    border: 1.5px solid var(--color-border);
    color: var(--color-ui);
    font-weight: 500;
}

.btn-secondary:hover {
    background-color: var(--color-bg-secondary);
    border-color: transparent;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height-mobile);
    background-color: var(--color-bg-primary);
    z-index: 100;
    transition: background-color 200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 200ms cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 8px var(--shadow-sm);
}

.navbar.scrolled {
    background-color: var(--color-white);
    box-shadow: 0 1px 16px var(--shadow-md);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-name {
    font-family: var(--font-display);
    font-size: 26px;
    /* Bebas Neue opticky menší */
    line-height: 1;
    color: var(--color-text-primary);
}

.logo-suffix {
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1;
}

.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    z-index: 101;
}

.nav-content {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    padding: 24px;
    box-shadow: 0 8px 16px var(--shadow-sm);
    border-top: 1px solid var(--color-border);
}

.nav-content.is-open {
    display: flex;
}

.nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.nav-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-ui);
    position: relative;
    transition: color 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--color-accent);
    opacity: 0;
    transition: opacity 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link.active::after {
    opacity: 1;
}

.nav-cta.desktop-only {
    display: none;
    align-items: center;
    gap: 8px;
    background-color: var(--color-text-primary);
    color: var(--color-white);
    font-weight: 500;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    transition: background-color 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-cta.desktop-only:hover {
    background-color: var(--color-text-primary);
    filter: brightness(1.2);
    cursor: pointer;
}

.nav-cta.desktop-only svg {
    width: 16px;
    height: 16px;
}

.nav-cta.mobile-only {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    gap: 6px;
    color: var(--color-text-primary);
    font-weight: 500;
    font-size: 16px;
}

/* Utility hide/show class for JS copy logic */
.d-none {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: fit-content;
    background-color: var(--color-bg-primary);
    display: flex;
    flex-direction: column;
    padding-top: 24px;
    padding-bottom: 32px;
    overflow: hidden;
    --hero-fade-point: 45%;
}

.hero-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
    z-index: 2;
}

.hero-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hero-label {
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 52px;
    /* Zvýšené */
    line-height: 1.1;
    color: var(--color-text-primary);
    margin-bottom: 24px;
}

.hero-title-line {
    display: block;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.hero-cta-group .btn {
    width: 100%;
}

@media (max-width: 767px) {
    .hero-image-wrapper {
        margin: -20px -24px -32px;
        /* Even more distance from buttons, almost no overlap now */
        position: relative;
        z-index: 1;
    }

    .image-placeholder {
        /* Even longer vertical gradient fade for softer integration */
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 80%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 80%);
    }
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    align-items: flex-end;
}

.image-placeholder {
    width: 100%;
    background-color: var(--color-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    object-fit: cover;
}

.aspect-hero {
    aspect-ratio: 16/9;
    /* Simulate cropped from bottom effect on mobile */
    align-self: flex-end;
}

.aspect-portrait {
    aspect-ratio: 4/5;
}

/* Trust Bar (Přepracováno) */
.trust-bar {
    background-color: var(--color-bg-secondary);
    min-height: 80px;
    padding: 24px 0;
    overflow: hidden;
}

.trust-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.trust-left {
    text-align: center;
    width: 100%;
}

.trust-label {
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: var(--ls-micro);
    color: var(--color-text-light);
}

.trust-hr {
    width: 100%;
    height: 1px;
    background-color: var(--color-border);
    margin-top: 8px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.trust-note {
    font-size: 14px;
    color: var(--color-ui);
    font-style: normal;
    line-height: 1.4;
}

.trust-right {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Adjust for seamless scrolling loop */
    }
}

.logos-track {
    display: flex;
    width: max-content;
    flex-wrap: nowrap;
    animation: scrollLogos 34s linear infinite;
    will-change: transform;
}

.logos-track:hover {
    animation-play-state: paused;
}

.logos-set {
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 0 24px;
    /* Critical for seamless loop gap between sets */
}

.trust-logo {
    height: 32px;
    width: auto;
    filter: grayscale(1) opacity(0.55);
    transition: filter 200ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
}

.trust-logo:hover {
    filter: grayscale(0) opacity(1);
}

/* Services */
.services {
    background-color: var(--color-bg-primary);
}

.services-header {
    display: block;
    text-align: center;
    margin-bottom: 48px;
}

.services-header .section-desc {
    margin-top: 16px;
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.service-card {
    background-color: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.service-icon {
    color: var(--color-text-primary);
    margin-bottom: 20px;
    width: 28px;
    height: 28px;
    display: block;
    /* visible SVG icons */
}

.service-card:hover .service-icon {
    color: var(--color-accent);
}

.service-title {
    font-size: 30px;
    /* Bebas Neue H3 */
    margin-bottom: 8px;
}

.service-text {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.service-tag {
    margin-top: auto;
    align-self: flex-start;
    background-color: var(--color-bg-primary);
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

/* Statistics */
.stats {
    background-color: var(--color-text-primary);
    /* Bylo: padding: var(--section-padding) 0; (96px) - Sníženo celkem o 40 % */
    padding: calc(var(--section-padding) * 0.6) 0;
    color: var(--color-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centrování obsahu */
    text-align: center;
    /* Zarovnání textu vizuálně */
}

.stat-number-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    /* Vystředění čísla a případného +/let... */
    font-family: var(--font-display);
    font-size: 48px;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}

.stat-desc {
    font-size: 14px;
    color: var(--color-text-light);
    letter-spacing: 0.03em;
    max-width: 180px;
    /* Zabránění přílišného roztahování u dlouhých textů na jedné řádce */
}

/* Location */
.location {
    background-color: var(--color-bg-primary);
}

.location-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.location-col {
    display: flex;
    flex-direction: column;
}

.location-title {
    font-size: 42px;
    /* H2 */
    line-height: 1.2;
    margin-bottom: 16px;
}

.location-text {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.secondary-cta {
    font-weight: 500;
    font-size: 14px;
    color: var(--color-ui);
    text-decoration: underline;
    text-decoration-color: var(--color-border);
    align-self: flex-start;
    transition: color 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.secondary-cta:hover {
    color: var(--color-text-primary);
}

/* Guide */
.guide {
    background-color: var(--color-bg-secondary);
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}

.guide-header {
    margin-bottom: 48px;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    position: relative;
}

.guide-timeline {
    display: none;
}

.guide-step {
    display: flex;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--color-border);
}

.guide-step:last-child {
    border-bottom: none;
}

.step-number {
    font-family: var(--font-display);
    font-size: 44px;
    line-height: 1;
    color: var(--color-border);
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 30px;
    /* H3 Bebas */
    margin-bottom: 4px;
}

.step-text {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* About */
.about {
    position: relative;
    background-color: var(--color-bg-primary);
    overflow: hidden;
    --about-fade-point: 45%;
}

/* Mobile specific "About Us" image refinements */
@media (max-width: 767px) {
    .about {
        padding-top: 0;
        /* Remove top gap to previous section */
    }

    .about-image-col {
        margin: 0 -24px;
        /* Pull to edges */
        height: 380px;
        /* Controlled height for better crop control on mobile */
        overflow: hidden;
        /* Stable clipping */
        position: relative;
    }

    .about-image-col .image-placeholder {
        /* Stable crop: move image up slightly to hide sky from top */
        height: 110%;
        /* Make slightly taller to cover bottom when shifted */
        margin-top: -10%;
        /* Explicitly crop 10% from the top */
        object-fit: cover;

        /* Softer and longer vertical gradient fade-down */
        -webkit-mask-image: linear-gradient(to top, transparent 0%, black 65%);
        mask-image: linear-gradient(to top, transparent 0%, black 65%);
    }

    .about-text-col {
        margin-top: -145px;
        /* Perfect middle ground overlap */
        position: relative;
        z-index: 2;
    }
}

.about-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.75;
    margin-top: 24px;
    margin-bottom: 32px;
}

.about-phone {
    font-weight: 600;
    font-size: 15px;
    color: var(--color-text-primary);
    display: inline-block;
    cursor: pointer;
    transition: color 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.about-phone:hover {
    color: var(--color-accent);
}

.about-phone-note {
    font-size: 13px;
    color: var(--color-text-secondary);
}

/* Final CTA */
.final-cta {
    background-color: var(--color-accent);
    padding: var(--section-padding) 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 260px;
    justify-content: center;
}

.final-cta-title {
    font-size: 42px;
    /* H2 */
    color: var(--color-text-primary);
    line-height: 1.1;
    margin-bottom: 12px;
}

.final-cta-subtitle {
    font-size: 18px;
    color: var(--color-text-primary);
    margin-bottom: 32px;
}

.cta-contact-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cta-phone {
    font-family: var(--font-display);
    font-size: 45px;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
    text-decoration: none;
    line-height: 1;
    cursor: pointer;
    transition: opacity 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-phone:hover {
    opacity: 0.7;
}

.cta-email-link {
    font-size: 15px;
    color: var(--color-text-primary);
    border: 1.5px solid var(--color-text-primary);
    padding: 10px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 200ms cubic-bezier(0.16, 1, 0.3, 1), color 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-email-link:hover {
    background: var(--color-text-primary);
    color: var(--color-accent);
}

/* Pure links with no underline */
.phone-pure {
    text-decoration: none;
}

/* Footer */
.footer {
    background-color: var(--color-text-primary);
    color: var(--color-text-secondary);
    padding: 40px 0 40px;
}

.footer-desc {
    font-size: 15px;
    line-height: 1.6;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--color-white);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.footer-label {
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: var(--ls-micro);
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 16px;
    transition: color 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-links a:hover {
    color: var(--color-bg-primary);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
}

.footer-phone {
    display: inline-block;
    font-weight: 600;
    font-size: 22px;
    color: var(--color-bg-primary);
    margin-bottom: 8px;
    cursor: pointer;
    transition: color 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-phone:hover {
    color: var(--color-accent);
}

.footer-email,
.footer-address {
    display: inline-block;
    font-size: 15px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
    font-style: normal;
}

.footer-email:hover,
.footer-address:hover {
    color: var(--color-bg-primary);
}

.fax-wrapper {
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.fax-wrapper .footer-phone {
    margin-bottom: 0;
}

#fax-feedback {
    display: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-accent);
}

.gps-coords {
    font-size: 13px;
    color: var(--color-ui);
    margin-top: 4px;
    display: block;
}

.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--color-ui);
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--color-ui);
}

.copyright {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
}

.footer-bottom a:hover,
.footer-bottom button:hover {
    text-decoration: none;
}

.gdpr-link {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    padding: 0;
    cursor: pointer;
    transition: color 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.gdpr-link:hover {
    color: var(--color-bg-primary);
    text-decoration: none !important;
}

.author-link {
    text-decoration: none !important;
    transition: color 200ms cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: inline-block;
}

.author-link:hover {
    color: var(--color-bg-primary);
    text-decoration: none !important;
}

.author-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px var(--overlay-light);
    pointer-events: none;
    z-index: 10;
}

.author-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--color-bg-primary) transparent transparent transparent;
}

.author-link:focus .author-tooltip,
.author-link:active .author-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@media (hover: hover) {
    .author-link:hover .author-tooltip {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

/* GDPR Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.is-visible {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-bg);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    /* Rychlejší a bez zpoždění pro zavírání */
    transition: opacity 120ms ease-out;
}

.modal.is-animating .modal-overlay {
    opacity: 1;
    /* Původní pomalejší a se zpožděním pro otevírání */
    transition: opacity 250ms ease-out 80ms;
}

.modal-content {
    position: relative;
    background-color: var(--color-bg-primary);
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    border-radius: var(--radius-xl);
    padding: 56px;
    overflow-y: auto;
    box-shadow: 0 24px 64px var(--overlay-shadow);
    /* Snížení dráhy "jízdy" zespoda o cca 30% z translateY(16px) -> 10px */
    transform: translateY(10px) scale(0.98);
    /* Rychlejší a bez zpoždění zavírání */
    transition: transform 120ms ease-out 40ms;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.modal.is-animating .modal-content {
    transform: translateY(0) scale(1);
    /* Rychlejší otevírání */
    transition: transform 120ms ease-out;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close:hover {
    color: var(--color-text-primary);
    background-color: transparent;
}

.modal-title {
    font-size: 48px;
    margin-bottom: 40px;
    padding-right: 48px;
    color: var(--color-text-primary);
    line-height: 1.1;
}

.modal-title::after {
    content: '.';
    color: var(--color-accent);
}

.modal-body {
    display: block;
}

.modal-body h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 12px;
    margin-bottom: 12px;
    margin-top: 32px;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    font-size: 16px;
    color: var(--color-text-primary);
    line-height: 1.7;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .modal {
        padding: 16px;
        align-items: flex-end;
    }

    .modal-content {
        padding: 40px 24px 32px;
        border-radius: var(--radius-xl) var(--radius-xl) var(--radius-lg) var(--radius-lg);
        max-height: 85vh;
        transform: translateY(32px);
    }

    .modal-close {
        top: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .modal-title {
        font-size: 36px;
        margin-bottom: 32px;
    }

    .modal-body h3 {
        margin-top: 24px;
    }
}

/* Animations (Scroll in view) */
.animate-item {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 480ms cubic-bezier(0.16, 1, 0.3, 1), transform 480ms cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-item.in-view {
    opacity: 1;
    transform: translateY(0);
}

.observer-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 480ms cubic-bezier(0.16, 1, 0.3, 1), transform 480ms cubic-bezier(0.16, 1, 0.3, 1);
}

.observer-section.in-view {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {

    0%,
    15%,
    100% {
        transform: scale(1);
    }

    7.5% {
        transform: scale(1.025);
    }
}

.pulse-btn {
    animation: pulse 4s infinite ease-in-out 3s;
}

@media (prefers-reduced-motion: reduce) {

    /* U odtahovky chceme raději ponechat animace log funkční,
       pokud nebylo výslovně nařízeno blokování všeho pohybu v UI, 
       ponecháme pouze vypnutí entrance animací pro lepší UX,
       ale nepřerušit CSS animace (a hlavně scrollLogos). */
    .animate-item,
    .observer-section {
        opacity: 1;
        transform: none;
        transition: none !important;
    }

    .pulse-btn {
        animation: none;
    }
}

/* Desktop Breakpoint */
@media (min-width: 768px) {
    html {
        scroll-padding-top: var(--nav-height-desktop);
    }

    .mobile-menu-toggle {
        display: none !important;
    }

    .nav-content {
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        background-color: transparent;
        padding: 0;
        box-shadow: none;
        border-top: none;
    }

    .nav-links {
        flex-direction: row;
        width: auto;
    }

    .mobile-only {
        display: none !important;
    }

    .nav-cta.desktop-only {
        display: inline-flex;
    }

    .hero {
        min-height: 760px;
        display: flex;
        align-items: center;
        padding-top: 0;
        padding-bottom: 0;
    }

    .hero-container {
        flex-direction: row;
        align-items: center;
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .hero-text-block {
        width: 55%;
        padding-right: 48px;
    }

    .hero-image-wrapper {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 55%;
        display: flex;
        align-items: stretch;
        z-index: 1;
    }

    .image-placeholder {
        width: 100%;
        height: 100%;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black var(--hero-fade-point));
        mask-image: linear-gradient(to right, transparent 0%, black var(--hero-fade-point));
    }

    .aspect-hero {
        aspect-ratio: auto;
        height: 100%;
    }

    .hero-title {
        font-size: clamp(44px, 6.2vw, 82px);
    }

    @media (min-width: 1200px) {
        .hero {
            --hero-fade-point: 76%;
        }
    }

    @media (max-width: 1199px) and (min-width: 900px) {
        .hero {
            --hero-fade-point: 60%;
        }
    }

    @media (max-width: 899px) and (min-width: 768px) {
        .hero {
            --hero-fade-point: 46%;
        }
    }


    .hero-cta-group {
        flex-direction: row;
    }

    .hero-cta-group .btn {
        width: auto;
    }

    .trust-container {
        flex-direction: row;
        align-items: center;
    }

    .trust-left {
        width: auto;
        flex-shrink: 0;
        text-align: left;
        margin-right: 24px;
    }

    .trust-hr {
        display: none;
        /* Skryjeme oddelovac na desktopu */
    }

    .trust-right {
        flex: 1;
        mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    }

    .services-header {
        text-align: left;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
    }

    .services-header .section-desc {
        max-width: 280px;
        margin-top: 0;
    }

    .services-grid {
        flex-direction: row;
    }

    .service-card {
        flex: 1;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .stat-number-wrapper {
        font-size: 64px;
    }

    .location-grid {
        flex-direction: row;
    }

    .location-col {
        flex: 1;
        position: relative;
    }

    .location-col:first-child::after {
        content: '';
        position: absolute;
        top: 0;
        right: -24px;
        width: 1px;
        height: 100%;
        background-color: var(--color-border);
    }

    .location-col:last-child {
        padding-left: 24px;
    }

    .location-title {
        font-size: 42px;
        /* Zvýšeno */
    }

    .guide-header {
        text-align: left;
    }

    .guide-step {
        padding: 24px 0 24px 64px;
    }

    .guide-timeline {
        position: absolute;
        left: 0;
        top: 32px;
        bottom: 32px;
        width: 2px;
        background-color: var(--color-accent);
    }

    .step-number {
        font-size: 52px;
    }

    .step-text {
        max-width: 520px;
    }

    .about {
        min-height: 600px;
        display: flex;
        align-items: center;
    }

    .about-grid {
        flex-direction: row;
        align-items: center;
        width: 100%;
    }

    .about-image-col {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 55%;
        z-index: 1;
        display: flex;
        align-items: stretch;
    }

    .about-image-col .image-placeholder {
        width: 100%;
        height: 100%;
        border-radius: 0;
        -webkit-mask-image: linear-gradient(to left, transparent 0%, black var(--about-fade-point));
        mask-image: linear-gradient(to left, transparent 0%, black var(--about-fade-point));
    }

    .about-text-col {
        width: 50%;
        margin-left: auto;
        padding-left: 48px;
        position: relative;
        z-index: 2;
    }

    @media (min-width: 1200px) {
        .about {
            --about-fade-point: 76%;
        }
    }

    @media (max-width: 1199px) and (min-width: 900px) {
        .about {
            --about-fade-point: 60%;
        }
    }

    @media (max-width: 899px) and (min-width: 768px) {
        .about {
            --about-fade-point: 46%;
        }
    }

    .final-cta-title {
        font-size: 52px;
    }

    .footer {
        padding: 64px 0 40px;
    }

    .footer-grid {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-col {
        flex: 1;
    }
}

/* 
 * Phone CTA Panel (Desktop only) 
 */
.phone-panel {
    display: none;
    position: absolute;
    z-index: 1000;
    background-color: var(--color-white);
    border: 1px solid var(--color-bg-secondary);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px var(--shadow-lg);
    min-width: 280px;
    max-width: 320px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 200ms cubic-bezier(0.16, 1, 0.3, 1), transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-panel.is-visible {
    display: block;
}

.phone-panel.is-animating {
    opacity: 1;
    transform: translateY(0);
}

.phone-panel.is-closing {
    opacity: 0;
    transform: translateY(-8px);
    transition-duration: 150ms;
}

/* Active trigger element state */
[data-phone-trigger].is-active {
    transition: background-color 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary[data-phone-trigger].is-active {
    background-color: var(--color-accent);
    filter: brightness(0.9);
}

.nav-cta[data-phone-trigger].is-active {
    background-color: var(--color-text-primary);
    filter: brightness(1.2);
}

.phone-panel-section {
    padding: 24px;
    border-bottom: 1px solid var(--color-bg-secondary);
    display: flex;
    flex-direction: column;
}

.phone-panel-section-last {
    border-bottom: none;
    padding-top: 16px;
    padding-bottom: 24px;
}

.phone-panel-microlabel {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: var(--ls-micro);
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.phone-panel-primary-number {
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--color-text-primary);
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.phone-panel-secondary-number {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text-secondary);
    opacity: 0.6;
    margin-top: 2px;
}

/* QR Code Section */
#qr-code-container {
    align-self: center;
    width: 140px;
    height: 140px;
    margin: 16px 0;
}

.phone-panel-note {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text-secondary);
    font-style: italic;
    text-align: center;
    line-height: 1.4;
}

/* Action Buttons (Copy & App) */
.phone-panel-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.phone-panel-action-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 13px;
    color: var(--color-ui);
    cursor: pointer;
    padding: 10px 12px;
    transition: background-color 200ms cubic-bezier(0.16, 1, 0.3, 1), color 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-panel-action-btn:hover {
    background-color: var(--color-bg-secondary);
}

.phone-panel-action-btn.copied {
    color: var(--color-accent);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}