/**
 * 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 (locked to the reference template) */
    --ap-brand-magenta:   #e01a72;
    --ap-brand-magenta-2: #b5105a;
    --ap-brand-magenta-l: #f5d0e5;
    --ap-brand-teal:      #2dc4b0;
    --ap-brand-teal-2:    #1d9e8c;
    --ap-brand-teal-l:    #d0f5f0;

    --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:        #0f1629;
    --ap-ink-soft:   #1e2d50;
    --ap-muted:      #64748b;
    --ap-muted-soft: #94a3b8;
    --ap-surface:    #ffffff;
    --ap-surface-2:  #fafbfc;
    --ap-surface-3:  #f1f5f9;
    --ap-border:     #e2e8f0;
    --ap-border-2:   #cbd5e1;

    /* GRADIENTS */
    --ap-g-brand:    linear-gradient(135deg, #e01a72 0%, #2dc4b0 100%);
    --ap-g-brand-s:  linear-gradient(135deg, #e01a72 0%, #b5105a 50%, #2dc4b0 100%);
    --ap-g-dark:     linear-gradient(135deg, #0f1629 0%, #1e2d50 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(224, 26, 114, .4);
    --ap-shadow-teal:  0 6px 20px rgba(45, 196, 176, .4);

    --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 we already cap content width to 1240. */
.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 which caps at 1240. */
.topbar,
.header-main {
    width: 100%;
}

.topbar > .container,
.header-main > .container {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(20px, 4vw, 48px);
    padding-right: clamp(20px, 4vw, 48px);
    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: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(20px, 4vw, 48px);
    padding-right: clamp(20px, 4vw, 48px);
    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(224, 26, 114, .06) 0%, transparent 65%);
}

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

.home-hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
    gap: clamp(32px, 5vw, 72px);
    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(45, 196, 176, .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(45, 196, 176, .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);
}

/* SEARCH — single white bar, magenta button on the right */
.home-hero__search-wrap {
    position: relative;
    z-index: 30;
    max-width: 560px;
}

.home-hero__form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 0 0 1px #e2e8f0, 0 4px 20px rgba(0, 0, 0, .06);
    transition: box-shadow .2s ease, transform .2s ease;
    overflow: visible;
}

.home-hero__search-wrap.is-open .home-hero__form,
.home-hero__form:focus-within {
    box-shadow: 0 0 0 2px var(--ap-primary), 0 8px 32px rgba(0, 0, 0, .1);
    transform: translateY(-1px);
}

.home-hero__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    color: #adb5bd;
    flex: 0 0 auto;
}

.home-hero__form:focus-within .home-hero__icon {
    color: var(--ap-primary);
}

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

.home-hero__input::placeholder { color: #8d97a5; }
.home-hero__input::-webkit-search-cancel-button { display: none; }

.home-hero__submit {
    flex: 0 0 auto;
    margin: 6px;
    height: 42px;
    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: 6px;
    box-shadow: 0 4px 12px rgba(224, 26, 114, .35);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    white-space: nowrap;
}

.home-hero__submit:hover,
.home-hero__submit:focus {
    transform: scale(1.03);
    background: var(--ap-primary-2);
    box-shadow: 0 6px 18px rgba(224, 26, 114, .45);
}

/* Results dropdown — pink hover, light theme */
.home-hero__results-wrap {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
    overflow: hidden;
    z-index: 1000;
    text-align: left;
    color: var(--ap-ink);
}

.home-hero__results {
    list-style: none;
    margin: 0;
    padding: 6px;
    max-height: 440px;
    overflow-y: auto;
}

.home-hero__result { border-radius: 10px; }
.home-hero__result.is-active,
.home-hero__result:hover { background: #fef3f9; }

.home-hero__result-link {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    grid-template-areas:
        "type label count"
        "type meta count";
    gap: 2px 14px;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
    align-items: center;
}

.home-hero__result-type {
    grid-area: type;
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    padding: 5px 10px;
    border-radius: 8px;
    text-align: center;
    background: var(--ap-brand-magenta-l);
    color: var(--ap-brand-magenta-2);
}

.home-hero__result-type--pharmacy    { background: var(--ap-brand-teal-l); color: var(--ap-brand-teal-2); }
.home-hero__result-type--city        { background: var(--ap-brand-magenta-l); color: var(--ap-brand-magenta-2); }
.home-hero__result-type--region      { background: #efe4f9; color: #6525b5; }
.home-hero__result-type--service     { background: var(--ap-brand-teal-l); color: var(--ap-brand-teal-2); }
.home-hero__result-type--vaccination { background: #fde8e8; color: #b81d1d; }

.home-hero__result-label {
    grid-area: label;
    font-weight: 600;
    font-size: 14px;
    color: var(--ap-ink);
}

.home-hero__result-label mark {
    background: linear-gradient(135deg, #ffe5f1, #ffc8df);
    color: inherit;
    padding: 0 3px;
    border-radius: 4px;
}

.home-hero__result-meta { grid-area: meta; font-size: 12px; color: var(--ap-muted); }
.home-hero__result-count { grid-area: count; font-size: 12px; color: var(--ap-muted); font-variant-numeric: tabular-nums; }

.home-hero__empty { padding: 22px; text-align: center; color: var(--ap-muted); }
.home-hero__empty a { color: var(--ap-primary); font-weight: 600; }

/* 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;
    }

    .home-hero__decor {
        order: -1;
        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) {
    .home-hero__form {
        flex-wrap: wrap;
        padding: 4px;
    }

    .home-hero__icon {
        padding: 0 12px;
    }

    .home-hero__input {
        flex: 1 1 auto;
        height: 48px;
    }

    .home-hero__submit {
        width: 100%;
        justify-content: center;
        margin-top: 0;
        margin-bottom: 0;
    }

    .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);
}

.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(224, 26, 114, .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(45, 196, 176, .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(224, 26, 114, .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(224, 26, 114, .25) 0%, transparent 60%),
        radial-gradient(60% 60% at 0% 100%, rgba(45, 196, 176, .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(224, 26, 114, .2) 0%, transparent 70%);
}

.home-map__panel-glow--teal {
    bottom: -40px;
    left: -40px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(45, 196, 176, .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(224, 26, 114, .15);
}

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

a.home-map__region-link:hover,
a.home-map__region-link:focus {
    background: rgba(224, 26, 114, .14);
    border-color: rgba(224, 26, 114, .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(45, 196, 176, .14);
    border-color: rgba(45, 196, 176, .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(224, 26, 114, .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(224, 26, 114, .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(224, 26, 114, .22) 0%, transparent 60%),
        radial-gradient(50% 80% at 30% 100%, rgba(45, 196, 176, .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(224, 26, 114, .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 { animation: none !important; }
    
    .home-services__card,
    .home-stats__item,
    .home-news__card,
    .home-visual-band__cta,
    .home-opieka__cta,
    .home-hero__submit,
    .home-news__track { transition: none !important; scroll-behavior: auto !important; }
}
