/* ── Self-hosted fonts (eliminates Google Fonts external requests) ── */
/* Plus Jakarta Sans — latin-ext (Polish characters) */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('/fonts/pjs-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Plus Jakarta Sans — latin */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('/fonts/pjs-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* DM Sans — latin-ext */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('/fonts/dm-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* DM Sans — latin */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('/fonts/dm-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   TAILWIND PREFLIGHT RESET (wymagany dla parity z React)
   ============================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
}

ul, ol {
    list-style: none;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img, svg, video {
    display: block;
    max-width: 100%;
}

button {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================================
   CSS VARIABLES (z index.css — HSL tokens)
   ============================================================ */

:root {
    --background: 40 20% 99%;
    --foreground: 215 25% 15%;

    --card: 0 0% 100%;
    --card-foreground: 215 25% 15%;

    --popover: 0 0% 100%;
    --popover-foreground: 215 25% 15%;

    --primary: 214 72% 28%;
    --primary-foreground: 0 0% 100%;

    --secondary: 142 52% 42%;
    --secondary-foreground: 0 0% 100%;

    --muted: 38 25% 96%;
    --muted-foreground: 215 16% 40%;

    --accent: 45 93% 55%;
    --accent-foreground: 215 25% 15%;

    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;

    --border: 214 15% 91%;
    --input: 214 15% 88%;
    --ring: 214 72% 28%;

    --radius: 1rem;

    --warm-bg: 38 30% 97%;
    --surface: 0 0% 100%;
}

/* ============================================================
   BASE STYLES
   ============================================================ */

* {
    border-color: hsl(var(--border));
}

html {
    scroll-behavior: smooth;
    scrollbar-color: hsl(45, 93%, 55%) hsla(214, 20%, 50%, 0.05);
    scrollbar-width: thin;
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'DM Sans', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    min-height: 100vh;
    min-height: 100dvh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    letter-spacing: -0.02em;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: hsla(214, 20%, 50%, 0.05); }
::-webkit-scrollbar-thumb { background: hsl(45, 93%, 55%); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: hsl(45, 93%, 48%); }

/* ============================================================
   CONTAINER (Tailwind container: center, padding 1.25rem, max 1200px)
   ============================================================ */

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* ============================================================
   FONT HEADING / BODY
   ============================================================ */

.font-heading {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
@media (min-width: 768px) {
    .section-padding {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

.min-h-screen { min-height: 100vh; }

/* ============================================================
   CUSTOM SHADOWS (z index.css)
   ============================================================ */

.shadow-soft {
    box-shadow: 0 4px 40px -12px hsla(214, 72%, 28%, 0.08),
                0 2px 12px -4px hsla(214, 72%, 28%, 0.04);
}

.shadow-soft-lg {
    box-shadow: 0 8px 60px -16px hsla(214, 72%, 28%, 0.12),
                0 4px 20px -8px hsla(214, 72%, 28%, 0.06);
}

/* ============================================================
   GLASS EFFECTS (z index.css)
   ============================================================ */

.glass {
    background: hsla(0, 0%, 100%, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-dark {
    background: hsla(215, 25%, 15%, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ============================================================
   BUTTON SYSTEM (shadcn/ui Button tłumaczenie)
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    font-family: inherit;
}
/* size default */
.btn { height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.875rem; }
/* size sm */
.btn-sm { height: 2.25rem; padding: 0 0.75rem; font-size: 0.875rem; }
/* size lg */
.btn-lg { height: 2.75rem; padding: 0 2rem; font-size: 1rem; }

/* variant: default (accent) */
.btn-accent {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}
.btn-accent:hover { background-color: hsl(45 93% 50%); }

/* variant: outline */
.btn-outline {
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--card));
    color: hsl(var(--foreground));
}
.btn-outline:hover { background-color: hsl(var(--muted)); }

/* variant: outlineHero (biały kontur na ciemnym tle) */
.btn-outline-hero {
    border: 1px solid hsla(0,0%,100%,0.3);
    background: transparent;
    color: hsl(var(--primary-foreground));
}
.btn-outline-hero:hover { background: hsla(0,0%,100%,0.1); }

/* variant: accent-foreground na tle accent */
.btn-accent-fg {
    background-color: hsl(var(--accent-foreground));
    color: hsl(var(--accent));
}
.btn-accent-fg:hover { background-color: hsl(215 25% 20%); }

/* Common overrides used in the project */
.rounded-full { border-radius: 9999px; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-medium { font-weight: 500; }

/* ============================================================
   BUTTON RIPPLE ANIMATION (z index.css)
   ============================================================ */

.btn-ripple {
    position: relative;
}
.btn-ripple::before,
.btn-ripple::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid hsl(var(--accent));
    animation: ping-ring 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    pointer-events: none;
}
.btn-ripple::after {
    animation-delay: 1s;
}

@keyframes ping-ring {
    0% { transform: scale(1); opacity: 0.35; }
    100% { transform: scale(1.25); opacity: 0; }
}

/* ============================================================
   TEXT SHIMMER (z index.css)
   ============================================================ */

.text-shimmer {
    background: linear-gradient(
        110deg,
        hsl(var(--primary)) 0%,
        hsl(var(--primary)) 30%,
        hsl(214 72% 65%) 50%,
        hsl(var(--primary)) 70%,
        hsl(var(--primary)) 100%
    );
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shimmer 3.5s ease-in-out infinite;
}

@keyframes text-shimmer {
    0% { background-position: 100% 50%; }
    50% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* ============================================================
   MARQUEE ANIMATION (z index.css)
   ============================================================ */

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* ============================================================
   SLIDE UP ANIMATION (z index.css)
   ============================================================ */

@keyframes slide-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-slide-up {
    animation: slide-up 0.6s ease-out forwards;
}

/* ============================================================
   FLOAT ANIMATION (z index.css)
   ============================================================ */

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* ============================================================
   SCROLL ANIMATIONS (IntersectionObserver — framer-motion replacement)
   ============================================================ */

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ============================================================
   ACCORDION (FAQ — replacement for Radix Accordion)
   ============================================================ */

.accordion-item {
    border: none;
    border-radius: 1rem;
    background: hsl(var(--card));
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    transition: box-shadow 0.3s;
}
.accordion-item.open {
    box-shadow: 0 8px 60px -16px hsla(214, 72%, 28%, 0.12),
                0 4px 20px -8px hsla(214, 72%, 28%, 0.06);
}

.accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 1.25rem 0;
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
    font-family: inherit;
    line-height: 1.5;
}
@media (min-width: 768px) {
    .accordion-trigger { font-size: 1rem; }
}

.accordion-trigger svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease-out;
    color: hsl(var(--muted-foreground));
}
.accordion-item.open .accordion-trigger svg {
    transform: rotate(45deg);
}

.accordion-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.2s ease-out;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    line-height: 1.625;
}
.accordion-item.open .accordion-content {
    max-height: 500px;
    padding-bottom: 1.25rem;
}

/* ============================================================
   MOBILE MENU (Sheet replacement — slide-in drawer)
   ============================================================ */

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: hsl(var(--background));
    z-index: 1101;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
@media (min-width: 640px) {
    .mobile-drawer { width: 340px; }
}
.mobile-drawer.open {
    transform: translateX(0);
}

/* ============================================================
   COLLAPSIBLE (mobile services submenu)
   ============================================================ */

.collapsible-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}
.collapsible-content.open {
    max-height: 500px;
}

/* ============================================================
   FORM ELEMENTS (shadcn/ui Input, Textarea, Label replacement)
   ============================================================ */

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

.form-input {
    width: 100%;
    height: 2.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: calc(var(--radius) - 2px);
    border: 1px solid hsl(var(--input));
    background: transparent;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus {
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsla(var(--ring), 0.2);
}
.form-input::placeholder {
    color: hsl(var(--muted-foreground));
}

.form-textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: calc(var(--radius) - 2px);
    border: 1px solid hsl(var(--input));
    background: transparent;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    outline: none;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-textarea:focus {
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsla(var(--ring), 0.2);
}
.form-textarea::placeholder {
    color: hsl(var(--muted-foreground));
}

/* ============================================================
   TOAST NOTIFICATION (sonner replacement, minimalna)
   ============================================================ */

.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    z-index: 200;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ============================================================
   FLOATING CTA (prawy bok ekranu)
   ============================================================ */

/* Mobile: fixed bottom nav — double wrapper (Elementor e-con pattern) */
.floating-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

/* Inner wrapper — default position, provides padding (Elementor e-con-inner) */
.floating-cta-inner {
    width: 100%;
    padding: 0 0 6px 0;
}

/* Mobile: pill bar inside wrapper */
.floating-cta-pill {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    min-height: 70px;
    margin: 0 0.5rem;
    background: hsla(0,0%,100%,0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid hsl(var(--border)/0.2);
    border-radius: 1.5rem;
    box-shadow: 0 -2px 20px hsla(0,0%,0%,0.06);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}
.floating-cta-pill > a {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Mobile: vertical icon + label */
.floating-cta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    transition: transform 0.2s ease;
    border-radius: 0.75rem;
    overflow: hidden;
    padding: 0.35rem 0.25rem;
}
.floating-cta-item:active {
    transform: scale(0.93);
}

.floating-cta-icon {
    width: 38px;
    height: 38px;
    border-radius: 0.75rem;
    background: hsl(var(--accent)/0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.floating-cta-label {
    white-space: nowrap;
    font-size: 0.6rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    text-align: center;
    letter-spacing: 0.01em;
}

/* Desktop: sidebar on right */
@media (min-width: 1024px) {
    .floating-cta {
        bottom: auto;
        left: auto;
        width: auto;
        height: auto;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: auto;
    }
    .floating-cta-pill {
        flex-direction: column;
        gap: 0.5rem;
        height: auto;
        margin: 0;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        border-radius: 0;
        box-shadow: none;
        justify-content: flex-start;
    }
    .floating-cta-pill > a {
        flex: unset;
        justify-content: flex-end;
    }
    .floating-cta-item {
        flex-direction: row;
        gap: 0;
        border-radius: 0.75rem 0 0 0.75rem;
        box-shadow: 0 2px 20px -4px rgba(0,0,0,0.12);
        transition: transform 0.5s ease-in-out;
        padding: 0;
    }
    .floating-cta-item.collapsed {
        transform: translateX(calc(100% - 44px));
    }
    .floating-cta-item:hover {
        transform: translateX(0) !important;
    }
    .floating-cta-item:active {
        transform: none;
    }
    .floating-cta-icon {
        width: 44px;
        height: 44px;
        border-radius: 0.75rem 0 0 0.75rem;
        background: hsla(0,0%,100%,0.6);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid hsla(0,0%,100%,0.2);
    }
    .floating-cta-label {
        padding: 0.625rem 1rem;
        min-width: 160px;
        background: hsla(0,0%,100%,0.7);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid hsla(0,0%,100%,0.2);
        font-size: 0.875rem;
        font-weight: 500;
    }
}

.floating-cta-pulse {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 12px;
    height: 12px;
    background: hsl(var(--destructive));
    border-radius: 9999px;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================================
   DESKTOP NAV DROPDOWN (hover dropdown)
   ============================================================ */

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}
.nav-dropdown-parent:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-menu {
    background: hsl(var(--card));
    border-radius: 1rem;
    border: 1px solid hsl(var(--border) / 0.5);
    padding: 0.5rem;
    min-width: 220px;
}

/* ============================================================
   CARD / SURFACE UTILITIES
   ============================================================ */

.bg-card { background: hsl(var(--card)); }
.bg-warm-bg { background: hsl(var(--warm-bg)); }
.bg-background { background: hsl(var(--background)); }
.bg-muted { background: hsl(var(--muted)); }
.bg-accent { background: hsl(var(--accent)); }
.bg-primary { background: hsl(var(--primary)); }
.bg-secondary { background: hsl(var(--secondary)); }

.text-foreground { color: hsl(var(--foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.text-secondary { color: hsl(var(--secondary)); }
.text-accent { color: hsl(var(--accent)); }
.text-accent-foreground { color: hsl(var(--accent-foreground)); }

/* ============================================================
   HOVER EFFECTS
   ============================================================ */

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-4px);
}

.card-img-wrap { overflow: hidden; }
.card-img-wrap img {
    transition: transform 0.5s ease;
}
.card-img-wrap:hover img {
    transform: scale(1.05);
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s;
    background: hsl(var(--background) / 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.site-header.scrolled {
    background: hsla(0, 0%, 100%, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: 0 4px 40px -12px hsla(214, 72%, 28%, 0.08),
                0 2px 12px -4px hsla(214, 72%, 28%, 0.04);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer-dark {
    background: hsl(214, 72%, 14%);
    color: hsla(0,0%,100%,0.8);
}

.footer-dark a {
    transition: color 0.15s;
}
.footer-dark a:hover {
    color: white;
}

/* Region tabs */
.region-tab {
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
    border: 1px solid hsla(0,0%,100%,0.2);
    color: hsla(0,0%,100%,0.6);
    cursor: pointer;
}
.region-tab:hover {
    color: white;
    border-color: hsla(0,0%,100%,0.4);
}
.region-tab.active {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    border-color: hsl(var(--accent));
}

/* City link pill */
.city-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid hsla(0,0%,100%,0.2);
    color: hsla(0,0%,100%,0.7);
    transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}
.city-pill:hover {
    color: white;
    border-color: hsla(0,0%,100%,0.4);
    background: hsla(0,0%,100%,0.05);
}

/* ============================================================
   TESTIMONIAL CAROUSEL (horizontal scroll)
   ============================================================ */

.testimonial-scroll {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.testimonial-scroll::-webkit-scrollbar { display: none; }

.testimonial-card {
    flex-shrink: 0;
    width: 340px;
    scroll-snap-align: start;
}
@media (min-width: 768px) {
    .testimonial-card { width: 380px; }
}

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */

.hidden { display: none; }

/* sm: 640px */
@media (min-width: 640px) {
    .sm\:inline-flex { display: inline-flex; }
    .sm\:inline { display: inline; }
    .sm\:flex-row { flex-direction: row; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .sm\:w-auto { width: auto; }
    .sm\:items-end { align-items: flex-end; }
}

/* md: 768px */
@media (min-width: 768px) {
    .md\:flex-row { flex-direction: row; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .md\:flex { display: flex; }
    .md\:w-auto { width: auto; }
    .md\:w-72 { width: 18rem; }
}

/* lg: 1024px */
@media (min-width: 1024px) {
    .lg\:flex { display: flex; }
    .lg\:block { display: block; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .lg\:col-span-1 { grid-column: span 1; }
    .lg\:hidden { display: none; }
}

/* ============================================================
   MISC UTILITIES
   ============================================================ */

.text-balance { text-wrap: balance; }

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.scrollbar-none {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.scrollbar-none::-webkit-scrollbar { display: none; }

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ============================================================
   SERVICE PAGE LAYOUT — shared patterns
   ============================================================ */

/* Timeline vertical line */
.timeline-line {
    width: 1px;
    flex: 1;
    background: hsl(var(--border));
    margin: 0.5rem 0;
}

/* Step number circle */
.step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 10;
}
.step-number-lg {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    font-size: 1.125rem;
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 10;
    transition: transform 0.3s;
}
.step-number-lg:hover {
    transform: scale(1.1);
}

/* Gallery hover overlay */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}
.gallery-item img {
    transition: transform 0.7s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, hsl(214 72% 12% / 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    transform: translateY(0.5rem);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}
.gallery-item:hover .gallery-label {
    transform: translateY(0);
    opacity: 1;
}

/* ============================================================
   CALCULATOR PAGES — stepper & results
   ============================================================ */

.calc-stepper {
    display: flex;
    gap: 0.5rem;
}
.calc-step-dot {
    flex: 1;
    height: 4px;
    border-radius: 9999px;
    background: hsl(var(--border));
    transition: background 0.3s;
}
.calc-step-dot.active {
    background: hsl(var(--accent));
}
.calc-step-dot.done {
    background: hsl(var(--secondary));
}

/* ============================================================
   BLOG POST PAGE
   ============================================================ */

/* Hero */
.blog-post-hero {
    position: relative;
    padding: 6rem 0 3rem;
    background: linear-gradient(135deg, hsl(var(--background)), hsl(var(--muted)));
    overflow: hidden;
}
.blog-post-hero::before {
    content: '';
    position: absolute;
    top: -10rem; right: -10rem;
    width: 30rem; height: 30rem;
    background: hsl(var(--primary)/0.06);
    border-radius: 9999px;
    filter: blur(80px);
}

/* Breadcrumbs */
.blog-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.blog-breadcrumbs a { color: hsl(var(--muted-foreground)); text-decoration: none; }
.blog-breadcrumbs a:hover { color: hsl(var(--primary)); }
.blog-breadcrumbs svg { opacity: 0.4; flex-shrink: 0; }

/* Meta */
.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.blog-post-category-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: hsl(var(--primary));
    color: white;
}
.blog-post-date,
.blog-post-read-time {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
}

/* Title */
.blog-post-title {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 1rem;
    max-width: 42rem;
}
@media (min-width: 768px) { .blog-post-title { font-size: 2.5rem; } }

/* Lead */
.blog-post-lead {
    font-size: 1.125rem;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
    max-width: 38rem;
}

/* Featured image */
.blog-post-featured-img {
    border-radius: 1rem;
    overflow: hidden;
    max-height: 28rem;
}
.blog-post-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Layout */
.blog-post-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
@media (min-width: 1024px) {
    .blog-post-layout {
        grid-template-columns: 1fr 320px;
        gap: 3rem;
    }
}

/* Content */
.blog-post-content {
    font-size: 1rem;
    line-height: 1.8;
    color: hsl(var(--foreground));
}
.blog-post-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: hsl(var(--foreground));
}
.blog-post-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
}
.blog-post-content p {
    margin-bottom: 1.25rem;
}
.blog-post-content ul, .blog-post-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}
.blog-post-content li {
    margin-bottom: 0.5rem;
}
.blog-post-content img {
    max-width: 100%;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}
.blog-post-content blockquote {
    border-left: 4px solid hsl(var(--primary));
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: hsl(var(--muted)/0.5);
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: hsl(var(--muted-foreground));
}

/* Sidebar */
.blog-post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
@media (min-width: 1024px) {
    .blog-post-sidebar { position: sticky; top: 5rem; align-self: start; }
}
.blog-sidebar-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border)/0.4);
    border-radius: 1rem;
    padding: 1.25rem;
}
.blog-sidebar-title {
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid hsl(var(--border)/0.3);
}
.blog-sidebar-cta {
    background: linear-gradient(135deg, hsl(var(--primary)/0.05), hsl(var(--accent)/0.05));
    text-align: center;
}

/* TOC */
.blog-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.blog-toc-list li {
    margin-bottom: 0.375rem;
}
.blog-toc-list a {
    display: block;
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: all 0.2s;
}
.blog-toc-list a:hover {
    background: hsl(var(--primary)/0.08);
    color: hsl(var(--primary));
}

/* Related sidebar */
.blog-sidebar-related {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.blog-sidebar-related-item {
    display: flex;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    padding: 0.25rem 0;
}
.blog-sidebar-related-item img {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.5rem;
    object-fit: cover;
    flex-shrink: 0;
}
.blog-sidebar-related-title {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-sidebar-related-date {
    display: block;
    font-size: 0.6875rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.25rem;
}

/* CTA Box */
.blog-cta-box {
    background: linear-gradient(135deg, hsl(var(--accent)), hsl(35,90%,50%));
    color: hsl(var(--accent-foreground));
    border-radius: 1.5rem;
    padding: 2.5rem;
    text-align: center;
}
.blog-cta-box h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.blog-cta-box p { opacity: 0.8; margin-bottom: 1.5rem; }

/* Related grid */
.blog-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 768px) { .blog-related-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   STREFA WIEDZY (listing)
   ============================================================ */
.sw-hero { padding: 6rem 0 3rem; background: linear-gradient(135deg,hsl(var(--background)),hsl(var(--muted))); }
.sw-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.sw-filter-btn {
    font-size: 0.8125rem; font-weight: 500; padding: 0.5rem 1rem;
    border-radius: 9999px; border: 1px solid hsl(var(--border));
    background: transparent; color: hsl(var(--foreground)); cursor: pointer;
    transition: all 0.2s;
}
.sw-filter-btn:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.sw-filter-btn.active { background: hsl(var(--primary)); color: white; border-color: hsl(var(--primary)); }
.sw-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .sw-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sw-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   BLOG ARTICLE CONTENT STYLES
   ============================================================ */

/* Info box ("Warto wiedzieć") */
.blog-info-box {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: hsl(var(--primary)/0.06);
    border: 1px solid hsl(var(--primary)/0.15);
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
    line-height: 1.6;
}
.blog-info-box-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--primary));
    margin-top: 0.125rem;
}

/* Table */
.blog-table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--border)/0.4);
}
.blog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.blog-table th {
    background: hsl(var(--muted));
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: hsl(var(--muted-foreground));
    border-bottom: 1px solid hsl(var(--border)/0.4);
}
.blog-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid hsl(var(--border)/0.2);
}
.blog-table tbody tr:last-child td { border-bottom: none; }
.blog-table tbody tr:hover { background: hsl(var(--muted)/0.3); }

/* Calc cards row */
.blog-cards-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}
@media (min-width: 640px) { .blog-cards-row { grid-template-columns: repeat(3, 1fr); } }

.blog-calc-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border)/0.4);
    border-radius: 0.75rem;
    padding: 1.25rem;
    text-align: center;
}
.blog-calc-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}
.blog-calc-card-power {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary));
}
.blog-calc-card-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(var(--muted-foreground));
}
.blog-calc-card-price {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.blog-calc-card-desc {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
}

/* Highlight box (yellow) */
.blog-highlight-box {
    background: hsl(var(--accent)/0.1);
    border: 1px solid hsl(var(--accent)/0.25);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}
.blog-highlight-box strong { color: hsl(var(--accent-foreground)); }

/* Summary box */
.blog-summary-box {
    background: hsl(var(--secondary)/0.08);
    border: 1px solid hsl(var(--secondary)/0.2);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

/* CTA inline */
.blog-cta-inline {
    background: linear-gradient(135deg, hsl(var(--primary)/0.08), hsl(var(--accent)/0.08));
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}
.blog-cta-inline h3 { margin-bottom: 0.75rem; }
.blog-cta-inline p { color: hsl(var(--muted-foreground)); margin-bottom: 1rem; }

/* Pros/Cons list */
.blog-pros-cons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}
@media (min-width: 640px) { .blog-pros-cons { grid-template-columns: 1fr 1fr; } }
.blog-pros, .blog-cons {
    border-radius: 0.75rem;
    padding: 1.25rem;
}
.blog-pros { background: hsl(var(--secondary)/0.08); border: 1px solid hsl(var(--secondary)/0.2); }
.blog-cons { background: hsl(var(--destructive)/0.08); border: 1px solid hsl(var(--destructive)/0.2); }
.blog-pros h4, .blog-cons h4 { margin-bottom: 0.75rem; font-size: 1rem; }
.blog-pros li, .blog-cons li { font-size: 0.875rem; margin-bottom: 0.375rem; }

/* Blog checklist */
.blog-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}
.blog-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid hsl(var(--border)/0.15);
    font-size: 0.9375rem;
    line-height: 1.6;
}
.blog-list li:last-child { border-bottom: none; }
.blog-list li svg {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* Programs grid */
.blog-programs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}
@media (min-width: 640px) { .blog-programs-grid { grid-template-columns: repeat(2, 1fr); } }

.blog-program-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border)/0.4);
    border-radius: 0.75rem;
    padding: 1.25rem;
}
.blog-program-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}
.blog-program-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.blog-program-card p {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
    margin-bottom: 0;
}
.blog-program-card ul {
    margin: 0.5rem 0 0 1rem;
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
}
.blog-program-card li {
    margin-bottom: 0.25rem;
}
