/* faktury.css – styles extracted from faktury.html */

.faktury-page main {
    background: #f7f9fc;
    color: #0f172a;
}

.faktury-page .container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.faktury-section {
    padding: 32px 0 90px;
}

.faktury-hero {
    padding: 150px 0 85px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.has-promo-banner .faktury-hero {
    padding-top: calc(150px + var(--promo-banner-height));
}

.faktury-hero .faktury-kicker {
    color: #0BA6DF;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 10px;
    font-family: "Montserrat", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.faktury-hero h1 {
    font-size: 46px;
    line-height: 1.15;
    margin: 0 0 12px;
    font-weight: 800;
}

.faktury-hero p {
    font-size: 18px;
    line-height: 1.65;
    color: #334155;
}

.faktury-hero p strong {
    color: #0f172a;
}

.faktury-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    align-items: center;
}

.faktury-hero-image {
    text-align: right;
}

.faktury-hero-image img {
    width: 100%;
    max-width: 640px;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(2, 8, 23, 0.12);
}

.faktury-panel,
.faktury-article,
.faktury-sales,
.faktury-table-wrap,
.faktury-feature-grid,
.faktury-final-cta {
    border-radius: 24px;
    padding: 34px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(2, 8, 23, 0.06);
    margin-bottom: 24px;
}

.faktury-panel h2,
.faktury-article h2,
.faktury-sales h2,
.faktury-table-wrap h2,
.faktury-feature-grid h2,
.faktury-final-cta h2 {
    font-size: 34px;
    line-height: 1.2;
    margin: 0 0 16px;
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    color: #0f172a;
}

#funkcie,
#e-faktura-2027,
.faktury-practice-panel,
#faq-faktury-doklady {
    background: transparent;
    box-shadow: none;
    border: 0;
}

.faktury-panel p,
.faktury-article p,
.faktury-sales p,
.faktury-table-wrap p {
    font-size: 17px;
    line-height: 1.7;
    color: #334155;
}

.faktury-hero-actions {
    margin-top: 26px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.faktury-page .jz2-btn {
    min-height: 46px;
    min-width: 200px;
    padding: 10px 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 800;
    border: 1px solid transparent;
    line-height: 1.2;
    transition: all 0.2s ease;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.faktury-page .jz2-btn:hover {
    transform: translateY(-1px);
    text-decoration: none !important;
}

.faktury-page .jz2-btn-primary {
    background: #CDE25D;
    border-color: #CDE25D;
    color: #0f172a;
}

.faktury-page .jz2-btn-primary:hover {
    background: #FAA533;
    border-color: #FAA533;
    color: #ffffff;
}

.faktury-page .jz2-btn-secondary {
    background: #ffffff;
    border-color: #CDE25D;
    color: #0f172a;
}

.faktury-page .jz2-btn-secondary:hover {
    background: #f8fbe9;
    border-color: #a7c93a;
    color: #0f172a;
}

.faktury-list {
    margin: 18px 0 0;
    padding-left: 20px;
    display: grid;
    gap: 10px;
}

.faktury-list li {
    color: #0f172a;
    font-size: 17px;
    line-height: 1.65;
}

.faktury-article-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: start;
}

#hlavne-funkcie-faktury {
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(2, 8, 23, 0.06);
    border-radius: 24px;
}

#hlavne-funkcie-faktury h2 {
    text-align: center;
    margin-bottom: 22px;
}

#hlavne-funkcie-faktury .faktury-flow-block {
    display: block;
}

#hlavne-funkcie-faktury .faktury-feature-box {
    border: 1px solid #dbe5f2;
    border-radius: 18px;
    background: #ffffff;
    padding: 22px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    margin-bottom: 16px;
}

#hlavne-funkcie-faktury .faktury-flow-block::after {
    content: "";
    display: table;
    clear: both;
}

#hlavne-funkcie-faktury .faktury-flow-block > div:first-child {
    float: right;
    width: min(46%, 420px);
    margin: 4px 0 14px 22px;
}

#hlavne-funkcie-faktury .faktury-flow-block > div:first-child img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    display: block;
}

#hlavne-funkcie-faktury .faktury-flow-block.faktury-flow-left > div:first-child {
    float: left;
    margin: 4px 22px 14px 0;
}

#hlavne-funkcie-faktury h3 {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
}

#hlavne-funkcie-faktury .faktury-feature-lead {
    margin-top: 10px;
}

#hlavne-funkcie-faktury .faktury-feature-quote {
    border-left: 4px solid #0BA6DF;
    background: #f8fbff;
    border-radius: 12px;
    padding: 12px 14px;
    margin: 10px 0 0;
    clear: both;
    display: block;
    width: 100%;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #334155;
    box-sizing: border-box;
}

.faktury-feature-summary {
    margin-top: 18px;
    text-align: center;
    font-size: 18px;
    line-height: 1.7;
    color: #334155;
}

.faktury-feature-actions {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

.faktury-note {
    border: 1px solid #d8e2ef;
    border-radius: 20px;
    padding: 22px;
    background: #f8fbff;
}

.faktury-note h3 {
    font-size: 24px;
    margin-bottom: 14px;
    color: #0f172a;
}

.faktury-note ul {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 9px;
}

.faktury-note li {
    color: #334155;
    line-height: 1.55;
}

.faktury-highlight {
    margin-top: 20px;
    text-align: center;
}

.faktury-highlight-title {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.2;
    color: #0f172a;
    font-weight: 800;
}

.faktury-highlight-text {
    margin: 0;
    font-size: 24px;
    line-height: 1.4;
    color: #334155;
}

.faktury-contact-strip {
    padding: 0 20px 24px;
    background: #f7f9fc;
}

.faktury-contact-box {
    max-width: 1140px;
    margin: 0 auto;
    border: 1px solid #dbe5f2;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(2, 8, 23, 0.05);
    padding: 18px 20px;
    text-align: center;
}

.faktury-contact-text {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    line-height: 1.45;
    color: #0f172a;
    font-weight: 700;
}

.faktury-image-box {
    border: 1px solid #d8e2ef;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(2, 8, 23, 0.08);
}

.faktury-image-box img {
    width: 100%;
    height: auto;
    display: block;
}

.faktury-image-caption {
    margin: 0;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #334155;
    background: #f8fbff;
}

.faktury-visual-rows {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.faktury-process-gallery {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 14px;
}

.faktury-process-card {
    border: 1px solid #d8e2ef;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(2, 8, 23, 0.08);
    display: flex;
    flex-direction: column;
}

.faktury-process-media {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: linear-gradient(180deg, #f9fcff 0%, #f4f8ff 100%);
}

.faktury-process-media img {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    display: block;
}

.faktury-process-body {
    padding: 12px 14px 14px;
    border-top: 1px solid #e8eef6;
}

.faktury-process-step {
    display: inline-block;
    margin-bottom: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef6ff;
    border: 1px solid #d4e5fa;
    color: #0f172a;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.faktury-process-title {
    margin: 0 0 4px;
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 800;
    color: #0f172a;
}

.faktury-process-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #334155;
}

.faktury-copy-block {
    max-width: 860px;
    margin: 0 auto;
    text-align: left;
}

.faktury-copy-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: 18px;
    align-items: start;
}

.faktury-copy-block p {
    margin-bottom: 14px;
}

.faktury-copy-block .faktury-list {
    margin-top: 0;
}

.faktury-single-visual {
    margin: 0;
    max-width: none;
}

#e-faktura-2027 .faktury-copy-block {
    max-width: 1120px;
}

#e-faktura-2027 .faktury-copy-layout {
    grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.25fr);
    gap: 28px;
    align-items: start;
}

#e-faktura-2027 .faktury-single-visual {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    margin-left: -20px;
}

#e-faktura-2027 .faktury-single-visual img {
    width: 108%;
    max-width: none;
}

#e-faktura-2027 .faktury-image-caption {
    padding: 10px 0 0;
    background: transparent;
}

.faktury-sales .sales-lines {
    margin: 20px 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.faktury-sales .sales-lines li {
    font-size: 17px;
    color: #0f172a;
    font-weight: 600;
}

.faktury-steps {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 10px;
}

.faktury-steps li {
    font-size: 17px;
    line-height: 1.65;
    color: #0f172a;
}

.faktury-practice-panel {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.faktury-practice-lead {
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.7;
    color: #334155;
    max-width: 760px;
}

.faktury-practice-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
    counter-reset: practice-step;
}

.faktury-practice-steps li {
    border: 1px solid #dbe6f4;
    border-radius: 15px;
    background: #ffffff;
    padding: 13px 14px 13px 58px;
    position: relative;
    font-size: 16px;
    line-height: 1.6;
    color: #0f172a;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.faktury-practice-steps li::before {
    counter-increment: practice-step;
    content: counter(practice-step);
    position: absolute;
    left: 14px;
    top: 11px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0BA6DF;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.faktury-practice-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 27px;
    top: 40px;
    width: 2px;
    height: calc(100% - 26px);
    background: linear-gradient(180deg, #cfe7fb 0%, rgba(207, 231, 251, 0) 100%);
}

.faktury-practice-visuals {
    display: grid;
    gap: 14px;
}

.faktury-practice-main,
.faktury-practice-visuals .faktury-image-box {
    margin: 0;
}

.faktury-practice-main img {
    width: 100%;
    max-height: 470px;
    object-fit: contain;
    padding: 10px 16px 0;
    background: #ffffff;
}

.faktury-practice-notes {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.faktury-practice-notes li {
    border: 1px solid #dbe6f4;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 15px;
    line-height: 1.5;
    color: #334155;
}

.faktury-table-wrap {
    overflow: visible;
}

.faktury-table-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: 8px;
    padding-bottom: 2px;
}

.faktury-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
    border: 1px solid #c7d3e3;
    border-radius: 16px;
    overflow: hidden;
}

.faktury-table th,
.faktury-table td {
    padding: 16px 14px;
    border-bottom: 1px solid #cfd8e6;
    text-align: left;
    vertical-align: top;
    font-size: 16px;
}

.faktury-table th {
    background: #f4f7fb;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.faktury-table tr:last-child td {
    border-bottom: none;
}

.faktury-table td:nth-child(4) {
    font-weight: 700;
    color: #0f172a;
}

.faktury-compare-table {
    min-width: 1020px;
}

.faktury-compare-table th,
.faktury-compare-table td {
    font-size: 15px;
    line-height: 1.55;
    padding: 14px 12px;
}

.faktury-compare-table th {
    text-align: center;
    vertical-align: middle;
}

.faktury-compare-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    line-height: 1.2;
}

.faktury-compare-brand img {
    width: 30px;
    height: 30px;
    display: block;
}

.faktury-compare-table td:nth-child(2) {
    font-weight: 800;
    color: #0f172a;
    background: #f8fbff;
}

.faktury-compare-table td:nth-child(4) {
    font-weight: 400;
    color: #334155;
}

.faktury-compare-table th:first-child,
.faktury-compare-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #ffffff;
    box-shadow: 1px 0 0 #c7d3e3;
}

.faktury-compare-table th:first-child {
    z-index: 3;
    background: #f4f7fb;
    text-align: left;
}

.faktury-compare-best {
    margin-top: 18px;
    border: 1px solid #dbe6f4;
    border-radius: 14px;
    background: #f8fbff;
    padding: 16px;
}

.faktury-compare-best h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.3;
}

.faktury-compare-best .faktury-list {
    margin-top: 0;
}

.faktury-feature-grid h2 {
    text-align: center;
    margin-bottom: 30px;
}

.faktury-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.faktury-card {
    border: 1px solid #d4d9e2;
    border-radius: 14px;
    background: #f7f8fb;
    text-align: center;
    padding: 18px 18px 22px;
    display: flex;
    flex-direction: column;
}

.faktury-card .circle-img {
    width: 145px;
    height: 145px;
    border-radius: 50%;
    border: 1px solid #b6becb;
    object-fit: cover;
    margin: 0 auto 14px;
    background: #fff;
}

.faktury-card h3 {
    font-size: 30px;
    line-height: 1.28;
    margin-bottom: 12px;
    color: #0f172a;
}

.faktury-card p {
    font-size: 16px;
    line-height: 1.65;
    color: #1e293b;
    margin-bottom: 14px;
}

.faktury-card .btn {
    width: 100%;
    max-width: 220px;
    border-radius: 9px;
    margin-top: auto;
    align-self: center;
}

.faktury-process-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: start;
}

.faktury-final-cta {
    text-align: center;
    margin-bottom: 60px;
}

.faktury-final-cta .btn,
.faktury-final-cta .jz2-btn {
    margin-top: 10px;
    min-width: 260px;
}

.faktury-benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.faktury-benefit {
    border: 1px solid #d8e2ef;
    border-radius: 16px;
    background: #f8fbff;
    padding: 18px;
}

.faktury-benefit h3 {
    font-size: 22px;
    margin: 0 0 8px;
    color: #0f172a;
    line-height: 1.3;
}

.faktury-benefit p {
    margin: 0;
    color: #334155;
    font-size: 16px;
    line-height: 1.65;
}

.faktury-faq h2 {
    text-align: center;
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 18px;
    color: #0f172a;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.faktury-faq .faq-list {
    max-width: 1100px;
    margin: 18px auto 0;
    display: block;
    border-top: 1px solid rgba(15, 23, 42, 0.15);
}

.faktury-faq .faq-item {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.15);
    box-shadow: none;
    border-radius: 0;
}

.faktury-faq .faq-accordion-item > summary {
    list-style: none;
}

.faktury-faq .faq-accordion-item > summary::-webkit-details-marker {
    display: none;
}

.faktury-faq .faq-question {
    margin: 0;
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.3;
    color: #2f3b4d;
}

.faktury-faq .faq-toggle::before {
    content: "+";
    font-size: 44px;
    line-height: 1;
    color: #26a133;
    font-weight: 400;
}

.faktury-faq .faq-accordion-item[open] .faq-toggle::before {
    content: "\2212";
}

.faktury-faq .faq-answer {
    margin: 0 0 20px;
    max-width: 92%;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #465769;
}

.faktury-faq .faq-accordion-item[open] .faq-answer {
    color: #000;
}

.faktury-cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

@media (max-width: 1199px) {
    .faktury-hero h1 {
        font-size: 40px;
    }

    .faktury-hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .faktury-article-grid,
    .faktury-benefit-grid,
    .faktury-cards,
    .faktury-visual-rows,
    .faktury-process-grid,
    .faktury-process-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .faktury-process-gallery .faktury-process-card:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991px) {
    #hlavne-funkcie-faktury .faktury-flow-block > div:first-child,
    #hlavne-funkcie-faktury .faktury-flow-block.faktury-flow-left > div:first-child {
        float: none;
        width: 100%;
        max-width: none;
        margin: 0 0 16px;
    }
}

@media (max-width: 991px) {
    .faktury-hero {
        padding: 128px 0 70px;
    }

    .faktury-hero h1 {
        font-size: 34px;
    }

    .faktury-hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .faktury-hero-image {
        text-align: center;
    }

    .faktury-panel,
    .faktury-article,
    .faktury-sales,
    .faktury-table-wrap,
    .faktury-feature-grid,
    .faktury-final-cta {
        padding: 24px;
    }

    .faktury-panel h2,
    .faktury-final-cta h2 {
        font-size: 28px;
    }

    .faktury-article-grid,
    .faktury-benefit-grid,
    .faktury-faq .faq-list,
    .faktury-cards,
    .faktury-visual-rows,
    .faktury-process-grid,
    .faktury-process-gallery {
        grid-template-columns: 1fr;
    }

    .faktury-copy-layout {
        grid-template-columns: 1fr;
    }

    #e-faktura-2027 .faktury-copy-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .faktury-single-visual {
        margin-top: 14px;
    }

    #e-faktura-2027 .faktury-single-visual {
        margin-left: 0;
    }

    #e-faktura-2027 .faktury-single-visual img {
        width: 100%;
    }

    .faktury-faq h2 {
        font-size: 28px;
    }
}

@media (max-width: 575px) {
    .faktury-hero-actions .jz2-btn {
        width: 100%;
        min-width: 0;
        font-size: 16px;
    }

    .faktury-cta-actions .btn,
    .faktury-cta-actions .jz2-btn {
        width: 100%;
    }

    .faktury-faq .faq-question {
        font-size: 16px;
        font-weight: 600;
        padding: 18px 0;
    }

    .faktury-faq .faq-toggle::before {
        font-size: 28px;
    }

    .faktury-faq .faq-answer {
        max-width: 100%;
        font-size: 15px;
        margin-bottom: 16px;
    }

    .faktury-table th,
    .faktury-table td {
        font-size: 16px;
    }
}

/* Responsive safety layer for this page only */
.faktury-page,
.faktury-page main {
    overflow-x: clip;
}

.faktury-page img,
.faktury-page video,
.faktury-page svg {
    max-width: 100%;
    height: auto;
}

@media (max-width: 1200px) {
    .faktury-page .header-container {
        gap: 12px;
        flex-wrap: wrap;
    }

    .faktury-page .main-nav {
        order: 3;
        width: 100%;
        margin-top: 8px;
    }

    .faktury-page .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
    }
}

@media (max-width: 992px) {
    .faktury-page .header-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }

    .faktury-page .header-actions .btn-login {
        padding: 10px 24px;
        font-size: 14px;
    }

    .faktury-page .header-actions .header-gps-link {
        display: none;
    }

    .faktury-section {
        padding: 20px 0 56px;
    }

    .faktury-hero {
        padding: 120px 0 56px;
    }

    .faktury-hero h1 {
        font-size: clamp(30px, 7.4vw, 40px);
    }

    .faktury-panel,
    .faktury-article,
    .faktury-sales,
    .faktury-table-wrap,
    .faktury-feature-grid,
    .faktury-final-cta {
        padding: 22px;
    }

    .faktury-panel h2,
    .faktury-article h2,
    .faktury-sales h2,
    .faktury-table-wrap h2,
    .faktury-feature-grid h2,
    .faktury-final-cta h2,
    .faktury-faq h2 {
        font-size: clamp(24px, 5vw, 30px);
    }
}

@media (max-width: 768px) {
    .faktury-page .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .faktury-page .site-header {
        padding: 12px 0 8px;
    }

    .faktury-page .header-container {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 10px;
    }

    .faktury-page .main-nav {
        order: initial;
        width: auto;
        margin-top: 0;
        justify-self: end;
        position: relative;
    }

    .faktury-page .header-actions {
        grid-column: 1 / -1;
    }

    .faktury-page .nav-menu.active {
        top: calc(100% + 10px);
        right: 0;
        width: min(320px, calc(100vw - 28px));
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    .faktury-hero p,
    .faktury-panel p,
    .faktury-article p,
    .faktury-sales p,
    .faktury-table-wrap p,
    .faktury-list li,
    .faktury-sales .sales-lines li {
        font-size: 16px;
        line-height: 1.62;
    }

    .faktury-card h3 {
        font-size: 24px;
    }

    .faktury-card .circle-img {
        width: 120px;
        height: 120px;
    }

    .faktury-final-cta {
        margin-bottom: 28px;
    }
}

@media (max-width: 480px) {
    .faktury-page .brand-name {
        font-size: 20px;
    }

    .faktury-page .tagline {
        font-size: 11px;
    }

    .faktury-panel,
    .faktury-article,
    .faktury-sales,
    .faktury-table-wrap,
    .faktury-feature-grid,
    .faktury-final-cta {
        padding: 18px;
        border-radius: 16px;
    }

    .faktury-final-cta .btn,
    .faktury-final-cta .jz2-btn,
    .faktury-cta-actions .btn,
    .faktury-cta-actions .jz2-btn,
    .faktury-card .btn {
        width: 100%;
        min-width: 0;
        max-width: none;
    }
}

@media (max-width: 1100px) {
    .faktury-page .site-header {
        padding: 12px 0 8px;
    }

    .faktury-page .header-container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        gap: 8px;
    }

    .faktury-page .main-nav {
        grid-column: 3;
        grid-row: 1;
        width: auto;
        margin-top: 0;
        justify-self: end;
        position: relative;
    }

    .faktury-page .nav-toggle {
        display: flex;
    }

    .faktury-page .nav-menu {
        display: none;
    }

    .faktury-page .nav-menu.active {
        display: flex;
        position: absolute;
        top: calc(100% + 48px);
        right: 0;
        width: min(360px, calc(100vw - 20px));
        max-height: min(72vh, 520px);
        overflow-y: auto;
        flex-direction: column;
        gap: 8px;
        background: #fff;
        border-radius: 16px;
        padding: 12px;
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
        z-index: 1200;
    }

    .faktury-page .nav-menu.active > li > a {
        display: block;
        padding: 10px 8px;
        font-size: 16px;
        line-height: 1.35;
    }

    .faktury-page .nav-menu.active .has-submenu::after {
        display: none;
    }

    .faktury-page .nav-menu.active .submenu {
        display: block;
        position: static;
        min-width: unset;
        box-shadow: none;
        border-radius: 10px;
        background: transparent;
        border: 0;
        margin-top: 2px;
        padding: 4px 0 4px 14px;
    }

    .faktury-page .nav-menu.active .submenu a {
        font-size: 16px;
        line-height: 1.35;
        padding: 8px 0;
        white-space: normal;
    }

    .faktury-page .header-actions {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        flex-wrap: nowrap;
        gap: 8px;
        width: auto;
    }

    .faktury-page .header-actions .header-gps-link {
        display: none;
    }

    .faktury-page .header-actions .btn-login {
        padding: 8px 12px;
        font-size: 13px;
        white-space: nowrap;
    }
}

/* Match index header/footer exactly */
.faktury-page .site-header .logo img {
    height: 50px !important;
    width: auto !important;
    max-width: none !important;
    max-height: 50px !important;
    flex: 0 0 auto;
}

.faktury-page .site-header .brand-name {
    font-size: 24px;
    line-height: 1.1;
}

.faktury-page .site-header .tagline {
    font-size: 13px;
    color: var(--text-gray);
}

@media (max-width: 767px) {
    .faktury-page .site-header .brand-name {
        font-size: 20px;
    }

    .faktury-page .site-header .tagline {
        font-size: 11px;
    }
}

@media (max-width: 1100px) {
    .faktury-hero-image img {
        max-width: 420px;
    }

    .faktury-card .circle-img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .faktury-hero-image img {
        max-width: 300px;
    }

    .faktury-card .circle-img {
        width: 96px;
        height: 96px;
    }
}
