/**
 * Homepage — 2026 modern layout
 * Brand colors: magenta (#E6007E) + teal (#00B3B0) from APTEKA 4 PORY ROKU logo.
 *
 * Highlights:
 *  - Full-bleed sections (break out of GP content container)
 *  - Aurora / mesh gradient hero with noise
 *  - Full-width search band (edge to edge)
 *  - Dropdown above ad-bar (z-index safe)
 *  - Bento stats grid with per-stat icons
 *  - Scroll-snap news carousel with prev/next arrows
 */

/* ============================================================
   0. DESIGN TOKENS  — palette aligned with the reference template
   --pink #e01a72 / --teal #2dc4b0 / --dark #0f1629
   Tokens live on body.home so every descendant inherits them and
   GeneratePress globals can no longer overwrite our colors.
   ============================================================ */
body.home,
body.home .home {
    /* BRAND — zsynchronizowane z kanonicznymi tokenami DESIGN-SYSTEM.md
       (magenta = główna akcja, teal = akcent/status). Jedna paleta na całym serwisie. */
    --ap-brand-magenta:   var(--magenta-600);
    --ap-brand-magenta-2: var(--magenta-700);
    --ap-brand-magenta-l: var(--magenta-50);
    --ap-brand-teal:      var(--teal-600);
    --ap-brand-teal-2:    var(--teal-700);
    --ap-brand-teal-l:    var(--teal-50);

    --ap-primary:    var(--ap-brand-magenta);
    --ap-primary-2:  var(--ap-brand-magenta-2);
    --ap-accent:     var(--ap-brand-teal);
    --ap-accent-2:   var(--ap-brand-teal-2);

    /* NEUTRAL */
    --ap-ink:        var(--navy-900);
    --ap-ink-soft:   var(--navy-800);
    --ap-muted:      var(--muted);
    --ap-muted-soft: #94a3b8;
    --ap-surface:    var(--surface);
    --ap-surface-2:  #fafbfc;
    --ap-surface-3:  var(--surface-2);
    --ap-border:     var(--line);
    --ap-border-2:   #cbd5e1;

    /* GRADIENTS */
    --ap-g-brand:    linear-gradient(135deg, var(--magenta-600) 0%, var(--teal-600) 100%);
    --ap-g-brand-s:  linear-gradient(135deg, var(--magenta-600) 0%, var(--magenta-700) 50%, var(--teal-600) 100%);
    --ap-g-dark:     linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 60%, #0d2440 100%);

    /* SHAPE */
    --ap-radius-xl:  28px;
    --ap-radius-lg:  20px;
    --ap-radius-md:  14px;
    --ap-radius-sm:  10px;

    /* SHADOWS */
    --ap-shadow-sm:  0 2px 10px rgba(15, 22, 41, .06);
    --ap-shadow-md:  0 10px 30px -8px rgba(15, 22, 41, .14), 0 4px 10px -4px rgba(15, 22, 41, .06);
    --ap-shadow-lg:  0 24px 60px -12px rgba(15, 22, 41, .25), 0 8px 16px -6px rgba(15, 22, 41, .08);
    --ap-shadow-brand: 0 6px 20px rgba(214, 0, 110, .38);
    --ap-shadow-teal:  0 6px 20px rgba(15, 179, 160, .38);

    --ap-font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    color: var(--ap-ink);
}

/* ============================================================
   0.1  GUARD AGAINST GENERATEPRESS GLOBALS
   GP forces .entry-content h1, body h1 to its own color. We scope
   typography to home so our gradient and white headings stick.
   ============================================================ */
body.home .home,
body.home main.home,
body.home main.home p,
body.home main.home h1,
body.home main.home h2,
body.home main.home h3,
body.home main.home h4,
body.home main.home h5,
body.home main.home h6,
body.home main.home a {
    font-family: var(--ap-font-display);
}

body.home main.home h1,
body.home main.home h2,
body.home main.home h3,
body.home main.home h4,
body.home main.home h5,
body.home main.home h6 {
    color: inherit;
    margin: 0;
    letter-spacing: -0.01em;
}

body.home main.home p {
    margin: 0;
}

/* Linki na home nie wymagają już neutralizacji — globalna polityka linków
   (a { text-decoration: none; color: inherit }) załatwia to u źródła.
   Zostaje tylko nadpisanie KOLORU nagłówków, bo GP wymusza je nieobjęte warstwą. */
body.home main.home h1,
body.home main.home h2,
body.home main.home h3,
body.home main.home h4,
body.home main.home h5,
body.home main.home h6,
body.home .entry-content h1,
body.home .entry-content h2,
body.home .entry-content h3,
body.home .entry-content h4,
body.home .entry-content h5,
body.home .entry-content h6 {
    color: inherit;
}

/* ============================================================
   1. FULL-BLEED LAYOUT — WIPE GENERATEPRESS WRAPPERS ON HOME
   We need every GP wrapper to be full width so our sections sit
   edge-to-edge. Using width:100% (not 100vw) avoids horizontal
   scrollbar artifacts.
   ============================================================ */
body.home {
    overflow-x: clip;
}

body.home #page,
body.home .site,
body.home .site.grid-container,
body.home .site-content,
body.home #content,
body.home #content.site-content,
body.home .grid-container,
body.home .grid-container.grid-parent,
body.home .grid-container.container,
body.home .content-area,
body.home .full-width-content,
body.home .full-width-content .inside-article,
body.home #primary,
body.home #primary.home,
body.home main#primary,
body.home main.home,
body.home .inside-article,
body.home .entry-content,
body.home article.page,
body.home .page.type-page,
body.home .page-hero,
body.home .page-content {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Some GP layouts use a .grid-container with explicit width via inline
   style. Override anyway so the home truly is edge to edge. */
body.home .site.grid-container,
body.home #page.grid-container {
    max-width: 100% !important;
    width: 100% !important;
}

/* Header is hooked into GP generate_header which often wraps content in
   .inside-header.grid-container with a max-width. Force header bands
   edge-to-edge across the whole site (not just home) so the chrome
   matches the homepage design language. Inside .topbar > .container and
   .header-main > .container content is capped by --container-max (token). */
.site-header .inside-header,
.site-header .inside-header.grid-container,
.site-header.grid-container {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Topbar and main header bands span full viewport, content stays in
   .container — ta sama szerokość/gutter co treść i stopka (token globalny),
   żeby krawędzie nagłówka, treści i stopki były idealnie wyrównane. */
.topbar,
.header-main {
    width: 100%;
}

.topbar > .container,
.header-main > .container {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    box-sizing: border-box;
}

.home-hero,
.home-visual-band,
.home-ad-bar,
.home-stats,
.home-services,
.home-opieka,
.home-vaccinations,
.home-map,
.home-news,
.home-cta {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
}

.home .container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    box-sizing: border-box;
}

/* ============================================================
   2. HERO — light layout (white background, subtle washes,
   decorative pharmacy mark on the right when no photo set).
   ============================================================ */
.home-hero {
    position: relative;
    background: #ffffff;
    border-bottom: 1px solid #edf0f5;
    color: var(--ap-ink);
    overflow: hidden;
    z-index: 5;
}

.home-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.home-hero__dots {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .04;
}

.home-hero__wash {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.home-hero__wash--pink {
    top: -200px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(214, 0, 110, .06) 0%, transparent 65%);
}

.home-hero__wash--teal {
    bottom: -150px;
    left: -80px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(15, 179, 160, .07) 0%, transparent 65%);
}

.home-hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    padding: clamp(72px, 10vw, 120px) 0 clamp(56px, 8vw, 96px);
}

.home-hero__copy {
    position: relative;
    z-index: 2;
    min-width: 0;
    max-width: 600px;
}

/* HERO COPY: eyebrow, title, subtitle */
.home-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--ap-brand-teal-l);
    border: 1px solid rgba(15, 179, 160, .35);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--ap-brand-teal-2);
    margin: 0 0 24px;
}

.home-hero__eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ap-brand-teal);
    box-shadow: 0 0 0 4px rgba(15, 179, 160, .25);
    animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: .85; }
    50%      { transform: scale(1.3); opacity: 1; }
}

.home-hero .home-hero__title,
body.home .home-hero__title {
    font-family: var(--ap-font-display);
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.05;
    letter-spacing: -1.2px;
    font-weight: 800;
    margin: 0 0 20px;
    max-width: 14ch;
    color: var(--ap-ink);
    text-wrap: pretty;
}

.home-hero__title-line {
    display: block;
    color: var(--ap-ink);
}

.home-hero__title-accent {
    display: block;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: var(--ap-primary);
    color: var(--ap-primary);
}

.home-hero__subtitle {
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.75;
    max-width: 460px;
    margin: 0 0 36px;
    color: var(--ap-muted);
}

/* =============================================================================
   ZAKŁADKOWY FINDER (hero)
   Dyscyplina kolorów: turkus = baza (zakładki, geo, „czynne teraz", focus),
   magenta = TYLKO przycisk „Szukaj".
   ============================================================================= */
.hero-finder {
    position: relative;
    z-index: 30;
    max-width: 700px;
}

/* --- Zakładki: przyklejone do paska, tworzą jedną kartę (zakładki = nagłówek) --- */
.hero-finder__tabs {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #ffffff;
    border: 1px solid var(--ap-border);
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
}

.hero-finder__tab {
    flex: 1 1 0;
    appearance: none;
    border: 0;
    background: transparent;
    padding: 13px 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--ap-muted);
    cursor: pointer;
    text-align: center;
    border-bottom: 2px solid transparent;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.hero-finder__tab:hover { color: var(--ap-ink); background: var(--ap-surface-2); }

.hero-finder__tab.is-active {
    color: var(--ap-accent-2);
    border-bottom-color: var(--ap-accent);
}

.hero-finder__tab:focus-visible {
    outline: 2px solid var(--ap-accent);
    outline-offset: -2px;
}

/* --- Panel / pasek formularza (dół karty, sklejony z zakładkami) --- */
.hero-finder__panel[hidden] { display: none; }

.hero-finder__form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--ap-border);
    border-radius: 0 0 14px 14px;
    padding: 8px;
    box-shadow: 0 10px 26px -10px rgba(15, 22, 41, .12);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.hero-finder__form:focus-within {
    border-color: var(--ap-accent);
    box-shadow: 0 12px 30px -8px rgba(15, 22, 41, .16);
}

/* --- Combobox miasta --- */
.hero-combo {
    position: relative;
    flex: 1 1 240px;
    min-width: 220px;
    display: flex;
    align-items: center;
}

.hero-combo__icon {
    display: flex;
    align-items: center;
    padding: 0 6px 0 10px;
    color: var(--ap-accent-2);
    flex: 0 0 auto;
}

.hero-combo__input {
    flex: 1 1 auto;
    height: 48px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 15px;
    color: var(--ap-ink);
    min-width: 0;
    font-family: inherit;
    padding: 0;
}

.hero-combo__input::placeholder { color: #8d97a5; }

.hero-combo__geo,
.hero-combo__clear {
    appearance: none;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    flex: 0 0 auto;
    transition: background .15s ease, color .15s ease;
}

.hero-combo__geo {
    color: var(--ap-accent-2);
    background: var(--ap-brand-teal-l);
    width: 38px;
    height: 38px;
}
.hero-combo__geo:hover { background: var(--ap-accent); color: #ffffff; }
.hero-combo__clear { color: var(--ap-muted); }

/* --- Twarde nadpisania globalnych styli <button> z motywu nadrzędnego.
   Bez nich aktywna zakładka dostaje ciemne tło, a ikona geo bieleje
   (currentColor = biały z globalnego buttona) i znika na jasnym tle. --- */
body.home .hero-finder__tab,
body.home .hero-finder__tab:hover,
body.home .hero-finder__tab:focus,
body.home .hero-finder__tab.is-active {
    background: transparent !important;
    color: var(--ap-muted) !important;
    box-shadow: none !important;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
}
body.home .hero-finder__tab:hover { color: var(--ap-ink) !important; }
body.home .hero-finder__tab.is-active {
    color: var(--ap-accent-2) !important;
    border-bottom-color: var(--ap-accent) !important;
}

/* Ikona jako background-image (data URI) — pewna i niezależna od globalnych
   styli, które zerują inline SVG w tym kontekście. */
body.home .hero-combo__geo {
    background-color: var(--ap-accent) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 18px 18px !important;
    color: #ffffff !important;
}
body.home .hero-combo__geo:hover { background-color: var(--ap-accent-2) !important; }

/* Inline SVG ukrywamy (zastąpiony tłem); podczas ładowania chowamy też tło. */
body.home .hero-combo__geo .hero-combo__geo-icon { display: none !important; }
body.home .hero-combo__geo.is-loading { background-image: none !important; }

body.home .hero-combo__clear {
    background: transparent !important;
    color: var(--ap-muted) !important;
}
body.home .hero-combo__clear:hover {
    background: var(--ap-surface-3) !important;
    color: var(--ap-ink) !important;
}
.hero-combo__clear:hover { background: var(--ap-surface-3); color: var(--ap-ink); }

.hero-combo__geo-spin {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--ap-brand-teal-l);
    border-top-color: var(--ap-accent-2);
    border-radius: 50%;
    animation: hero-spin .7s linear infinite;
}

.hero-combo__geo.is-loading .hero-combo__geo-icon { display: none; }
.hero-combo__geo.is-loading .hero-combo__geo-spin { display: block; }

@keyframes hero-spin { to { transform: rotate(360deg); } }

/* Lista podpowiedzi */
.hero-combo__list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    list-style: none;
    margin: 0;
    padding: 6px;
    background: #ffffff;
    border: 1px solid var(--ap-surface-3);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000;
    text-align: left;
}

.hero-combo__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--ap-ink);
}

.hero-combo__option.is-active,
.hero-combo__option:hover { background: var(--ap-brand-teal-l); }

.hero-combo__option-count {
    font-size: 12px;
    color: var(--ap-muted);
    font-variant-numeric: tabular-nums;
}

.hero-combo__empty {
    padding: 14px 12px;
    font-size: 13px;
    color: var(--ap-muted);
    text-align: center;
}

/* --- Select usługi/szczepienia (własny box — czytelny i przy zawijaniu) --- */
.hero-finder__select-wrap {
    flex: 1 1 170px;
    min-width: 160px;
    display: flex;
    align-items: center;
    background: var(--ap-surface-2);
    border: 1px solid var(--ap-border);
    border-radius: 10px;
}

.hero-finder__select {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    outline: 0;
    background: transparent
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
        no-repeat right 12px center;
    height: 46px;
    width: 100%;
    padding: 0 30px 0 12px;
    font-family: inherit;
    font-size: 14px;
    color: var(--ap-ink);
    cursor: pointer;
}

/* --- Przycisk Szukaj (jedyny magenta) --- */
.hero-finder__submit {
    flex: 0 0 auto;
    height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    background: var(--ap-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 4px 12px rgba(214, 0, 110, .35);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    white-space: nowrap;
}

.hero-finder__submit:hover,
.hero-finder__submit:focus {
    transform: translateY(-1px);
    background: var(--ap-primary-2);
    box-shadow: 0 6px 18px rgba(214, 0, 110, .45);
}

/* --- Skrót „czynne teraz w pobliżu" (turkus, wyróżniony) --- */
.hero-finder__near {
    appearance: none;
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1.5px solid var(--ap-accent);
    border-radius: 999px;
    background: var(--ap-brand-teal-l);
    color: var(--ap-accent-2);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.hero-finder__near:hover {
    background: var(--ap-accent);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 179, 160, .35);
}

.hero-finder__near.is-loading { opacity: .7; cursor: progress; }

.hero-finder__near-spin {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, .5);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: hero-spin .7s linear infinite;
}
.hero-finder__near.is-loading .hero-finder__near-spin { display: inline-block !important; }

.hero-finder__geo-note {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--ap-muted);
    max-width: 460px;
}

.hero-finder__status {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--ap-accent-2);
    font-weight: 500;
}

.hero-finder__status-link {
    color: var(--ap-primary);
    font-weight: 700;
    text-decoration: underline;
    white-space: nowrap;
}

/* =============================================================================
   PRAWA KOLUMNA = ZAUFANIE (zdjęcie + karty-dowody + 3 konkrety)
   ============================================================================= */
.home-hero__aside {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-hero__media-wrap {
    position: relative;
}

/* Pływające karty na zdjęciu — białe, subtelny border (jak komponent karty). */
.home-hero__card {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid var(--ap-border);
    border-radius: 12px;
    box-shadow: 0 10px 28px -10px rgba(15, 22, 41, .25);
    font-size: 13px;
    color: var(--ap-ink);
}

.home-hero__card strong { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.2; }
.home-hero__card-sub { display: block; font-size: 11.5px; color: var(--ap-muted); font-weight: 500; }

.home-hero__card--status {
    left: 14px;
    bottom: 14px;
}

.home-hero__card--status .home-hero__card-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ap-accent);
    box-shadow: 0 0 0 4px rgba(15, 179, 160, .22);
    flex: none;
}

.home-hero__card--rating {
    right: 14px;
    top: 14px;
}

.home-hero__card--rating svg { color: #f5a623; flex: none; }

/* Decor (brak zdjęcia) nie powinien przykrywać kart — karty nad nim. */
.home-hero__media-wrap .home-hero__decor { z-index: 1; }

/* 3 konkrety pod zdjęciem — spokojny rytm, turkusowe ptaszki. */
.home-hero__trust {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-hero__trust-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    color: var(--ap-ink-soft);
    font-weight: 500;
}

.home-hero__trust-item svg { color: var(--ap-accent-2); flex: none; }

/* Chipy miast są teraz częścią grupy „szukanie" (wewnątrz .hero-finder). */
.hero-finder .home-hero__chips { margin: 14px 0 0; }

/* CHIPS — light, sit under search */
.home-hero__chips {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-hero__chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    background: #f4f6f9;
    border: 1px solid #e2e8f0;
    color: var(--ap-muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.home-hero__chip:hover,
.home-hero__chip:focus {
    background: var(--ap-brand-magenta-l);
    border-color: var(--ap-primary);
    color: var(--ap-primary);
    text-decoration: none;
}

/* DECORATIVE PHARMACY MARK */
.home-hero__decor {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.home-hero__decor svg {
    width: 100%;
    max-width: 580px;
    height: auto;
    display: block;
}

/* PHOTO MEDIA (when image set) */
.home-hero__media {
    position: relative;
    z-index: 2;
    margin: 0;
    border-radius: var(--ap-radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 50px -20px rgba(15, 22, 41, .25), 0 8px 16px -8px rgba(15, 22, 41, .1);
    aspect-ratio: 4 / 3;
    max-height: min(460px, 56vh);
    border: 1px solid #edf0f5;
}

.home-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 980px) {
    .home-hero__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .home-hero__copy {
        max-width: 640px;
        margin: 0 auto;
        text-align: left;
    }

    /* Prawa kolumna (zaufanie) ląduje POD wyszukiwarką, wyrównana do treści. */
    .home-hero__aside {
        max-width: 640px;
        margin: 0 auto;
        width: 100%;
    }

    .home-hero__decor {
        max-width: 380px;
        margin: 0 auto;
    }

    .home-hero--has-image .home-hero__media {
        max-width: 640px;
        margin: 0 auto;
        width: 100%;
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 640px) {
    /* Kolejność na mobile: zakładki SKLEJONE z paskiem → tagi → „czynne teraz". */
    .hero-finder { display: flex; flex-direction: column; }
    .hero-finder__tabs { order: 1; }
    .hero-finder__panel.is-active { order: 2; }
    .hero-finder .home-hero__chips { order: 3; }
    .hero-finder__near { order: 4; }
    .hero-finder__geo-note { order: 5; }
    .hero-finder__status { order: 6; }

    .hero-finder__tab { padding: 12px 8px; }

    /* Pola składają się w pion — pole szukania zawsze nad zgięciem. */
    .hero-finder__form {
        flex-wrap: wrap;
        gap: 8px;
    }
    .hero-combo {
        flex: 1 1 100%;
        order: 1;
        border-radius: 10px;
        background: var(--ap-surface-2);
    }
    .hero-finder__select-wrap {
        flex: 1 1 100%;
        order: 2;
    }
    .hero-finder__submit {
        order: 3;
        width: 100%;
        justify-content: center;
        height: 50px;
    }

    /* Na telefonie pilność częstsza → „czynne teraz" pierwszoplanowe. */
    .hero-finder__near {
        width: 100%;
        justify-content: center;
        margin-top: 0;
        margin-bottom: 12px;
        padding: 13px 18px;
        background: var(--ap-accent);
        color: #ffffff;
    }

    .home-hero__decor {
        max-width: 280px;
    }
}

/* ============================================================
   3. VISUAL BAND (optional strip under hero)
   ============================================================ */
.home-visual-band {
    min-height: clamp(280px, 34vw, 440px);
    color: #fff;
    overflow: hidden;
}

.home-visual-band__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.home-visual-band__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-visual-band__scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 9, 25, .82) 0%, rgba(10, 9, 25, .5) 46%, rgba(10, 9, 25, .28) 100%),
        radial-gradient(80% 120% at 95% 10%, rgba(0, 179, 176, .24) 0%, transparent 52%),
        radial-gradient(80% 100% at 5% 80%, rgba(230, 0, 126, .24) 0%, transparent 56%);
}

.home-visual-band__inner {
    position: relative;
    z-index: 1;
    min-height: inherit;
    display: grid;
    align-items: center;
    padding-top: clamp(44px, 6vw, 72px);
    padding-bottom: clamp(44px, 6vw, 72px);
}

.home-visual-band__content {
    max-width: min(70ch, 58%);
}

.home-visual-band .home-visual-band__title,
body.home .home-visual-band__title {
    margin: 0 0 14px;
    font-family: var(--ap-font-display);
    font-size: clamp(28px, 4vw, 54px);
    line-height: 1.04;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: #ffffff;
    text-wrap: balance;
}

.home-visual-band__text {
    margin: 0;
    font-size: clamp(15px, 1.35vw, 18px);
    line-height: 1.65;
    color: rgba(255, 255, 255, .9);
}

.home-visual-band__text p:last-child {
    margin-bottom: 0;
}

.home-visual-band__cta {
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    background: var(--ap-g-brand);
    box-shadow: var(--ap-shadow-brand);
    transition: transform .2s ease, box-shadow .2s ease;
}

.home-visual-band__cta:hover,
.home-visual-band__cta:focus {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px -8px rgba(230, 0, 126, .6);
    color: #fff;
}

@media (max-width: 900px) {
    .home-visual-band__content {
        max-width: min(72ch, 100%);
    }

    .home-visual-band__scrim {
        background:
            linear-gradient(180deg, rgba(10, 9, 25, .72) 0%, rgba(10, 9, 25, .58) 45%, rgba(10, 9, 25, .74) 100%),
            radial-gradient(70% 100% at 90% 12%, rgba(0, 179, 176, .22) 0%, transparent 56%),
            radial-gradient(70% 100% at 12% 88%, rgba(230, 0, 126, .24) 0%, transparent 58%);
    }
}

@media (max-width: 640px) {
    .home-visual-band {
        min-height: 260px;
    }

    .home-visual-band__title {
        font-size: clamp(24px, 8vw, 34px);
    }

    .home-visual-band__cta {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   4. AD BAR
   ============================================================ */
.home-ad-bar {
    position: relative;
    background: var(--ap-g-brand);
    color: #fff;
    margin-top: -1px;
    z-index: 1;
}

.home-ad-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
}

.home-ad-bar__text {
    margin: 0;
    font-size: 14.5px;
    flex: 1 1 300px;
    opacity: .95;
}

.home-ad-bar__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background .15s ease, transform .15s ease;
}

.home-ad-bar__cta:hover,
.home-ad-bar__cta:focus {
    background: rgba(255, 255, 255, .28);
    color: #fff;
    transform: translateY(-1px);
}

/* ============================================================
   4. STATS — bento grid with icons + photo slot on featured
   ============================================================ */
.home-stats {
    padding: clamp(72px, 10vw, 120px) 0;
    background: var(--ap-surface);
}

/* ---- Zdjęcie w tle pojedynczego kafelka (edytowalne z ustawień) ----
   Każdy z pierwszych 3 kafli może mieć własne zdjęcie, przyciemnione nakładką
   (siła sterowana z panelu) — treść zawsze czytelna, tekst jasny. */
.home-stats__item.home-stats__item--photo {
    background-color: #0f1629;
    background-image:
        linear-gradient(
            135deg,
            rgba(15, 22, 41, var(--tile-overlay, 0.75)) 0%,
            rgba(28, 43, 77, calc(var(--tile-overlay, 0.75) - 0.1)) 100%
        ),
        var(--tile-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-color: transparent;
    color: #fff;
}

/* Featured ze zdjęciem: stłum kolorową poświatę, by fotografia była widoczna. */
.home-stats__item--featured.home-stats__item--photo::before {
    opacity: 0.45;
}

.home-stats__item--photo .home-stats__icon {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.home-stats__item--photo .home-stats__value {
    background: linear-gradient(135deg, #ffffff 0%, #ffd3ea 50%, #9decea 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-stats__item--photo .home-stats__label {
    color: rgba(255, 255, 255, 0.85);
}

/* Na zdjęciu wygaszamy dekoracyjną poświatę hover (czytelność). */
.home-stats__item--photo .home-stats__glow {
    background: radial-gradient(60% 60% at 80% 10%, rgba(255, 255, 255, 0.10) 0%, transparent 60%);
}

.home-stats__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.home-stats__eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1.4px;
    font-weight: 600;
    color: var(--ap-primary);
    padding: 6px 12px;
    background: #fce6f1;
    border-radius: 999px;
    margin: 0 0 16px;
}

.home-stats .home-stats__title,
body.home .home-stats__title {
    font-family: var(--ap-font-display);
    font-size: clamp(26px, 3.4vw, 42px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--ap-ink);
    text-wrap: balance;
}

.home-stats__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(160px, auto);
}

.home-stats__item {
    position: relative;
    padding: 26px;
    border-radius: var(--ap-radius-lg);
    background: var(--ap-surface-2);
    border: 1px solid var(--ap-border);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    gap: 16px;
}

.home-stats__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-stats__item:hover {
    transform: translateY(-4px);
    box-shadow: var(--ap-shadow-md);
    border-color: var(--ap-border-2);
}

.home-stats__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 60% at 80% 10%, rgba(230, 0, 126, .12) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}

.home-stats__item:hover .home-stats__glow { opacity: 1; }

/* Bento asymmetry */
.home-stats__item:nth-child(2),
.home-stats__item:nth-child(3) { grid-column: span 6; }

/* FEATURED — illustrative left side with image slot */
.home-stats__item--featured {
    grid-column: span 6;
    grid-row: span 2;
    background: var(--ap-g-dark);
    color: #fff;
    border-color: transparent;
    min-height: 280px;
    padding: 36px 36px;
    justify-content: space-between;
}

.home-stats__item--featured::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 60% at 15% 20%, rgba(230, 0, 126, .55) 0%, transparent 55%),
        radial-gradient(55% 55% at 90% 85%, rgba(0, 179, 176, .55) 0%, transparent 55%);
    opacity: .9;
    pointer-events: none;
}

.home-stats__item--featured::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    mix-blend-mode: overlay;
    opacity: .6;
    pointer-events: none;
}

/* Icon slot — decorative per-stat */
.home-stats__icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fff;
    color: var(--ap-primary);
    box-shadow: 0 2px 8px rgba(14, 17, 38, .08);
    margin-bottom: auto;
    flex: 0 0 auto;
}

.home-stats__item:nth-child(3n+1) .home-stats__icon { color: var(--ap-brand-magenta); }
.home-stats__item:nth-child(3n+2) .home-stats__icon { color: var(--ap-brand-teal-2); }
.home-stats__item:nth-child(3n)   .home-stats__icon { color: #7b28a8; }

.home-stats__item--featured .home-stats__icon {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 56px;
    height: 56px;
}

.home-stats__icon svg { width: 26px; height: 26px; }
.home-stats__item--featured .home-stats__icon svg { width: 30px; height: 30px; }

.home-stats__value {
    display: block;
    font-family: var(--ap-font-display);
    font-size: clamp(36px, 4.2vw, 58px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, var(--ap-brand-magenta) 0%, var(--ap-brand-teal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    z-index: 1;
}

.home-stats__item--featured .home-stats__value {
    font-size: clamp(52px, 6.2vw, 92px);
    background: linear-gradient(135deg, #ffffff 0%, #ffd3ea 50%, #9decea 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-stats__label {
    display: block;
    font-size: 14.5px;
    color: var(--ap-ink-soft);
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.home-stats__item--featured .home-stats__label {
    color: rgba(255, 255, 255, .88);
    font-size: 17px;
    max-width: 26ch;
    font-weight: 500;
}

@media (max-width: 900px) {
    .home-stats__item { grid-column: span 6; }
    .home-stats__item:nth-child(2),
    .home-stats__item:nth-child(3) { grid-column: span 6; }
    .home-stats__item--featured { grid-column: span 12; grid-row: auto; }
}

@media (max-width: 520px) {
    .home-stats__item,
    .home-stats__item:nth-child(2),
    .home-stats__item:nth-child(3) { grid-column: span 12; }
}

/* ============================================================
   5. SERVICES — asymmetric bento cards
   ============================================================ */
.home-services {
    padding: clamp(72px, 10vw, 120px) 0;
    background: var(--ap-surface-2);
}

.home-services__header {
    max-width: 600px;
    margin: 0 auto 52px;
    text-align: center;
}

.home-services__eyebrow {
    display: block;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 700;
    color: var(--ap-primary);
    margin: 0 0 12px;
}

.home-services .home-services__title,
body.home .home-services__title {
    font-family: var(--ap-font-display);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    color: var(--ap-ink);
    text-wrap: balance;
}

.home-services__lead {
    font-size: 16px;
    color: var(--ap-muted);
    margin: 0;
    line-height: 1.6;
}

.home-services__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.home-services__card {
    position: relative;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.home-services__card:hover,
.home-services__card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .08);
    border-color: var(--ap-primary);
}

/* Even cards get teal accent (alternating color scheme like the reference). */
.home-services__card:nth-child(even):hover,
.home-services__card:nth-child(even):focus-within {
    border-color: var(--ap-accent);
}

.home-services__card-link {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px 28px 32px;
    text-decoration: none;
    color: var(--ap-ink);
    height: 100%;
}

.home-services__card-link:hover,
.home-services__card-link:focus {
    text-decoration: none;
    color: var(--ap-ink);
}

.home-services__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--ap-brand-magenta-l);
    color: var(--ap-primary);
    margin: 0 0 6px;
    flex: 0 0 auto;
}

.home-services__card:nth-child(even) .home-services__icon {
    background: var(--ap-brand-teal-l);
    color: var(--ap-brand-teal-2);
}

.home-services__icon svg {
    width: 28px;
    height: 28px;
}

.home-services__name {
    font-family: var(--ap-font-display);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--ap-ink);
}

.home-services__desc {
    font-size: 14px;
    color: var(--ap-muted);
    margin: 0;
    line-height: 1.65;
}

.home-services__more {
    margin-top: auto;
    padding-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ap-primary);
}

.home-services__card:nth-child(even) .home-services__more {
    color: var(--ap-brand-teal-2);
}

.home-services__more svg { transition: transform .2s ease; width: 14px; height: 14px; }
.home-services__card:hover .home-services__more svg { transform: translateX(3px); }

.home-services__cta-wrap {
    margin-top: 40px;
    text-align: center;
}

.home-services__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: var(--ap-primary);
    color: #ffffff;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    box-shadow: var(--ap-shadow-brand);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.home-services__cta:hover,
.home-services__cta:focus {
    transform: translateY(-2px);
    background: var(--ap-primary-2);
    box-shadow: 0 10px 28px rgba(214, 0, 110, .5);
    color: #ffffff;
    text-decoration: none;
}

/* ============================================================
   6. OPIEKA — gradient visual panel + checklist content
   ============================================================ */
.home-opieka {
    padding: clamp(72px, 10vw, 120px) 0;
    background: #ffffff;
    overflow: visible;
}

.home-opieka__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(36px, 5vw, 64px);
    align-items: center;
}

/* LEFT VISUAL */
.home-opieka__visual {
    position: relative;
}

.home-opieka__panel {
    position: relative;
    background: linear-gradient(135deg, #fdf0f6 0%, #f0fdfb 100%);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-opieka__media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--ap-brand-magenta-l), var(--ap-brand-teal-l));
    aspect-ratio: 16 / 11;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6);
}

.home-opieka__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-opieka__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ap-primary);
}

.home-opieka__image-placeholder svg {
    width: 80%;
    max-width: 320px;
    height: auto;
}

/* INFO CARDS */
.home-opieka__cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-opieka__card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    border: 1px solid rgba(255, 255, 255, .8);
}

.home-opieka__card-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home-opieka__card--magenta .home-opieka__card-icon {
    background: var(--ap-brand-magenta-l);
    color: var(--ap-primary);
}

.home-opieka__card--teal .home-opieka__card-icon {
    background: var(--ap-brand-teal-l);
    color: var(--ap-brand-teal-2);
}

.home-opieka__card-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.home-opieka__card-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--ap-ink);
    line-height: 1.3;
}

.home-opieka__card-desc {
    font-size: 12px;
    color: var(--ap-muted);
    line-height: 1.5;
}

/* FLOATING BADGE */
.home-opieka__badge {
    position: absolute;
    top: -20px;
    right: -20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ap-brand-teal);
    color: #ffffff;
    border-radius: 16px;
    padding: 12px 18px;
    box-shadow: 0 8px 24px rgba(15, 179, 160, .4);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    max-width: 180px;
    z-index: 2;
    animation: home-opieka-float 3s ease infinite;
}

.home-opieka__badge-icon {
    flex: 0 0 auto;
    color: #ffffff;
}

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

/* RIGHT CONTENT */
.home-opieka__content {
    min-width: 0;
}

.home-opieka__eyebrow {
    display: block;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 700;
    color: var(--ap-brand-teal-2);
    margin: 0 0 12px;
}

.home-opieka .home-opieka__title,
body.home .home-opieka__title {
    font-family: var(--ap-font-display);
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    color: var(--ap-ink);
    text-wrap: balance;
}

.home-opieka__text {
    font-size: 16px;
    color: var(--ap-muted);
    line-height: 1.8;
    margin: 0 0 20px;
}

.home-opieka__text p { margin: 0 0 16px; }
.home-opieka__text p:last-child { margin: 0; }

/* CHECKLIST */
.home-opieka__checklist {
    list-style: none;
    margin: 12px 0 32px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home-opieka__checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ap-ink);
}

.home-opieka__check {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ap-brand-teal-l);
    color: var(--ap-brand-teal-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* CTA ROW */
.home-opieka__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.home-opieka__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.home-opieka__cta--primary {
    background: var(--ap-ink);
    color: #ffffff;
}

.home-opieka__cta--primary:hover,
.home-opieka__cta--primary:focus {
    background: var(--ap-primary);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(214, 0, 110, .35);
}

.home-opieka__cta--ghost {
    background: transparent;
    color: var(--ap-brand-teal-2);
    border: 2px solid var(--ap-brand-teal);
    padding: 11px 26px;
}

.home-opieka__cta--ghost:hover,
.home-opieka__cta--ghost:focus {
    background: var(--ap-brand-teal);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

@media (max-width: 980px) {
    .home-opieka__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .home-opieka__visual {
        order: -1;
        max-width: 560px;
        margin: 0 auto;
        width: 100%;
    }
    .home-opieka__badge {
        max-width: 160px;
        font-size: 11px;
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    .home-opieka__panel {
        padding: 24px;
    }
    .home-opieka__actions {
        flex-direction: column;
    }
    .home-opieka__cta {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   7. VACCINATIONS BAND
   ============================================================ */
.home-vaccinations {
    padding: clamp(64px, 9vw, 96px) 0;
    background: linear-gradient(135deg, #0f1629 0%, #1c2b4d 100%);
    color: #fff;
}

.home-vaccinations__inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}

.home-vaccinations__eyebrow {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--ap-accent);
}

.home-vaccinations .home-vaccinations__title,
body.home .home-vaccinations__title {
    margin: 0 0 14px;
    font-family: var(--ap-font-display);
    font-size: clamp(28px, 3.8vw, 44px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.home-vaccinations__lead {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    line-height: 1.7;
    max-width: 52ch;
}

.home-vaccinations__cta {
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, var(--ap-accent), var(--ap-accent-2));
    box-shadow: var(--ap-shadow-teal);
}

.home-vaccinations__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-vaccinations__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .07);
    font-size: 13px;
    color: #dbe6ff;
}

.home-vaccinations__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ap-accent);
}

@media (max-width: 900px) {
    .home-vaccinations__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* ============================================================
   8. MAP SECTION — dark stats panel + city tile list with photos
   ============================================================ */
.home-map {
    padding: clamp(72px, 10vw, 112px) 0;
    background: var(--ap-surface-2);
}

.home-map__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 52px;
}

.home-map__eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ap-primary);
}

.home-map .home-map__title,
body.home .home-map__title {
    margin: 0 0 12px;
    font-family: var(--ap-font-display);
    font-size: clamp(26px, 3.2vw, 40px);
    font-weight: 800;
    color: var(--ap-ink);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.home-map__lead {
    margin: 0;
    color: var(--ap-muted);
    font-size: 16px;
    line-height: 1.65;
}

.home-map__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

/* DARK STATS PANEL */
.home-map__panel {
    position: relative;
    background: var(--ap-ink);
    border-radius: 20px;
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 24px 60px -24px rgba(15, 22, 41, .25);
    isolation: isolate;
    min-height: 460px;
    display: flex;
}

.home-map__panel-decor,
.home-map__panel-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.home-map__panel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: .35;
}

.home-map__panel-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(15, 22, 41, .82) 0%, rgba(15, 22, 41, .65) 50%, rgba(13, 36, 64, .78) 100%),
        radial-gradient(80% 60% at 100% 0%, rgba(214, 0, 110, .25) 0%, transparent 60%),
        radial-gradient(60% 60% at 0% 100%, rgba(15, 179, 160, .2) 0%, transparent 60%);
}

.home-map__panel-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(12px);
    pointer-events: none;
}

.home-map__panel-glow--pink {
    top: -60px;
    right: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(214, 0, 110, .2) 0%, transparent 70%);
}

.home-map__panel-glow--teal {
    bottom: -40px;
    left: -40px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(15, 179, 160, .18) 0%, transparent 70%);
}

.home-map__panel-decor::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 32px 32px;
    background-position: 16px 16px;
    opacity: .4;
}

.home-map__panel-inner {
    position: relative;
    z-index: 1;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.home-map__panel-eyebrow {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
}

.home-map__stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.home-map__stat {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 16px 14px;
    text-align: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.home-map__stat-num {
    display: block;
    font-size: 30px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.home-map__stat-label {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, .5);
}

/* REGION LIST inside dark panel */
.home-map__regions {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-map__region {
    list-style: none;
}

.home-map__region-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
    font-size: 13px;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.home-map__region--magenta .home-map__region-dot {
    background: var(--ap-brand-magenta);
}

.home-map__region--teal .home-map__region-dot {
    background: var(--ap-brand-teal);
}

.home-map__region-dot {
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.home-map__region-name {
    font-weight: 600;
    color: rgba(255, 255, 255, .92);
    flex: 0 0 auto;
}

.home-map__region-cities {
    flex: 1 1 auto;
    min-width: 0;
    color: rgba(255, 255, 255, .4);
    font-size: 11px;
    font-weight: 400;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.home-map__region-count {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.home-map__region--magenta .home-map__region-count {
    color: var(--ap-brand-magenta);
    background: rgba(214, 0, 110, .15);
}

.home-map__region--teal .home-map__region-count {
    color: var(--ap-brand-teal);
    background: rgba(15, 179, 160, .15);
}

a.home-map__region-link:hover,
a.home-map__region-link:focus {
    background: rgba(214, 0, 110, .14);
    border-color: rgba(214, 0, 110, .35);
    color: #ffffff;
    text-decoration: none;
}

.home-map__region--teal a.home-map__region-link:hover,
.home-map__region--teal a.home-map__region-link:focus {
    background: rgba(15, 179, 160, .14);
    border-color: rgba(15, 179, 160, .35);
}

/* CITIES LIST */
.home-map__cities-wrap {
    display: flex;
    flex-direction: column;
}

.home-map__cities {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex: 1 1 auto;
    align-content: start;
}

.home-map__city {
    list-style: none;
}

.home-map__city-link {
    position: relative;
    display: block;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    color: var(--ap-ink);
    text-decoration: none;
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
    min-height: 52px;
}

.home-map__city-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: .8;
    transition: opacity .25s ease, transform .35s ease;
    z-index: 0;
}

.home-map__city-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 22, 41, .55) 0%, rgba(15, 22, 41, .25) 100%);
    z-index: 1;
}

.home-map__city-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
}

.home-map__city--has-image .home-map__city-content {
    color: #ffffff;
}

.home-map__city--has-image .home-map__city-name { color: #ffffff; }
.home-map__city--has-image .home-map__city-count {
    color: #ffffff;
    background: rgba(255, 255, 255, .2);
}

.home-map__city-link:hover,
.home-map__city-link:focus {
    transform: translateY(-2px);
    text-decoration: none;
    border-color: var(--ap-primary);
    box-shadow: 0 12px 28px -12px rgba(214, 0, 110, .4);
    background: var(--ap-brand-magenta-l);
    color: var(--ap-ink);
}

.home-map__city--has-image .home-map__city-link:hover .home-map__city-bg,
.home-map__city--has-image .home-map__city-link:focus .home-map__city-bg {
    transform: scale(1.05);
    opacity: .9;
}

.home-map__city--has-image .home-map__city-link:hover,
.home-map__city--has-image .home-map__city-link:focus {
    background: transparent;
    color: #ffffff;
}

.home-map__city-pin {
    flex: 0 0 auto;
    color: var(--ap-primary);
    display: inline-flex;
    align-items: center;
}

.home-map__city--has-image .home-map__city-pin { color: #ffffff; }

.home-map__city-name {
    flex: 1 1 auto;
    font-weight: 600;
    color: var(--ap-ink);
    font-size: 14px;
    min-width: 0;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.home-map__city-count {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    color: var(--ap-brand-teal-2);
    background: var(--ap-brand-teal-l);
    padding: 3px 9px;
    border-radius: 10px;
    white-space: nowrap;
}

.home-map__empty {
    margin: 0;
    color: var(--ap-muted);
    font-size: 14px;
}

.home-map__cta {
    margin-top: 16px;
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 15px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    background: var(--ap-ink);
    border: 0;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.home-map__cta:hover,
.home-map__cta:focus {
    color: #ffffff;
    transform: translateY(-1px);
    text-decoration: none;
    background: var(--ap-primary);
    box-shadow: 0 10px 28px rgba(214, 0, 110, .35);
}

@media (max-width: 900px) {
    .home-map__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .home-map__panel {
        min-height: 0;
    }

    .home-map__panel-inner {
        padding: 28px 24px;
    }
}

@media (max-width: 560px) {
    .home-map__cities {
        grid-template-columns: 1fr;
    }

    .home-map__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .home-map__stat {
        padding: 12px 8px;
    }

    .home-map__stat-num {
        font-size: 22px;
    }

    .home-map__region-link {
        flex-wrap: wrap;
    }

    .home-map__region-cities {
        flex-basis: 100%;
        order: 3;
        margin-left: 16px;
    }
}

/* ============================================================
   9. NEWS CAROUSEL
   ============================================================ */
.home-news {
    padding: clamp(72px, 10vw, 120px) 0;
    background: linear-gradient(180deg, var(--ap-surface) 0%, var(--ap-surface-2) 100%);
    overflow: hidden;
}

.home-news__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 36px;
}

.home-news__header-text {
    flex: 1 1 auto;
    min-width: 220px;
}

.home-news__eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1.4px;
    font-weight: 600;
    color: var(--ap-primary);
    padding: 6px 12px;
    background: #fce6f1;
    border-radius: 999px;
    margin: 0 0 8px;
}

.home-news .home-news__title,
body.home .home-news__title {
    font-family: var(--ap-font-display);
    font-size: clamp(24px, 2.8vw, 36px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--ap-ink);
}

.home-news__actions {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.home-news__all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1px solid var(--ap-border-2);
    border-radius: 999px;
    color: var(--ap-ink);
    background: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.home-news__all:hover,
.home-news__all:focus {
    background: var(--ap-ink);
    color: #fff;
    border-color: var(--ap-ink);
    transform: translateY(-1px);
}

.home-news__all svg { transition: transform .2s ease; }
.home-news__all:hover svg { transform: translateX(3px); }

.home-news__arrows {
    display: inline-flex;
    gap: 8px;
}

.home-news__arrow {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--ap-border-2);
    background: #fff;
    color: var(--ap-ink);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}

.home-news__arrow:hover:not(:disabled),
.home-news__arrow:focus:not(:disabled) {
    background: var(--ap-g-brand);
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
}

.home-news__arrow:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.home-news__arrow svg { width: 18px; height: 18px; }

/* Carousel track */
.home-news__carousel {
    position: relative;
}

.home-news__track {
    list-style: none;
    margin: 0;
    padding: 10px 4px 24px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 2 * 22px) / 3); /* 3 visible on desktop */
    gap: 22px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.home-news__track::-webkit-scrollbar { display: none; }

.home-news__card {
    scroll-snap-align: start;
    background: #fff;
    border-radius: var(--ap-radius-lg);
    overflow: hidden;
    border: 1px solid var(--ap-border);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.home-news__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ap-shadow-md);
    border-color: var(--ap-border-2);
}

.home-news__card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.home-news__card-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--ap-surface-3);
    position: relative;
}

.home-news__card-media--placeholder {
    background: var(--ap-g-brand);
    opacity: .85;
}

.home-news__card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.home-news__card:hover .home-news__card-image {
    transform: scale(1.04);
}

.home-news__card-body {
    padding: 22px 24px 26px;
}

.home-news__card-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 8px;
    background: #fce6f1;
    color: var(--ap-primary);
    margin-bottom: 14px;
}

.home-news__card-title {
    font-family: var(--ap-font-display);
    font-size: 19px;
    letter-spacing: -0.01em;
    line-height: 1.35;
    margin: 0 0 12px;
    color: var(--ap-ink);
}

.home-news__card-date {
    font-size: 13px;
    color: var(--ap-muted);
    font-variant-numeric: tabular-nums;
}

.home-news__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.home-news__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    background: var(--ap-border-2);
    padding: 0;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

.home-news__dot[aria-current="true"] {
    background: var(--ap-primary);
    transform: scale(1.25);
}

@media (max-width: 1024px) {
    .home-news__track { grid-auto-columns: calc((100% - 22px) / 2); }
}

@media (max-width: 640px) {
    .home-news__track { grid-auto-columns: 82%; }
    .home-news__arrows { display: none; }
}

/* ============================================================
   10. CLOSING CTA
   ============================================================ */
.home-cta {
    background: #fff;
    padding: 0 0 clamp(64px, 9vw, 90px);
}

.home-cta__box {
    position: relative;
    background:
        radial-gradient(60% 90% at 100% 0%, rgba(214, 0, 110, .22) 0%, transparent 60%),
        radial-gradient(50% 80% at 30% 100%, rgba(15, 179, 160, .18) 0%, transparent 65%),
        linear-gradient(135deg, #0f1629 0%, #1e2d50 60%, #0d2440 100%);
    border-radius: 28px;
    padding: clamp(28px, 5vw, 56px) clamp(28px, 5vw, 64px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    overflow: hidden;
    box-shadow: 0 24px 60px -12px rgba(15, 22, 41, .35);
}

.home-cta__copy {
    flex: 1 1 320px;
    min-width: 0;
}

.home-cta .home-cta__title,
body.home .home-cta__title {
    margin: 0 0 10px;
    color: #ffffff;
    font-family: var(--ap-font-display);
    font-size: clamp(28px, 3.8vw, 44px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.home-cta__lead {
    margin: 0;
    color: rgba(255, 255, 255, .75);
    line-height: 1.65;
    max-width: 52ch;
}

.home-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.home-cta__btn--primary {
    background: var(--ap-primary);
    color: #ffffff;
    box-shadow: var(--ap-shadow-brand);
}

.home-cta__btn--primary:hover,
.home-cta__btn--primary:focus {
    color: #ffffff;
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(214, 0, 110, .5);
}

.home-cta__btn--ghost {
    background: rgba(255, 255, 255, .1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, .2);
}

.home-cta__btn--ghost:hover,
.home-cta__btn--ghost:focus {
    background: rgba(255, 255, 255, .2);
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 960px) {
    .home-vaccinations__inner,
    .home-map__grid {
        grid-template-columns: 1fr;
    }

    .home-cta__box {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .home-map__cities {
        grid-template-columns: 1fr;
    }

    .home-cta__actions,
    .home-cta__btn {
        width: 100%;
    }
}

/* ============================================================
   11. ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .home-hero__eyebrow-dot,
    .home-opieka__badge,
    .hero-combo__geo-spin,
    .hero-finder__near-spin { animation: none !important; }
    
    .home-services__card,
    .home-stats__item,
    .home-news__card,
    .home-visual-band__cta,
    .home-opieka__cta,
    .hero-finder__submit,
    .hero-finder__near,
    .hero-finder__tab,
    .home-news__track { transition: none !important; scroll-behavior: auto !important; }
}
