:root {
    /* Ujednolicona paleta (step 4 design unification) */
    --color-primary: #2563eb;
    --color-primary-dark: #1e40af;
    --color-primary-soft: #eff6ff;
    --color-accent-green: #059669;
    --color-accent-indigo: #4f46e5;
    --color-ink: #1e293b;
    --color-text: #334155;
    --color-text-soft: #4b5563;
    --color-muted: #64748b;
    --color-border: #e2e8f0;
    --color-surface: #ffffff;
    --color-page-bg: #f8fafc;
    --radius-card: 12px;
    --radius-section: 24px;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Aliasy historyczne — używane przez starsze reguły i strony */
    --mdc-theme-primary: var(--color-primary);
    --mdc-theme-secondary: #e8eaf6;
    --mdc-theme-background: #ffffff;
    --mdc-theme-surface: #ffffff;
    --mdc-theme-on-primary: #ffffff;
    --mdc-theme-on-surface: #000000;

    --super-light-gray: #f5f5f5;
    --main-error-color: #e40000;
}

.mdc-button {
    height: 50px !important;
    transition: all .2s ease-in-out;
}

.mdc-button--outlined:hover {
    background-color: var(--super-light-gray);
}

/* .mdc-floating-label, */
.mdc-floating-label--float-above {
    color: var(--mdc-theme-primary) !important;
}

/* 
.mdc-line-ripple::after {
    background-color: var(--mdc-theme-primary) !important;
}

.mdc-notched-outline--upgraded .mdc-notched-outline__notch {
    border-color: var(--mdc-theme-primary) !important;
} */

a {
    color: var(--mdc-theme-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

html,
body {
    height: 100%;
    flex: 1;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: var(--font-main);
    overflow-x: clip;
    background-color: var(--color-page-bg);
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.big-checkbox {
    transform: scale(1.5);
    -webkit-transform: scale(1.5);
    margin: 10px;
    cursor: pointer;
}

.bg-video {
    width: 100%;
    height: auto;
    display: block;
}

.captchaContainer {
    /* text-align: center; */
    /* padding: 0 0 0 20px; */
    justify-items: center;
}

/* .g-recaptcha {
    display: inline-block;
} */

/* .g-recaptcha {
    -webkit-transform: scale(0.9);
    -moz-transform: scale(0.9);
     -ms-transform: scale(0.9);
      -o-transform: scale(0.9);
         transform: scale(0.9);
  -webkit-transform-origin: 0 0;
     -moz-transform-origin: 0 0;
      -ms-transform-origin: 0 0;
       -o-transform-origin: 0 0;
          transform-origin: 0 0;
} */

.tfa-input {
    font-size: 2rem;
    text-align: center;
}

.header {
    height: 64px;
    width: 100%;
    display: flex;
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
}

.headerWrapper {
    width: 100%;
    display: flex;
    flex: 1;
}

.headerLeftColumn {
    flex: 1;
    display: flex;
}

.headerLeftColumn .logoContainer {
    align-content: center;
    padding: 0 0 0 20px;
}

.header .logoImg {
    height: 50px;
}


#logoTextContainer {
    align-content: center;
    padding-left: 10px;
    cursor: pointer;
}

.headerLeftColumn .logoText {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-ink);
}

.headerLeftColumn .logoHint {
    color: #666666;
    font-size: 0.8rem;
}

.headerRightColumn {
    flex: 1;
    text-align: right;
    padding: 10px;
}

.headerRightColumn select {
    border: none;
    background: none;
}

.body {
    flex: 1;
    justify-content: center;
    justify-items: center;
    align-items: center;
    align-content: center;
}

.bodyBg {
    background: linear-gradient(180deg, #dbeafe 0%, #eef2ff 55%, var(--color-page-bg) 100%);
    height: 100vh;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -1;
}

.bodyBg.fadeIn {
    -webkit-animation: fadeInBg 1s;
    animation: fadeInBg 1s;
}

.bodyBgEnd {
    display: none;
}

.body .screenshotContainer {
    border-radius: 5px;
    margin: 0px auto;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 125px 2px;
    border: 5px solid var(--mdc-theme-secondary);
    background-color: white;
    display: inline-block;
    cursor: pointer;
}

.body .screenshotContainer img {
    border-radius: 10px;
}

.material-btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background-color: var(--color-primary);
    border: none;
    border-radius: var(--radius-card);
    cursor: pointer;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: 0.5px;
}

.ytb-btn {
    background-color: #ebab4b;
    color: var(--color-ink);
}

.material-btn:hover {
    background-color: var(--color-primary-dark);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.25);
}

.ytb-btn:hover {
    background-color: #dd9a35;
    color: var(--color-ink);
}

.body .centerWrapper {
    position: relative;
    border-radius: 20px;
    max-width: 400px;
    margin: 50px auto;
    padding-bottom: 40px;
    padding: 30px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 125px 2px;
    border: 5px solid var(--mdc-theme-secondary);
    background-color: white;
}

.body .centerWrapper.wide {
    border: none;
    box-shadow: none;
    background: none;
    padding: 5px;
    max-width: 90%;
    margin-top: 0;
}

.body .centerWrapper .error {
    border: 2px solid var(--main-error-color);
    background-color: var(--super-light-gray);
    border-radius: 5px;
    padding: 10px;
    color: var(--main-error-color);
    margin: 0 0 15px 0;
}

.body .centerWrapper .message {
    border: 2px solid var(--mdc-theme-primary);
    background-color: var(--mdc-theme-secondary);
    border-radius: 5px;
    padding: 10px;
    margin: 0 0 15px 0;
}

.footer {
    /* height: 5vh;
    width: 100%; */
    padding: 15px;
    display: flex;
    background-color: var(--mdc-theme-secondary);
}

.footerWrapper {
    width: 100%;
    display: flex;
    flex: 1;
}

.footerLeftColumn {
    flex: 1;
    align-content: center;
    padding: 0 0 0 15px;
    font-size: 0.8rem;
}

.footerRightColumn {
    flex: 1;
    align-content: center;
    text-align: right;
    padding: 0 15px 0 15px;
    font-size: 0.8rem;
    display: flex;
    justify-content: end;
}

input:-webkit-autofill {
    box-shadow: 0 0 0 30px white inset !important;
    /* override colorish autofill background */
}

.requiredFormItem {
    color: #e40000;
}

.orDiv {
    margin-top: 15px;
    margin-bottom: 15px;
    justify-content: center;
    flex: 1;
    display: flex;
}

.orDiv span {
    position: absolute;
    padding: 5px;
    background-color: white;
    line-height: 15px;
}

.orDiv hr {
    flex: 1;
    border-top: 1px solid #ccc;
    margin-top: 12px;
}

.regulations {
    margin-top: 25px;
    color: #333333;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.systemInfoMsg {
    margin-top: 10px !important;
    color: #850505;
    border-color: #850505 !important;
    background-color: white !important;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

ul.space_list li {
    margin-bottom: 1em;
}

@keyframes fadeInBg {
    from {
        opacity: 0.2;
    }

    to {
        opacity: 1;
    }
}

.topLabel {
    text-align: center;
    padding: 5px;
    margin: 24px 0 0 0;
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--color-text);
}

/* Karty segmentów, banner planu, blog i cennik (step 4: dawne style inline) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.info-card {
    border-radius: var(--radius-card);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-primary);
    padding: 25px;
    line-height: 1.6;
}

.info-card h2 {
    margin-top: 0;
    font-size: 1.17em;
    color: var(--color-primary);
}

.info-card p {
    color: var(--color-text);
    font-size: 0.95em;
}

.info-card ul {
    color: var(--color-text);
    padding-left: 20px;
    font-size: 0.9em;
}

.info-card.accent-green {
    border-top-color: var(--color-accent-green);
}

.info-card.accent-green h2 {
    color: var(--color-accent-green);
}

.plan-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    border-radius: var(--radius-section);
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
}

.plan-banner h2 {
    margin-top: 0;
    color: #fff;
    font-size: 2em;
}

.plan-banner .plan-banner-sub {
    font-size: 1.2em;
    margin-bottom: 25px;
    opacity: 0.9;
}

.plan-banner-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: var(--radius-card);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-box .stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
}

.stat-box .stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.plan-banner-cta {
    background-color: #fbbf24;
    color: var(--color-ink);
    font-weight: bold;
    padding: 15px 40px;
    font-size: 1.1em;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.plan-banner-cta:hover {
    background-color: #f59e0b;
}

.blog-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.blog-section h2 {
    text-align: center;
    color: var(--color-ink);
    margin-bottom: 25px;
    font-size: 1.17em;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.blog-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.blog-card-img {
    height: 150px;
    background: var(--color-primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.blog-card-img img {
    width: 100%;
    object-fit: cover;
    max-height: 100%;
}

.blog-card-body {
    padding: 20px;
    flex-grow: 1;
}

.blog-card-body h3 {
    margin: 0 0 10px 0;
    color: var(--color-primary);
    font-size: 1em;
}

.blog-card-body p {
    color: var(--color-text-soft);
    font-size: 0.85em;
    margin: 0;
}

.blog-card-link {
    padding: 0 20px 20px 20px;
}

.blog-card-link a {
    color: var(--color-primary);
    font-size: 0.9em;
    font-weight: bold;
}

.pricing-card {
    text-align: center;
    border-radius: var(--radius-card);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 20px;
    margin-bottom: 20px;
}

.pricing-card h2 {
    margin-top: 0;
    color: var(--color-ink);
    font-size: 1.17em;
}

.table-scroll {
    overflow-x: auto;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.pricing-table th {
    padding: 10px;
}

.pricing-table th:not(:first-child),
.pricing-table td:not(:first-child) {
    text-align: center;
}

.pricing-table thead tr {
    border-bottom: 2px solid var(--color-border);
}

.pricing-table tbody tr {
    border-bottom: 1px solid #eef2f7;
}

.pricing-table td {
    padding: 8px;
}

.pricing-table.limits td:last-child {
    font-weight: 700;
}

.topButtonsContainer {
    text-align: center;
    margin: 20px 0 20px 0;
    /* display: flex;
    flex-direction: row; */
}

.platform-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 24px auto 4px auto;
    text-align: left;
}

.platform-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 20px 22px;
}

.platform-card h2 {
    font-size: 1.05em;
    margin: 0 0 6px 0;
    color: var(--color-ink);
    display: flex;
    align-items: center;
    gap: 8px;
}

.platform-card h2 svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.platform-card p {
    margin: 0;
    font-size: 0.9em;
    color: var(--color-text-soft);
    line-height: 1.55;
}

.platform-card .platform-cta {
    display: inline-block;
    margin-top: 12px;
    font-weight: 700;
    font-size: 0.9em;
}

.store-badges {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 18px 0 4px 0;
}

.platform-card .store-badges {
    justify-content: flex-start;
    margin: 14px 0 0 0;
}

.store-badges img {
    display: block;
}

.store-badges a:hover {
    text-decoration: none;
}

.pricing-note {
    color: var(--color-text-soft);
    font-size: 0.9em;
    margin: -6px 0 16px 0;
}

.topSubButtonsContainer {
    text-align: left;
    margin: 20px 0 5px 0;
    /* display: flex;
    flex-direction: row; */
}

.bottom-link-btn,
.top-menu-btn {
    display: inline-flex;
    align-items: center;
    /* vertical alignment */
    gap: 8px;
    /* space between image and text */
    padding: 3px 7px;
    /* background: #dc3545; */
    /* YouTube-like red */
    /* color: white; */
    text-decoration: none;
    border-radius: 6px;
    font-family: Arial, sans-serif;
}

.bottom-link-btn img,
.top-menu-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.topButtonContainer a {
    border-radius: var(--radius-card);
}

.topButtonContainer {
    display: inline;
}

#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;

    display: none;
    padding: 8px 10px 5px 10px;

    font-size: 18px;
    cursor: pointer;

    border: none;
    border-radius: 10px;
    background-color: #1976d2;
    color: white;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

#backToTop:hover {
    background-color: #125ea2;
}

#imageOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#imageOverlay img {
    border: 5px solid #333333;
    border-radius: 20px;
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px black;
    cursor: zoom-out;
}

#instructionsContainer img {
    cursor: pointer;
}

#instructionsContainer p img {
    display: block;
    margin: 0 auto;
}

.xTable {
    border: 1px solid #cecece;
    border-radius: 5px;
}

.xTable th,
.xTable td {
    padding: 5px;
}

.xTable td:not(:last-child),
.xTable th:not(:last-child) {
    border-right: 1px solid #cecece;
}

.xTable tr th {
    border-bottom: 1px solid #cecece;
}

.xTable tr:not(:last-child) td {
    border-bottom: 1px solid #cecece;
}

#web-instruction .body #instructionsContainer img:not(.lazy) {
    width: 100%;
    height: auto;
    max-width: min(65rem, 900px);
}

#web-instruction .body #instructionsContainer img.smallImg {
    width: auto;
}

#web-instruction .body #instructionsContainer img.lazy {
    width: auto;
    opacity: 0.5;
    max-height: 200px;
}

.seo-only {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 800px) {
    body {
        min-height: 800px;
    }
    
    .topButtonsContainer {
        text-align: center;
        margin: 20px 0 20px 0;
        display: flex;
        flex-direction: column;
    }

    .topButtonContainer {
        display: flex;
    }

    .topButtonContainer a {
        margin-top: 10px;
        flex: 1;
        text-align: center;
        justify-items: center;
    }

    #web-instruction .body #instructionsContainer img.lazy {
        max-height: 100px;
    }

    .footerRightColumn {
        flex-direction: column;
    }
}

   /* Stylizacja sekcji promocyjnej */
.promo-welcome-section {
    background: #f8fbff; /* Bardzo jasny niebieski, pasujący do czystej bieli strony */
    padding: 60px 20px;
    border-top: 1px solid #e1e8f0;
    border-bottom: 1px solid #e1e8f0;
    font-family: var(--font-main);
}

.promo-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.promo-content {
    flex: 1;
}

.promo-badge {
    display: inline-block;
    background: var(--color-primary);
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 20px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 15px;
}

.promo-content h2 {
    color: #333;
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
}

.promo-content p {
    color: #555;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.promo-button {
    display: inline-block;
    background: var(--color-accent-green);
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.promo-button:hover {
    background: #047857;
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

/* Wizualizacja '90 dni' */
.promo-icon-wrapper {
    flex-shrink: 0;
}

.promo-visual-element {
    width: 180px;
    height: 180px;
    background: #ffffff;
    border: 8px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.promo-days-count {
    font-size: 58px;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}

.promo-days-label {
    font-size: 16px;
    color: #333;
    text-transform: uppercase;
    font-weight: bold;
}

/* Responsywność */
@media (max-width: 768px) {
    .promo-container {
        flex-direction: column;
        text-align: center;
    }
    .promo-visual-element {
        order: -1; /* Obrazek na górze w wersji mobilnej */
    }
}

/* Style wspólne dla sekcji na stronie głównej */
.homepage-section {
    padding: 80px 20px;
    font-family: var(--font-main);
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
}

.badge-accent {
    display: inline-block;
    padding: 6px 14px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.badge-accent.accent-purple {
    background: #f5f3ff;
    color: #4f46e5;
}

.section-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: center;
}

.section-grid.grid-reverse {
    grid-template-columns: 0.8fr 1.2fr;
}

.section-grid.grid-reverse .section-text {
    grid-column: 2;
}
.section-grid.grid-reverse .section-visual-icons {
    grid-column: 1;
    grid-row: 1;
}

.section-text h2 {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 16px 0;
    letter-spacing: -0.03em;
}

.section-lead {
    font-size: 1.125rem;
    color: #4b5563;
    margin: 0 0 32px 0;
}

/* Sekcja On-Premise - Ciemny, techniczny styl */
.section-on-premise {
    background-color: #0f172a;
    color: white;
    border-radius: 24px;
    margin: 20px 0;
}

.section-on-premise .section-text h2 { color: white; }
.section-on-premise .section-lead { color: #94a3b8; }

.mini-feat {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.mini-icon {
    width: 40px;
    height: 40px;
    background: rgba(37, 99, 235, 0.15);
    color: #3b82f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mini-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
    color: white;
}

.mini-feat p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

.tech-card {
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 32px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.tech-line {
    border-bottom: 1px solid #1e293b;
    padding: 12px 0;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

/* Sekcja QR / NFC - Jasny, mobilny styl */
.section-qr-nfc {
    background-color: white;
    color: #1e293b;
}

.feat-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.feat-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 15px;
    color: #4b5563;
}

.feat-list i {
    color: #4f46e5;
    flex-shrink: 0;
    margin-top: 2px;
}

.section-visual-icons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.icon-badge-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 20px 40px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 180px;
    font-weight: 700;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.icon-badge-box i { color: #4f46e5; }

/* Przyciski */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-navy {
    background: #2563eb;
    color: white;
}
.btn-navy:hover { background: #3b82f6; transform: translateY(-2px); }

.btn-purple {
    background: #4f46e5;
    color: white;
}
.btn-purple:hover { background: #6366f1; transform: translateY(-2px); }

.sublevel0 {
    font-weight: 700;
    font-size: 1.2em;
}
.sublevel1 {
    margin-left: 10px;
    font-size: 1.1em;
}
.sublevel2 {
    margin-left: 20px;
    font-size: 1.0em;
}

/* RWD */
@media (max-width: 768px) {
    .section-grid, .section-grid.grid-reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .section-grid.grid-reverse .section-text {
        grid-column: 1;
    }
    .section-grid.grid-reverse .section-visual-icons {
        grid-column: 1;
        grid-row: 2;
    }
    .section-text h2 {
        font-size: 1.75rem;
    }
    .icon-badge-box {
        width: 80%;
    }
}

/* Nawigacja w nagłówku */
.headerRightColumn {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.header-nav {
    display: flex;
    gap: 18px;
    align-items: center;
}

.header-nav a {
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
}

.header-login-btn {
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    color: var(--mdc-theme-primary);
    border: 1px solid var(--mdc-theme-primary);
    border-radius: 20px;
    padding: 7px 18px;
}

.header-login-btn:hover {
    background-color: var(--mdc-theme-secondary);
    text-decoration: none;
}

#logoTextContainer {
    color: inherit;
    text-decoration: none;
}

#logoTextContainer:hover {
    text-decoration: none;
}

@media (max-width: 800px) {
    .header-nav {
        display: none;
    }

    .headerRightColumn {
        gap: 8px;
        padding: 10px 6px;
    }

    .header-login-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .headerLeftColumn .logoText {
        font-size: 1.05rem;
    }

    .headerLeftColumn .logoHint {
        display: none;
    }

    .headerLeftColumn .logoContainer {
        padding-left: 10px;
    }
}

#funkcje,
#cennik,
#faq {
    scroll-margin-top: 84px;
}

/* Sekcja "Jak to działa" + funkcje */
.section-how {
    background: #ffffff;
    border-radius: 24px;
    margin: 20px 0;
}

.section-how h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin: 0 0 8px 0;
    color: #1e293b;
}

.section-how .how-sub {
    text-align: center;
    color: #4b5563;
    margin: 0 0 40px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.step-card {
    text-align: center;
    padding: 0 10px;
}

.step-num {
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 900;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-card h3 {
    font-size: 1.05em;
    margin: 0 0 8px 0;
    color: #1e293b;
}

.step-card p {
    font-size: 14px;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

a.feature-item {
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

a.feature-item:hover {
    text-decoration: none;
    border-color: #2563eb;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.feature-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
}

.feature-item svg {
    color: #2563eb;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-item h3 {
    font-weight: 700;
    font-size: 15px;
    margin: 0;
    color: #1e293b;
}

.feature-item p {
    margin: 4px 0 0;
    font-size: 13.5px;
    color: #4b5563;
    line-height: 1.5;
}

/* Sekcja FAQ */
.section-faq {
    background: #ffffff;
    border-radius: 24px;
    margin: 20px 0;
}

.section-faq h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin: 0 0 32px 0;
    color: #1e293b;
}

.section-faq details {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
}

.section-faq summary {
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
}

.section-faq details p {
    color: #4b5563;
    margin: 12px 0 0;
    line-height: 1.6;
}

/* Stopka */
.footer-legal {
    color: #555;
    margin-top: 6px;
    line-height: 1.6;
}

.footer-brand {
    font-weight: 700;
}

/* Wyrównanie i elastyczność ikon SVG wewnątrz komponentów */
.mini-icon svg {
    display: block;
}

.feat-list li svg {
    color: #4f46e5;
    flex-shrink: 0;
    margin-top: 3px;
}

.icon-badge-box svg {
    color: #4f46e5;
    flex-shrink: 0;
}

.btn-primary svg {
    flex-shrink: 0;
}