/* === HERO SUBPAGE === */
.hero-subpage {
    background: linear-gradient(0deg, var(--paper-2), transparent);
    color: var(--text);
    padding: 0 2.25rem;
    padding-top: 2rem;
}

/* Drobečkovka – vlevo, decentní */
.breadcrumb-nav {
    margin-bottom: .75rem;
}

.breadcrumb {
    padding: 0;
    background: transparent;
    font-size: .9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-secondary);
}

.breadcrumb-item a {
    color: var(--bs-primary);
    text-decoration: none;
    transition: color .2s ease;
}

.breadcrumb-item a:hover {
    color: color-mix(in srgb, var(--bs-primary) 85%, var(--text));
}

.breadcrumb-item.active {
    color: var(--text-secondary);
}

/* Obsah sekce */
.hero-row {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1rem 1.25rem;
}

.hero-icon img {
    display: block;
    width: 128px;
    height: 128px;
    object-fit: contain;
    opacity: .95;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .06));
    transition: transform .25s ease, opacity .25s ease;
}

.hero-icon:hover img {
    transform: scale(1.04);
    opacity: 1;
}

/* drobný nadpis nad H1 v hero */
.hero-kicker {
    margin: 1rem 0 .25rem 0;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--bs-primary);
    opacity: .9;
}

.hero-title {
    margin: 0 0 .4rem 0;
    font-weight: 700;
    /* zvětšené minimum a maximum – větší kontrast i na malých displejích */
    font-size: clamp(1.9rem, 3.4vw + 1rem, 3rem);
    line-height: 1.18;
    color: var(--text);
    letter-spacing: -0.015em;
}

.hero-lead {
    margin: 0;
    font-size: clamp(1.05rem, .5vw + .95rem, 1.25rem);
    line-height: 1.6;
    color: var(--text-secondary);
}

/* === RESPONSIVNÍ LADĚNÍ === */
@media (max-width: 767.98px) {
    .hero-row {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        gap: .75rem;
    }

    .hero-icon img {
        width: 56px;
        height: 56px;
    }

    .hero-title {
        margin-top: .5rem;
    }

    /* drobečkovka zůstává vlevo */
    .breadcrumb-nav {
        text-align: left;
        margin-bottom: 1rem;
    }
}

/* ZÁKLAD STRÁNKY */
.section {
    padding: 4rem 0;
}


/* Nadpisy a text */
.section h2 {
    font-weight: 700;
    margin-bottom: .75rem;
}

.section .lead {
    color: var(--text-secondary, #666);
}

/* Intro box */
.intro-wrap {
    max-width: 920px;
    margin: 0 auto;
}

.intro-wrap p {
    font-size: 1.075rem;
    line-height: 1.85;
    margin-bottom: 1rem;
    color: var(--text, #222);
}

/* Situace a řešení */
.situation {
    background: var(--paper-1);
    border: 1px solid color-mix(in srgb, var(--text, #111) 8%, transparent);
    border-radius: 12px;
    padding: 1.25rem 1.25rem 1rem;
    height: 100%;
    box-shadow: 0 .4rem 1rem rgba(0, 0, 0, .04);
}

.situation blockquote {
    margin: 0 0 .9rem;
    padding-left: .9rem;
    border-left: 4px solid var(--bs-primary, #893132);
    color: var(--text, #222);
    font-style: italic;
}

.situation h5 {
    margin: .25rem 0 .5rem;
    font-weight: 700;
}

.situation ul {
    margin: 0 0 .5rem 1.1rem;
}

.situation li {
    margin-bottom: .35rem;
}

/* Technologie */
.tech-pill {
    display: inline-block;
    border: 1px solid color-mix(in srgb, var(--text, #111) 12%, transparent);
    border-radius: 999px;
    padding: .4rem .8rem;
    margin: .25rem .35rem;
    background: var(--paper-1);
    font-size: .95rem;
    white-space: nowrap;
}

/* Reference */
.ref-logos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.ref-logos img {
    width: 100%;
    height: 56px;
    object-fit: contain;
    filter: grayscale(100%) opacity(.8);
    transition: filter .2s ease, opacity .2s ease, transform .2s ease;
}

.ref-logos img:hover {
    filter: grayscale(0%) opacity(1);
    transform: translateY(-2px);
}

/* Přínosy */
.benefit {
    background: var(--paper-1);
    border: 1px solid color-mix(in srgb, var(--text, #111) 8%, transparent);
    border-radius: 12px;
    padding: 1.25rem;
    height: 100%;
}

.benefit h5 {
    margin-bottom: .4rem;
}

/* CTA */
#kontakt .btn {
    min-width: 220px;
}

/* Responzivita */
@media (max-width: 991.98px) {
    .ref-logos {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575.98px) {
    .ref-logos {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* CTA kontakt – Vývoj SW */
.cta-contact {
    padding: 4rem 0;
    background: linear-gradient(
            0deg,
            var(--paper-1) 0%,
            var(--paper-2) 100%
    );
}

.cta-card {
    background: var(--card-bg);
    border-radius: 18px;
    padding: 2.5rem 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--bs-border-color);
    text-align: left;
}

.cta-title {
    font-weight: 600;
    color: var(--bs-primary);
    font-size: 1.9rem;
}

.cta-lead {
    font-size: 1.1rem;
    color: var(--text);
}

.cta-form .form-label {
    color: var(--text);
    font-weight: 500;
}

.cta-small {
    font-size: 0.9rem;
}

.cta-card a {
    font-weight: 600;
    text-decoration: none;
}

.cta-card a:hover {
    text-decoration: underline;
}

/* Responsivita */
@media (max-width: 768px) {
    .cta-card {
        padding: 2rem 1.5rem;
    }

    .cta-title {
        font-size: 1.6rem;
    }
}

/* === Reference sekce === */

.ref-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* --- LOGA --- */
.ref-logos.enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
    justify-items: center;
    padding: 2rem;
    background: var(--paper-1);
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
}

.ref-logos.enhanced img {
    width: 120px;
    height: 60px;
    object-fit: contain;
    filter: grayscale(100%) opacity(.75);
    transition: filter .25s ease, transform .25s ease;
}

.ref-logos.enhanced img:hover {
    filter: grayscale(0%) opacity(1);
    transform: translateY(-3px);
}

/* --- BENEFIT CARDS --- */
.ref-benefit-card {
    background: var(--paper-1);
    border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
    border-radius: 14px;
    padding: 1.75rem;
    text-align: center;
    box-shadow: 0 0.8rem 1.4rem rgba(0, 0, 0, .04);
    transition: transform .25s ease, box-shadow .25s ease;
}

.ref-benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, .06);
}

.ref-benefit-card h5 {
    font-weight: 700;
    margin-bottom: .75rem;
    color: var(--text);
}

.ref-benefit-card p {
    color: var(--text-secondary);
    font-size: 1.025rem;
    line-height: 1.6;
}

/* --- RESPONSIVITA --- */
@media (max-width: 576px) {
    .ref-logos.enhanced {
        padding: 1.25rem;
        gap: 1.25rem;
    }
}

/* === Vývojářské karty === */

.dev-card {
    background: var(--paper-1);
    border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
    border-radius: 14px;
    padding: 1.6rem 1.4rem;
    box-shadow: 0 .4rem 1rem rgba(0, 0, 0, .05);
    transition: transform .2s ease, box-shadow .2s ease;
    position: relative;
}




.dev-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 .6rem 1.4rem rgba(0, 0, 0, .08);
}

.dev-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: .6rem;
}

.dev-card ul {
    margin-left: 1.2rem;
    margin-bottom: .3rem;
}

.dev-card li {
    margin-bottom: .35rem;
}

.dev-card-icon {
    position: absolute;
    right: 1.5rem;
    bottom: 1rem;
    width: 60px;
    height: 60px;
    margin-bottom: .75rem;
}

.dev-icon {
    display: block;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* konkrétní ikony – jen příklad cest */
.dev-icon-desktop {
    background-image: url('/assets/img/pc_sm.png');
}

.dev-icon-office {
    background-image: url('/assets/img/office_sm.png');
}

.dev-icon-web {
    background-image: url('/assets/img/web_sm.png');
}

.dev-icon-mobile {
    background-image: url('/assets/img/phone_sm.png');
}

.dev-icon-sql {
    background-image: url('/assets/img/sql_sm.png');
}

.dev-icon-cli {
    background-image: url('/assets/img/cli_sm.png');
}


/* FAQ – moderní akordeon */
.faq-accordion {
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    background: var(--paper-1);
    border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 .4rem 1rem rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: box-shadow .25s ease;
}

.faq-item:hover {
    box-shadow: 0 .6rem 1.4rem rgba(0, 0, 0, 0.07);
}

/* Tlačítko otázky */
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.1rem 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

/* Ikona (+ / -) */
.faq-icon {
    width: 20px;
    height: 20px;
    position: relative;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    background: var(--text-secondary);
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    transform: translateY(-50%);
    transition: transform .3s ease, background .3s ease;
}

.faq-icon::after {
    transform: translateY(-50%) rotate(90deg);
}

/* otevřený stav – minus */
.collapse.show + .faq-icon,
.faq-question[aria-expanded="true"] .faq-icon::after {
    transform: translateY(-50%) rotate(0deg);
}

/* Odpověď */
.faq-answer {
    padding: 0 1.2rem 1.2rem 1.2rem;
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 1rem;
}

.consult-img-wrap {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.08);
}

.consult-img {
    width: 100%;
    border-radius: 18px;
    display: block;
    object-fit: cover;
}

/* Mobile adjust */
@media (max-width: 767.98px) {
    .consult-img-wrap {
        margin-bottom: 1rem;
    }
}
/* === BENEFITS GRID === */
.benefit-card {
    background: var(--paper-1);
    border: 1px solid color-mix(in srgb, var(--text, #111) 8%, transparent);
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    box-shadow: 0 .4rem 1rem rgba(0,0,0,.04);
    transition: transform .25s ease, box-shadow .25s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 .6rem 1.4rem rgba(0,0,0,.06);
}

.benefit-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.benefit-card p {
    font-size: .95rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ikony */
.benefit-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--bs-primary);
    font-weight: 700;
    user-select: none;
}

/* Obrazek */
.testing-img-wrap {
    max-width: 340px;
    margin: 0 auto;
}

.testing-img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.15);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
    margin-left: 20px;
    border-left: 2px solid color-mix(in srgb, var(--bs-primary) 45%, #bbb);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    width: 48px;
    height: 48px;
    background: var(--bs-primary);
    color: #fff;
    border-radius: 50%;
    position: absolute;
    left: -55px;
    top: -13px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;

    box-shadow: 0 0 8px rgba(137,49,50,0.4);
}

.timeline-content h5 {
    margin: 0 0 .25rem;
    font-weight: 600;
}

.timeline-content p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Mobil */
@media (max-width: 767px) {
    .timeline {
        padding-left: 30px;
    }
    .timeline-icon {
        left: -55px;
    }
}

/* Grid sladěný s ostatními sekcemi */
.apps-grid {
    margin-top: 1.5rem;
}

/* Karty */
.app-card {
    background: var(--paper-1);
    border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
    border-radius: 14px;
    padding: 1.4rem 1.2rem 1.25rem;
    text-align: center;
    box-shadow: 0 .4rem 1rem rgba(0,0,0,0.04);
    transition: transform .25s ease, box-shadow .25s ease;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 .6rem 1.3rem rgba(0,0,0,0.08);
}

/* Ikony */
.app-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    margin: 0 auto 0.75rem;

    background: color-mix(in srgb, var(--bs-primary) 20%, transparent);
    color: var(--bs-primary);

    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;

    backdrop-filter: blur(2px);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bs-primary) 40%, transparent);
}

.app-card h5 {
    font-weight: 600;
    margin-bottom: .35rem;
}

.app-card p {
    margin: 0;
}

/* Responsivita */
@media (max-width: 575.98px) {
    .app-icon {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }
}

/* === Rules Grid (Cílové prostředí a pravidla) === */

.rules-grid {
    list-style: none;
    padding: 0;
    margin: 2rem auto 0;
    max-width: 860px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.2rem;
}

.rules-grid li {
    background: var(--paper-1);
    border: 1px solid color-mix(in srgb, var(--text, #222) 10%, transparent);
    border-radius: 14px;

    padding: 1.25rem 1.25rem 1.25rem 3.4rem;
    font-size: 1.05rem;
    color: var(--text);

    position: relative;
    line-height: 1.5;
    box-shadow: 0 .35rem 1.1rem rgba(0,0,0,0.05);

    transition: transform .18s ease, box-shadow .18s ease;
}

/* Hover */
.rules-grid li:hover {
    transform: translateY(-3px);
    box-shadow: 0 .6rem 1.4rem rgba(0,0,0,0.07);
}

/* Ikona vlevo */
.rules-grid li::before {
    content: "";
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);

    width: 20px;
    height: 20px;
    border-radius: 4px;

    background: var(--bs-primary, #893132);
    mask: url("data:image/svg+xml,%3Csvg stroke='white' fill='white' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.173 11.414L2.05 7.292l1.414-1.414 2.708 2.707 6.364-6.364 1.414 1.414z'/%3E%3C/svg%3E") center/16px no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg stroke='white' fill='white' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.173 11.414L2.05 7.292l1.414-1.414 2.708 2.707 6.364-6.364 1.414 1.414z'/%3E%3C/svg%3E") center/16px no-repeat;
}

.dev-illustration-wrap {
    padding: 1rem;
    border-radius: 1rem;
    background: linear-gradient(
            145deg,
            rgba(255,255,255,0.04),
            rgba(255,255,255,0.01)
    );
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.dev-illustration-wrap:hover {
    transform: translateY(-4px);
}

.dev-illustration {
    border-radius: 1rem;
    width: 100%;
    height: auto;
}

.o-vyvoji-section .intro-block {
    padding-right: 1rem;
}

.o-vyvoji-section .check-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.o-vyvoji-section .check-list li {
    margin-bottom: .6rem;
    padding-left: 1.8rem;
    position: relative;
}

.o-vyvoji-section .check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--bs-primary);
    font-weight: 700;
}
.system-scenarios .scenario-card {
    background: var(--paper-1);
    border-radius: 14px;
    padding: 1.5rem 1.4rem;
    border: 1px solid var(--bs-border-color);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.system-scenarios .scenario-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-active);
}

.system-scenarios .scenario-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(137, 49, 50, 0.06);
    color: #893132;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .75rem;
    font-size: 1.4rem;
}

.system-scenarios h5 {
    font-weight: 600;
    margin-bottom: .4rem;
}

.system-scenarios p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* mobilní doladění */
@media (max-width: 575.98px) {
    .system-scenarios .scenario-card {
        padding: 1.25rem 1.1rem;
    }
}

.process-img-wrap {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.08);
    background: linear-gradient(
            145deg,
            rgba(255,255,255,0.03),
            rgba(0,0,0,0.08)
    );
}

.process-img {
    width: 100%;
    display: block;
    border-radius: 18px;
    object-fit: cover;
}



/* jemné úpravy pro IT služby, ladí s původním dev-card stylem */

#it-services .dev-card {
    padding-bottom: 3.2rem;
}

/* ikony stejné jako u vývoje, jen zvětšené na modernější look */
#it-services .dev-card-icon i {
    font-size: 3rem;
    transition: opacity .25s ease;
    color: var(--bs-primary);
}

#it-services .dev-card:hover .dev-card-icon i {
    filter: saturate(1.2);
}

/* Obrázek přizpůsobený výšce textové sekce */
.consult-img-wrap {
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
}
.consult-img {
    min-height: 100%;
}

@media (max-width: 1200px) {
    .consult-img {
        height: auto;
        max-height: 320px;
        object-fit: cover;
    }
}
.img-container-flex {
    height: 100% !important;
    border-radius: 18px;
    overflow: hidden;
    display: flex !important;
}

/* Rovnoměrné karty ve scénářích */
.system-scenarios .row {
    display: flex;
    flex-wrap: wrap;
}

.system-scenarios .row > [class*="col-"] {
    display: flex;
}

.system-scenarios .scenario-card {
    flex: 1;
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    padding: 1.8rem 1.4rem;
}



/* same height */
.service-grid .col-md-4 {
    display: flex;
}
.service-card {
    flex: 1;
}

/* Card styling */
.service-card {
    position: relative;
    background: var(--paper-1);
    border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
    border-radius: 16px;
    padding: 1.9rem 1.5rem 2.4rem;
    padding-right: 4.5rem; /* 🟢 prostor pro ikonu */
    box-shadow: 0 .4rem 1rem rgba(0,0,0,.04);
    transition: transform .25s ease, box-shadow .25s ease;
}



.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 .6rem 1.4rem rgba(0,0,0,.07);
}

/* Icon in bottom-right */
.service-icon {
    position: absolute;
    right: 1.2rem;
    bottom: 1.2rem;
    font-size: 1.9rem;
    color: var(--bs-primary);
    pointer-events: none;
}

.service-card:hover .service-icon {

    transform: scale(1.05);
}

/* text */
.service-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: .4rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: .95rem;
    margin: 0;
}

/* ============================================
   POROVNÁNÍ VARIANT – 3D FACE-TO-FACE KARTY
   ============================================ */

/* Wrapper s perspektivou – díky němu 3D funguje */
.compare-3d {
    display: flex;
    gap: 2rem;
    justify-content: center;
    perspective: 1400px;
    margin-top: 2rem;
}

/* Základní vzhled karty */
.compare-card {
    background: var(--paper-1);
    border-radius: 18px;
    padding: 2rem 1.75rem;
    flex: 1;
    min-width: 0;

    border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);

    transition: transform .4s ease, box-shadow .3s ease, border-color .3s ease;
}

/* Desktop 3D rotace (face-to-face) */
@media (min-width: 992px) {

    .compare-card.face-left {
        transform: rotateY(18deg);
        transform-origin: right center;
    }

    .compare-card.face-right {
        transform: rotateY(-18deg);
        transform-origin: left center;
    }

    /* Hover narovná kartu */
    .compare-card:hover {
        transform: rotateY(0deg) translateY(-4px);
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
        border-color: color-mix(in srgb, var(--bs-primary) 25%, transparent);
    }
}

/* Mobile/tablet – rovné karty */
@media (max-width: 991px) {
    .compare-3d {
        flex-direction: column;
    }

    .compare-card {
        transform: none !important;
    }
}

/* ============================================
   CENOVKY
   ============================================ */

.compare-price {
    background: color-mix(in srgb, var(--bs-primary) 12%, transparent);
    border-radius: 10px;
    padding: .6rem 1rem;
    margin-bottom: 1rem;
    display: inline-block;

    font-weight: 700;
    color: var(--text);
}

.compare-price small {
    display: block;
    font-size: .8rem;
    font-weight: 400;
    opacity: .75;
    margin-top: -1px;
}

/* Azure barva pro CCB-HR */
.compare-price-hr {
    background: color-mix(in srgb, #7a9cff 20%, transparent);
}

/* ============================================
   WARNING BOX jen pro CCB
   ============================================ */

.ccb-warning {
    margin-top: 1.4rem;
    background: color-mix(in srgb, #893132 7%, transparent);
    border-left: 4px solid var(--bs-primary);
    padding: .9rem 1rem .8rem;
    border-radius: 10px;
}

.ccb-warning h5 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: .25rem;
}

.ccb-warning p {
    margin: 0;
    font-size: .9rem;
    color: var(--text-secondary);
}

/* ============================================
   Check-list styl
   ============================================ */

.compare-card .check-list li {
    list-style: none;
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: .45rem;
}

.compare-card .check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: var(--bs-primary);
}

/* Jemné sjednocení nadpisů */
.compare-card h4 {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}

.compare-card p {
    color: var(--text-secondary);
    font-size: .97rem;
    margin-bottom: .5rem;
}

.compare-card.face-left:hover {
    box-shadow: 0 20px 40px rgba(137, 49, 50, 0.25);
}

.compare-card.face-right:hover {
    box-shadow: 0 20px 40px rgba(90, 120, 255, 0.25);
}

.compare-card {
    background: linear-gradient(
            180deg,
            color-mix(in srgb, var(--paper-1) 100%, transparent) 0%,
            color-mix(in srgb, var(--paper-2) 90%, transparent) 100%
    );
}

.compare-card h4 {
    padding-bottom: .5rem;
    border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
    margin-bottom: 1rem;
}



html[data-theme="dark"] .bg-soft .dev-card, html[data-theme="dark"] .bg-plain .dev-card,
html[data-theme="dark"] .bg-soft .benefit-card, html[data-theme="dark"] .bg-plain .benefit-card,
html[data-theme="dark"] .bg-soft .app-card, html[data-theme="dark"] .bg-plain .app-card {
    background-color: var(--paper-2) !important;
}



/* ============================================
   SERVICE-CARD – jemné vylepšení
============================================ */

.service-card {
    position: relative;
    background: var(--paper-1);
    padding: 1.9rem 1.5rem 2.4rem;
    padding-right: 4.5rem;
    border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
    box-shadow: 0 .45rem 1.15rem rgba(0,0,0,0.05);

    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--bs-primary) 35%, transparent);
    box-shadow: 0 .8rem 1.4rem rgba(0,0,0,0.08);
}

/* icon */
.service-icon {
    position: absolute;
    right: 1.2rem;
    bottom: 1.3rem;
    font-size: 1.9rem;
    color: var(--bs-primary);
    transition: transform .25s ease, opacity .25s ease;
}

.service-card:hover .service-icon {
    transform: translateY(-3px) scale(1.08);
    opacity: 1;
}

/* ============================================
   RULES GRID – doplnění vizuální hierarchie
============================================ */

.rules-grid li {
    background: var(--paper-1);
    border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
    box-shadow: 0 .3rem 1rem rgba(0,0,0,0.04);
    border-left: 4px solid var(--bs-primary);
    padding-left: 3.8rem;

    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.rules-grid li:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--bs-primary) 95%, #fff);
    box-shadow: 0 .6rem 1.3rem rgba(0,0,0,0.08);
}

/* vlastní ikonka */
.rules-grid li::before {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: var(--bs-primary);
    box-shadow: 0 2px 6px rgba(137, 49, 50, .25);

    mask-size: 18px;
    -webkit-mask-size: 18px;
}


/* ============================================
   CTA KARTA – lehké světlo / stín
============================================ */

.cta-card {
    border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
    box-shadow: 0 .6rem 1.3rem rgba(0,0,0,.06);
}

.cta-card:hover {
    box-shadow: 0 .8rem 1.6rem rgba(0,0,0,.08);
}

/* title */
.cta-title {
    font-weight: 700;
    color: var(--bs-primary);
    letter-spacing: -0.015em;
}


/* ============================================
   RESPONSIVE TWEAKS
============================================ */

@media (max-width: 767.98px) {
    .benefit-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .service-card {
        padding-right: 3.2rem;
    }

    .service-icon {
        font-size: 1.5rem;
    }

    .rules-grid li {
        padding-left: 3.2rem;
    }
}


.fancy-checklist {
    list-style: none;
}

.fancy-checklist li {
    position: relative;
    padding-left: 1.7rem;
    margin-bottom: .3rem;
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.55;
}

.fancy-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .3rem;
    width: 18px;
    height: 18px;

    /* Bordó čtvereček s bílou fajfkou */
    background: var(--bs-primary);
    border-radius: 4px;

    mask: url("data:image/svg+xml,%3Csvg fill='white' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.485 1.929l.707.707L6.343 10.485 1.808 5.95l.707-.707 3.828 3.828 7.142-7.142z'/%3E%3C/svg%3E") center/14px no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg fill='white' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.485 1.929l.707.707L6.343 10.485 1.808 5.95l.707-.707 3.828 3.828 7.142-7.142z'/%3E%3C/svg%3E") center/14px no-repeat;
}

.fancy-checklist li:hover::before {
    background: var(--bs-link-hover-color);
}


.course-categories .category-card {
    background: var(--paper-1);
    border-radius: 18px;
    padding: 28px 22px;
    text-align: center;
    display: block;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.08);
    transition: all 0.25s ease;
    height: 100%;
}

.course-categories .category-card.highlight {

    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.course-categories .category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.10);
    border-color: var(--bs-primary);
}

.category-icon-wrap {
    width: 70px;
    height: 70px;
    margin: 0 auto 14px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon-wrap i {
    font-size: 34px;
    color: var(--bs-primary);
}

.category-card h5 {
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 6px;
    color: var(--text);
}

.category-card p {
    font-size: 14.5px;
    color: #666;
    margin: 0;
}


.benefit-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.benefit-card {
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.benefit-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.benefit-card {
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.benefit-icon {
    font-size: 2rem;
    color: var(--bs-primary);
    margin-bottom: 12px;
}

.hw-card-illustrated {
    background: var(--paper-1);
    border: 1px solid var(--paper-2);
    padding: 28px;
    border-radius: 14px;
    transition: 0.2s ease;
    height: 100%;
}

.hw-card-illustrated:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}

.hw-illu-wrap {
    width: 100%;
    aspect-ratio: 1.7;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.hw-illu {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-check {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}
.mini-check li {
    padding-left: 22px;
    position: relative;
    margin-bottom: 6px;
}
.mini-check li::before {
    content: "✓";
    color: var(--bs-primary);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.software-grid .soft-item {
    background: var(--paper-1);
    border: 1px solid var(--paper-2);
    padding: 14px 18px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    transition: .2s ease;
}

.software-grid .soft-item:hover {
    background: var(--paper-2);
    transform: translateY(-3px);
}

.software-logo {
    max-width: 100%;
    width: auto;
    filter: grayscale(0%);
    object-fit: contain;

}

.software-group {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 2rem;
}

.software-group:last-child {
    border-bottom: none;
}

.software-list {
    list-style: none;
    padding-left: 0;
}

.software-list li {
    padding: 4px 0;
    font-size: 1.05rem;
}

.software-group-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
}
/* Grid layout */
.license-grid {
    justify-content: center;
}

/* CARD – základ */
.license-card {
    display: block;
    background: var(--paper-1);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 32px 26px;
    text-align: center;
    border-radius: 16px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 16px rgba(0,0,0,0.04);
    color: var(--text);
    text-decoration: none !important;
}

/* Ikona */
.license-card .info-card-icon {
    font-size: 42px;
    color: var(--bs-primary); /* bordó */
    margin-bottom: 18px;
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Nadpis */
.license-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

/* Popisek */
.license-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0;
}

/* Hover efekt – elegantní */
.license-card:hover {
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    border-color: rgba(137,49,50,0.2);
    transform: translateY(-4px);
}

/* Ikona na hover */
.license-card:hover .info-card-icon {
    transform: scale(1.15);
    opacity: 1;
    color: var(--bs-primary);
}

/* Dark Mode – pokud používáš */
html[data-theme="dark"] {
    .license-card {
        text-decoration: none !important;
        background: var(--paper-2);
        border-color: rgba(255,255,255,0.08);
        color: var(--paper-1);
    }
    .license-card p {
        color: #ccc;
    }
}

/* Systémové požadavky – karty */
.sys-card {
    background: var(--paper-1);
    border: 1px solid var(--paper-2);
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
    transition: transform .2s ease, box-shadow .2s ease;
}

.sys-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.sys-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    color: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
}

.sys-card h4 {
    margin-bottom: 14px;
}

/* Zmenšení textu pro přehlednost */
.sys-card .check-list.small li {
    font-size: 0.9rem;
}

.plan-card {
    background: var(--paper-1);
    border: 1px solid var(--paper-2);
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
    transition: transform .2s ease, box-shadow .2s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}

.plan-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: var(--bs-primary);
    color: white;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.pricing-table {
    border-radius: 14px;
    overflow: hidden;
    background: var(--paper-1);
    border: 1px solid var(--paper-2);
}

.pricing-table thead {
    background: var(--paper-2);
    font-weight: 600;
}

.pricing-table td,
.pricing-table th {
    padding: 14px 18px;
}
