/* =====================================================
   COMPONENTS.CSS — "Digital Studio" UI Components
   numericky.cz | BEM Methodology, Responsive Inline
   ===================================================== */

/* ===== 0. GLOBAL CONTAINER — matches navbar max-width ===== */
.container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
}

/* ===== 1. NAVBAR ===== */
.navbar {
    background: rgba(253, 253, 253, 0.95) !important;
    border-bottom: var(--border-grid) !important;
    backdrop-filter: blur(5px) !important;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.navbar a {
    font-weight: 500 !important;
    color: var(--ink-900) !important;
    text-decoration: none;
}

.logo {
    font-family: var(--font-ui) !important;
    letter-spacing: -0.03em !important;
}

.logo-tld {
    background: none !important;
    -webkit-text-fill-color: var(--blue-600) !important;
    color: var(--blue-600) !important;
}

/* --- Desktop Nav --- */
.desktop-nav-center {
    display: flex;
    align-items: center;
}

.desktop-actions {
    display: flex;
    align-items: center;
}

.desktop-actions a.btn,
.desktop-actions a.btn-primary {
    color: #ffffff !important;
}

/* --- Hamburger (Hidden on Desktop) --- */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* --- Mobile Menu Panel --- */
#mobileMenu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: white;
    border-left: 1px solid #e2e8f0;
    padding: 2rem;
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.1) !important;
    flex-direction: column;
    gap: 2rem;
    z-index: 1001;
}

#mobileMenu.open {
    display: flex;
}

#mobileMenu .nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#mobileMenu .nav-links li {
    list-style: none;
    text-align: center;
}

#mobileMenu .nav-links li a {
    color: var(--ink-900, #0f172a);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    font-family: var(--font-ui, Inter, system-ui, sans-serif);
    padding: 0.75rem 0;
    display: block;
}

#mobileMenu .nav-links li a:hover {
    color: var(--blue-600, #2563eb);
}

#mobileMenu .nav-links li .btn,
#mobileMenu .nav-links li .btn-primary {
    text-align: center;
    justify-content: center;
    width: 100%;
}

/* --- Navbar: Responsive --- */
@media (max-width: 768px) {

    .desktop-nav-center,
    .desktop-actions a:not(.hamburger) {
        display: none !important;
    }

    .desktop-actions {
        gap: 0.5rem;
    }

    .hamburger {
        display: block;
    }
}

@media (max-width: 900px) {
    .navbar {
        position: sticky !important;
        top: 0 !important;
        height: 56px !important;
        min-height: 56px !important;
        padding: 0 !important;
        background: #fff !important;
        border-bottom: 1px solid #e2e8f0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .nav-content {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: 100% !important;
        padding: 0 1rem !important;
        width: 100% !important;
    }

    .logo {
        margin-bottom: 0 !important;
        font-size: 1.25rem !important;
    }

    .nav-group-right {
        display: none !important;
    }

    .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        padding: 0.25rem;
        gap: 5px;
        height: 40px;
        align-self: center;
    }

    .hamburger span {
        display: block;
        width: 24px;
        height: 3px;
        background: var(--text-primary, #0f172a);
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-group-right.open {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        z-index: 9999;
        overflow-y: auto;
    }

    .nav-group-right.open .nav-links {
        list-style: none;
        padding: 0;
        margin: 0;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-group-right.open .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-group-right.open .nav-links li a {
        color: var(--ink-900, #0f172a);
        text-decoration: none;
        font-size: 1.125rem;
        font-weight: 500;
        font-family: var(--font-ui, Inter, system-ui, sans-serif);
        padding: 0.75rem 0;
        display: block;
    }

    .nav-group-right.open .nav-links li a:hover {
        color: var(--blue-600, #2563eb);
    }

    .nav-group-right.open .nav-links .btn {
        width: 100%;
        display: block;
    }

    .nav-group-right.open .lang-switch-wrapper {
        margin-top: 2rem;
        text-align: center;
    }
}

/* ===== 2. LANGUAGE SWITCHER ===== */
.lang-switch-wrapper {
    position: relative;
    cursor: pointer;
}

.lang-switch:hover {
    background: #f1f5f9;
}

.lang-switch-wrapper {
    position: relative;
}

.lang-opts {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    min-width: 100%;
    margin-top: 4px;
    flex-direction: column;
    z-index: 20;
}

.lang-opts.show {
    display: flex;
}

.lang-btn {
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.lang-btn:hover {
    background: #f8fafc;
    color: var(--blue-600);
}

/* ===== 3. BUTTONS ===== */
.btn-primary {
    background: var(--brand-gradient, #2563EB) !important;
    color: #fff !important;
    border-radius: 100px !important;
    font-family: var(--font-ui) !important;
    font-weight: 700 !important;
    border: 1px solid transparent !important;
    padding: 1rem 2rem !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-primary:hover {
    filter: brightness(1.08) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 16px 40px -8px rgba(37, 99, 235, 0.55) !important;
}

.btn-outline {
    background: var(--paper-card) !important;
    border: 1px solid var(--ink-900) !important;
    color: var(--ink-900) !important;
    border-radius: 100px !important;
    padding: 1rem 2rem !important;
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
}

.btn-outline:hover {
    background: var(--ink-border) !important;
}

/* ===== 4. CARDS ===== */
.unified-box,
.chart-card,
.why-card,
.pricing-card,
.testimonial-card,
.feature-card {
    background: var(--paper-card) !important;
    border: var(--border-grid) !important;
    border-radius: var(--radius-sm) !important;
    padding: 2rem !important;
    transition: all 0.2s ease !important;
}

.chart-card {
    border: 1px solid var(--ink-500) !important;
    transform: none !important;
}

/* ===== 5. HERO SECTION ===== */
.hero-title {
    font-size: 3.5rem !important;
    line-height: 1.1 !important;
}

.hero-desc {
    font-family: var(--font-expert) !important;
    font-size: 1.4rem !important;
    color: var(--ink-500) !important;
    line-height: 1.6 !important;
}

@media (max-width: 900px) {
    .hero {
        padding-top: 1.5rem !important;
    }

    .hero-grid {
        flex-direction: column !important;
        gap: 1.5rem !important;
        display: flex !important;
    }

    .hero-left-col {
        width: 100% !important;
        order: 1 !important;
    }

    .hero-content-box {
        padding: 1.25rem !important;
    }

    .hero-title {
        font-size: 1.75rem !important;
        line-height: 1.25 !important;
    }

    .hero-desc {
        font-size: 0.95rem !important;
    }

    .chart-card {
        order: 2 !important;
        width: 100% !important;
        padding: 1rem !important;
        margin-top: 1rem !important;
    }

    .chart-card svg {
        width: 100% !important;
        height: auto !important;
    }

    .chart-header {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .chart-header h3 {
        font-size: 1rem !important;
    }

    .chart-kpi {
        flex-direction: row !important;
        gap: 1rem !important;
    }

    .hero-actions {
        order: 3 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        margin-top: 1rem !important;
        width: 100% !important;
    }

    .hero-actions .btn {
        width: 100% !important;
        text-align: center !important;
    }
}

/* ===== 6. TECH SECTION ===== */
.tech-display {
    background: var(--ink-900) !important;
    color: var(--green-500) !important;
    font-family: var(--font-data) !important;
    border: 1px solid var(--ink-900) !important;
}

.tech-anim-name {
    color: #fff !important;
}

.tech-name {
    display: inline-block;
    min-width: 150px;
    text-align: left;
    font-weight: 600;
    color: var(--primary);
}

@keyframes fade-inOut {

    0%,
    100% {
        opacity: 0;
        transform: translateY(-5px);
    }

    10%,
    90% {
        opacity: 1;
        transform: translateY(0);
    }
}

.tech-name.animate {
    animation: fadeInOut 3s ease-in-out;
}

@media (max-width: 900px) {
    #technologie .unified-box {
        padding: 1rem !important;
    }

    #technologie h2 {
        font-size: 1.5rem !important;
    }

    #technologie .unified-box p {
        font-size: 0.9rem !important;
    }

    .tech-stacks {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .tech-col {
        width: 100% !important;
        padding: 1rem !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 1rem !important;
    }

    .tech-text {
        flex: 1 !important;
        min-width: 0 !important;
    }

    .tech-text h3 {
        font-size: 1rem !important;
        margin: 0 0 0.25rem 0 !important;
    }

    .tech-text p {
        font-size: 0.8rem !important;
        margin: 0 !important;
        line-height: 1.4 !important;
    }

    .tech-display {
        padding: 0.75rem !important;
        min-height: auto !important;
        min-width: 80px !important;
        flex-shrink: 0 !important;
        background: transparent !important;
    }

    .tech-anim-icon {
        font-size: 1.5rem !important;
    }

    .tech-anim-name {
        font-size: 0.75rem !important;
        color: #374151 !important;
    }

    .tech-dots {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 900px) {
    .tech-stacks {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.75rem !important;
    }

    .tech-col {
        width: calc(33.333% - 0.5rem) !important;
        flex-direction: column !important;
        padding: 1rem !important;
    }

    .tech-text {
        flex: unset !important;
    }
}

/* ===== 7. "PROČ NÁS" (WHY US) ===== */
@media (max-width: 900px) {
    #proc-nas .unified-box {
        padding: 1rem !important;
    }

    #proc-nas h2 {
        font-size: 1.5rem !important;
    }

    #proc-nas .unified-box p {
        font-size: 0.85rem !important;
    }

    .why-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .why-card {
        width: 100% !important;
        padding: 1.25rem !important;
        margin: 0 !important;
    }

    .why-card h3 {
        font-size: 1rem !important;
    }

    .why-card p {
        font-size: 0.85rem !important;
    }

    .why-icon {
        font-size: 1.5rem !important;
    }
}

@media (min-width: 768px) and (max-width: 900px) {
    .why-grid {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }

    .why-card {
        width: calc(50% - 0.5rem) !important;
    }
}

/* ===== 8. O NÁS (ABOUT) SECTION ===== */
.o-nas-content {
    max-width: 1100px;
    margin: 0 auto;
}

.o-nas-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 2rem;
}

.o-nas-photo {
    text-align: center;
}

.founder-photo-round {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-subtle);
    box-shadow: var(--shadow-float);
}

.o-nas-bio p strong {
    color: var(--accent);
}

.o-nas-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.o-nas-cards-grid .why-card {
    padding: 1rem 1.25rem;
}

.o-nas-cards-grid .why-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.o-nas-cards-grid h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    margin-top: 0;
}

.o-nas-cards-grid p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

/* Company Logos */
.companies-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.companies-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.company-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 1.5rem 3rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.company-logo:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

@media (max-width: 900px) {
    .o-nas-content {
        padding: 0 !important;
    }

    .o-nas-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .o-nas-photo {
        width: 100% !important;
        text-align: center !important;
    }

    .founder-photo-round {
        width: 120px !important;
        height: 120px !important;
    }

    .o-nas-bio {
        width: 100% !important;
    }

    .o-nas-bio p {
        font-size: 0.9rem !important;
    }

    .o-nas-cards-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
    }

    .o-nas-cards-grid .why-card {
        padding: 1rem !important;
    }

    .o-nas-cards-grid .why-card h3 {
        font-size: 0.85rem !important;
    }

    .o-nas-cards-grid .why-card p {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 968px) {
    .o-nas-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .o-nas-cards-grid {
        grid-template-columns: 1fr;
    }

    .companies-carousel {
        gap: 1.5rem;
    }
}

/* ===== 9. TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-subtle, #e2e8f0);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.15);
}

.testimonial-card.featured {
    border: 2px solid var(--accent, #2563eb);
    position: relative;
}

.testimonial-card.featured::before {
    content: "⭐ Highlight";
    position: absolute;
    top: -12px;
    left: 1.5rem;
    background: var(--accent, #2563eb);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--ink-border);
    padding-bottom: 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--ink-500);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.testimonial-industry {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary, #0f172a);
}

.testimonial-size {
    font-size: 0.85rem;
    color: var(--text-secondary, #64748b);
    background: var(--bg-soft, #f8fafc);
    padding: 4px 10px;
    border-radius: 20px;
}

.testimonial-challenge {
    font-size: 0.95rem;
    color: var(--ink-900);
    line-height: 1.6;
    padding: 1rem;
    background: var(--bg-soft, #f8fafc);
    border-radius: 8px;
}

.testimonial-results {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.result-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.result-icon {
    font-size: 1.25rem;
    min-width: 28px;
    text-align: center;
}

.testimonial-quote {
    font-family: var(--font-expert);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--blue-600);
    margin-top: auto;
    border-left: 3px solid var(--accent, #2563eb);
    padding-left: 1rem;
}

@media (max-width: 900px) {
    .testimonials-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .testimonial-card {
        width: 100% !important;
        padding: 1.25rem !important;
    }

    .testimonial-industry {
        font-size: 1rem !important;
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== 10. FAQ ===== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-subtle, #e2e8f0);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary, #0f172a);
    text-align: left;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: var(--bg-soft, #f8fafc);
}

.faq-question span:first-child {
    flex: 1;
    padding-right: 1rem;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent, #2563eb);
    transition: transform 0.3s ease;
    min-width: 24px;
    text-align: center;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary, #64748b);
}

@media (max-width: 900px) {
    .faq-container {
        width: 100% !important;
    }

    .faq-question {
        padding: 1rem !important;
        font-size: 0.9rem !important;
    }

    .faq-answer p {
        padding: 0 1rem 1rem 1rem !important;
        font-size: 0.85rem !important;
    }
}

/* ===== 11. PRICING ===== */
@media (max-width: 900px) {
    .pricing-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .pricing-card {
        width: 100% !important;
        padding: 1.5rem !important;
        margin: 0 !important;
    }

    .plan-name {
        font-size: 1.25rem !important;
    }

    .plan-features li {
        font-size: 0.9rem !important;
    }
}

@media (min-width: 768px) and (max-width: 900px) {
    .pricing-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.75rem !important;
    }

    .pricing-card {
        width: calc(33.333% - 0.5rem) !important;
        padding: 1.25rem !important;
    }

    .pricing-card .plan-name {
        font-size: 1.1rem !important;
    }

    .pricing-card .plan-features li {
        font-size: 0.8rem !important;
    }
}

/* ===== 12. HOW IT WORKS (JAK TO FUNGUJE) ===== */
.how-it-works-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
    max-width: 1200px;
    margin: 0 auto;
}

.step-arrow {
    font-size: 2rem;
    color: var(--accent);
    font-weight: 300;
    flex-shrink: 0;
}

.steps-container .why-card {
    flex: 1;
    min-width: 250px;
}

@media (max-width: 900px) {
    .how-it-works-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: center !important;
    }

    .step-card {
        width: 100% !important;
        max-width: 300px !important;
    }

    .step-arrow {
        transform: rotate(90deg) !important;
        font-size: 1.5rem !important;
    }
}

@media (min-width: 768px) and (max-width: 900px) {
    .how-it-works-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }

    .how-it-works-grid .step-card {
        flex: 1 !important;
        min-width: 0 !important;
    }

    .how-it-works-grid .step-arrow {
        flex-shrink: 0 !important;
        transform: none !important;
    }
}

@media (max-width: 768px) {
    .steps-container {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 968px) {
    .how-it-works-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .step-arrow {
        display: none;
    }
}

/* ===== 13. FORMS ===== */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-500);
    margin-bottom: 0.5rem;
}

.required {
    color: var(--primary);
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--ink-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

#contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

#contact-form button[type="submit"],
#contact-form>p {
    grid-column: 1 / -1;
}

@media (max-width: 900px) {
    #kontakt {
        padding: 2rem 0 !important;
    }

    #kontakt h2 {
        font-size: 1.75rem !important;
    }

    .contact-content-wrapper>div[style] {
        padding: 1.5rem !important;
        margin: 1rem !important;
        width: calc(100% - 2rem) !important;
        max-width: 100% !important;
    }

    .form-group {
        margin-bottom: 1rem !important;
    }

    .form-input,
    .form-select {
        width: 100% !important;
        font-size: 1rem !important;
        padding: 0.75rem !important;
    }
}

@media (max-width: 768px) {
    #contact-form {
        grid-template-columns: 1fr;
    }
}

/* ===== 14. FOOTER ===== */
footer {
    background: var(--paper-base) !important;
    border-top: var(--border-grid) !important;
}

.footer-integrated-wrapper {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 1rem 0 !important;
    margin-top: 2rem !important;
    width: 100% !important;
}

.footer-row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 0.5rem 0 !important;
}

.footer-motto {
    color: var(--text-secondary, #64748b) !important;
    font-size: 0.9rem !important;
}

.footer-row nav {
    display: flex !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
}

.footer-row nav a {
    color: var(--text-secondary, #64748b) !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
}

.footer-row nav a:hover {
    color: var(--text-primary, #0f172a) !important;
}

@media (max-width: 900px) {
    .footer-integrated-wrapper {
        padding: 0.5rem 0 !important;
        margin-top: 0.5rem !important;
    }

    .footer-row {
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.25rem !important;
        padding: 0.25rem 0 !important;
    }

    .footer-row nav {
        justify-content: center !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .footer-row nav a {
        margin: 0 !important;
        font-size: 0.75rem !important;
    }

    .footer-motto {
        font-size: 0.75rem !important;
    }

    .footer-row>span:first-child {
        font-size: 0.75rem !important;
    }
}

@media (min-width: 768px) and (max-width: 900px) {
    .footer-row {
        padding: 0.5rem 0 !important;
    }
}

/* ===== 15. GLOBAL OVERRIDES ===== */
.tech-display {
    background: transparent !important;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 1rem;
    z-index: 9999;
    color: white;
    display: flex;
    justify-content: center;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text {
    margin: 0;
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.cookie-text a {
    color: #60a5fa;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-text a:hover {
    color: #93c5fd;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    white-space: nowrap;
}

.btn-cookie-ghost {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #475569;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cookie-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
    border-color: #64748b;
}

.btn-cookie-primary {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-cookie-primary:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .cookie-actions {
        width: 100%;
        gap: 0.5rem;
    }

    .btn-cookie-ghost,
    .btn-cookie-primary {
        flex: 1;
        text-align: center;
        padding: 0.75rem 0.5rem;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== HERO BACKGROUND — Professional Grey Gradient ===== */
/* Brand grey palette — trustworthy, precise, high-design */

.hero {
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 95% 140% at -5% -10%, #f1f5f9 0%, transparent 52%),
        radial-gradient(ellipse 75% 100% at 105% 105%, #e8ecf1 0%, transparent 48%);
}

/* Hero content sits above gradient */
.hero>.container {
    position: relative;
    z-index: 1;
}

/* Kill browser-default h1 margin-top (0.67em = ~87px at headline size!) */
/* This was the invisible gap between badge and headline for 4 iterations */
.hero h1 {
    margin-top: 0 !important;
}

/* DESKTOP: badge right above the headline — near-zero gap */
@media (min-width: 1025px) {
    .hero .container>div:first-child {
        margin-bottom: 0.2rem !important;
    }
}

/* ===== TYPED.JS CURSOR — Hidden (cursor pipe looked like a bug) ===== */
.typed-cursor {
    display: none !important;
}

/* ===== NAVBAR — Mobile menu must never show on desktop ===== */
@media (min-width: 901px) {
    #mobileMenu {
        display: none !important;
    }
}



/* ===== JAK TO FUNGUJE — Mobile/Tablet Fix ===== */
@media (max-width: 768px) {
    /* Stack step cards vertically, remove box borders, keep blue top line */
    #proces .studio-card {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 1.5rem 1rem !important;
        border-radius: 0 !important;
        border-top: 3px solid #2563eb !important;
        overflow: visible !important;
    }
    #proces .studio-card > div:first-child {
        display: none !important; /* hide the gradient bar since we use border-top */
    }
    /* Stack 3-col grid into 1 column */
    #proces > div > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #proces > div > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        max-width: 500px !important;
        margin: 0 auto !important;
    }
    #proces .studio-card {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 1.5rem 1rem !important;
        border-radius: 0 !important;
        border-top: 3px solid #2563eb !important;
        overflow: visible !important;
    }
    #proces .studio-card > div:first-child {
        display: none !important;
    }
}

/* ===== CASE STUDIES — Enable swipe on mobile/tablet ===== */
@media (max-width: 1024px) {
    .case-studies-carousel {
        overflow: visible !important;
    }
}

/* ===== PROČ MY — Font consistency on mobile ===== */
@media (max-width: 768px) {
    #proc-nas .tech-col h3 {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
    }
    #proc-nas .tech-col p {
        font-size: 0.9rem !important;
    }
    #proc-nas .tech-col {
        padding: 1.5rem !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #proc-nas .tech-col h3 {
        font-size: 1.2rem !important;
        font-weight: 700 !important;
    }
}

/* ===== SCROLL REVEAL ===== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children inside a revealed container */
.reveal-stagger>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-stagger.is-visible>*:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0ms;
}

.reveal-stagger.is-visible>*:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 80ms;
}

.reveal-stagger.is-visible>*:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 160ms;
}

.reveal-stagger.is-visible>*:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 240ms;
}

/* ===== 14b. SCROLL-SNAP — proximity, NO forced min-height =====
   Previous failures were caused by min-height: 100vh creating dead space.
   With content-driven heights, proximity snap just centers sections. ===== */
html {
    scroll-snap-type: y proximity;
    scroll-padding-top: 70px;
}

section,
.section,
header.hero {
    scroll-snap-align: start;
}

@media (max-width: 768px) {
    html {
        scroll-snap-type: none;
    }
}

/* ===== 15. CASE STUDIES (Z NAŠÍ PRAXE) ===== */
.section-praxe {
    padding: 5rem 0;
    overflow: hidden;
}

.section-label {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    color: var(--ink-500);
    margin-bottom: 8px;
    text-align: center;
    font-family: var(--font-ui);
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--ink-900);
}

.section-subheading {
    text-align: center;
    color: var(--ink-500);
    max-width: 680px;
    margin: 0 auto 48px;
    font-size: 1.05rem;
    line-height: 1.6;
    font-family: var(--font-ui);
}

/* --- Carousel container --- */
.case-studies-carousel {
    position: relative;
    margin-bottom: 48px;
    overflow: hidden;
}

.case-studies-grid {
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    touch-action: pan-x pan-y;
    transition: height 0.3s ease;
}

.case-studies-grid::-webkit-scrollbar {
    display: none;
}

/* Outer card = invisible scroll slot (full-width for carousel mechanics) */
.case-study-card {
    flex: 0 0 100%;
    max-width: 100%;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 24px;
}

/* Inner card = visible styled element (narrower than navbar) */
.case-study-inner {
    background: var(--bg-soft);
    border: 1px solid var(--ink-border);
    border-radius: var(--radius-md, 8px);
    padding: 32px 48px;
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* --- Carousel navigation arrows --- */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--ink-border, #e2e8f0);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s;
}

.carousel-btn:hover {
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-btn svg, .carousel-btn i {
    width: 20px;
    height: 20px;
    color: var(--ink-900);
}

/* --- Carousel dots --- */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.carousel-dots .dot.active {
    background: var(--blue-600, #2563eb);
    transform: scale(1.2);
}

/* --- Carousel counter --- */
.carousel-counter {
    text-align: center;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--ink-500);
    font-family: var(--font-data);
    font-weight: 500;
}

.case-study-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.case-study-tag {
    background: var(--ink-900);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 4px;
    font-family: var(--font-ui);
}

.case-study-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-ui);
}

.case-study-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink-900);
    margin-bottom: 20px;
}

.case-study-section {
    margin-bottom: 16px;
}

.case-study-section h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-family: var(--font-ui);
}

.case-study-section p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-primary);
    font-family: var(--font-ui);
}

.case-study-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.case-study-list li {
    font-size: 0.93rem;
    line-height: 1.5;
    color: var(--text-primary);
    padding: 6px 0 6px 18px;
    position: relative;
    font-family: var(--font-ui);
}

.case-study-list li::before {
    content: "\2192";
    position: absolute;
    left: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.case-study-results {
    display: flex;
    gap: 16px;
    margin: 20px 0;
    padding: 16px 0;
    border-top: 1px solid var(--ink-border);
    border-bottom: 1px solid var(--ink-border);
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.result-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink-900);
    line-height: 1.25;
    font-family: var(--font-data);
}

.result-number.result-text {
    font-size: 0.95rem;
    line-height: 1.35;
    font-family: var(--font-ui);
}

.result-label {
    font-size: 0.76rem;
    color: var(--ink-500);
    line-height: 1.3;
    font-family: var(--font-ui);
}

.case-study-takeaway {
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--ink-500);
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--ink-border);
    font-family: var(--font-expert);
}

.section-bridge {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.section-bridge p {
    font-size: 1.05rem;
    color: var(--ink-500);
    line-height: 1.6;
    margin-bottom: 24px;
    font-family: var(--font-ui);
}

/* Desktop: details always open, toggle hidden */
.case-study-details {
    margin-bottom: 16px;
}

.case-study-details:not([open]) {
    margin-bottom: 0;
}

.case-study-toggle {
    display: none;
}

@media (min-width: 769px) {
    .case-study-details {
        display: block !important;
    }

    .case-study-details > .case-study-section {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .case-studies-grid {
        flex-direction: row !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .case-study-card {
        flex: 0 0 90% !important;
        min-width: 0;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }

    .case-study-results {
        flex-direction: column;
        gap: 12px;
    }

    .section-heading {
        font-size: 1.6rem;
    }

    .carousel-btn {
        display: none;
    }

    .carousel-dots {
        display: flex;
    }

    .carousel-counter {
        display: block;
    }

    /* Mobile: show accordion toggle, collapse by default */
    .case-study-toggle {
        display: block;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--blue-600);
        cursor: pointer;
        padding: 10px 0;
        list-style: none;
        font-family: var(--font-ui);
    }

    .case-study-toggle::after {
        content: " \2193";
    }

    .case-study-details[open] > .case-study-toggle::after {
        content: " \2191";
    }

    .case-study-toggle::-webkit-details-marker {
        display: none;
    }
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .aurora-blob {
        animation: none !important;
    }

    .reveal-on-scroll,
    .reveal-stagger>* {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}