/* ==========================================================================
   CSS VARIABLES & DESIGN SYSTEM (Minimalist)
   ========================================================================== */
:root {
    --color-primary: #3730a3;
    --color-primary-dark: #312E81;
    --color-primary-light: #EEF2FF;

    --color-text-main: #1E293B;
    --color-text-muted: #64748B;

    --color-bg-body: #FFFFFF;
    --color-bg-alt: #F8FAFC;
    --color-bg-tint: #F1F5F9;

    --color-border: #E2E8F0;

    --font-main: 'Inter', system-ui, -apple-system, sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 4.5rem;
    --space-xxl: 7rem;

    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.05), 0 1px 2px -1px rgb(0 0 0 / 0.05);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.02);
    --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.06), 0 8px 10px -6px rgb(0 0 0 / 0.04);

    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;
    --radius-full: 9999px;

    --container-max: 1200px;
    --container-padding: 1.5rem;
}

/* ==========================================================================
   RESET & ANIMACE (ZÁKLAD)
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    overflow-x: clip;
}

/* Custom Scrollbar (iPad feel) */
::-webkit-scrollbar {
    width: 6px;
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--color-border);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #cbd5e1;
}

/* Custom Text Selection */
::selection {
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    animation: page-fade-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes page-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Jemné rozblurované zabarvení v pozadí pro doladění premium atmosféry */
body::before {
    content: '';
    position: fixed;
    top: -20vh;
    right: -10vw;
    width: 60vw;
    height: 60vw;
    max-width: 600px;
    max-height: 600px;
    background: radial-gradient(circle, var(--color-primary-light) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 1;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
    animation: blob-breath 12s infinite alternate ease-in-out;
    will-change: transform, opacity;
}

@keyframes blob-breath {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.15) translate(-3%, 4%);
        opacity: 1;
    }
}

body::after {
    content: '';
    position: fixed;
    bottom: -20vh;
    left: -10vw;
    width: 50vw;
    height: 50vw;
    max-width: 500px;
    max-height: 500px;
    background: radial-gradient(circle, rgba(55, 48, 163, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 1;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
}

h1,
h2,
h3,
h4 {
    line-height: 1.15;
    font-weight: 700;
    color: var(--color-text-main);
}

p {
    color: var(--color-text-muted);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.animate-on-scroll {
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.slide-up {
    transform: translateY(50px);
}

.slide-left {
    transform: translateX(60px);
}

.slide-right {
    transform: translateX(-60px);
}

.zoom-in {
    transform: scale(0.9);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.grid {
    display: grid;
    gap: var(--space-lg);
}

.section {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.section-light {
    background-color: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.section-tint {
    background-color: var(--color-bg-tint);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--space-xl);
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.1rem;
}

/* Tlačítka */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.25rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.btn--primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 6px rgba(55, 48, 163, 0.15);
}

.btn--primary:hover {
    background-color: var(--color-primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(55, 48, 163, 0.25);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-text-main);
    border-color: var(--color-border);
}

.btn--secondary:hover {
    border-color: var(--color-text-main);
    color: var(--color-text-main);
    transform: translateY(-2px);
}

.btn--small {
    padding: 0.6rem 1.5rem;
    font-size: 0.875rem;
    background-color: var(--color-bg-body);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
}

.btn--small:hover {
    border-color: var(--color-primary);
    background-color: var(--color-primary-light);
}

.btn--full {
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1.25rem;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
    border: 1px solid rgba(55, 48, 163, 0.08);
}

/* ==========================================================================
   HLAVIČKA & MENU
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

.logo {
    font-weight: 600;
    font-size: 1.35rem;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
    z-index: 201;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 201;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text-main);
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-main);
    left: 0;
    transition: transform 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.menu-toggle.nav-open .hamburger {
    background-color: transparent;
}

.menu-toggle.nav-open .hamburger::before {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.nav-open .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
}

.nav {
    display: none;
}

/* ==========================================================================
   KOMPONENTY OBSAHU (Hero, o-mne, reference)
   ========================================================================== */
/* Hero Sekce */
.hero {
    padding-top: calc(var(--space-xl) * 0.8);
    padding-bottom: var(--space-xxl);
    overflow: hidden;
}

.hero-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    align-items: flex-start;
}

.hero-title {
    font-size: 2.2rem;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.03em;
}

.hero-text {
    font-size: 1.15rem;
    margin-bottom: var(--space-md);
    max-width: 550px;
    color: var(--color-text-muted);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.hero-image {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Vizuální grafika Hero - Browser Mockup */
.mock-browser {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    position: relative;
    will-change: transform;
    overflow: visible;
}

.mock-browser-header {
    background: var(--color-bg-alt);
    padding: 0.8rem 1.2rem;
    display: flex;
    gap: 0.4rem;
    border-bottom: 1px solid var(--color-border);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.mock-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mock-dot:nth-child(1) {
    background: #ef4444;
}

.mock-dot:nth-child(2) {
    background: #eab308;
}

.mock-dot:nth-child(3) {
    background: #22c55e;
}

.mock-browser-body {
    padding: 2.5rem 1.5rem;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    background: #fff;
}

.mock-line {
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    margin-bottom: 0.8rem;
}

.mock-line-title {
    height: 28px;
    width: 60%;
    background: var(--color-primary-light);
    margin-bottom: 1.5rem;
}

.mock-line-text {
    height: 12px;
}

.w-100 {
    width: 100%;
}

.w-80 {
    width: 80%;
}

.mock-card-grid {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.mock-card {
    flex: 1;
    height: 60px;
    background: var(--color-bg-tint);
    border-radius: var(--radius-md);
}

/* Stylizované texty a body */
.punchy-list {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.punchy-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.punchy-check {
    color: var(--color-primary);
    font-weight: 800;
}

.punchy-list strong {
    color: var(--color-text-main);
}

/* O mně Sekce */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.about-content .about-title {
    font-size: 1.8rem;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.about-content .about-text {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-md);
    background-color: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.about-feature {
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

.about-feature:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.about-feature strong {
    display: block;
    color: var(--color-primary);
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

/* Karty Výhody/Služby */
.features-grid,
.services-grid {
    grid-template-columns: 1fr;
}

.feature-card,
.service-card {
    background: #fff;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.feature-card:hover,
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.feature-icon,
.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon,
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3,
.service-card h3 {
    margin-bottom: var(--space-xs);
    font-size: 1.25rem;
}

/* Reference Karty (Nový design screenshot modulu) */
.reference-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
    display: flex;
    flex-direction: column;
}

.reference-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.reference-preview {
    width: 100%;
    height: 200px;
    background: var(--color-bg-tint);
    border-bottom: 1px solid var(--color-border);
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--space-md);
}

.mini-browser {
    width: 82%;
    height: 100%;
    background: #fff;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mini-browser-top {
    height: 18px;
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 4px;
    border-bottom: 1px solid var(--color-border);
}

.mini-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
}

.mini-browser-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}

.mini-line {
    background: var(--color-bg-tint);
    border-radius: 4px;
}

.reference-info {
    padding: var(--space-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.reference-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.reference-info p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    flex: 1;
}

.reference-link {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.reference-link:hover {
    color: var(--color-primary-dark);
}

/* Kontakt */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: var(--space-sm);
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background-color: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.contact-method:hover {
    transform: translateX(4px);
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
}

.contact-phone {
    background-color: var(--color-bg-body);
    border-color: var(--color-primary-light);
}

.contact-phone:hover {
    border-color: var(--color-primary);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    background-color: var(--color-primary-light);
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
}

.contact-method span {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 0.1rem;
}

.contact-method strong {
    display: block;
    font-size: 1.15rem;
    color: var(--color-text-main);
}

.contact-phone strong {
    color: var(--color-primary);
    font-size: 1.25rem;
}

/* Contact Form / Formspree */
.contact-form {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.form-group input,
.form-group textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--color-text-main);
    background-color: var(--color-bg-alt);
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-primary-light);
}

.field-error-notice {
    height: 0;
    overflow: hidden;
    display: block;
    color: #ef4444;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

[data-fs-error]:not(:empty) {
    height: auto;
    margin-top: 0.4rem;
    opacity: 1;
}

.btn-spinner {
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.btn--success {
    background-color: #10B981 !important;
    color: white !important;
    pointer-events: none;
    border: none;
}

.form-feedback {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: success-appear 0.5s ease-out forwards;
}

.success-message {
    padding: var(--space-xl) var(--space-md);
    color: #065f46;
}

.success-icon {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: dash-check 1s ease-out forwards 0.1s;
    color: #10B981;
    margin-bottom: 1rem;
}

@keyframes dash-check {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes success-appear {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

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

.success-message h3 {
    color: #047857;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.success-message p {
    color: #065f46;
    font-weight: 500;
}

.footer {
    background-color: transparent;
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.footer-brand {
    font-weight: 700;
    color: var(--color-text-main);
    font-size: 1.1rem;
}

.footer-socials {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.footer-socials a {
    color: var(--color-text-muted);
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-socials a:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
}

.footer p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--color-primary);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* Proces Spolupráce */
.proces-grid {
    grid-template-columns: 1fr;
}

.proces-card {
    background: #fff;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.proces-number {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.proces-content h3 {
    margin-bottom: 0.3rem;
    font-size: 1.25rem;
}

/* FAQ Accordion */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-main);
    font-family: var(--font-main);
    cursor: pointer;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: var(--color-bg-alt);
}

.faq-question svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    overflow: hidden;
}

.faq-answer-inner p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

/* Contact Mobile Fix */
.contact-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    grid-template-columns: minmax(0, 1fr);
    display: grid;
}

.contact-form-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
    padding: 2px;
}

.contact-form {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.form-group,
.form-fields-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.form-group input,
.form-group textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.contact-form .btn {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    height: auto;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    width: calc(100% - 40px);
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: var(--space-md);
    z-index: 1000;
    transform: translate(-50%, 150%);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-banner.show {
    transform: translate(-50%, 0);
}

.cookie-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.cookie-text strong {
    color: var(--color-text-main);
    display: block;
    margin-bottom: 0.2rem;
    font-weight: 700;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
}

/* ==========================================================================
   MOBILNÍ ÚPRAVY A DESKTOP QUERIES
   ========================================================================== */
.no-scroll {
    overflow: hidden;
    touch-action: none;
}

@media (max-width: 991px) {
    p {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .section {
        padding-top: calc(var(--space-xl) * 1.2);
        padding-bottom: calc(var(--space-xl) * 1.2);
    }

    .hide-on-mobile {
        display: none !important;
    }

    .hide-on-desktop-only {
        display: block !important;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.75);
        backdrop-filter: blur(32px);
        -webkit-backdrop-filter: blur(32px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-lg);
        transform: translateY(-100%);
        transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
        z-index: 150;
        padding: 2rem;
    }

    .nav.nav-open {
        transform: translateY(0);
    }

    .nav a:not(.btn) {
        font-size: 1.8rem;
        font-weight: 600;
    }

    .nav a.btn {
        margin-top: 1rem;
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
    }
}

@media (min-width: 992px) {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .hide-on-desktop-only {
        display: none !important;
    }

    .nav {
        display: flex;
        align-items: center;
        gap: var(--space-md);
    }

    .nav a:not(.btn) {
        position: relative;
        transition: color 0.2s ease;
    }

    .nav a:not(.btn):hover {
        color: var(--color-primary);
    }

    .nav a.active {
        color: var(--color-primary);
        font-weight: 600;
    }

    .nav a.active::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--color-primary);
        border-radius: 2px;
    }

    .hero {
        padding-top: calc(var(--space-xxl) * 1.3);
        padding-bottom: calc(var(--space-xxl) * 1.6);
    }

    .section {
        padding-top: calc(var(--space-xxl) * 1.3);
        padding-bottom: calc(var(--space-xxl) * 1.3);
    }

    .hero-container {
        flex-direction: row;
        align-items: center;
    }

    .hero-content {
        flex: 1.1;
    }

    .hero-image {
        flex: 0.9;
    }

    .hero-title {
        font-size: 3.5rem;
        line-height: 1.1;
    }

    .hero-actions {
        flex-direction: row;
    }

    .about-wrapper {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: center;
    }

    .features-grid,
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: start;
        gap: var(--space-xxl);
    }

    .contact-form {
        padding: var(--space-lg);
    }
}