/*
Theme Name: Centrum Motoryzacyjne Wiśniewski
Theme URI: https://centrum-wisniewski.pl
Author: Centrum Motoryzacyjne Mariusz Wiśniewski
Description: Motyw firmowy dla Centrum Motoryzacyjne Mariusz Wiśniewski — skup pojazdów, części używane, recykling, likwidacja szkód. Integracja z WooCommerce i WPML.
Version: 1.8.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: centrum
Tags: automotive, business, woocommerce, multilingual
*/

/* =========================================================================
   DESIGN TOKENS  (1:1 z projektem Lovable: src/index.css)
   Wszystkie kolory w HSL — zgodnie z oryginałem.
   ========================================================================= */
:root {
    /* Kolory — bazowe */
    --background: 0 0% 100%;
    --foreground: 0 0% 7%;

    /* Kolory — primary (czarny kontrast) */
    --primary: 0 0% 9%;
    --primary-foreground: 0 0% 100%;

    /* Kolory — secondary */
    --secondary: 0 0% 96%;
    --secondary-foreground: 0 0% 9%;

    /* Kolory — muted */
    --muted: 0 0% 96%;
    --muted-foreground: 0 0% 40%;

    /* Kolory — accent (stonowana zieleń #2E7D32) */
    --accent: 123 44% 34%;
    --accent-foreground: 0 0% 100%;
    --accent-soft: 123 35% 94%;

    /* Kolory — destructive */
    --destructive: 0 72% 45%;
    --destructive-foreground: 0 0% 100%;

    /* Border + input */
    --border: 0 0% 90%;
    --input: 0 0% 90%;
    --ring: 123 44% 34%;

    /* Design tokens dodatkowe */
    --surface: 0 0% 100%;
    --surface-muted: 0 0% 97.5%;
    --ink: 0 0% 9%;
    --ink-soft: 0 0% 25%;

    --radius: 0.5rem;

    /* Cienie */
    --shadow-soft: 0 1px 2px 0 hsl(0 0% 0% / 0.04), 0 4px 16px -4px hsl(0 0% 0% / 0.08);
    --shadow-card: 0 1px 3px 0 hsl(0 0% 0% / 0.05), 0 8px 24px -8px hsl(0 0% 0% / 0.1);
    --shadow-lg: 0 10px 40px -10px hsl(0 0% 0% / 0.18);

    /* Gradienty */
    --gradient-overlay: linear-gradient(180deg, hsl(0 0% 0% / 0) 0%, hsl(0 0% 0% / 0.55) 70%, hsl(0 0% 0% / 0.75) 100%);
    --gradient-hero: linear-gradient(100deg, hsl(0 0% 0% / 0.7) 0%, hsl(0 0% 0% / 0.35) 55%, hsl(0 0% 0% / 0.1) 100%);

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================================
   RESET + BASE
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.15;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* Klasa skip-link dla dostępności */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* =========================================================================
   LAYOUT — kontenery
   ========================================================================= */
.container-wide {
    max-width: 80rem; /* 1280px = max-w-7xl */
    margin-inline: auto;
    padding-inline: 1rem;
}
@media (min-width: 640px) { .container-wide { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container-wide { padding-inline: 2rem; } }

.section { padding-block: 5rem; }
@media (min-width: 768px) { .section { padding-block: 7rem; } }

.section--muted { background: hsl(var(--surface-muted)); }
.section--dark { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }

/* =========================================================================
   TYPOGRAFIA — klasy używane w motywie
   ========================================================================= */
.eyebrow {
    color: hsl(var(--accent));
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    margin-top: 0.75rem;
    font-size: 1.875rem;
    font-weight: 700;
    color: hsl(var(--ink));
}
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }

.section-subtitle {
    margin-top: 1rem;
    color: hsl(var(--ink-soft));
}

/* =========================================================================
   PRZYCISKI — styl z shadcn/ui, przepisany 1:1
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    transition: var(--transition-smooth);
    white-space: nowrap;
    border: 1px solid transparent;
}
.btn:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
.btn--lg { height: 2.75rem; padding-inline: 2rem; font-size: 1rem; border-radius: var(--radius); }

.btn--primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn--primary:hover { background: hsl(var(--primary) / 0.9); }

.btn--accent { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.btn--accent:hover { background: hsl(var(--accent) / 0.9); }

.btn--outline {
    background: transparent;
    border-color: hsl(var(--border));
    color: hsl(var(--ink));
}
.btn--outline:hover { background: hsl(var(--secondary)); }

/* Outline na ciemnym tle (hero CTA #2) */
.btn--outline-light {
    background: hsl(0 0% 100% / 0.1);
    backdrop-filter: blur(8px);
    border-color: hsl(0 0% 100% / 0.3);
    color: white;
}
.btn--outline-light:hover { background: white; color: hsl(var(--ink)); }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: hsl(var(--background) / 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid hsl(var(--border));
}
.site-header__inner {
    display: flex;
    height: 4rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.site-header__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
}
.site-header__logo {
    height: 2.25rem;
    width: 2.25rem;
    border-radius: 0.375rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    display: grid;
    place-items: center;
    font-weight: 700;
}
.site-header__brand-text { line-height: 1.2; }
.site-header__brand-name {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
}
.site-header__brand-sub {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.site-header__nav { display: none; align-items: center; gap: 1.75rem; }
@media (min-width: 1024px) { .site-header__nav { display: flex; } }

/* Reset listy — usuwa kropki niezależnie od globalnego CSS (WP nav_menu domyślnie renderuje <ul><li>) */
.site-header__nav-list {
    list-style: none !important;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1.75rem;
}
.site-header__nav-list li {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative; /* dla submenu dropdown */
}
.site-header__nav-list li::before,
.site-header__nav-list li::marker { content: none !important; display: none; }

/* Dropdown (submenu) — WP renderuje zagnieżdżone <ul class="sub-menu"> gdy depth > 1 */
.site-header__nav-list .sub-menu {
    list-style: none !important;
    margin: 0;
    padding: 0.5rem 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius));
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
    z-index: 45;
}
.site-header__nav-list > .menu-item-has-children:hover > .sub-menu,
.site-header__nav-list > .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.site-header__nav-list .sub-menu li {
    width: 100%;
}
.site-header__nav-list .sub-menu a {
    display: block;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    color: hsl(var(--ink));
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}
.site-header__nav-list .sub-menu a:hover {
    background: hsl(var(--accent-soft));
    color: hsl(var(--accent));
}

/* Strzałka ▼ obok elementu z submenu */
.site-header__nav-list > .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin-left: 0.375rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: 0.6;
}

.site-header__nav a,
.site-header__nav-list a {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--ink-soft));
    transition: color 0.2s;
}
.site-header__nav a:hover,
.site-header__nav-list a:hover,
.site-header__nav a:focus-visible,
.site-header__nav-list a:focus-visible { color: hsl(var(--accent)); }

.site-header__cta { display: none; align-items: center; gap: 0.75rem; }
@media (min-width: 768px) { .site-header__cta { display: flex; } }
.site-header__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}
.site-header__phone svg { color: hsl(var(--accent)); }

/* Marketplace links (Allegro, OtoMoto, Ovoko) */
.site-header__marketplaces {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0.75rem;
    margin-left: 0.25rem;
    border-left: 1px solid hsl(var(--border));
}
.site-header__marketplace {
    display: grid;
    place-items: center;
    width: 40px;
    height: 26px;
    color: hsl(var(--ink-soft));
    border-radius: 4px;
    transition: color 0.15s, background 0.15s, transform 0.15s;
}
.site-header__marketplace:hover {
    color: hsl(var(--accent));
    background: hsl(var(--accent-soft));
    transform: translateY(-1px);
}
.site-header__marketplace:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}
.site-header__marketplace svg {
    width: 40px;
    height: 26px;
}

/* Custom upload'owana ikonka (PNG/SVG) — szerokość trochę większa, żeby logotyp miał "oddech" */
.site-header__marketplace--custom {
    width: auto;
    min-width: 44px;
    padding: 0 6px;
}
.site-header__marketplace--custom img {
    max-width: 60px;
    max-height: 22px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Marketplace links w mobile menu — pełna szerokość grid 3 kolumny */
.mobile-menu__marketplaces {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0 0.25rem 0;
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    margin-top: 0.25rem;
    border-top: 1px solid hsl(var(--border));
}
.mobile-menu__marketplaces .site-header__marketplace {
    flex: 1;
    height: 38px;
    border: 1px solid hsl(var(--border));
}
.mobile-menu__marketplaces .site-header__marketplace svg {
    width: 50px;
    height: 32px;
}
.mobile-menu__marketplaces .site-header__marketplace--custom img {
    max-width: 80px;
    max-height: 28px;
}

/* WPML language switcher override */
.site-header__lang .wpml-ls-legacy-list-horizontal { padding: 0; border: none; }
.site-header__lang ul {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    padding: 2px;
    font-size: 0.75rem;
    font-weight: 600;
}
.site-header__lang li { margin: 0 !important; border: none !important; padding: 0 !important; list-style: none !important; }
.site-header__lang li::before,
.site-header__lang li::marker { content: none !important; display: none; }
.site-header__lang a {
    display: block;
    padding: 0.25rem 0.5rem;
    border-radius: calc(var(--radius) - 4px);
    color: hsl(var(--ink-soft));
    text-transform: uppercase;
}
.site-header__lang .wpml-ls-current-language > a {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

/* Fallback language switcher (gdy WPML nieaktywne) — ta sama wizualnie ramka co WPML */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0;
    list-style: none !important;
    margin: 0;
    padding: 2px;
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.75rem;
    font-weight: 600;
}
.lang-switch li { list-style: none !important; margin: 0; padding: 0; }
.lang-switch li::before,
.lang-switch li::marker { content: none !important; display: none; }
.lang-switch__link {
    display: block;
    padding: 0.25rem 0.5rem;
    border-radius: calc(var(--radius) - 4px);
    color: hsl(var(--ink-soft));
    text-transform: uppercase;
    transition: color 0.15s, background 0.15s;
}
.lang-switch__link:hover { color: hsl(var(--ink)); }
.lang-switch__link.is-active {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

/* Mobile — fallback switcher też powinien wyglądać jak desktopowy */
.mobile-menu__lang .lang-switch,
.mobile-menu__lang .wpml-ls-legacy-list-horizontal ul {
    margin-top: 0.25rem;
}

/* Mobile menu toggle */
.site-header__toggle { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; }
@media (min-width: 1024px) { .site-header__toggle { display: none; } }
.site-header__toggle svg { width: 1.5rem; height: 1.5rem; }

/* Mobile menu panel */
.mobile-menu {
    display: none;
    border-top: 1px solid hsl(var(--border));
    background: hsl(var(--background));
}
.mobile-menu.is-open { display: block; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }
.mobile-menu__inner {
    padding-block: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.mobile-menu__inner a {
    font-size: 0.875rem;
    font-weight: 500;
    padding-block: 0.5rem;
}
.mobile-menu__lang { display: flex; gap: 0.5rem; padding-top: 0.5rem; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
    position: relative;
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
}
.hero__bg img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}
.hero__inner {
    position: relative;
    padding-block: 6rem;
}
@media (min-width: 768px) { .hero__inner { padding-block: 9rem; } }
@media (min-width: 1024px) { .hero__inner { padding-block: 11rem; } }

.hero__content { max-width: 42rem; animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    background: hsl(0 0% 100% / 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid hsl(0 0% 100% / 0.2);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
}
.hero__eyebrow svg { color: hsl(var(--accent)); }

.hero__title {
    margin-top: 1.25rem;
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    line-height: 1.05;
}
@media (min-width: 768px) { .hero__title { font-size: 3.75rem; } }

.hero__subtitle {
    margin-top: 1.25rem;
    max-width: 36rem;
    font-size: 1.125rem;
    color: hsl(0 0% 100% / 0.85);
}

.hero__ctas {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero__stats {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 32rem;
}
.hero__stat-value { font-size: 1.5rem; font-weight: 700; color: white; }
@media (min-width: 768px) { .hero__stat-value { font-size: 1.875rem; } }
.hero__stat-label { font-size: 0.75rem; color: hsl(0 0% 100% / 0.7); margin-top: 0.25rem; }

/* =========================================================================
   ABOUT
   ========================================================================= */
.about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 1024px) { .about__grid { grid-template-columns: 1fr 1fr; } }

.about__image {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.about__image img { width: 100%; height: 480px; object-fit: cover; }

.about__points {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 640px) { .about__points { grid-template-columns: 1fr 1fr; } }

.about__point { display: flex; gap: 0.75rem; }
.about__point svg { flex-shrink: 0; margin-top: 0.125rem; color: hsl(var(--accent)); width: 1.25rem; height: 1.25rem; }
.about__point h3 { font-size: 1rem; font-weight: 600; color: hsl(var(--ink)); }
.about__point p { font-size: 0.875rem; color: hsl(var(--ink-soft)); margin-top: 0.25rem; }

/* =========================================================================
   SERVICES
   ========================================================================= */
.services__grid {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services__grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
    background: hsl(var(--background));
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid hsl(var(--border));
    transition: var(--transition-smooth);
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.service-card__img-wrap { position: relative; height: 11rem; overflow: hidden; }
.service-card__img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.service-card:hover .service-card__img { transform: scale(1.05); }

.service-card__icon {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 0.5rem;
    background: hsl(var(--background) / 0.95);
    backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
}
.service-card__icon svg { color: hsl(var(--accent)); width: 1.25rem; height: 1.25rem; }

.service-card__body { padding: 1.5rem; }
.service-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}
.service-card__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: hsl(var(--ink));
}
.service-card__arrow { color: hsl(var(--ink-soft)); transition: color 0.2s; width: 1.25rem; height: 1.25rem; }
.service-card:hover .service-card__arrow { color: hsl(var(--accent)); }
.service-card__desc {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--ink-soft));
    line-height: 1.625;
}

/* =========================================================================
   WHY US
   ========================================================================= */
.whyus__header { text-align: center; max-width: 42rem; margin-inline: auto; }

.whyus__grid {
    margin-top: 3.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) { .whyus__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .whyus__grid { grid-template-columns: repeat(4, 1fr); } }

.whyus__item {
    padding: 1.75rem;
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--background));
    transition: var(--transition-smooth);
}
.whyus__item:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.whyus__icon {
    height: 3rem;
    width: 3rem;
    border-radius: 0.5rem;
    background: hsl(var(--accent-soft));
    display: grid;
    place-items: center;
}
.whyus__icon svg { color: hsl(var(--accent)); width: 1.5rem; height: 1.5rem; }
.whyus__item h3 { margin-top: 1.25rem; font-size: 1.125rem; font-weight: 700; color: hsl(var(--ink)); }
.whyus__item p { margin-top: 0.5rem; font-size: 0.875rem; color: hsl(var(--ink-soft)); }

.whyus__stats {
    margin-top: 4rem;
    border-radius: 1rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media (min-width: 768px) { .whyus__stats { grid-template-columns: repeat(4, 1fr); padding: 3rem; } }
.whyus__stat-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
}
@media (min-width: 768px) { .whyus__stat-value { font-size: 2.25rem; } }
.whyus__stat-label { font-size: 0.875rem; color: hsl(var(--primary-foreground) / 0.7); margin-top: 0.25rem; }

/* =========================================================================
   KALKULATOR
   ========================================================================= */
.calc__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
}
@media (min-width: 1024px) { .calc__grid { grid-template-columns: 1fr 1fr; } }

.calc__list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.calc__list li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: hsl(var(--ink)); }
.calc__list svg { color: hsl(var(--accent)); width: 1.25rem; height: 1.25rem; flex-shrink: 0; }

.calc__form {
    background: hsl(var(--background));
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--border));
    box-shadow: var(--shadow-card);
}
@media (min-width: 768px) { .calc__form { padding: 2rem; } }

.calc__form-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.calc__form-icon {
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 0.5rem;
    background: hsl(var(--accent-soft));
    display: grid;
    place-items: center;
}
.calc__form-icon svg { color: hsl(var(--accent)); width: 1.25rem; height: 1.25rem; }
.calc__form-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}

.calc__fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px) { .calc__fields { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.375rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 500; color: hsl(var(--ink)); }
.field input,
.field select,
.field textarea {
    display: flex;
    height: 2.5rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: calc(var(--radius) - 2px);
    border: 1px solid hsl(var(--input));
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    transition: border-color 0.2s;
}
.field textarea { min-height: 6rem; padding: 0.75rem; height: auto; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.calc__submit { margin-top: 1.5rem; width: 100%; }

.calc__result {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: calc(var(--radius));
    background: hsl(var(--accent-soft));
    border: 1px solid hsl(var(--accent) / 0.2);
}
.calc__result-label { font-size: 0.875rem; color: hsl(var(--ink-soft)); }
.calc__result-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: hsl(var(--ink));
    margin-top: 0.25rem;
}
.calc__result-hint { font-size: 0.75rem; color: hsl(var(--ink-soft)); margin-top: 0.5rem; }

/* Sekcja kontaktowa przy wyniku */
.calc__contact-fields {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px dashed hsl(var(--border));
    display: grid;
    gap: 0.75rem;
}
.calc__status { margin-top: 1rem; font-size: 0.875rem; }
.calc__status--success { color: hsl(var(--accent)); }
.calc__status--error { color: hsl(var(--destructive)); }

/* =========================================================================
   LOCATIONS
   ========================================================================= */
.locations__grid {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) { .locations__grid { grid-template-columns: repeat(2, 1fr); } }

.location-card {
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--background));
    transition: var(--transition-smooth);
}
.location-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.location-card__head { display: flex; align-items: center; gap: 0.5rem; }
.location-card__head svg { color: hsl(var(--accent)); width: 1.25rem; height: 1.25rem; }
.location-card__head h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: hsl(var(--ink));
}
.location-card__badge {
    margin-top: 0.5rem;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--accent));
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.location-card__addr { margin-top: 0.75rem; font-size: 0.875rem; color: hsl(var(--ink-soft)); }
.location-card__meta { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; }
.location-card__meta-row { display: flex; align-items: center; gap: 0.5rem; }
.location-card__meta-row svg { color: hsl(var(--accent)); width: 1rem; height: 1rem; flex-shrink: 0; }
.location-card__phone { color: hsl(var(--ink)); font-weight: 500; }
.location-card__hours { color: hsl(var(--ink-soft)); }

.locations__map {
    margin-top: 2.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid hsl(var(--border));
    box-shadow: var(--shadow-soft);
}
.locations__map iframe { width: 100%; height: 400px; border: 0; display: block; }

/* =========================================================================
   TESTIMONIALS
   ========================================================================= */
.testimonials__header { text-align: center; max-width: 42rem; margin-inline: auto; }
.testimonials__grid {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) { .testimonials__grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial {
    padding: 1.75rem;
    border-radius: 0.75rem;
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    box-shadow: var(--shadow-soft);
}
.testimonial__stars { display: flex; gap: 0.25rem; }
.testimonial__stars svg {
    width: 1rem;
    height: 1rem;
    color: hsl(var(--accent));
    fill: hsl(var(--accent));
}
.testimonial__text { margin-top: 1rem; color: hsl(var(--ink)); line-height: 1.625; }
.testimonial__author {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid hsl(var(--border));
}
.testimonial__name { font-weight: 600; color: hsl(var(--ink)); }
.testimonial__role { font-size: 0.875rem; color: hsl(var(--ink-soft)); }

/* =========================================================================
   FAQ — natywny details/summary zamiast Radix Accordion
   ========================================================================= */
.faq__wrap { max-width: 48rem; margin-inline: auto; }
.faq__header { text-align: center; }

.faq__list { margin-top: 2.5rem; }
.faq-item {
    border-bottom: 1px solid hsl(var(--border));
}
.faq-item > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 1rem;
    font-weight: 600;
    color: hsl(var(--ink));
    cursor: pointer;
    list-style: none;
    gap: 1rem;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
    content: '';
    width: 0.75rem;
    height: 0.75rem;
    border-right: 2px solid hsl(var(--ink-soft));
    border-bottom: 2px solid hsl(var(--ink-soft));
    transform: rotate(45deg);
    transition: transform 0.2s;
    flex-shrink: 0;
}
.faq-item[open] > summary::after { transform: rotate(-135deg); }
.faq-item__body {
    padding-bottom: 1rem;
    color: hsl(var(--ink-soft));
    line-height: 1.625;
}

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
@media (min-width: 1024px) { .contact__grid { grid-template-columns: 1fr 1fr; } }

.contact__info { color: hsl(var(--primary-foreground)); }
.contact__info p { margin-top: 1rem; color: hsl(var(--primary-foreground) / 0.7); max-width: 28rem; }

.contact__methods {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.contact__method { display: flex; align-items: flex-start; gap: 1rem; }
.contact__method-icon {
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 0.5rem;
    background: hsl(var(--accent));
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.contact__method-icon svg { width: 1.25rem; height: 1.25rem; color: white; }
.contact__method-label {
    font-size: 0.875rem;
    color: hsl(var(--primary-foreground) / 0.6);
}
.contact__method-value { font-weight: 600; }
.contact__method-value a { color: inherit; }
.contact__method-value a:hover { color: hsl(var(--accent)); }
.contact__method-sub { font-size: 0.75rem; color: hsl(var(--primary-foreground) / 0.5); margin-top: 0.25rem; }

.contact__hours { margin-top: 0.5rem; font-size: 0.875rem; color: hsl(var(--primary-foreground) / 0.8); }
.contact__hours span { display: block; }

.contact__form {
    background: hsl(var(--background));
    color: hsl(var(--ink));
    padding: 1.5rem;
    border-radius: 0.75rem;
}
@media (min-width: 768px) { .contact__form { padding: 2rem; } }
.contact__form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px) { .contact__form-row { grid-template-columns: 1fr 1fr; } }
.contact__form-field { margin-top: 1rem; }
.contact__submit { margin-top: 1.5rem; width: 100%; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
    background: hsl(var(--ink));
    color: hsl(var(--primary-foreground));
    padding-block: 3rem;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.site-footer__brand-logo {
    height: 2.25rem;
    width: 2.25rem;
    border-radius: 0.375rem;
    background: hsl(var(--accent));
    display: grid;
    place-items: center;
    font-weight: 700;
    color: white;
}
.site-footer__brand-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}
.site-footer__brand-sub { font-size: 0.75rem; color: hsl(var(--primary-foreground) / 0.6); }
.site-footer__about {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: hsl(var(--primary-foreground) / 0.6);
    max-width: 24rem;
}
.site-footer__nip {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: hsl(var(--primary-foreground) / 0.5);
}

.site-footer__title {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
.site-footer__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--primary-foreground) / 0.7);
}
.site-footer__list a:hover { color: hsl(var(--accent)); }

.site-footer__bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid hsl(var(--primary-foreground) / 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: hsl(var(--primary-foreground) / 0.5);
}
.site-footer__links { display: flex; gap: 1.25rem; }
.site-footer__links a:hover { color: hsl(var(--accent)); }

/* =========================================================================
   WHATSAPP FLOATING BUTTON
   ========================================================================= */
.whatsapp-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background: #25D366; /* Oficjalny kolor WhatsApp — nie zmieniamy */
    color: white;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-lg);
    transition: transform 0.2s;
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 3px; }
.whatsapp-fab svg { width: 1.75rem; height: 1.75rem; }

/* =========================================================================
   WOOCOMMERCE — stylowanie podstawowe (shortcode'y, bez Blocks)
   ========================================================================= */
.woocommerce-page .container-wide,
.page-template-default .woocommerce {
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

.woocommerce .woocommerce-breadcrumb { padding-block: 1rem; color: hsl(var(--ink-soft)); font-size: 0.875rem; }

.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    border-radius: calc(var(--radius) - 2px);
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}
.woocommerce .button:hover,
.woocommerce a.button:hover { background: hsl(var(--accent) / 0.9); }

.woocommerce .button.alt,
.woocommerce #respond input#submit.alt {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    border: 1px solid hsl(var(--input));
    border-radius: calc(var(--radius) - 2px);
    padding: 0.5rem 0.75rem;
}

.woocommerce-message,
.woocommerce-info {
    border-top-color: hsl(var(--accent));
}
.woocommerce-message::before,
.woocommerce-info::before { color: hsl(var(--accent)); }

/* =========================================================================
   PODSTRONA USŁUGI (single-centrum_service.php) — hero, intro, CTA bar
   ========================================================================= */

/* Hero podstrony usługi */
.service-hero {
    position: relative;
    overflow: hidden;
    min-height: 320px;
}
.service-hero__bg {
    position: absolute;
    inset: 0;
}
.service-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.service-hero__overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}
.service-hero__inner {
    position: relative;
    padding-block: 3rem 4rem;
}
@media (min-width: 768px) { .service-hero__inner { padding-block: 4rem 5rem; } }

.service-hero__breadcrumb {
    color: hsl(0 0% 100% / 0.75);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}
.service-hero__breadcrumb a {
    color: inherit;
    transition: color 0.15s;
}
.service-hero__breadcrumb a:hover { color: white; }
.service-hero__breadcrumb [aria-current="page"] { color: white; font-weight: 500; }

.service-hero__content {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 48rem;
}
.service-hero__icon {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    background: hsl(var(--accent));
    color: white;
    display: grid;
    place-items: center;
}
.service-hero__icon svg { width: 2rem; height: 2rem; }
.service-hero__title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}
@media (min-width: 768px) { .service-hero__title { font-size: 2.75rem; } }

/* Intro (post_content) */
.service-intro {
    padding-block: 3rem;
}
.service-intro__body {
    max-width: 48rem;
    margin-inline: auto;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: hsl(var(--ink));
}
.service-intro__body p { margin-block: 1rem; }
.service-intro__body h2,
.service-intro__body h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}
.service-intro__body h2 { font-size: 1.5rem; }
.service-intro__body h3 { font-size: 1.25rem; }
.service-intro__body ul,
.service-intro__body ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
    list-style: revert;
}
.service-intro__body li { margin-block: 0.375rem; }
.service-intro__body a { color: hsl(var(--accent)); text-decoration: underline; }
.service-intro__body a:hover { text-decoration: none; }
.service-intro__body blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: hsl(var(--accent-soft));
    border-left: 4px solid hsl(var(--accent));
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
}

/* Wspólny nagłówek dla klocków */
.block-header {
    margin-bottom: 2rem;
    max-width: 42rem;
}

/* =========================================================================
   KLOCEK: Produkty WooCommerce
   ========================================================================= */
.block-products__grid {
    /* WC shortcode [products] renderuje ul.products — stylowanie pod nim */
}
/* Drobny gap między produktami gdy WC renderuje siatkę */
.block-products .woocommerce ul.products {
    margin-inline: 0;
    padding-left: 0;
}
.block-products__footer {
    margin-top: 2rem;
    text-align: center;
}

/* =========================================================================
   KLOCEK: Dokumenty do pobrania
   ========================================================================= */
.block-docs__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 52rem;
    margin-inline: auto;
}
@media (min-width: 640px) { .block-docs__grid { grid-template-columns: repeat(2, 1fr); } }

.block-docs__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    transition: var(--transition-smooth);
    color: hsl(var(--ink));
}
.block-docs__item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: hsl(var(--accent));
}

.block-docs__icon {
    position: relative;
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    background: hsl(var(--accent-soft));
    display: grid;
    place-items: center;
    color: hsl(var(--accent));
}
.block-docs__icon svg { width: 1.5rem; height: 1.5rem; }
.block-docs__ext {
    position: absolute;
    bottom: -0.375rem;
    right: -0.375rem;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
    background: hsl(var(--accent));
    color: white;
    border-radius: 0.25rem;
    letter-spacing: 0.03em;
}

.block-docs__content { flex: 1; min-width: 0; }
.block-docs__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: hsl(var(--ink));
}
.block-docs__desc {
    font-size: 0.875rem;
    color: hsl(var(--ink-soft));
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}
.block-docs__size {
    display: inline-block;
    font-size: 0.75rem;
    color: hsl(var(--ink-soft));
    background: hsl(var(--muted));
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
}

.block-docs__arrow {
    flex-shrink: 0;
    align-self: center;
    color: hsl(var(--ink-soft));
    transition: color 0.15s, transform 0.15s;
}
.block-docs__item:hover .block-docs__arrow {
    color: hsl(var(--accent));
    transform: translateX(3px);
}

/* =========================================================================
   Warning (np. WooCommerce nieaktywne)
   ========================================================================= */
.block-warning {
    padding: 1rem 1.25rem;
    background: hsl(48 100% 95%);
    border: 1px solid hsl(48 85% 70%);
    border-radius: 0.5rem;
    color: hsl(30 50% 25%);
    font-size: 0.9375rem;
}

/* =========================================================================
   CTA bar na końcu podstrony usługi
   ========================================================================= */
.service-cta-bar {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding-block: 3rem;
}
.service-cta-bar__inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}
@media (min-width: 768px) {
    .service-cta-bar__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
    }
}
.service-cta-bar__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}
.service-cta-bar__desc {
    margin-top: 0.375rem;
    color: hsl(var(--primary-foreground) / 0.7);
    font-size: 0.9375rem;
}
.service-cta-bar__ctas {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.service-cta-bar .btn--outline {
    background: transparent;
    border-color: hsl(var(--primary-foreground) / 0.3);
    color: white;
}
.service-cta-bar .btn--outline:hover {
    background: white;
    color: hsl(var(--primary));
    border-color: white;
}

/* =========================================================================
   Karty usług na homepage — teraz są <a> (klikalne cała karta)
   ========================================================================= */
.service-card--link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
.service-card--link:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 3px;
}
.service-card__more {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--accent));
    transition: gap 0.2s;
}
.service-card--link:hover .service-card__more { gap: 0.625rem; }
.service-card__more svg { width: 1rem; height: 1rem; }

/* =========================================================================
   PAGE TEMPLATES (hero, intro, cennik, about-page)
   ========================================================================= */

/* Hero dla podstron typu "page" — szary gradient, bez zdjęcia */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, hsl(var(--surface-muted)) 0%, hsl(var(--background)) 100%);
    border-bottom: 1px solid hsl(var(--border));
    padding-block: 3rem;
}
@media (min-width: 768px) { .page-hero { padding-block: 4rem; } }

.page-hero__breadcrumb {
    color: hsl(var(--ink-soft));
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
.page-hero__breadcrumb a {
    color: inherit;
    transition: color 0.15s;
}
.page-hero__breadcrumb a:hover { color: hsl(var(--accent)); }
.page-hero__breadcrumb [aria-current="page"] { color: hsl(var(--ink)); font-weight: 500; }

.page-hero__title {
    font-size: 2rem;
    font-weight: 700;
    color: hsl(var(--ink));
    line-height: 1.1;
}
@media (min-width: 768px) { .page-hero__title { font-size: 2.75rem; } }

/* Intro z treścią SEO na page templates */
.page-intro {
    padding-block: 3rem;
}
.page-intro__body {
    max-width: 48rem;
    margin-inline: auto;
}

/* =========================================================================
   /punkty-demontazu — rozszerzona karta lokalizacji z mapką
   ========================================================================= */
.location-card--extended {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.location-card__map {
    margin-top: 1.25rem;
    border-radius: 0.5rem;
    overflow: hidden;
}
.location-card__map .centrum-map {
    border-radius: 0.5rem;
}

/* =========================================================================
   /o-nas — layout z galerią
   ========================================================================= */
.about-page__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}
@media (min-width: 960px) {
    .about-page__grid { grid-template-columns: 1.2fr 1fr; gap: 3rem; }
}

.about-page__content {
    max-width: 42rem;
}

.about-page__gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.about-page__photo {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.about-page__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.about-page__photo--main img {
    height: 360px;
}
.about-page__photo-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.about-page__photo-row .about-page__photo img {
    height: 180px;
}

/* =========================================================================
   Sekcja kontaktu na stronie /kontakt — dopasowanie drobne
   ========================================================================= */
.contact-page__map-section {
    padding-top: 4rem;
}

/* =========================================================================
   PASEK DOTACJI UE (eu-strip) — pełny na homepage, kompaktowy pod stopką
   ========================================================================= */
.eu-strip {
    background: hsl(var(--surface-muted));
    border-top: 1px solid hsl(var(--border));
    border-bottom: 1px solid hsl(var(--border));
    padding-block: 2rem;
}

.eu-strip__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}
@media (min-width: 960px) {
    .eu-strip--full .eu-strip__inner {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
        text-align: left;
    }
}

.eu-strip__logos {
    display: block;
    flex-shrink: 0;
    line-height: 0;
    transition: opacity 0.15s;
}
.eu-strip__logos:hover { opacity: 0.85; }
.eu-strip__logos:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 4px; }
.eu-strip__logos img {
    max-width: 100%;
    height: auto;
    /* Kontrola wysokości — logotypy są w 4 kolumnach, muszą być czytelne */
}
.eu-strip--full .eu-strip__logos img {
    max-width: 560px;
    width: 100%;
}
.eu-strip--compact .eu-strip__logos img {
    max-width: 420px;
    width: 100%;
}

.eu-strip__text {
    flex: 1;
    min-width: 0;
}

.eu-strip__slogan {
    font-size: 0.875rem;
    font-style: italic;
    color: hsl(var(--ink));
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}
.eu-strip__desc {
    font-size: 0.875rem;
    color: hsl(var(--ink-soft));
    margin: 0;
    line-height: 1.55;
}
.eu-strip__desc--compact {
    font-size: 0.8125rem;
    text-align: center;
}
.eu-strip__more {
    margin: 0.75rem 0 0 0;
    font-size: 0.875rem;
}
.eu-strip__more a {
    color: hsl(var(--accent));
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: gap 0.2s;
}
.eu-strip__more a:hover { gap: 0.625rem; }
.eu-strip__more svg { width: 1rem; height: 1rem; }

.eu-strip__desc--compact a {
    color: hsl(var(--accent));
    font-weight: 500;
    margin-left: 0.5rem;
}
.eu-strip__desc--compact a:hover { text-decoration: underline; }

/* Kompaktowy wariant — bardzo dyskretny, mniej vertical padding */
.eu-strip--compact {
    padding-block: 1.25rem;
    background: hsl(var(--background));
}
.eu-strip--compact .eu-strip__inner {
    gap: 0.75rem;
}

/* =========================================================================
   TABLICA DOTACJI (eu-board) — na podstronie /dotacje
   ========================================================================= */
.eu-page {
    padding-block: 3rem;
}

.eu-board {
    max-width: 56rem;
    margin: 0 auto;
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-card);
}
@media (min-width: 768px) { .eu-board { padding: 3rem 2.5rem; } }

/* Logotypy — centrowane, oddzielone linią od reszty */
.eu-board__logos {
    text-align: center;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid hsl(var(--border));
}
.eu-board__logos img {
    max-width: 100%;
    height: auto;
}

/* Slogan — wyróżniony, italic, akcent kolorem */
.eu-board__slogan {
    font-size: 1.125rem;
    font-style: italic;
    text-align: center;
    color: hsl(var(--accent));
    margin: 0 0 2rem 0;
    line-height: 1.5;
    font-weight: 500;
}
@media (min-width: 768px) { .eu-board__slogan { font-size: 1.25rem; } }

/* Prose - spójny blok tekstu */
.eu-board__prose {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: hsl(var(--ink));
}
.eu-board__prose p {
    margin: 0 0 1.25rem 0;
}
.eu-board__prose p:last-child {
    margin-bottom: 0;
}
.eu-board__prose strong {
    color: hsl(var(--ink));
    font-weight: 600;
}

/* Wyróżniony box z kwotą dofinansowania */
.eu-board__amount-box {
    margin: 2rem 0;
    background: linear-gradient(135deg, hsl(var(--accent-soft)) 0%, hsl(var(--background)) 100%);
    border: 1px solid hsl(var(--accent) / 0.25);
    border-radius: 0.75rem;
    padding: 1.75rem 1.5rem;
    text-align: center;
}
@media (min-width: 768px) { .eu-board__amount-box { padding: 2rem 2.5rem; } }

.eu-board__amount-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--accent));
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}
.eu-board__amount-value {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: hsl(var(--accent));
    line-height: 1;
}
@media (min-width: 768px) { .eu-board__amount-value { font-size: 3rem; } }

/* Figure - zdjęcie tablicy informacyjnej */
.eu-board__figure {
    margin: 2.5rem 0 0 0;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
}
.eu-board__figure img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid hsl(var(--border));
}
.eu-board__figure figcaption {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.875rem;
    color: hsl(var(--ink-soft));
    font-style: italic;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
.animate-fade-up { animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.animate-fade-in { animation: fade-in 0.6s ease-out both; }

/* Respektujemy preferencje użytkownika */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
