/* Stopka + modały — identyczne z VideoAnalyzerPro.html */
:root {
    --bg-top: #0b0b0b;
    --bg-bottom: #050505;
    --vap-chrome-surface: #050505;
    --text: #e8e8e8;
    --text-muted: #8b8b9e;
    --accent-light: rgb(118, 140, 245);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --font-hero-lead: 'IBM Plex Sans', 'Inter', 'Source Sans 3', system-ui, sans-serif;
    --font-section-title: 'Montserrat', 'Inter', 'IBM Plex Sans', system-ui, sans-serif;
    --vap-nav-ui-size: 0.85rem;
    --vap-nav-underline-width: 1.2px;
    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --vap-legal-surface: rgba(12, 12, 18, 0.98);
    --vap-legal-surface-border: var(--border-subtle);
    --vap-legal-surface-accent: rgba(102, 126, 234, 0.28);
    --vap-legal-shadow-modal: 0 20px 52px rgba(0, 0, 0, 0.42);
    --vap-legal-shadow-banner: 0 12px 32px rgba(0, 0, 0, 0.35);
    --vap-legal-surface-highlight: radial-gradient(ellipse 100% 48% at 50% 0%, rgba(102, 126, 234, 0.07), transparent 68%);
    --vap-legal-scrollbar-track: rgba(255, 255, 255, 0.03);
    --vap-legal-scrollbar-thumb: rgba(130, 150, 220, 0.38);
    --vap-legal-scrollbar-thumb-hover: rgba(168, 188, 255, 0.55);
    --radius-lg: 28px;
    --text-soft: #a1a1a1;
    --vap-inner-card-bg: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(15, 23, 42, 0.42) 100%);
    --vap-inner-card-border: rgba(102, 126, 234, 0.22);
    --vap-inner-card-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    --vap-inner-card-bg-hover: linear-gradient(135deg, rgba(102, 126, 234, 0.18) 0%, rgba(18, 26, 44, 0.52) 100%);
    --vap-inner-card-border-hover: rgba(140, 162, 255, 0.38);
    --vap-inner-card-shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --vap-sticky-surface: linear-gradient(to bottom, rgb(14, 14, 14), rgb(9, 9, 9));
    --vap-sticky-surface-highlight: radial-gradient(ellipse 100% 42% at 50% 0%, rgba(255, 255, 255, 0.025), transparent 72%);
    --vap-hero-buy-bg-hover: linear-gradient(165deg, rgba(40, 46, 60, 0.26) 0%, rgba(28, 32, 42, 0.36) 100%);
}

body.vap-sub-page { padding-bottom: 58px; }
body.vap-sub-page.has-cookie-banner { padding-bottom: 118px; }
body.vap-sub-page.has-cookie-banner.has-sticky-cta:not(.vap-cookie-banner-forced) { padding-bottom: 58px; }
body.vap-sub-page[data-vap-hide-bottom-bar],
body.vap-sub-page.vap-no-bottom-bar { padding-bottom: 0 !important; }
body.vap-sub-page[data-vap-hide-bottom-bar] .bottom-fixed,
body.vap-sub-page.vap-no-bottom-bar .bottom-fixed {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    height: 0 !important;
    overflow: hidden !important;
}
body.vap-sub-page.has-top-bar { padding-top: 52px; }
body.vap-privacy-open { overflow: hidden; }

/* —— Górny pasek podstron — reguły 1:1 z VideoAnalyzerPro.html —— */
@keyframes vap-chrome-enter {
    from { opacity: 0; }
    to { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
    body.vap-sub-page .top-fixed {
        opacity: 0;
        animation: vap-chrome-enter 0.26s var(--ease) forwards;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.vap-sub-page .top-fixed {
        opacity: 1;
        animation: none !important;
    }
}
body.vap-sub-page .top-fixed {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 200 !important;
    background: var(--vap-chrome-surface);
    backdrop-filter: blur(12px);
    border-top: 0;
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 4vw;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}
body.vap-sub-page .top-fixed .tf-brand-col {
    display: flex !important;
    align-items: center;
    gap: 12px;
    min-width: 0;
    transform: translateX(-10.5px);
    transition: transform 0.28s var(--ease);
}
body.vap-sub-page .top-fixed .tf-brand-logo {
    flex-shrink: 0;
    display: block;
    line-height: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    text-decoration: none;
}
body.vap-sub-page .top-fixed .tf-logo-img {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: cover;
}
body.vap-sub-page .top-fixed .tf-brand-text {
    min-width: 0;
}
body.vap-sub-page .top-fixed .tf-brand-col .tf-title,
body.vap-sub-page .top-fixed .tf-brand-col .tf-sub {
    display: block;
}
body.vap-sub-page .top-fixed .tf-title {
    font-weight: 700 !important;
    font-size: 1rem !important;
    font-family: var(--font-section-title) !important;
    letter-spacing: 0.01em !important;
    line-height: 1.2 !important;
}
body.vap-sub-page .top-fixed .tf-title .vap-brand-base {
    display: inline-block;
    color: #d4d4dc !important;
    -webkit-text-fill-color: #d4d4dc !important;
}
body.vap-sub-page .top-fixed .tf-title .vap-brand-pro {
    display: inline-block;
    margin-left: 0.12em;
    background: linear-gradient(120deg, #a8b8ff 0%, #667eea 55%, #8b9cff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}
body.vap-sub-page .top-fixed .tf-sub {
    font-size: 0.8rem;
    color: #b6b6c8 !important;
    -webkit-text-fill-color: #b6b6c8 !important;
    font-family: var(--font-hero-lead);
    transition: color 0.28s var(--ease), -webkit-text-fill-color 0.28s var(--ease);
}
body.vap-sub-page .top-fixed .lang-switch {
    display: flex !important;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.28s var(--ease);
    gap: 4px;
    font-size: var(--vap-nav-ui-size);
    font-weight: 600;
    font-family: var(--font-hero-lead);
    white-space: nowrap;
}
body.vap-sub-page .top-fixed {
    color-scheme: dark;
}
body.vap-sub-page .top-fixed button.lang-btn {
    appearance: none;
    -webkit-appearance: none;
    display: inline-block;
    margin: 0;
    background: transparent !important;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: var(--vap-nav-underline-width) solid transparent;
    padding: 4px 10px;
    color: #8b8b9e !important;
    -webkit-text-fill-color: #8b8b9e !important;
    font-family: var(--font-hero-lead);
    font-size: var(--vap-nav-ui-size);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    border-radius: 0;
    box-sizing: border-box;
    transition:
        color 0.2s var(--ease),
        -webkit-text-fill-color 0.2s var(--ease),
        border-color 0.2s var(--ease),
        border-bottom-color 0.2s var(--ease);
}
body.vap-sub-page .top-fixed button.lang-btn:hover,
body.vap-sub-page .top-fixed button.lang-btn:focus-visible {
    color: rgb(118, 140, 245) !important;
    -webkit-text-fill-color: rgb(118, 140, 245) !important;
    outline: none;
}
body.vap-sub-page .top-fixed button.lang-btn.is-active {
    color: #8b8b9e !important;
    -webkit-text-fill-color: #8b8b9e !important;
    background: transparent !important;
    border-bottom-color: rgba(102, 126, 234, 0.82) !important;
}
body.vap-sub-page .top-fixed button.lang-btn.is-active:hover,
body.vap-sub-page .top-fixed button.lang-btn.is-active:focus-visible {
    color: #8b8b9e !important;
    -webkit-text-fill-color: #8b8b9e !important;
}
body.vap-sub-page .top-fixed .lang-sep {
    color: #8b8b9e;
    -webkit-text-fill-color: #8b8b9e;
    opacity: 0.45;
    user-select: none;
    font-size: var(--vap-nav-ui-size);
    font-weight: 600;
    line-height: 1.2;
}
@media (max-width: 900px) {
    body.vap-sub-page .top-fixed .tf-brand-col {
        transform: translateX(-3px);
    }
    body.vap-sub-page .top-fixed .lang-switch {
        transform: translateX(-6px);
        transition: transform 0.28s var(--ease);
    }
}
@media (max-width: 700px) {
    body.vap-sub-page .top-fixed .tf-title { font-size: calc(1rem * 0.94); }
    body.vap-sub-page .top-fixed .tf-sub { font-size: calc(0.8rem * 0.94); }
}
@media (max-width: 500px) {
    body.vap-sub-page .top-fixed .tf-title { font-size: calc(1rem * 0.90); }
    body.vap-sub-page .top-fixed .tf-sub { font-size: calc(0.8rem * 0.90); }
    body.vap-sub-page .top-fixed .tf-logo-img { width: 28px; height: 28px; }
    body.vap-sub-page .top-fixed .lang-switch { font-size: calc(var(--vap-nav-ui-size) * 0.96); }
}

/* —— Drugi pasek: Dla kogo, Cennik, Opinie, FAQ, Instalacja — jak główna —— */
body.vap-sub-page .wrap {
    width: min(1120px, 92vw);
    margin: 0 auto;
}
@media (prefers-reduced-motion: no-preference) {
    body.vap-sub-page header.nav {
        opacity: 0;
        animation: vap-chrome-enter 0.26s var(--ease) forwards;
        animation-delay: 0.05s;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.vap-sub-page header.nav {
        opacity: 1 !important;
        animation: none !important;
    }
}
body.vap-sub-page header.nav {
    position: sticky;
    top: 52px;
    z-index: 90;
    background: var(--vap-chrome-surface);
    backdrop-filter: blur(14px);
    border-top: 0;
    border-bottom: 0;
}
body.vap-sub-page .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14.75px 0;
    gap: 20px;
}
body.vap-sub-page .nav-inner--links-only {
    justify-content: flex-end;
}
body.vap-sub-page .nav-inner--links-only .nav-links {
    margin-left: 0;
    transform: none;
}
body.vap-sub-page .nav-links {
    display: flex;
    gap: 10px;
    margin-left: auto;
    list-style: none;
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
    font-size: var(--vap-nav-ui-size);
    font-weight: 600;
    font-family: var(--font-section-title);
    transform: translateY(3px);
}
body.vap-sub-page .nav-links .nav-link {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 0;
    color: #a1a1a1;
    -webkit-text-fill-color: #a1a1a1;
    text-decoration: none;
    box-sizing: border-box;
    border: none;
    border-bottom: var(--vap-nav-underline-width) solid transparent;
    background: transparent;
    font: inherit;
    cursor: pointer;
    transition: color 0.26s var(--ease), -webkit-text-fill-color 0.26s var(--ease), border-bottom-color 0.26s var(--ease);
}
body.vap-sub-page .nav-links .nav-link:hover,
body.vap-sub-page .nav-links .nav-link:focus-visible {
    text-decoration: none;
}
body.vap-sub-page .nav-links .nav-link.nav-link-violet:hover,
body.vap-sub-page .nav-links .nav-link.nav-link-violet:focus-visible {
    color: rgb(198, 152, 245);
    -webkit-text-fill-color: rgb(198, 152, 245);
    border-bottom-color: rgba(172, 86, 232, 0.72);
}
@media (max-width: 900px) {
    body.vap-sub-page .nav-inner {
        flex-wrap: nowrap;
        align-items: center;
        gap: 10px;
        padding: 11px 0;
    }
    body.vap-sub-page .nav-links {
        flex: 0 0 auto;
        width: auto;
        margin-left: 0;
        transform: none;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 4px;
    }
    body.vap-sub-page .nav-links .nav-link {
        padding: 6px 9px;
        white-space: nowrap;
    }
}
@media (max-width: 640px) {
    body.vap-sub-page .nav-inner { gap: 8px; }
    body.vap-sub-page .nav-links { gap: 4px; }
    body.vap-sub-page .nav-links .nav-link-small-hide { display: none; }
    body.vap-sub-page .nav-links .nav-link {
        padding: 5px 8px;
    }
}
@media (max-width: 500px) {
    body.vap-sub-page .nav-links .nav-link {
        padding: 5px 9px;
    }
    body.vap-sub-page .nav-links .nav-link-narrow-hide { display: none; }
}

/* —— Dolny pasek — css/vap-bottom-bar.css —— */

/* —— Modały prawne (jak główna) —— */
.vap-privacy-dialog,
.vap-consent-dialog,
.vap-terms-dialog,
.vap-checkout-dialog {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 4vw;
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s var(--ease), background 0.28s var(--ease), visibility 0s linear 0.28s;
    z-index: 300;
}

.vap-terms-dialog { z-index: 340; }
.vap-consent-dialog { z-index: 320; }
.vap-checkout-dialog { z-index: 330; }

.vap-privacy-dialog.is-open,
.vap-consent-dialog.is-open,
.vap-terms-dialog.is-open,
.vap-checkout-dialog.is-open {
    background: rgba(0, 0, 0, 0.72);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.28s var(--ease), background 0.28s var(--ease), visibility 0s;
}

.vap-privacy-dialog[hidden],
.vap-consent-dialog[hidden],
.vap-terms-dialog[hidden],
.vap-checkout-dialog[hidden] { display: none !important; }

.vap-privacy-panel,
.vap-consent-panel,
.vap-terms-panel,
.vap-checkout-panel {
    position: relative;
    opacity: 0;
    transform: translateY(10px) scale(0.988);
    transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--vap-legal-surface-border);
    border-bottom: 1px solid var(--vap-legal-surface-accent);
    background: var(--vap-legal-surface);
    box-shadow: var(--vap-legal-shadow-modal), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    color: #e8e8e8;
}

.vap-privacy-panel { width: min(640px, 94vw); max-height: min(80vh, 720px); }
.vap-consent-panel { width: min(720px, 94vw); max-height: min(84vh, 720px); }
.vap-terms-panel { width: min(720px, 94vw); max-height: min(84vh, 720px); }
.vap-checkout-panel { width: min(720px, 94vw); max-height: min(88vh, 780px); }

.vap-privacy-panel::before,
.vap-consent-panel::before,
.vap-terms-panel::before,
.vap-checkout-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--vap-legal-surface-highlight);
    pointer-events: none;
}

.vap-privacy-dialog.is-open .vap-privacy-panel,
.vap-consent-dialog.is-open .vap-consent-panel,
.vap-terms-dialog.is-open .vap-terms-panel,
.vap-checkout-dialog.is-open .vap-checkout-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.vap-privacy-close,
.vap-consent-close,
.vap-terms-close,
.vap-checkout-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    font-size: 1.35rem;
    line-height: 1;
    font-family: inherit;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transform: translateX(-10px);
    transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.vap-privacy-close:hover,
.vap-consent-close:hover,
.vap-terms-close:hover,
.vap-terms-close:focus-visible,
.vap-checkout-close:hover,
.vap-checkout-close:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    outline: none;
    transform: translateX(-10px);
}

.vap-privacy-scroll,
.vap-consent-scroll,
.vap-terms-scroll,
.vap-checkout-scroll {
    position: relative;
    z-index: 1;
    overflow-y: auto;
    max-height: min(84vh, 720px);
    padding: 36px 44px 28px;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: var(--vap-legal-scrollbar-thumb) var(--vap-legal-scrollbar-track);
}

/* Scrollbar modali — identyczny z VideoAnalyzerPro.html (delikatny niebieski) */
.vap-checkout-scroll {
    max-height: min(88vh, 780px);
    padding: 36px 44px 30px;
}

.vap-privacy-scroll::-webkit-scrollbar,
.vap-consent-scroll::-webkit-scrollbar,
.vap-terms-scroll::-webkit-scrollbar,
.vap-checkout-scroll::-webkit-scrollbar {
    width: 7px;
}

.vap-privacy-scroll::-webkit-scrollbar-track,
.vap-consent-scroll::-webkit-scrollbar-track,
.vap-terms-scroll::-webkit-scrollbar-track,
.vap-checkout-scroll::-webkit-scrollbar-track {
    background: var(--vap-legal-scrollbar-track);
    border-radius: 999px;
    margin: 20px 0;
}

.vap-privacy-scroll::-webkit-scrollbar-thumb,
.vap-consent-scroll::-webkit-scrollbar-thumb,
.vap-terms-scroll::-webkit-scrollbar-thumb,
.vap-checkout-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    border: 1px solid rgba(130, 150, 220, 0.28);
    background: radial-gradient(
        circle at 40% 30%,
        rgba(200, 210, 240, 0.5) 0%,
        rgba(120, 140, 210, 0.32) 55%,
        rgba(80, 95, 150, 0.22) 100%
    );
    box-shadow: 0 0 6px rgba(80, 100, 180, 0.18);
}

.vap-privacy-scroll::-webkit-scrollbar-thumb:hover,
.vap-consent-scroll::-webkit-scrollbar-thumb:hover,
.vap-terms-scroll::-webkit-scrollbar-thumb:hover,
.vap-checkout-scroll::-webkit-scrollbar-thumb:hover {
    border-color: rgba(150, 170, 235, 0.42);
    background: radial-gradient(
        circle at 40% 30%,
        rgba(220, 228, 248, 0.62) 0%,
        rgba(140, 162, 230, 0.45) 55%,
        rgba(100, 118, 180, 0.3) 100%
    );
}

.vap-privacy-scroll h2,
.vap-consent-scroll h2,
.vap-terms-scroll h2,
.vap-checkout-scroll h2 {
    margin: 0 0 12px;
    padding-right: 32px;
    font-family: var(--font-section-title);
    font-size: calc(var(--vap-nav-ui-size) + 0.55rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text);
}

.vap-checkout-lead {
    margin: 0 0 18px;
    font-family: var(--font-hero-lead);
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-soft);
}

.vap-checkout-legal {
    margin: 0 0 22px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(102, 126, 234, 0.2);
    font-family: var(--font-hero-lead);
    font-size: 0.84rem;
    line-height: 1.6;
    color: #b6b6c8;
}

.vap-checkout-legal h3 {
    margin: 14px 0 8px;
    font-family: var(--font-section-title);
    font-size: 0.92rem;
    font-weight: 600;
    color: #d4d4dc;
}

.vap-checkout-legal h3:first-child { margin-top: 0; }
.vap-checkout-legal p { margin: 0 0 10px; }
.vap-checkout-legal p:last-child { margin-bottom: 0; }

.vap-checkout-options {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.vap-checkout-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(102, 126, 234, 0.18);
    cursor: pointer;
    transition: border-color 0.22s var(--ease), background 0.22s var(--ease);
}

.vap-checkout-option:hover {
    border-color: rgba(102, 126, 234, 0.32);
    background: rgba(102, 126, 234, 0.06);
}

.vap-checkout-option:has(input:checked) {
    border-color: rgba(140, 162, 255, 0.55);
    background: rgba(102, 126, 234, 0.1);
}

.vap-checkout-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.vap-checkout-check-ui {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border: 2px solid rgba(140, 162, 255, 0.35);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.25);
    position: relative;
    transition: border-color 0.22s var(--ease), background 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.vap-checkout-option input:focus-visible + .vap-checkout-check-ui {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.35);
}

.vap-checkout-option input:checked + .vap-checkout-check-ui {
    background: rgba(102, 126, 234, 0.38);
    border-color: rgba(158, 178, 255, 0.88);
}

.vap-checkout-option input:checked + .vap-checkout-check-ui::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid rgba(228, 234, 255, 0.98);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.vap-checkout-check-text {
    flex: 1;
    min-width: 0;
    font-family: var(--font-hero-lead);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.55;
    color: var(--text-soft);
    transition: color 0.22s var(--ease);
}

.vap-checkout-option:has(input:checked) .vap-checkout-check-text {
    color: rgba(204, 216, 255, 0.96);
}

/* Linki Regulamin / Terms — jak na stronie głównej (checkout, FAQ, stopka) */
.vap-inline-terms-link {
    display: inline;
    margin: 0;
    padding: 0;
    font: inherit;
    font-weight: 600;
    color: rgb(158, 178, 255);
    -webkit-text-fill-color: rgb(158, 178, 255);
    background: none;
    border: none;
    border-bottom: 1px solid rgba(102, 126, 234, 0.45);
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.vap-checkout-check-text .vap-inline-terms-link,
.vap-checkout-legal .vap-inline-terms-link,
.vap-psy-foot .vap-inline-terms-link {
    color: rgb(158, 178, 255);
    -webkit-text-fill-color: rgb(158, 178, 255);
}

.vap-inline-terms-link:hover,
.vap-inline-terms-link:focus-visible {
    color: rgba(204, 216, 255, 0.98);
    -webkit-text-fill-color: rgba(204, 216, 255, 0.98);
    border-bottom-color: rgba(158, 178, 255, 0.75);
    background: none;
    outline: none;
}

.vap-checkout-check-text .vap-inline-terms-link:hover,
.vap-checkout-check-text .vap-inline-terms-link:focus-visible,
.vap-checkout-legal .vap-inline-terms-link:hover,
.vap-checkout-legal .vap-inline-terms-link:focus-visible {
    color: rgba(204, 216, 255, 0.98);
    -webkit-text-fill-color: rgba(204, 216, 255, 0.98);
    border-bottom-color: rgba(158, 178, 255, 0.75);
}

.vap-checkout-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.vap-checkout-proceed {
    padding: 12px 18px;
    font-family: var(--font-section-title);
    font-size: 0.88rem;
    font-weight: 600;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(140, 162, 255, 0.52);
    border-radius: 0;
    cursor: pointer;
    color: #c4c6d4;
    -webkit-text-fill-color: #c4c6d4;
    transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.vap-checkout-proceed:not(:disabled) {
    color: rgb(158, 178, 255);
    -webkit-text-fill-color: rgb(158, 178, 255);
    border-bottom-color: rgba(158, 178, 255, 0.72);
}

.vap-checkout-proceed:hover:not(:disabled),
.vap-checkout-proceed:focus-visible:not(:disabled) {
    color: rgba(204, 216, 255, 0.98);
    -webkit-text-fill-color: rgba(204, 216, 255, 0.98);
    border-bottom-color: rgba(158, 178, 255, 0.65);
    outline: none;
}

.vap-checkout-proceed:disabled {
    cursor: not-allowed;
    opacity: 1;
}

.vap-privacy-body,
.vap-terms-body {
    font-family: var(--font-hero-lead);
    font-size: 0.88rem;
    line-height: 1.65;
    color: #b6b6c8;
}

.vap-privacy-body p,
.vap-terms-body p { margin: 0 0 12px; }

.vap-terms-body h3 {
    margin: 20px 0 10px;
    font-family: var(--font-section-title);
    font-size: 0.95rem;
    font-weight: 600;
    color: #d4d4dc;
    -webkit-text-fill-color: #d4d4dc;
}

.vap-terms-body ol {
    margin: 0 0 12px;
    padding-left: 1.25rem;
}

.vap-terms-body li { margin-bottom: 8px; }

.vap-terms-body strong,
.vap-privacy-body strong {
    color: #d4d4dc;
    font-weight: 600;
}

.vap-privacy-scroll h2 .vap-brand-base,
.vap-privacy-body .vap-brand-base,
.vap-terms-scroll h2 .vap-brand-base,
.vap-terms-body .vap-brand-base {
    display: inline !important;
    color: #d4d4dc !important;
    -webkit-text-fill-color: #d4d4dc !important;
    font-weight: 700 !important;
    font-family: var(--font-section-title) !important;
    letter-spacing: 0.01em !important;
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
}

.vap-privacy-scroll h2 .vap-brand-pro,
.vap-privacy-body .vap-brand-pro,
.vap-terms-scroll h2 .vap-brand-pro,
.vap-terms-body .vap-brand-pro {
    display: inline !important;
    margin-left: 0.12em !important;
    background: linear-gradient(120deg, #a8b8ff 0%, #667eea 55%, #8b9cff 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 700 !important;
    font-family: var(--font-section-title) !important;
    letter-spacing: 0.01em !important;
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
}

.vap-privacy-body .vap-terms-creator,
.vap-terms-body .vap-terms-creator,
.vap-checkout-legal .vap-terms-creator {
    color: rgb(140, 158, 220) !important;
    -webkit-text-fill-color: rgb(140, 158, 220) !important;
    font-weight: 500 !important;
    font-family: var(--font-hero-lead) !important;
    font-size: inherit !important;
    letter-spacing: 0.02em !important;
}

.vap-privacy-body .vap-terms-contact,
.vap-terms-body .vap-terms-contact,
.vap-checkout-legal .vap-terms-contact {
    color: rgb(140, 158, 220) !important;
    -webkit-text-fill-color: rgb(140, 158, 220) !important;
    font-weight: 500 !important;
    font-family: var(--font-hero-lead) !important;
    letter-spacing: 0.02em !important;
}

.vap-consent-lead {
    margin: 0 0 22px;
    max-width: 620px;
    font-family: var(--font-section-title);
    font-size: var(--vap-nav-ui-size);
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.01em;
    color: var(--text-soft);
    -webkit-text-fill-color: var(--text-soft);
}

.vap-consent-cats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 0;
}

.vap-consent-cat {
    text-align: left;
    min-width: 0;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--vap-inner-card-bg);
    border: 1px solid var(--vap-inner-card-border);
    box-shadow: var(--vap-inner-card-shadow);
    transition:
        transform 0.28s var(--ease), background 0.28s var(--ease),
        border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.vap-consent-cat:hover {
    transform: translateY(-3px);
    background: var(--vap-inner-card-bg-hover);
    border-color: var(--vap-inner-card-border-hover);
    box-shadow: var(--vap-inner-card-shadow-hover);
}

.vap-consent-cat:hover .vap-consent-cat-title {
    color: var(--accent-light);
}

.vap-consent-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: nowrap;
}

.vap-consent-cat-title {
    flex: 1 1 auto;
    min-width: 0;
    font-family: var(--font-section-title);
    font-size: calc(var(--vap-nav-ui-size) + 0.14rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text);
    -webkit-text-fill-color: var(--text);
    transition: color 0.28s var(--ease);
}

.vap-consent-badge {
    flex-shrink: 0;
    margin-left: auto;
    padding: 4px 0 4px 10px;
    border: none;
    border-left: 2px solid rgba(102, 126, 234, 0.45);
    border-radius: 0;
    background: transparent;
    font-family: var(--font-section-title);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #9ca3af;
    white-space: nowrap;
}

.vap-consent-cat-desc {
    font-family: var(--font-section-title);
    font-size: var(--vap-nav-ui-size);
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: 0.01em;
    color: var(--text-soft);
    -webkit-text-fill-color: var(--text-soft);
}

.vap-consent-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
    margin-left: auto;
}

.vap-consent-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.vap-consent-toggle-ui {
    width: 34px;
    height: 20px;
    border-radius: 999px;
    background: rgba(244, 246, 255, 0.10);
    border: 1px solid rgba(140, 162, 255, 0.16);
    position: relative;
    transition: background 0.22s var(--ease), border-color 0.22s var(--ease);
}

.vap-consent-toggle-ui::after {
    content: '';
    position: absolute;
    top: 2.5px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: rgba(228, 232, 255, 0.96);
    transform: translateY(-0.4px);
    transition: transform 0.22s var(--ease), background 0.22s var(--ease);
}

#vap-consent-analytics:checked + .vap-consent-toggle-ui {
    background: rgba(102, 126, 234, 0.34);
    border-color: rgba(140, 162, 255, 0.40);
}

#vap-consent-analytics:checked + .vap-consent-toggle-ui::after {
    transform: translate(14px, -0.4px);
    background: rgba(248, 250, 255, 0.98);
}

.vap-consent-toggle-text { display: none; }

.vap-consent-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 24px;
    transform: translateX(-0.35px);
}

.ai-panel-show-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 182px;
    min-width: 182px;
    max-width: 182px;
    margin: 0;
    padding: 8px 6px;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
    font-size: calc(0.88rem * 0.93);
    font-weight: 600;
    font-family: inherit;
    color: #a1a1a1;
    background: transparent;
    border: none;
    border-left: 2px solid rgba(102, 126, 234, 0.4);
    border-right: 2px solid rgba(102, 126, 234, 0.4);
    border-radius: 25px;
    cursor: pointer;
    overflow: hidden;
    transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.ai-panel-show-btn:hover,
.ai-panel-show-btn:focus-visible {
    color: #d4d4d4;
    background: rgba(255, 255, 255, 0.03);
    border-left-color: rgba(102, 126, 234, 0.55);
    border-right-color: rgba(102, 126, 234, 0.55);
    transform: translateX(0.3px);
}

@media (max-width: 720px) {
    .vap-consent-cat-head {
        align-items: center;
        flex-wrap: nowrap;
        gap: 12px;
    }
    .vap-consent-cat-title {
        flex: 1 1 auto;
        min-width: 0;
    }
    .vap-consent-badge {
        padding-left: 10px;
        border-left: 2px solid rgba(102, 126, 234, 0.45);
        white-space: nowrap;
    }
}

@media (max-width: 700px) {
    .vap-consent-cats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .vap-consent-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vap-privacy-panel,
    .vap-consent-panel,
    .vap-terms-panel { transition: none; opacity: 1; transform: none; }
}

/* —— Baner cookies — fade jak sticky CTA (bez zsuwania w dół) —— */
.vap-cookie-banner {
    position: fixed;
    right: 18px;
    bottom: 58px;
    z-index: 205;
    width: clamp(320px, 32vw, 365px);
    padding: 14px 18px;
    background: var(--vap-legal-surface);
    border: 1px solid var(--vap-legal-surface-border);
    border-bottom: 1px solid var(--vap-legal-surface-accent);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    box-shadow: var(--vap-legal-shadow-banner);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-7px) translateZ(0);
    animation: none !important;
    transition:
        opacity 0.28s var(--ease),
        visibility 0s linear 0.28s;
}
.vap-cookie-banner[hidden] { display: none !important; }
@keyframes vap-cookie-banner-float {
    0%, 100% { transform: translateY(-7px) translateZ(0); }
    50% { transform: translateY(-10px) translateZ(0); }
}
@keyframes vap-cookie-banner-float-mobile {
    0%, 100% { transform: translateY(-7px) translateZ(0); }
    50% { transform: translateY(-9px) translateZ(0); }
}
@keyframes vap-cookie-banner-accent {
    0%, 100% { border-bottom-color: rgba(102, 126, 234, 0.28); }
    50% { border-bottom-color: rgba(118, 140, 245, 0.48); }
}
/* Widoczny — gdy sticky CTA schowany (bez Accept/Reject) */
body.vap-sub-page.has-cookie-banner:not(.has-sticky-cta) .vap-cookie-banner {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-7px) translateZ(0);
    transition:
        opacity 0.28s var(--ease),
        visibility 0s;
}
body.vap-sub-page.vap-cookie-banner-forced.has-cookie-banner .vap-cookie-banner {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-7px) translateZ(0);
    z-index: 210;
    transition:
        opacity 0.28s var(--ease),
        visibility 0s;
}
@media (prefers-reduced-motion: no-preference) {
    body.vap-sub-page.has-cookie-banner:not(.has-sticky-cta) .vap-cookie-banner.is-settled,
    body.vap-sub-page.vap-cookie-banner-forced.has-cookie-banner .vap-cookie-banner.is-settled {
        animation:
            vap-cookie-banner-float 7s ease-in-out infinite,
            vap-cookie-banner-accent 7s ease-in-out infinite;
    }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 800px) {
    body.vap-sub-page.has-cookie-banner:not(.has-sticky-cta) .vap-cookie-banner.is-settled,
    body.vap-sub-page.vap-cookie-banner-forced.has-cookie-banner .vap-cookie-banner.is-settled {
        animation:
            vap-cookie-banner-float-mobile 7s ease-in-out infinite,
            vap-cookie-banner-accent 7s ease-in-out infinite;
    }
}
.vap-cookie-text {
    flex: 1 1 280px;
    font-size: 0.88rem;
    color: var(--text-soft);
    font-family: var(--font-hero-lead);
    line-height: 1.55;
    margin: 0;
}
.vap-cookie-text .vap-cookie-accent {
    background: linear-gradient(120deg, #a8b8ff 0%, #667eea 55%, #8b9cff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}
.vap-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
#vap-cookie-preferences-open { order: 1; }
#vap-cookie-accept-all { order: 2; }
.vap-cookie-btn {
    border-radius: 13px;
    padding: 9px 16px;
    font-size: calc(0.82rem - 0.4px);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid var(--border-subtle);
    color: var(--text-soft);
    background: transparent;
    border-bottom-color: rgba(102, 126, 234, 0.45);
    transition:
        border-color 0.22s var(--ease),
        border-bottom-color 0.22s var(--ease),
        color 0.22s var(--ease);
}
.vap-cookie-banner .vap-cookie-btn:hover,
.vap-cookie-banner .vap-cookie-btn:focus-visible {
    border-bottom-color: rgba(168, 192, 255, 0.82);
    color: #b8bcc8;
    outline: none;
}
@media (max-width: 700px) {
    .vap-cookie-text {
        font-size: calc(0.88rem * 0.94);
    }
    .vap-cookie-banner .vap-cookie-btn {
        font-size: calc((0.82rem - 0.4px) * 0.84);
        padding: 8px 12px;
    }
    .vap-cookie-actions {
        gap: 6px;
    }
}

/* —— Sticky CTA — w css/vap-sticky-cta.css (wspólny ze stroną główną) —— */
body.vap-sub-page.has-sticky-cta.has-cookie-banner:not(.vap-cookie-banner-forced) .vap-cookie-banner {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-7px) translateZ(0);
    animation: none !important;
    transition:
        opacity 0.28s var(--ease),
        visibility 0s linear 0.28s;
}
body.vap-sub-page.vap-cookie-banner-forced.has-cookie-banner.has-sticky-cta .vap-cookie-banner {
    bottom: calc(58px + 72px);
}
@media (prefers-reduced-motion: reduce) {
    body.vap-sub-page.has-cookie-banner:not(.has-sticky-cta) .vap-cookie-banner,
    body.vap-sub-page.vap-cookie-banner-forced.has-cookie-banner .vap-cookie-banner {
        animation: none !important;
        transform: none;
        transition: none;
    }
}
