/* Fonty „Kronika Ogrodu” trzymane lokalnie (Google Fonts, licencja SIL OFL), pobrane 2026-09-30.
   Tylko zestawy latin i latin-ext (polskie znaki są w latin-ext). Fraunces, Inter i Raleway (nagłówki strony głównej, pobrany 2026-11-01) to fonty zmienne: zakres grubości w jednym pliku. */

/* latin-ext */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/caveat-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/caveat-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url(../fonts/fraunces-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url(../fonts/fraunces-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/fraunces-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/fraunces-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/inter-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(../fonts/raleway-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(../fonts/raleway-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Zastępczy font o zbliżonych wymiarach (Arial dopasowany do Raleway), żeby podmiana po wczytaniu nie przesuwała tekstu */
@font-face {
  font-family: 'Raleway Fallback';
  src: local('Arial');
  size-adjust: 104%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

/* Kolejność warstw całego CSS: późniejsza warstwa wygrywa z wcześniejszą niezależnie od szczegółowości selektorów.
   Style spoza warstw (np. szybka poprawka na końcu pliku bez @layer) wygrywają ze wszystkimi. */
@layer tokens, base, components, layout, pages;

/* Tokeny „Kronika Ogrodu” (makiety, wersja z białym tłem) */
@layer tokens {
    :root {
        /* Powierzchnie */
        --paper: #ffffff;           /* tło strony */
        --card: #ffffff;            /* karty, paski, panele */
        --soft: #f6f8f4;            /* delikatne tło: hover, notatki, puste zdjęcie */
        --line: #e2e6df;            /* obramowania kart i separatory */
        --seg: #eef1ec;             /* tło przełącznika segmentowego */

        /* Tekst */
        --ink: #1f3a2a;             /* tekst główny */
        --ink-2: #3a4a3d;           /* nawigacja, przyciski segmentów */
        --muted: #5a5f57;           /* opisy, podpowiedzi */
        --placeholder: #7a7f76;

        /* Kolory marki */
        --leaf: #3f6b45;            /* główny: przyciski, linki, zaznaczenia */
        --leaf-dark: #34593a;
        --leaf-soft: #dce7d8;       /* aktywna zakładka, awatar */
        --forest: #2f5d3a;          /* logo */
        --terracotta: #a65a31;      /* wezwanie do działania, gwiazdka pola wymaganego */
        --terracotta-dark: #8f4c28;
        --danger: #a8322a;
        --danger-soft: #fbeeed;

        /* Pola formularzy */
        --field-border: #c5d0c0;
        --btn-border: #a9bfa5;      /* obrys przycisku drugorzędnego */

        /* Etykiety (.tag): tło i tekst */
        --t-sage: #e3ebdf;    --t-sage-ink: #1f3a2a;
        --t-flower: #f3d9d9;  --t-flower-ink: #6e2f2f;
        --t-autumn: #f1e1ba;  --t-autumn-ink: #5e4410;
        --t-earth: #f0d9ca;   --t-earth-ink: #6b3317;
        --t-frost: #e3e8ee;   --t-frost-ink: #2f3e4e;

        /* Typografia */
        --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
        --font-serif: 'Fraunces', Georgia, serif;
        --font-hand: 'Caveat', cursive;

        /* Kształt */
        --radius: 14px;             /* karty */
        --radius-sm: 10px;          /* przyciski, pola */
        --shadow: 0 1px 2px rgba(31, 58, 42, .05);
        --shadow-pop: 0 4px 16px rgba(31, 58, 42, .12);   /* menu, okienka nad treścią */
        --control-h: 48px;          /* wysokość pól; w ciasnych miejscach (panel planu) nadpisywana na mniejszą */
        --btn-h: 44px;

        /* Dawne nazwy używane w style.css – wskazują na nowe tokeny, do wycofania przy przeglądzie ekranów */
        --bg: var(--soft);
        --surface: var(--card);
        --text: var(--ink);
        --border: var(--line);
        --accent: var(--leaf);
        --accent-hover: var(--leaf-dark);
        --accent-soft: var(--t-sage);
    }
}

/* Podstawa: elementy HTML bez klas (typografia, linki, pola formularzy) */
@layer base {
    *, *::before, *::after { box-sizing: border-box; }

    body {
        margin: 0;
        background: var(--paper);
        color: var(--ink);
        font: 16px/1.5 var(--font-sans);
        -webkit-font-smoothing: antialiased;
    }

    a { color: var(--leaf); }
    a:hover { color: var(--ink); }

    h1, h2, h3 {
        margin: 0 0 .4em;
        font-family: var(--font-serif);
        font-weight: 600;
        line-height: 1.2;
        letter-spacing: -.01em;
        color: var(--ink);
    }
    h1 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem); }   /* 28 px na telefonie, 38 px na komputerze */
    h2 { font-size: 1.3125rem; }                                  /* 21 px */
    h3 { font-size: 1.125rem; }

    :focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; }

    /* Pola formularzy: etykieta nad polem (label opakowuje pole) */
    label {
        display: flex;
        flex-direction: column;
        gap: 6px;
        font-size: .875rem;
        font-weight: 600;
        color: var(--ink);
    }
    label small, .field-note { font-size: .8125rem; font-weight: 400; line-height: 1.45; color: var(--muted); }

    input:not([type=checkbox], [type=radio], [type=range], [type=file], [type=color]), select, textarea {
        width: 100%;
        min-height: var(--control-h);
        padding: 0 14px;
        border: 1.5px solid var(--field-border);
        border-radius: var(--radius-sm);
        background-color: #fff;
        color: var(--ink);
        font: 400 1rem/1.4 var(--font-sans);
    }
    textarea { min-height: 96px; padding: 12px 14px; resize: vertical; }
    input::placeholder, textarea::placeholder { color: var(--placeholder); }
    input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--leaf); outline-offset: -1px; border-color: var(--leaf); }
    input:disabled, select:disabled, textarea:disabled { background-color: var(--soft); color: var(--muted); }

    /* Lista wyboru z własną strzałką (jak w makietach) */
    select {
        appearance: none;
        padding-right: 40px;
        background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
        background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
        background-size: 5px 5px;
        background-repeat: no-repeat;
    }

    input[type=file] { font: 400 .9375rem var(--font-sans); color: var(--muted); }
    input[type=file]::file-selector-button {
        min-height: 40px;
        margin-right: 12px;
        padding: 0 14px;
        border: 1.5px solid var(--btn-border);
        border-radius: var(--radius-sm);
        background: var(--card);
        color: var(--ink);
        font: 600 .875rem var(--font-sans);
        cursor: pointer;
    }
    input[type=checkbox], input[type=radio], input[type=range] { accent-color: var(--leaf); }
    fieldset { min-width: 0; }
    legend { font-size: .875rem; font-weight: 600; color: var(--ink); }
}

/* Komponenty z makiet „Kronika Ogrodu”, podpięte pod klasy aplikacji.
   Nazwy z makiet (.btn-secondary, .chip.on, .seg, .tag…) i dawne nazwy aplikacji (.chip.active, .mode-switch, .entry-tag…) dają to samo. */
@layer components {
    /* Karta */
    .card {
        margin-bottom: 20px;
        padding: 20px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--card);
        box-shadow: var(--shadow);
    }

    /* Przyciski: .btn bez wariantu = drugorzędny (obrys), .btn-primary = zielony, .btn-cta = terakota, .btn-ghost = sam tekst */
    .btn {
        display: inline-flex;
        flex-direction: row;   /* także label.btn (pola etykiet są kolumnami) */
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: var(--btn-h);
        padding: 0 18px;
        border: 1.5px solid var(--btn-border);
        border-radius: var(--radius-sm);
        background: var(--card);
        color: var(--ink);
        font: 600 .9375rem/1.1 var(--font-sans);
        text-decoration: none;
        white-space: nowrap;
        cursor: pointer;
        transition: background-color .15s, border-color .15s, color .15s;
    }
    .btn:hover { background: var(--soft); color: var(--ink); }
    .btn:disabled { opacity: .55; cursor: default; }
    .btn-primary { border-color: transparent; background: var(--leaf); color: #fff; }
    .btn-primary:hover { background: var(--leaf-dark); color: #fff; }
    .btn-cta { border-color: transparent; background: var(--terracotta); color: #fff; }
    .btn-cta:hover { background: var(--terracotta-dark); color: #fff; }
    .btn-ghost { border-color: transparent; background: transparent; color: var(--leaf); padding: 0 10px; }
    .btn-ghost:hover { background: var(--soft); color: var(--ink); }
    .btn-danger { border-color: #e3b9b5; color: var(--danger); }
    .btn-danger:hover { background: var(--danger-soft); color: var(--danger); }
    .btn-small { min-height: 36px; padding: 0 12px; font-size: .875rem; }
    .btn-block { width: 100%; }

    /* Przycisk wyglądający jak link */
    .link-btn {
        padding: 0;
        border: 0;
        background: none;
        color: var(--leaf);
        font: inherit;
        font-weight: 600;
        cursor: pointer;
    }
    .link-btn:hover { color: var(--ink); }

    /* Pigułki: filtry (a/button .chip, zaznaczona .active albo .on) i pola wyboru (label.chip-check z ukrytym inputem) */
    .chips { display: flex; flex-wrap: wrap; gap: 8px; }
    .chip, .chip-check {
        position: relative;
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        min-height: 40px;
        padding: 0 14px;
        border: 1.5px solid var(--field-border);
        border-radius: 999px;
        background: var(--card);
        color: var(--ink);
        font: 500 .875rem var(--font-sans);
        text-decoration: none;
        white-space: nowrap;
        cursor: pointer;
        user-select: none;
        transition: background-color .15s, border-color .15s, color .15s;
    }
    .chip:hover, .chip-check:hover { border-color: var(--leaf); color: var(--ink); }
    .chip.active, .chip.on, .chip[aria-pressed="true"], .chip-check:has(input:checked) {
        border-color: var(--leaf);
        background: var(--leaf);
        color: #fff;
    }
    .chip-check input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
    .chip-check:has(input:focus-visible) { outline: 2px solid var(--leaf); outline-offset: 2px; }
    .chip-check:has(input:disabled) { opacity: .55; cursor: default; }

    /* Etykieta w kształcie przywieszki (grupa rośliny, etykieta momentu na osi czasu), bez dziurki (decyzja z 2026-10-03).
       Etykieta grupy rośliny ma własny odcień: --tag-bg i --tag-ink z group_tag() (PLANT_GROUP_TONES) */
    .tag, .entry-tag {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        height: 26px;
        padding: 0 10px;
        border-radius: 4px 13px 13px 4px;
        background: var(--tag-bg, var(--t-sage));
        color: var(--tag-ink, var(--t-sage-ink));
        font: 600 .75rem var(--font-sans);
        white-space: nowrap;
    }
    .t-leaf { background: var(--leaf); color: #fff; }
    .t-flower { background: var(--t-flower); color: var(--t-flower-ink); }
    .t-autumn { background: var(--t-autumn); color: var(--t-autumn-ink); }
    .t-earth { background: var(--t-earth); color: var(--t-earth-ink); }
    .t-frost { background: var(--t-frost); color: var(--t-frost-ink); }

    /* Pieczątka z datą (oś czasu, przypomnienia) */
    .stamp {
        display: inline-block;
        padding: 4px 8px;
        border: 1.5px solid var(--muted);
        border-radius: 4px;
        background: var(--card);
        color: var(--muted);
        font: 600 .6875rem/1.1 var(--font-sans);
        letter-spacing: .06em;
        text-transform: uppercase;
        white-space: nowrap;
    }

    /* Przełącznik segmentowy (np. Podgląd / Edycja): .seg z makiet i .mode-switch planu */
    .seg, .mode-switch {
        display: inline-flex;
        gap: 2px;
        padding: 3px;
        border-radius: 12px;
        background: var(--seg);
    }
    :is(.seg, .mode-switch) :is(a, button) {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 38px;
        padding: 0 14px;
        border: 0;
        border-radius: 9px;
        background: transparent;
        color: var(--ink-2);
        font: 600 .875rem var(--font-sans);
        text-decoration: none;
        cursor: pointer;
    }
    :is(.seg, .mode-switch) :is(.on, .active, [aria-pressed="true"]) {
        background: var(--card);
        color: var(--ink);
        box-shadow: 0 1px 2px rgba(31, 58, 42, .15);
    }

    /* Nagłówek małej sekcji (np. „POKÓJ” nad filtrami) */
    .eyebrow {
        font-size: .75rem;
        font-weight: 600;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--muted);
    }

    /* Nazwa łacińska i odręczny dopisek */
    .latin, .species { font-family: var(--font-serif); font-style: italic; color: var(--muted); }
    .hand { font-family: var(--font-hand); }

    .muted { color: var(--muted); font-weight: normal; }
    .hint { margin: 14px 0 0; font-size: .8125rem; line-height: 1.45; color: var(--muted); }
    .req { color: var(--terracotta); }

    /* Komunikaty po zapisie */
    .flash { margin-bottom: 20px; padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 500; }
    .flash-ok { background: var(--t-sage); color: var(--ink); }
    .flash-error { background: var(--danger-soft); color: var(--danger); }

    /* Przełącznik wł./wył. (label.switch > input + .switch-track) */
    .switch { position: relative; flex-direction: row; align-items: center; gap: 10px; width: fit-content; cursor: pointer; }
    .switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
    .switch-track {
        position: relative;
        flex-shrink: 0;
        width: 40px;
        height: 24px;
        border-radius: 12px;
        background: var(--field-border);
        transition: background-color .15s;
    }
    .switch-track::after {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
        transition: transform .15s;
    }
    .switch input:checked + .switch-track { background: var(--leaf); }
    .switch input:checked + .switch-track::after { transform: translateX(16px); }
    .switch input:focus-visible + .switch-track { outline: 2px solid var(--leaf); outline-offset: 2px; }
    .switch small { font-weight: normal; color: var(--muted); }

    /* Pusta lista */
    .empty { padding: 48px 16px; text-align: center; color: var(--muted); }
    .empty-icon { margin: 0; font-size: 3rem; }

    /* Tekst tylko dla czytników ekranu (np. opis ikony-emoji) */
    .visually-hidden {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    /* Pole-pułapka na boty (form_trap_field()): poza ekranem, a nie display: none, bo część botów pomija ukryte pola */
    .form-trap {
        position: absolute;
        left: -9999px;
        width: 1px;
        height: 1px;
        overflow: hidden;
    }
}

/* Układ strony: nagłówek, nawigacja (górna na komputerze, dolne zakładki na telefonie), kontener treści, przycisk „+”.
   Granica telefon / komputer: 900px (poniżej dolne zakładki). */
@layer layout {
    /* Nagłówek */
    /* Nagłówek z menu zostaje u góry przy przewijaniu (2026-10-04); kotwice i fokus nie chowają się pod nim */
    html { scroll-padding-top: 92px; }
    .topbar {
        position: sticky;
        top: 0;
        z-index: 40;
        display: flex;
        align-items: center;
        gap: 28px;
        height: 76px;
        padding: 0 32px;
        border-bottom: 1px solid var(--line);
        background: var(--card);
    }

    .brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
    .brand:hover { color: var(--ink); }
    .brand-mark { width: 44px; height: 44px; flex: none; }
    .brand-logo { display: block; height: 48px; width: auto; flex: none; }
    .brand-name { font: 400 1.4375rem/1 var(--font-serif); letter-spacing: -.01em; white-space: nowrap; }   /* 23 px */
    .brand-name em { font-style: italic; font-weight: 500; color: var(--forest); }

    /* Gdy menu mimo wszystko się nie mieści (np. z „Administracją”), przewija się w poziomie zamiast rozpychać stronę */
    .nav { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
    .nav::-webkit-scrollbar { display: none; }
    .nav a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 0 14px;
        border-radius: var(--radius-sm);
        color: var(--ink-2);
        font-size: .9375rem;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
    }
    .nav a:hover { background: var(--soft); color: var(--ink); }
    .nav a[aria-current="page"] { background: var(--leaf-soft); color: var(--ink); }

    .topbar-tools { display: flex; flex: none; align-items: center; gap: 8px; margin-left: auto; }
    .topbar-tools .btn-ghost[aria-current="page"] { background: var(--leaf-soft); color: var(--ink); }
    .topbar-email { max-width: 240px; overflow: hidden; font-size: .875rem; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
    .topbar-logout { margin: 0; }
    .topbar-logout .btn { min-height: 40px; padding: 0 16px; font-size: .9375rem; }

    /* Przycisk z samą ikoną (dzwonek, konto) */
    .icon-btn {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: var(--radius-sm);
        background: transparent;
        color: var(--ink);
        cursor: pointer;
    }
    .icon-btn:hover { background: var(--soft); color: var(--ink); }
    .bell-badge {
        position: absolute;
        top: 6px;
        right: 5px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border: 2px solid var(--card);
        border-radius: 9px;
        background: var(--terracotta);
        color: #fff;
        font-size: .6875rem;
        font-weight: 600;
        line-height: 14px;
        text-align: center;
    }
    .avatar {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: var(--leaf-soft);
        color: var(--ink);
        font-size: .875rem;
        font-weight: 600;
    }

    /* Rozwijane menu (<details class="menu">): konto i „Więcej” */
    .menu { position: relative; }
    .menu > summary { list-style: none; }
    .menu > summary::-webkit-details-marker { display: none; }
    .menu-body {
        position: absolute;
        right: 0;
        top: calc(100% + 6px);
        z-index: 60;
        display: grid;
        min-width: 220px;
        padding: 6px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--card);
        box-shadow: var(--shadow-pop);
    }
    .menu-note { margin: 0; padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; }
    .menu-body form { display: block; margin: 0; }
    .menu-item {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 44px;
        padding: 0 12px;
        border: 0;
        border-radius: var(--radius-sm);
        background: none;
        color: var(--ink);
        font: 500 .9375rem var(--font-sans);
        text-align: left;
        text-decoration: none;
        cursor: pointer;
    }
    .menu-item:hover, .menu-item:focus-visible { background: var(--soft); color: var(--ink); }
    .menu-item[aria-current="page"] { background: var(--leaf-soft); font-weight: 600; }

    .share-menu .menu-item { white-space: nowrap; }
    .account-menu { display: none; }   /* tylko na telefonie */

    /* Pasek podstrony (strony szczegółów na telefonie): powrót, tytuł, działanie po prawej */
    .subbar { display: none; }
    .subbar-back { color: var(--ink); padding: 0 8px; }
    .subbar-title { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
    .subbar-action { display: flex; justify-content: flex-end; min-width: 88px; }
    .subbar-action .btn { padding: 0 10px; }

    /* Dolne zakładki (telefon) */
    .tabbar { display: none; }
    .tab {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        min-width: 64px;
        min-height: 48px;
        color: var(--muted);
        font-size: .75rem;
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
    }
    .tab:hover { color: var(--ink); }
    .tab-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 30px; border-radius: 15px; }
    .tab[aria-current="page"], .tab-more[open] > .tab { color: var(--ink); }
    .tab[aria-current="page"] .tab-icon, .tab-more[open] > .tab .tab-icon { background: var(--leaf-soft); color: var(--leaf); }
    .tab-add, .quick-add-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 56px;
        height: 56px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: var(--leaf);
        color: #fff;
        box-shadow: 0 4px 12px rgba(31, 58, 42, .28);
        cursor: pointer;
    }
    .tab-add { margin-top: -14px; }
    .tab-add:hover, .quick-add-btn:hover { background: var(--leaf-dark); }
    .tab-more .menu-body { top: auto; bottom: calc(100% + 10px); }

    /* Treść */
    .container { max-width: 1240px; margin: 0 auto; padding: 32px 32px 96px; }

    /* Nagłówek strony: tytuł i narzędzia w jednym wierszu */
    .page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 20px; }
    .page-head h1 { margin: 0 auto 0 0; }

    /* Przycisk „+” (render_quick_add()): na komputerze stały w prawym dolnym rogu, menu nad nim */
    .quick-add { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
    .quick-add-menu {
        display: grid;
        min-width: 240px;
        padding: 6px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--card);
        box-shadow: var(--shadow-pop);
    }
    .quick-add-menu[hidden] { display: none; }
    .quick-add-menu a, .quick-add-menu button {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 44px;
        padding: 0 12px;
        border: 0;
        border-radius: var(--radius-sm);
        background: none;
        color: var(--ink);
        font: 500 .9375rem var(--font-sans);
        text-align: left;
        text-decoration: none;
        cursor: pointer;
    }
    .quick-add-menu a:hover, .quick-add-menu button:hover, .quick-add-menu :focus-visible { background: var(--soft); color: var(--ink); }

    /* Okno „Wpis do której rośliny?” */
    .quick-entry {
        width: min(480px, calc(100vw - 32px));
        max-height: 80vh;
        padding: 20px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--card);
        color: var(--ink);
        box-shadow: var(--shadow-pop);
    }
    .quick-entry::backdrop { background: rgba(31, 58, 42, .35); }
    .quick-entry-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0; }
    .quick-entry-head h2 { margin: 0; font-size: 1.3125rem; }
    .quick-entry input[type=search] { margin: 14px 0 8px; }
    .quick-entry-list { list-style: none; padding: 0; margin: 0; }
    .quick-entry-list a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
    .quick-entry-list a:hover, .quick-entry-list a:focus-visible { background: var(--soft); }

    /* Węższy komputer: bez adresu e-mail w pasku */
    @media (max-width: 1440px) {
        .topbar-email { display: none; }
    }

    /* „Warunki ogrodu” samą ikoną (nazwa zostaje w title i dla czytników) */
    @media (max-width: 1280px) {
        .topbar { gap: 20px; padding: 0 20px; }
        .topbar-conditions { width: 44px; padding: 0; font-size: 0; }
        .topbar-conditions .icon { width: 20px; height: 20px; }
    }

    /* Wąski komputer: ciaśniejsze menu */
    @media (max-width: 1100px) {
        .topbar { gap: 14px; }
        .nav { gap: 0; }
        .nav a { padding: 0 9px; }
    }

    /* Najwęższy komputer (tuż nad granicą telefonu): samo logo bez nazwy */
    @media (min-width: 901px) and (max-width: 1020px) {
        .brand-name { display: none; }
    }

    /* Telefon i tablet */
    @media (max-width: 900px) {
        html { scroll-padding-top: 72px; }
        .topbar { justify-content: space-between; height: 60px; padding: 0 8px 0 16px; }
        .brand { gap: 8px; }
        .brand-mark { width: 34px; height: 34px; }
        .brand-logo { height: 36px; }
        .brand-name { font-size: 1.25rem; }
        .has-tabbar .nav, .topbar-conditions, .topbar-email, .topbar-logout { display: none; }
        .topbar-tools { gap: 2px; margin-left: 0; }
        .account-menu { display: block; }
        .topbar.has-subbar { padding: 0 8px; }
        .has-subbar > .brand, .has-subbar > .topbar-tools { display: none; }
        .has-subbar > .subbar { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }

        .tabbar {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 45;
            display: flex;
            align-items: flex-start;
            justify-content: space-around;
            height: calc(78px + env(safe-area-inset-bottom));
            padding: 8px 4px env(safe-area-inset-bottom);
            border-top: 1px solid var(--line);
            background: var(--card);
        }

        .container { padding: 20px 16px 110px; }
        .quick-add-btn { display: none; }
        .quick-add { left: 16px; right: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); align-items: center; }
        .quick-add-menu { width: min(100%, 320px); }
        .share-menu .menu-body { right: -48px; }   /* na telefonie menu udostępniania nie wychodzi poza ekran */
    }

    @media print {
        .topbar, .tabbar, .quick-add, .quick-entry { display: none !important; }
        .container { padding: 0; }
    }
}

/* Baner zgody na cookies (render_cookie_banner(), consent.js), stopka z linkiem do ustawień i strona cookies.php */
@layer layout {
    .cookie-banner { position: fixed; right: 24px; bottom: 24px; z-index: 70; display: flex; flex-direction: column; gap: 12px; width: min(460px, 100vw - 32px); margin: 0; padding: 18px 20px; box-shadow: 0 12px 40px rgb(0 0 0 / .18); }
    .cookie-banner[hidden] { display: none; }
    .cookie-banner > * { margin: 0; }
    .cookie-banner h2 { font-size: 1.125rem; }
    .cookie-banner p, .cookie-categories { font-size: .875rem; line-height: 1.45; }
    .cookie-categories { display: flex; flex-direction: column; gap: 10px; padding: 0; border: 0; }
    .cookie-categories[hidden] { display: none; }
    .cookie-categories .check { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
    .cookie-categories input { flex: none; margin-top: 3px; }
    .cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
    .cookie-actions .btn { flex: 1 1 auto; min-height: 40px; font-size: .875rem; }
    .cookie-actions .btn[hidden] { display: none; }
    .site-footer { padding: 0 40px 24px; font-size: .8125rem; text-align: center; }
    .site-footer a { color: var(--muted); }
    .cookies-card { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin: 0; padding: 20px 24px; }
    .cookies-card > * { margin: 0; }
    .cookies-card ul { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; }
    .auth-cookies { margin-top: 16px !important; text-align: center; }

    @media (max-width: 900px) {
        .cookie-banner { right: 16px; bottom: 16px; }
        .has-tabbar .cookie-banner { bottom: 92px; }   /* nad dolnymi zakładkami */
        .site-footer { display: none; }   /* na telefonie link jest w menu konta */
    }
    @media print { .cookie-banner, .site-footer { display: none !important; } }
}

/* Strona główna dla niezalogowanych (home.php) i podstrony z treścią (page.php): pasek, sekcje, stopka. Strona główna ma od
   2026-11-01 własny wygląd w stylu szablonu ogrodniczego (klasa .home-landing, druga część pliku): zieleń, nagłówki Raleway,
   zdjęcie na całą szerokość w haśle, ciemnozielona sekcja funkcji z separatorem ze źdźbeł; podstrony (page.php) od 2026-11-22 też (.site-page.home-landing, część „Podstrony z treścią”).
   Granica telefon / komputer jak w aplikacji: 900px. */
@layer pages {
    html:has(.home-page) { scroll-behavior: smooth; }
    @media (prefers-reduced-motion: reduce) { html:has(.home-page) { scroll-behavior: auto; } }

    .home-page {
        --home-tint: #f6f2e9;                                      /* ciepłe tło co drugiej sekcji */
        --home-gutter: max(80px, (100% - 1360px) / 2);             /* margines boczny; na bardzo szerokim ekranie treść nie rośnie */
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        max-width: none;
        padding: 0;
    }
    .home-page p { margin: 0; }
    .home-page > .flash { margin: 0; border-radius: 0; text-align: center; }   /* np. „Wylogowano.” nad paskiem */
    .home-page [id] { scroll-margin-top: 84px; }

    /* Pasek u góry */
    .home-bar {
        position: sticky;
        top: 0;
        z-index: 40;
        display: flex;
        align-items: center;
        gap: 24px;
        height: 76px;
        padding: 0 var(--home-gutter, 32px);   /* poza stroną główną (podgląd przez link) zmiennej nie ma */
        border-bottom: 1px solid var(--line);
        background: rgba(255, 255, 255, .96);
    }
    .home-nav { display: flex; gap: 2px; margin-left: 24px; }
    .home-nav a {
        display: flex;
        align-items: center;
        min-height: 40px;
        padding: 0 12px;
        border-radius: 8px;
        color: var(--ink-2);
        font-size: .9375rem;
        font-weight: 500;
        text-decoration: none;
        white-space: nowrap;
    }
    .home-nav a:hover { background: var(--soft); color: var(--ink); }
    .home-nav a[aria-current] { color: var(--leaf); font-weight: 600; }

    /* Podstrona z treścią (page.php): wąska kolumna tekstu; edycja w panelu administratora (admin-pages.php) */
    .site-section { gap: 16px; }
    .site-section.has-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 28px 56px; }
    .site-section.text-right .site-text { order: 2; }
    .site-section.has-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 28px 56px; }
    .site-text { display: flex; flex-direction: column; gap: 16px; }
    /* Wyrównanie do prawej: cała wąska kolumna treści (760 px) staje przy prawej krawędzi, tekst w niej zostaje od lewej */
    .site-section.align-right:not(.has-media, .has-columns) { padding-left: max(var(--home-gutter), calc(100% - 760px - var(--home-gutter))); }
    .site-photo { display: block; cursor: zoom-in; }
    .site-photo img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow); }
    :is(.site-section, .site-text) > h1 { margin: 0 0 8px; font-size: clamp(2.75rem, 5vw, 4.25rem); line-height: 1.05; letter-spacing: -.02em; }
    :is(.site-section, .site-text) > h2 { margin: 0 0 4px; font-size: 2.75rem; line-height: 1.1; }
    :is(.site-section, .site-text) > h3 { margin: 12px 0 0; font-size: 1.5rem; line-height: 1.2; }
    :is(.site-section, .site-text) > :is(p, ul, ol) { max-width: 760px; font-size: 1.125rem; line-height: 1.65; color: var(--ink-2); }
    :is(.site-section, .site-text) > :is(ul, ol) { display: flex; flex-direction: column; gap: 6px; margin: 0; padding-left: 24px; }
    .site-section a:not(.btn) { color: var(--leaf); }
    :is(.site-section, .site-text) > .btn, .site-admin .btn { align-self: flex-start; }
    .home-final > div > * { margin: 0; }
    .site-admin { padding-top: 24px; padding-bottom: 24px; }
    .list-page.admin-page-edit { max-width: 900px; }
    .page-edit-form { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 24px; }
    .page-edit-section { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
    .page-edit-section.is-tint { background: #f6f2e9; }
    .page-edit-section legend { padding: 0 6px; font-weight: 600; }
    .page-edit-section legend .hint { margin-left: 6px; font-weight: 400; }
    .page-edit-media, .page-edit-media-fields { display: flex; flex-direction: column; gap: 12px; }
    .page-edit-media:not(:has(select option:not([value=""]):checked)) .page-edit-media-fields,
    .page-edit-media:has(option[value="text"]:checked) .page-edit-media-fields,
    .page-edit-media:not(:has(option[value="text"]:checked)) .page-edit-second,
    .page-edit-media:not(:has(option[value="youtube"]:checked)) .page-edit-video { display: none; }
    .page-edit-thumb { width: 200px; max-width: 100%; height: auto; border-radius: 8px; }
    .page-edit-side { display: flex; flex-wrap: wrap; gap: 8px 24px; }
    .page-edit-side label { display: flex; flex-direction: row; align-items: center; gap: 6px; }
    .page-edit-body { min-height: 160px; font-family: ui-monospace, Consolas, monospace; font-size: .9375rem; line-height: 1.5; }
    .page-edit-actions { display: flex; justify-content: flex-end; gap: 8px; }
    .home-bar-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
    .home-bar-tools .btn { min-height: 40px; padding: 0 16px; font-size: .875rem; }
    .home-login { color: var(--ink); }
    .home-menu { display: none; }   /* tylko na telefonie */

    /* Sekcje */
    .home-section { display: flex; flex-direction: column; gap: 28px; padding: 88px var(--home-gutter); }
    .home-tint { background: var(--home-tint); }
    .home-head { display: flex; flex-direction: column; gap: 12px; }
    .home-head h2, .home-final h2 { margin: 0; font-size: 2.75rem; line-height: 1.1; }
    .home-head p { max-width: 640px; font-size: 1.125rem; line-height: 1.55; color: var(--ink-2); }

    /* Film (strona główna i sekcja z filmem na podstronie, render_page_media()): miniatura z przyciskiem odtwarzania;
       po kliknięciu odtwarzacz w oknie nad stroną (home.js). Tytuł filmu jako apla na dole miniatury */
    .home-video-title { position: absolute; right: 0; bottom: 0; left: 0; padding: 10px 16px 11px; background: color-mix(in srgb, var(--leaf) 94%, transparent); color: #fff; font: 600 1.25rem/1.25 var(--font-serif); }
    .home-video-dialog { width: min(1200px, 94vw, calc((100vh - 96px) * 16 / 9)); max-width: none; max-height: none; padding: 0; overflow: visible; border: 0; border-radius: 12px; background: #000; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
    .home-video-dialog::backdrop { background: rgba(20, 30, 22, .78); }
    .home-video-dialog iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; }
    .home-video-close { position: absolute; top: -16px; right: -16px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); color: var(--ink); font-size: 1rem; line-height: 1; cursor: pointer; }
    .home-video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 0; border-radius: 12px; background: #1f2a1c; box-shadow: var(--shadow); }
    .home-video img { display: block; width: 100%; height: 100%; object-fit: cover; }
    .home-video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
    .home-video-play svg { width: 64px; height: 64px; padding: 16px 14px 16px 18px; border-radius: 50%; background: rgba(255, 255, 255, .92); fill: var(--leaf); box-shadow: 0 4px 16px rgba(0, 0, 0, .3); transition: transform .15s; }
    .home-video:hover .home-video-play svg, .home-video:focus-visible .home-video-play svg { transform: scale(1.08); }

    /* Wezwanie na końcu (strona główna i podstrony) */
    .home-final { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; padding-top: 72px; padding-bottom: 72px; }
    .home-final > div { display: flex; flex-direction: column; gap: 10px; }
    .home-final h2 { font-size: 2.5rem; }
    .home-final p { max-width: 640px; font-size: 1.0625rem; color: var(--ink-2); }
    .home-final .btn { flex: none; min-height: 52px; padding: 0 26px; font-size: 1rem; }

    /* Stopka (strona główna i podstrony) */
    .home-footer { display: flex; flex-direction: column; flex-grow: 1; gap: 32px; padding: 64px var(--home-gutter) 40px; background: var(--ink); color: #e8efe6; }
    .home-footer-cols { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 28px; }
    .home-footer-brand { display: flex; flex-direction: column; gap: 12px; }
    .home-footer-brand > p:last-child { max-width: 300px; font-size: .875rem; color: #c9d6c5; }
    .home-footer nav { display: flex; flex-direction: column; gap: 2px; }
    .home-footer .eyebrow { color: #a7c2a0; }
    .home-footer nav a { display: flex; align-items: center; min-height: 32px; color: #e8efe6; font-size: .875rem; text-decoration: none; }
    .home-footer nav a:hover { color: #fff; text-decoration: underline; }
    .home-footer-copy { padding-top: 20px; border-top: 1px solid rgba(232, 239, 230, .18); font-size: .8125rem; color: #c9d6c5; }

    /* Węższy komputer: mniejsze marginesy */
    @media (max-width: 1280px) {
        .home-page { --home-gutter: 40px; }
        /* Ciaśniejsze menu podstron, żeby pasek mieścił się w oknie */
        .home-nav { margin-left: 0; }
        .home-nav a { padding: 0 8px; font-size: .875rem; }
        .home-bar { gap: 12px; }
    }
    /* Pięć podstron nie mieści się w pasku na wąskim oknie komputera: zostaje menu rozwijane jak na telefonie */
    @media (max-width: 1180px) {
        .home-nav { display: none; }
        .home-menu { display: block; }
    }
    @media (max-width: 1100px) {
        .home-page { --home-gutter: 24px; }
    }

    /* Telefon i tablet */
    @media (max-width: 900px) {
        .home-page { --home-gutter: 16px; }
        .home-page [id] { scroll-margin-top: 68px; }
        .home-bar { gap: 8px; height: 60px; padding: 0 12px 0 16px; }
        .home-nav, .home-bar-cta { display: none; }
        .home-bar-tools { gap: 2px; }
        .home-bar-tools .home-login { padding: 0 8px; }
        .home-menu { display: block; }

        .home-section { gap: 16px; padding: 40px var(--home-gutter); }
        .site-section:is(.has-media, .has-columns) { display: flex; align-items: stretch; }
        .site-section.text-right .site-text { order: 0; }
        :is(.site-section, .site-text) > h1 { font-size: 2.25rem; }
        :is(.site-section, .site-text) > h2 { font-size: 1.75rem; }
        :is(.site-section, .site-text) > :is(p, ul, ol) { font-size: 1rem; }
        .home-head { gap: 8px; }
        .home-head h2 { font-size: 1.75rem; }
        .home-head p { font-size: .9375rem; }

        .home-video-close { top: -44px; right: 0; }
        .home-video-title { padding: 8px 12px 9px; font-size: 1.0625rem; }

        .home-final { flex-direction: column; align-items: stretch; gap: 14px; padding-top: 40px; padding-bottom: 40px; }
        .home-final h2 { font-size: 1.875rem; }
        .home-final p { font-size: .9375rem; line-height: 1.55; }
        .home-final .btn { min-height: 48px; font-size: .875rem; }

        .home-footer { padding: 40px 20px 32px; }
        .home-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .home-footer-brand { grid-column: 1 / -1; }
    }
    @media (max-width: 420px) {
        .home-bar .brand-name { font-size: 1.1875rem; }
        /* Długi napis na przycisku zawija się zamiast wychodzić poza kartę */
        .home-page .btn-cta { max-width: 100%; padding-block: 10px; white-space: normal; text-align: center; }
    }


    /* ===== Strona główna (.home-landing, decyzja z 2026-11-01) ===== */

    /* Nagłówki strony głównej piszemy Raleway (fonts.css, z preloadem w home.php), a tekst fontem systemowym (na Androidzie
       Roboto jak w szablonie): strona nie pobiera Intera (ok. 130 KB), co liczy się w PageSpeed na telefonie.
       Zmienne działają też w banerze cookies */
    :root:has(.home-landing) {
        --font-serif: 'Raleway', 'Raleway Fallback', Arial, sans-serif;
        --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    }
    .home-landing {
        --l-green: #087f55;          /* przyciski, ikony, akcenty (biały tekst ma na nim kontrast powyżej 4,5:1) */
        --l-green-dark: #06683f;
        --l-forest: #0d3b27;         /* nagłówki, ciemne sekcje */
        --l-deep: #0a2c1d;           /* stopka */
        --l-sage: #eaf1e6;           /* jasne tło kart i sekcji */
        --l-text: #56625a;           /* tekst akapitów */
        --home-tint: var(--l-sage);
        color: var(--l-forest);
    }
    .home-landing :is(h1, h2, h3) { color: var(--l-forest); font-weight: 700; letter-spacing: -.01em; }
    .home-landing .home-head p, .home-landing .home-final p { color: var(--l-text); }

    /* Przyciski: zielony zamiast terakoty, mniej zaokrąglone */
    .home-landing .btn { border-radius: 4px; }
    .home-landing :is(.btn-cta, .btn-primary) { border-color: transparent; background: var(--l-green); color: #fff; }
    .home-landing :is(.btn-cta, .btn-primary):hover { background: var(--l-green-dark); color: #fff; }
    .home-landing .home-btn-light { border: 1px solid rgba(255, 255, 255, .7); background: transparent; color: #fff; }
    .home-landing .home-btn-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
    .home-landing .home-btn-white { border-color: transparent; background: #fff; color: var(--l-green); }
    .home-landing .home-btn-white:hover { background: var(--l-sage); color: var(--l-green-dark); }

    /* Podpis sekcji: listek przed tekstem, bez wersalików */
    .home-landing .eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        align-self: flex-start;
        font: 700 .9375rem/1.3 var(--font-serif);
        letter-spacing: 0;
        text-transform: none;
        color: var(--l-forest);
    }
    .home-landing .eyebrow::before {
        content: "";
        flex: none;
        width: 18px;
        height: 18px;
        background: var(--l-green);
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 3C11 3 4 8 4 16c0 1.6.4 3 1 4.2C7 14 11 10 17 8c-5 3-8.6 7.3-10.4 13H9c8 0 12-7 12-18z'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 3C11 3 4 8 4 16c0 1.6.4 3 1 4.2C7 14 11 10 17 8c-5 3-8.6 7.3-10.4 13H9c8 0 12-7 12-18z'/%3E%3C/svg%3E") center / contain no-repeat;
    }
    .home-landing .home-head h2 { font-size: clamp(2rem, 1.2rem + 2vw, 2.75rem); }

    /* Wąski ciemny pasek nad nagłówkiem (home.php, .home-topline): kontakt, „za darmo”, kanał z instrukcjami; przewija się
       razem ze stroną, a przyklejony zostaje tylko nagłówek */
    .home-topline { display: flex; align-items: center; gap: 8px 28px; min-height: 44px; padding: 0 var(--home-gutter); background: var(--l-deep); color: rgba(255, 255, 255, .85); font-size: .875rem; }
    .home-topline > * { display: inline-flex; align-items: center; gap: 8px; }
    .home-topline > span { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .2); }
    .home-topline > :last-child { margin-left: auto; }
    .home-topline a { color: inherit; text-decoration: none; }
    .home-topline a:hover { color: #fff; text-decoration: underline; }
    .home-topline .icon { flex: none; color: #9ccc4a; }

    /* Nagłówek: logo na jasnej szałwii ściętej z prawej strony, menu z zieloną kreską pod bieżącą i wskazaną pozycją,
       „Załóż konto” jak przycisk szablonu (szałwia, wersaliki) */
    .home-landing [id] { scroll-margin-top: 100px; }
    .home-landing .home-bar { gap: 28px; height: 88px; padding-left: 0; border-bottom: 0; background: #fff; box-shadow: 0 6px 24px rgba(13, 59, 39, .08); }
    .home-landing .home-bar > .brand { align-self: stretch; padding: 0 64px 0 var(--home-gutter); background: var(--l-sage); clip-path: polygon(0 0, 100% 0, calc(100% - 32px) 100%, 0 100%); }
    .home-landing .home-bar .brand-logo { height: 46px; mix-blend-mode: multiply; }   /* białe tło logo przyjmuje kolor szałwii */
    .home-landing .home-nav { align-self: stretch; gap: 0; margin-left: 0; }
    .home-landing .home-nav a { position: relative; gap: 6px; height: 100%; padding: 0 14px; border-radius: 0; background: none; color: var(--l-forest); font-size: .9375rem; font-weight: 600; }
    .home-landing .home-nav a::after { content: ""; position: absolute; right: 14px; bottom: 0; left: 14px; height: 3px; border-radius: 3px 3px 0 0; background: var(--l-green); transform: scaleX(0); transition: transform .2s; }
    .home-landing .home-nav a:hover, .home-landing .home-nav a[aria-current] { background: none; color: var(--l-green); }
    .home-landing .home-nav a:hover::after, .home-landing .home-nav a[aria-current]::after { transform: scaleX(1); }
    .home-landing .home-bar-tools { gap: 6px; }
    .home-landing .home-login { color: var(--l-forest); font-weight: 600; }
    .home-landing .home-login:hover { background: var(--l-sage); color: var(--l-green); }
    .home-landing .home-bar-tools .home-bar-cta { min-height: 48px; padding: 0 22px; background: var(--l-sage); color: var(--l-green); font-size: .8125rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
    .home-landing .home-bar-tools .home-bar-cta:hover { background: var(--l-green); color: #fff; }
    /* Menu rozwijane (wąskie okno i telefon): zielony kwadratowy przycisk, lista z zielonym wyróżnieniem */
    .home-landing .home-menu > summary { border-radius: 4px; background: var(--l-green); color: #fff; }
    .home-landing .home-menu > summary:hover { background: var(--l-green-dark); }
    .home-landing .home-menu[open] > summary { background: var(--l-forest); }
    .home-landing .home-menu .menu-body { top: calc(100% + 22px); min-width: 280px; padding: 8px; border: 0; border-top: 3px solid var(--l-green); border-radius: 0 0 8px 8px; box-shadow: 0 16px 40px rgba(13, 59, 39, .18); }
    .home-landing .home-menu .menu-item { min-height: 46px; padding: 0 14px; border-radius: 4px; color: var(--l-forest); font-weight: 600; }
    .home-landing .home-menu .menu-item:hover, .home-landing .home-menu .menu-item:focus-visible { background: var(--l-sage); color: var(--l-green); }
    .home-landing .home-menu .menu-item[aria-current="page"] { background: var(--l-sage); color: var(--l-green); }
    .home-landing .home-menu .menu-item:last-child { margin-top: 6px; justify-content: center; background: var(--l-green); color: #fff; }
    .home-landing .home-menu .menu-item:last-child:hover { background: var(--l-green-dark); color: #fff; }

    /* Hasło: zdjęcie na całą szerokość pod ciemnozielonym przejściem, tekst po lewej, na dole separator ze źdźbeł */
    .home-hero { position: relative; isolation: isolate; display: flex; justify-content: center; min-height: 640px; padding-top: 96px; padding-bottom: 120px; overflow: hidden; background: var(--l-forest); }
    .home-hero-bg, .home-hero-bg img { position: absolute; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 15% 35%; }
    .home-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 44, 29, .92) 0%, rgba(10, 44, 29, .78) 38%, rgba(10, 44, 29, .25) 70%, rgba(10, 44, 29, .05) 100%); }
    /* Separator: sylwetka ostrych źdźbeł w kolorze sekcji pod spodem wrasta w zdjęcie albo zieleń (jak w szablonie;
       decyzja z 2026-11-22, wcześniej dwa rzędy zielonych źdźbeł). Kształt to maska SVG, kolor daje --grass-color. */
    .home-hero::after, .home-dark::after, .site-hero::after, .site-section.has-grass::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: -1px;
        left: 0;
        height: 48px;
        background: var(--grass-color, #fff);
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 48'%3E%3Cpath d='M0%2048V47L0%2047Q-0%2041%20-1%2036Q1%2042%202%2047L6%2047Q6%2034%207%2023Q8%2035%208%2047L10%2047Q11%2037%2014%2029Q13%2038%2013%2047L16%2047Q16%2038%2016%2030Q18%2038%2019%2047L23%2047Q22%2028%2020%2012Q23%2030%2025%2047L29%2047Q31%2038%2033%2030Q33%2038%2033%2047L37%2047Q37%2028%2035%2012Q38%2030%2039%2047L40%2047Q42%2040%2045%2035Q43%2041%2042%2047L43%2047Q43%2037%2042%2028Q45%2038%2046%2047L49%2047Q51%2037%2054%2029Q53%2038%2052%2047L55%2047Q55%2040%2055%2035Q56%2041%2057%2047L58%2047Q58%2026%2056%208Q59%2028%2060%2047L63%2047Q64%2037%2066%2029Q66%2038%2066%2047L67%2047Q68%2034%2069%2023Q69%2035%2069%2047L74%2047Q74%2035%2074%2026Q77%2036%2078%2047L81%2047Q81%2027%2080%2011Q83%2029%2084%2047L88%2047Q88%2041%2088%2036Q90%2042%2091%2047L93%2047Q94%2040%2097%2035Q96%2041%2095%2047L100%2047Q99%2037%2097%2029Q100%2038%20102%2047L105%2047Q107%2040%20110%2035Q108%2041%20108%2047L111%2047Q111%2041%20110%2036Q112%2042%20113%2047L118%2047Q118%2034%20119%2023Q120%2035%20120%2047L125%2047Q124%2026%20122%209Q125%2028%20127%2047L128%2047Q129%2025%20132%207Q131%2027%20131%2047L135%2047Q135%2035%20134%2026Q136%2036%20138%2047L143%2047Q144%2039%20146%2032Q146%2040%20146%2047L147%2047Q146%2038%20144%2031Q147%2039%20149%2047L151%2047Q152%2037%20152%2028Q153%2038%20153%2047L156%2047Q157%2027%20158%2010Q159%2028%20159%2047L160%2047Q162%2037%20165%2029Q164%2038%20164%2047L165%2047Q166%2039%20168%2033Q168%2040%20168%2047L170%2047Q170%2035%20169%2026Q171%2036%20172%2047L174%2047Q174%2042%20173%2037Q176%2042%20178%2047L182%2047Q184%2042%20188%2037Q186%2042%20185%2047L188%2047Q189%2029%20190%2015Q191%2031%20191%2047L196%2047Q197%2035%20198%2026Q199%2036%20200%2047L205%2047Q205%2038%20204%2031Q207%2039%20209%2047L210%2047Q210%2024%20209%206Q211%2026%20212%2047L216%2047Q217%2026%20218%209Q218%2028%20218%2047L222%2047Q221%2026%20219%208Q222%2028%20224%2047L228%2047Q230%2027%20233%2011Q231%2029%20230%2047L232%2047Q233%2035%20234%2026Q235%2036%20235%2047L238%2047Q240%2024%20244%205Q242%2026%20242%2047L245%2047Q244%2024%20242%206Q245%2026%20247%2047L251%2047Q251%2034%20250%2024Q253%2036%20255%2047L260%2047Q262%2027%20264%2011Q264%2029%20264%2047L269%2047Q269%2039%20267%2033Q270%2040%20271%2047L274%2047Q274%2038%20273%2031Q275%2039%20276%2047L281%2047Q283%2038%20286%2030Q284%2038%20284%2047L286%2047Q286%2039%20285%2032Q288%2040%20290%2047L295%2047Q296%2033%20296%2021Q297%2034%20297%2047L302%2047Q301%2034%20299%2024Q302%2036%20304%2047L307%2047Q308%2040%20311%2034Q310%2040%20309%2047L313%2047Q315%2040%20317%2034Q317%2040%20317%2047L320%2047Q322%2035%20324%2025Q323%2036%20323%2047L328%2047Q328%2036%20326%2027Q330%2037%20331%2047L336%2047Q336%2034%20336%2024Q337%2036%20338%2047L343%2047Q343%2026%20343%209Q346%2028%20347%2047L349%2047Q349%2038%20347%2030Q350%2038%20351%2047L355%2047Q356%2041%20356%2036Q357%2042%20357%2047L361%2047Q363%2035%20366%2025Q365%2036%20365%2047L367%2047Q368%2034%20371%2023Q370%2035%20369%2047L370%2047Q370%2032%20370%2020Q372%2034%20373%2047L374%2047Q375%2026%20376%209Q377%2028%20378%2047L382%2047Q382%2035%20381%2026Q384%2036%20386%2047L387%2047Q388%2035%20388%2025Q389%2036%20390%2047L393%2047Q393%2038%20392%2030Q395%2038%20397%2047L400%2047V48ZM0%2048V48L0%2048Q2%2045%206%2043Q4%2046%203%2048L3%2048Q5%2044%208%2040Q8%2044%208%2048L10%2048Q10%2039%209%2031Q12%2040%2014%2048L13%2048Q15%2040%2018%2033Q16%2040%2016%2048L16%2048Q16%2044%2017%2041Q18%2044%2018%2048L19%2048Q19%2043%2018%2039Q21%2044%2022%2048L22%2048Q23%2041%2024%2036Q26%2042%2027%2048L29%2048Q29%2044%2027%2041Q31%2044%2033%2048L32%2048Q33%2044%2034%2040Q35%2044%2035%2048L37%2048Q38%2045%2040%2043Q40%2046%2041%2048L41%2048Q42%2039%2042%2031Q45%2040%2046%2048L48%2048Q49%2045%2048%2042Q51%2045%2053%2048L52%2048Q54%2041%2056%2035Q56%2042%2057%2048L57%2048Q59%2044%2062%2041Q62%2044%2062%2048L62%2048Q63%2045%2065%2042Q64%2045%2064%2048L64%2048Q66%2041%2069%2036Q67%2042%2066%2048L67%2048Q69%2043%2072%2039Q72%2044%2072%2048L73%2048Q75%2044%2078%2041Q78%2044%2078%2048L78%2048Q79%2042%2082%2038Q80%2043%2080%2048L79%2048Q79%2039%2079%2032Q80%2040%2081%2048L81%2048Q83%2044%2086%2040Q84%2044%2084%2048L86%2048Q86%2041%2086%2035Q89%2042%2090%2048L89%2048Q90%2045%2091%2043Q92%2046%2093%2048L92%2048Q94%2043%2097%2039Q96%2044%2096%2048L97%2048Q99%2041%20102%2036Q102%2042%20102%2048L101%2048Q100%2042%2098%2038Q101%2043%20103%2048L102%2048Q102%2044%20100%2040Q104%2044%20106%2048L107%2048Q107%2043%20106%2039Q108%2044%20110%2048L109%2048Q110%2045%20110%2043Q112%2046%20113%2048L113%2048Q114%2042%20114%2037Q117%2042%20118%2048L117%2048Q118%2045%20119%2043Q119%2046%20119%2048L121%2048Q120%2041%20118%2035Q121%2042%20123%2048L125%2048Q127%2039%20130%2032Q128%2040%20128%2048L130%2048Q131%2044%20134%2040Q133%2044%20133%2048L133%2048Q133%2043%20131%2039Q134%2044%20135%2048L134%2048Q134%2042%20132%2038Q135%2043%20136%2048L135%2048Q137%2042%20140%2037Q138%2042%20137%2048L137%2048Q137%2042%20136%2037Q139%2042%20140%2048L142%2048Q142%2043%20140%2039Q145%2044%20147%2048L149%2048Q151%2045%20154%2043Q154%2046%20154%2048L156%2048Q158%2044%20160%2041Q160%2044%20160%2048L159%2048Q160%2044%20162%2040Q161%2044%20161%2048L162%2048Q162%2044%20160%2041Q164%2044%20165%2048L164%2048Q165%2045%20164%2043Q167%2046%20169%2048L170%2048Q172%2044%20176%2041Q175%2044%20175%2048L177%2048Q179%2044%20182%2040Q181%2044%20180%2048L181%2048Q182%2042%20182%2037Q184%2042%20186%2048L186%2048Q187%2042%20190%2037Q188%2042%20188%2048L189%2048Q188%2045%20186%2042Q189%2045%20191%2048L192%2048Q194%2042%20196%2037Q196%2042%20196%2048L197%2048Q198%2045%20199%2043Q200%2046%20201%2048L201%2048Q203%2042%20206%2037Q204%2042%20204%2048L204%2048Q204%2040%20202%2033Q207%2040%20209%2048L209%2048Q209%2040%20209%2033Q212%2040%20213%2048L213%2048Q215%2044%20218%2041Q216%2044%20215%2048L214%2048Q216%2042%20218%2037Q218%2042%20219%2048L221%2048Q223%2045%20226%2043Q225%2046%20225%2048L225%2048Q227%2040%20230%2034Q230%2041%20230%2048L232%2048Q232%2042%20230%2037Q234%2042%20235%2048L234%2048Q236%2039%20238%2031Q238%2040%20238%2048L237%2048Q239%2044%20242%2041Q240%2044%20239%2048L241%2048Q241%2042%20240%2038Q242%2043%20244%2048L244%2048Q245%2044%20248%2041Q247%2044%20247%2048L248%2048Q250%2041%20254%2035Q253%2042%20253%2048L253%2048Q255%2045%20258%2043Q258%2046%20258%2048L259%2048Q260%2041%20262%2035Q262%2042%20262%2048L264%2048Q266%2040%20270%2034Q269%2041%20269%2048L270%2048Q270%2043%20270%2039Q273%2044%20274%2048L273%2048Q273%2044%20272%2041Q276%2044%20278%2048L277%2048Q277%2042%20276%2037Q280%2042%20282%2048L284%2048Q285%2045%20288%2043Q286%2046%20286%2048L288%2048Q290%2043%20294%2039Q292%2044%20291%2048L291%2048Q291%2040%20290%2033Q293%2040%20295%2048L297%2048Q297%2041%20294%2036Q298%2042%20300%2048L302%2048Q303%2044%20304%2040Q305%2044%20306%2048L306%2048Q307%2043%20306%2039Q309%2044%20311%2048L312%2048Q314%2042%20317%2038Q316%2043%20316%2048L318%2048Q318%2044%20316%2041Q320%2044%20321%2048L323%2048Q323%2042%20323%2037Q324%2042%20325%2048L325%2048Q325%2043%20324%2039Q326%2044%20328%2048L329%2048Q331%2042%20336%2038Q334%2043%20334%2048L335%2048Q337%2045%20339%2042Q339%2045%20339%2048L339%2048Q340%2044%20342%2041Q342%2044%20342%2048L342%2048Q344%2040%20347%2033Q345%2040%20344%2048L345%2048Q347%2041%20352%2035Q350%2042%20350%2048L350%2048Q351%2045%20352%2043Q354%2046%20355%2048L355%2048Q357%2045%20360%2042Q360%2045%20360%2048L361%2048Q361%2041%20360%2035Q363%2042%20365%2048L366%2048Q368%2045%20372%2043Q371%2046%20371%2048L371%2048Q373%2045%20376%2042Q375%2045%20375%2048L374%2048Q375%2043%20375%2039Q377%2044%20378%2048L379%2048Q380%2039%20382%2031Q382%2040%20383%2048L383%2048Q385%2045%20386%2043Q387%2046%20388%2048L387%2048Q388%2044%20391%2041Q390%2044%20389%2048L390%2048Q391%2045%20392%2043Q394%2046%20395%2048L400%2048V48Z'/%3E%3C/svg%3E") 0 100% / 400px 48px repeat-x;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 48'%3E%3Cpath d='M0%2048V47L0%2047Q-0%2041%20-1%2036Q1%2042%202%2047L6%2047Q6%2034%207%2023Q8%2035%208%2047L10%2047Q11%2037%2014%2029Q13%2038%2013%2047L16%2047Q16%2038%2016%2030Q18%2038%2019%2047L23%2047Q22%2028%2020%2012Q23%2030%2025%2047L29%2047Q31%2038%2033%2030Q33%2038%2033%2047L37%2047Q37%2028%2035%2012Q38%2030%2039%2047L40%2047Q42%2040%2045%2035Q43%2041%2042%2047L43%2047Q43%2037%2042%2028Q45%2038%2046%2047L49%2047Q51%2037%2054%2029Q53%2038%2052%2047L55%2047Q55%2040%2055%2035Q56%2041%2057%2047L58%2047Q58%2026%2056%208Q59%2028%2060%2047L63%2047Q64%2037%2066%2029Q66%2038%2066%2047L67%2047Q68%2034%2069%2023Q69%2035%2069%2047L74%2047Q74%2035%2074%2026Q77%2036%2078%2047L81%2047Q81%2027%2080%2011Q83%2029%2084%2047L88%2047Q88%2041%2088%2036Q90%2042%2091%2047L93%2047Q94%2040%2097%2035Q96%2041%2095%2047L100%2047Q99%2037%2097%2029Q100%2038%20102%2047L105%2047Q107%2040%20110%2035Q108%2041%20108%2047L111%2047Q111%2041%20110%2036Q112%2042%20113%2047L118%2047Q118%2034%20119%2023Q120%2035%20120%2047L125%2047Q124%2026%20122%209Q125%2028%20127%2047L128%2047Q129%2025%20132%207Q131%2027%20131%2047L135%2047Q135%2035%20134%2026Q136%2036%20138%2047L143%2047Q144%2039%20146%2032Q146%2040%20146%2047L147%2047Q146%2038%20144%2031Q147%2039%20149%2047L151%2047Q152%2037%20152%2028Q153%2038%20153%2047L156%2047Q157%2027%20158%2010Q159%2028%20159%2047L160%2047Q162%2037%20165%2029Q164%2038%20164%2047L165%2047Q166%2039%20168%2033Q168%2040%20168%2047L170%2047Q170%2035%20169%2026Q171%2036%20172%2047L174%2047Q174%2042%20173%2037Q176%2042%20178%2047L182%2047Q184%2042%20188%2037Q186%2042%20185%2047L188%2047Q189%2029%20190%2015Q191%2031%20191%2047L196%2047Q197%2035%20198%2026Q199%2036%20200%2047L205%2047Q205%2038%20204%2031Q207%2039%20209%2047L210%2047Q210%2024%20209%206Q211%2026%20212%2047L216%2047Q217%2026%20218%209Q218%2028%20218%2047L222%2047Q221%2026%20219%208Q222%2028%20224%2047L228%2047Q230%2027%20233%2011Q231%2029%20230%2047L232%2047Q233%2035%20234%2026Q235%2036%20235%2047L238%2047Q240%2024%20244%205Q242%2026%20242%2047L245%2047Q244%2024%20242%206Q245%2026%20247%2047L251%2047Q251%2034%20250%2024Q253%2036%20255%2047L260%2047Q262%2027%20264%2011Q264%2029%20264%2047L269%2047Q269%2039%20267%2033Q270%2040%20271%2047L274%2047Q274%2038%20273%2031Q275%2039%20276%2047L281%2047Q283%2038%20286%2030Q284%2038%20284%2047L286%2047Q286%2039%20285%2032Q288%2040%20290%2047L295%2047Q296%2033%20296%2021Q297%2034%20297%2047L302%2047Q301%2034%20299%2024Q302%2036%20304%2047L307%2047Q308%2040%20311%2034Q310%2040%20309%2047L313%2047Q315%2040%20317%2034Q317%2040%20317%2047L320%2047Q322%2035%20324%2025Q323%2036%20323%2047L328%2047Q328%2036%20326%2027Q330%2037%20331%2047L336%2047Q336%2034%20336%2024Q337%2036%20338%2047L343%2047Q343%2026%20343%209Q346%2028%20347%2047L349%2047Q349%2038%20347%2030Q350%2038%20351%2047L355%2047Q356%2041%20356%2036Q357%2042%20357%2047L361%2047Q363%2035%20366%2025Q365%2036%20365%2047L367%2047Q368%2034%20371%2023Q370%2035%20369%2047L370%2047Q370%2032%20370%2020Q372%2034%20373%2047L374%2047Q375%2026%20376%209Q377%2028%20378%2047L382%2047Q382%2035%20381%2026Q384%2036%20386%2047L387%2047Q388%2035%20388%2025Q389%2036%20390%2047L393%2047Q393%2038%20392%2030Q395%2038%20397%2047L400%2047V48ZM0%2048V48L0%2048Q2%2045%206%2043Q4%2046%203%2048L3%2048Q5%2044%208%2040Q8%2044%208%2048L10%2048Q10%2039%209%2031Q12%2040%2014%2048L13%2048Q15%2040%2018%2033Q16%2040%2016%2048L16%2048Q16%2044%2017%2041Q18%2044%2018%2048L19%2048Q19%2043%2018%2039Q21%2044%2022%2048L22%2048Q23%2041%2024%2036Q26%2042%2027%2048L29%2048Q29%2044%2027%2041Q31%2044%2033%2048L32%2048Q33%2044%2034%2040Q35%2044%2035%2048L37%2048Q38%2045%2040%2043Q40%2046%2041%2048L41%2048Q42%2039%2042%2031Q45%2040%2046%2048L48%2048Q49%2045%2048%2042Q51%2045%2053%2048L52%2048Q54%2041%2056%2035Q56%2042%2057%2048L57%2048Q59%2044%2062%2041Q62%2044%2062%2048L62%2048Q63%2045%2065%2042Q64%2045%2064%2048L64%2048Q66%2041%2069%2036Q67%2042%2066%2048L67%2048Q69%2043%2072%2039Q72%2044%2072%2048L73%2048Q75%2044%2078%2041Q78%2044%2078%2048L78%2048Q79%2042%2082%2038Q80%2043%2080%2048L79%2048Q79%2039%2079%2032Q80%2040%2081%2048L81%2048Q83%2044%2086%2040Q84%2044%2084%2048L86%2048Q86%2041%2086%2035Q89%2042%2090%2048L89%2048Q90%2045%2091%2043Q92%2046%2093%2048L92%2048Q94%2043%2097%2039Q96%2044%2096%2048L97%2048Q99%2041%20102%2036Q102%2042%20102%2048L101%2048Q100%2042%2098%2038Q101%2043%20103%2048L102%2048Q102%2044%20100%2040Q104%2044%20106%2048L107%2048Q107%2043%20106%2039Q108%2044%20110%2048L109%2048Q110%2045%20110%2043Q112%2046%20113%2048L113%2048Q114%2042%20114%2037Q117%2042%20118%2048L117%2048Q118%2045%20119%2043Q119%2046%20119%2048L121%2048Q120%2041%20118%2035Q121%2042%20123%2048L125%2048Q127%2039%20130%2032Q128%2040%20128%2048L130%2048Q131%2044%20134%2040Q133%2044%20133%2048L133%2048Q133%2043%20131%2039Q134%2044%20135%2048L134%2048Q134%2042%20132%2038Q135%2043%20136%2048L135%2048Q137%2042%20140%2037Q138%2042%20137%2048L137%2048Q137%2042%20136%2037Q139%2042%20140%2048L142%2048Q142%2043%20140%2039Q145%2044%20147%2048L149%2048Q151%2045%20154%2043Q154%2046%20154%2048L156%2048Q158%2044%20160%2041Q160%2044%20160%2048L159%2048Q160%2044%20162%2040Q161%2044%20161%2048L162%2048Q162%2044%20160%2041Q164%2044%20165%2048L164%2048Q165%2045%20164%2043Q167%2046%20169%2048L170%2048Q172%2044%20176%2041Q175%2044%20175%2048L177%2048Q179%2044%20182%2040Q181%2044%20180%2048L181%2048Q182%2042%20182%2037Q184%2042%20186%2048L186%2048Q187%2042%20190%2037Q188%2042%20188%2048L189%2048Q188%2045%20186%2042Q189%2045%20191%2048L192%2048Q194%2042%20196%2037Q196%2042%20196%2048L197%2048Q198%2045%20199%2043Q200%2046%20201%2048L201%2048Q203%2042%20206%2037Q204%2042%20204%2048L204%2048Q204%2040%20202%2033Q207%2040%20209%2048L209%2048Q209%2040%20209%2033Q212%2040%20213%2048L213%2048Q215%2044%20218%2041Q216%2044%20215%2048L214%2048Q216%2042%20218%2037Q218%2042%20219%2048L221%2048Q223%2045%20226%2043Q225%2046%20225%2048L225%2048Q227%2040%20230%2034Q230%2041%20230%2048L232%2048Q232%2042%20230%2037Q234%2042%20235%2048L234%2048Q236%2039%20238%2031Q238%2040%20238%2048L237%2048Q239%2044%20242%2041Q240%2044%20239%2048L241%2048Q241%2042%20240%2038Q242%2043%20244%2048L244%2048Q245%2044%20248%2041Q247%2044%20247%2048L248%2048Q250%2041%20254%2035Q253%2042%20253%2048L253%2048Q255%2045%20258%2043Q258%2046%20258%2048L259%2048Q260%2041%20262%2035Q262%2042%20262%2048L264%2048Q266%2040%20270%2034Q269%2041%20269%2048L270%2048Q270%2043%20270%2039Q273%2044%20274%2048L273%2048Q273%2044%20272%2041Q276%2044%20278%2048L277%2048Q277%2042%20276%2037Q280%2042%20282%2048L284%2048Q285%2045%20288%2043Q286%2046%20286%2048L288%2048Q290%2043%20294%2039Q292%2044%20291%2048L291%2048Q291%2040%20290%2033Q293%2040%20295%2048L297%2048Q297%2041%20294%2036Q298%2042%20300%2048L302%2048Q303%2044%20304%2040Q305%2044%20306%2048L306%2048Q307%2043%20306%2039Q309%2044%20311%2048L312%2048Q314%2042%20317%2038Q316%2043%20316%2048L318%2048Q318%2044%20316%2041Q320%2044%20321%2048L323%2048Q323%2042%20323%2037Q324%2042%20325%2048L325%2048Q325%2043%20324%2039Q326%2044%20328%2048L329%2048Q331%2042%20336%2038Q334%2043%20334%2048L335%2048Q337%2045%20339%2042Q339%2045%20339%2048L339%2048Q340%2044%20342%2041Q342%2044%20342%2048L342%2048Q344%2040%20347%2033Q345%2040%20344%2048L345%2048Q347%2041%20352%2035Q350%2042%20350%2048L350%2048Q351%2045%20352%2043Q354%2046%20355%2048L355%2048Q357%2045%20360%2042Q360%2045%20360%2048L361%2048Q361%2041%20360%2035Q363%2042%20365%2048L366%2048Q368%2045%20372%2043Q371%2046%20371%2048L371%2048Q373%2045%20376%2042Q375%2045%20375%2048L374%2048Q375%2043%20375%2039Q377%2044%20378%2048L379%2048Q380%2039%20382%2031Q382%2040%20383%2048L383%2048Q385%2045%20386%2043Q387%2046%20388%2048L387%2048Q388%2044%20391%2041Q390%2044%20389%2048L390%2048Q391%2045%20392%2043Q394%2046%20395%2048L400%2048V48Z'/%3E%3C/svg%3E") 0 100% / 400px 48px repeat-x;
        pointer-events: none;
    }
    .home-hero:has(+ .home-dark) { --grass-color: var(--l-forest); } /* bez konta pokazowego pod hasłem od razu „Funkcje” */
    .home-hero-text { display: flex; flex-direction: column; gap: 22px; width: 100%; max-width: none; }
    .home-hero-text > * { max-width: 620px; }
    .home-landing .home-chip { padding: 5px 12px 5px 10px; border-left: 3px solid #9ccc4a; background: rgba(255, 255, 255, .14); color: #fff; font-size: .875rem; }
    .home-landing .home-chip::before { background: #9ccc4a; }
    .home-hero h1 { margin: 0; color: #fff; font-size: clamp(3rem, 1.6rem + 3.6vw, 4.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -.015em; }
    /* Podkreślenie pędzlem pod końcem hasła (biała kreska SVG pod tekstem) */
    .home-underline { padding-bottom: .1em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8C50 3 130 2 198 6' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") 0 100% / 100% .22em no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
    .home-hero-lead { font-size: 1.1875rem; line-height: 1.6; color: rgba(255, 255, 255, .88); }
    .home-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
    .home-hero-actions .btn { min-height: 54px; padding: 0 28px; font-size: 1rem; }
    .home-hero .hint { margin: 0; font-size: .875rem; color: rgba(255, 255, 255, .75); }
    /* Karta przypomnienia na zdjęciu, w prawym dolnym rogu nad trawą */
    .home-hero-note { position: absolute; right: var(--home-gutter); bottom: 72px; display: flex; align-items: flex-start; gap: 12px; width: 280px; margin: 0; padding: 14px 16px; border: 0; border-radius: 8px; box-shadow: 0 12px 32px rgba(0, 0, 0, .25); }
    .home-hero-note > div { display: flex; flex-direction: column; gap: 2px; }
    .home-hero-note strong { font-size: .875rem; font-weight: 600; color: var(--l-forest); }
    .home-hero .home-hero-note .hint { font-size: .8125rem; color: var(--muted); }
    .home-note-icon { display: flex; flex: none; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--l-green); color: #fff; }

    /* Przykładowy ogród: plan konta pokazowego w widoku „Symbole” (demo_plan(), jak plan w aplikacji: SVG 0–100 w obu osiach
       z kreskami stałej grubości, symbole roślin w skali planu). Sekcja ma dwie kolumny: po lewej nagłówek i plan, po prawej,
       węższej, nagłówek i film; nagłówki stoją w jednym wierszu, a plan i film w drugim. Plan ma za sobą zielony prostokąt
       przesunięty w lewo i w górę */
    .home-example { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; gap: 28px 56px; }
    .home-example-head { grid-area: 1 / 1; }
    .home-example-card { position: relative; display: flex; align-items: center; grid-area: 2 / 1; margin: 12px 0 0 12px; padding: 16px; border: 0; border-radius: 8px; background: var(--l-sage); box-shadow: 0 16px 40px rgba(13, 59, 39, .12); }
    .home-example-card > .home-plan { flex: 1; }
    .home-example-card::before { content: ""; position: absolute; top: -12px; left: -12px; z-index: -1; width: 55%; height: 70%; border-radius: 8px; background: var(--l-green); }
    .home-example { isolation: isolate; }
    .home-video-head { grid-area: 1 / 2; }
    .home-example-side { grid-area: 2 / 2; }
    .home-example-open { align-self: flex-start; margin-top: 8px; }
    .home-plan { position: relative; aspect-ratio: var(--ratio, 1.6); overflow: hidden; border-radius: 8px; background: var(--soft); box-shadow: 0 0 0 1px var(--field-border); }
    .home-plan svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
    .home-plan svg * { vector-effect: non-scaling-stroke; }
    .home-plan-room { fill-opacity: .18; stroke-width: 1.6; }
    .home-plan-feature { stroke-width: 2; }
    /* Obszar rośliny: obrys w kolorze symbolu, a pod nim wypełnienie symbolem (.plant-area-fill, home.js); bez JS – jasna zieleń */
    .home-plan-area { fill: #b9dc9f; fill-opacity: .9; stroke: #4c8a3c; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
    .home-plan .plant-area-fill + .home-plan-area { fill: none; }
    .home-plan .plant-area-fill { opacity: .9; }
    .home-plan .plant-area-fill.lawn-fill { opacity: .55; }
    .home-plan .lawn-fill use { opacity: .35; }
    .home-plan .home-plan-area[data-outline="grass"] { stroke-width: 1.2; }
    /* Rysunki symboli w <defs> skalują się razem z symbolem (jak na planie), a nie mają stałej grubości kreski */
    .home-plan svg defs * { vector-effect: none; }
    .home-plan-plant-line { fill: none; stroke-width: 3; stroke-linecap: round; }
    /* Trawnik jest półprzezroczysty: strefy pod nim zostają widoczne */
    .home-plan-lawn { fill: #b7dc8e; fill-opacity: .55; stroke: #5a8f2e; }
    .home-plan-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
    .home-plan-line.kind-gate { stroke-width: 9; stroke-linecap: butt; }
    .home-plan-line.kind-wicket { stroke-width: 6; stroke-linecap: butt; }
    .home-plan-line.kind-path { stroke-width: 5; stroke-dasharray: 2 7; }
    .home-plan-line.kind-fence { stroke-width: 2.5; stroke-dasharray: 10 3 2 3; }
    .home-pin, .home-plan-icon, .home-room-label { position: absolute; top: var(--y); left: var(--x); transform: translate(-50%, -50%); }
    .home-pin { width: var(--w); min-width: 16px; aspect-ratio: 1; }
    .home-pin .plant-symbol { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .35)); }
    /* Drzewo i grupka lekko przezroczyste jak na planie (.pin-translucent): widać rośliny pod nimi */
    .home-pin.is-translucent .plant-symbol { opacity: .72; }
    .home-plan-icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 2px solid #5a4632; border-radius: 50%; background: #fff; font-size: .875rem; line-height: 1; }
    .home-room-label { padding: 4px 9px; border: 1px solid var(--btn-border); border-radius: 8px; background: var(--card); box-shadow: var(--shadow); font-size: .8125rem; font-weight: 600; line-height: 1.3; white-space: nowrap; }
    /* Prawa kolumna: filmy; kolumny mają równą wysokość, a filmy stoją u góry i u dołu */
    .home-example-card, .home-example-side { align-self: stretch; }
    .home-example-side { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
    .home-landing .home-video { border-radius: 8px; }
    .home-landing .home-video-title { background: color-mix(in srgb, var(--l-forest) 92%, transparent); font-weight: 700; }
    /* Przycisk odtwarzania jak w szablonie: zielone kółko z białym trójkątem i jasną obwódką, która po najechaniu
       rozchodzi się falą; zdjęcie lekko przyciemnia się pod nim */
    .home-landing .home-video img { transition: filter .2s; }
    .home-landing .home-video:is(:hover, :focus-visible) img { filter: brightness(.82); }
    .home-landing .home-video-play svg { width: 76px; height: 76px; padding: 25px 23px 25px 27px; background: var(--l-green); fill: #fff; box-shadow: 0 0 0 8px rgba(255, 255, 255, .4), 0 10px 28px rgba(0, 0, 0, .35); transition: background .15s, transform .15s; }
    .home-landing .home-video:is(:hover, :focus-visible) .home-video-play svg { background: var(--l-green-dark); transform: scale(1.06); animation: home-play-wave 1.4s ease-out infinite; }
    @keyframes home-play-wave {
        0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .6), 0 10px 28px rgba(0, 0, 0, .35); }
        100% { box-shadow: 0 0 0 22px rgba(255, 255, 255, 0), 0 10px 28px rgba(0, 0, 0, .35); }
    }
    @media (prefers-reduced-motion: reduce) { .home-landing .home-video:is(:hover, :focus-visible) .home-video-play svg { animation: none; } }

    /* Funkcje: ciemnozielona sekcja z jasnymi plamami, nagłówek w dwóch kolumnach, białe karty ze zdjęciem; na dole separator ze źdźbeł */
    .home-dark {
        position: relative;
        padding-bottom: 128px;
        background:
            radial-gradient(ellipse 40% 18% at 85% 12%, rgba(255, 255, 255, .05), transparent 70%),
            radial-gradient(ellipse 30% 12% at 15% 40%, rgba(255, 255, 255, .04), transparent 70%),
            linear-gradient(180deg, var(--l-forest) 0%, #12482f 70%, #1d5a2c 100%);
    }
    .home-landing .home-dark :is(h2, .eyebrow) { color: #fff; }
    .home-landing .home-dark .eyebrow::before { background: #9ccc4a; }
    .home-landing .home-dark .home-head p { color: rgba(255, 255, 255, .82); }
    .home-head-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 16px 64px; }
    .home-head-split > div { display: flex; flex-direction: column; gap: 12px; }
    .home-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 12px; }
    .home-feature { position: relative; display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 18px 18px 26px; overflow: hidden; border: 0; border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
    /* Półokrąg w prawym dolnym rogu karty (ozdoba z szablonu) */
    .home-feature:not(.home-feature-free)::after { content: ""; position: absolute; right: -46px; bottom: -46px; width: 110px; height: 110px; border: 16px solid var(--l-sage); border-radius: 50%; pointer-events: none; }
    .home-feature-photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 6px; object-fit: cover; }
    .home-feature-top { display: flex; align-items: center; justify-content: space-between; }
    .home-feature-icon { display: flex; color: var(--l-green); }
    .home-feature-go { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--l-green); color: #fff; transition: background .15s; }
    .home-feature-go:hover { background: var(--l-green-dark); color: #fff; }
    .home-feature > div:last-child { position: relative; z-index: 1; display: flex; flex: 1; flex-direction: column; gap: 10px; }
    .home-feature h3 { margin: 0; font-size: 1.25rem; }
    .home-feature p { font-size: .9375rem; line-height: 1.6; color: var(--l-text); }
    .home-feature-link { margin-top: auto; font-size: .9375rem; font-weight: 600; color: var(--l-green); }
    .home-feature-free { justify-content: center; gap: 16px; padding: 28px; background: var(--l-green); }
    .home-landing .home-feature-free h3 { font-size: 1.5rem; color: #fff; }
    .home-feature-free p { color: rgba(255, 255, 255, .88); }
    .home-landing .home-feature-free .btn { align-self: flex-start; min-height: 46px; background: #fff; color: var(--l-green); }
    .home-landing .home-feature-free .btn:hover { background: var(--l-sage); }

    /* Poradniki: karty na jasnej szałwii, zdjęcie albo film u góry; kroki z numerem w ciemnym kółku połączone kropkowaną linią */
    .home-guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 28px; }
    .home-guide { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 24px 28px 32px; border: 0; border-radius: 10px; background: var(--l-sage); box-shadow: none; }
    .home-guide-photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 8px; object-fit: cover; }
    .home-guide > .home-video { box-shadow: none; }
    .home-guide > .eyebrow { margin-top: 6px; }
    .home-guide h2 { margin: -6px 0 0; font-size: 1.875rem; line-height: 1.18; }
    .home-guide p { font-size: .9375rem; line-height: 1.6; color: var(--l-text); }
    .home-guide .home-guide-lead { font-size: 1rem; }
    .home-guide > .btn { align-self: flex-start; min-height: 46px; margin-top: auto; }
    .home-steps { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
    .home-steps li { position: relative; display: flex; align-items: flex-start; gap: 16px; }
    .home-steps li:not(:last-child)::before { content: ""; position: absolute; top: 40px; bottom: -14px; left: 18px; border-left: 2px dotted var(--l-green); opacity: .5; }
    .home-steps strong { font-weight: 700; color: var(--l-forest); }
    .home-step-no { display: flex; flex: none; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--l-forest); color: #fff; font: 700 .875rem var(--font-serif); }
    .home-steps p { padding-top: 7px; }
    /* Po krokach wymaganych: napis z kreskami po bokach, że reszta jest opcjonalna */
    .home-steps-optional { display: flex; align-items: center; gap: 12px; margin: 2px 0 !important; color: var(--l-green); font-size: .8125rem; font-weight: 600; letter-spacing: .02em; text-align: center; }
    .home-steps-optional::before, .home-steps-optional::after { content: ""; flex: 1; min-width: 16px; border-top: 1.5px dashed color-mix(in srgb, var(--l-green) 45%, transparent); }

    /* Dla kogo: wyśrodkowany nagłówek, białe karty z ikoną w kółku z przerywaną obwódką i ciemną krawędzią na dole */
    .home-head-center { align-items: center; text-align: center; }
    .home-head-center .eyebrow { align-self: center; }
    .home-head-center h2 { max-width: 720px; }
    .home-audience { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 8px 0 0; padding: 0; list-style: none; }
    .home-audience li { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0; padding: 28px 22px; border: 0; border-bottom: 4px solid var(--l-forest); border-radius: 8px; text-align: center; box-shadow: 0 8px 24px rgba(13, 59, 39, .06); }
    .home-audience-icon { display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; margin-bottom: 6px; border: 1.5px dashed var(--l-green); border-radius: 50%; color: var(--l-green); }
    .home-audience strong { font: 700 1.0625rem/1.3 var(--font-serif); color: var(--l-forest); }
    .home-audience li > span:last-child { font-size: .9375rem; line-height: 1.55; color: var(--l-text); }

    /* Za darmo: zdjęcie nachodzi na zielony panel z tekstem, listą i przyciskiem; cena w kółku na zdjęciu */
    .home-free { position: relative; display: flex; align-items: stretch; }
    .home-free-photo { position: relative; z-index: 1; flex: 0 0 38%; margin: 40px 0; }
    .home-free-photo picture { display: contents; }
    .home-free-photo img { display: block; width: 100%; height: 100%; min-height: 420px; border-radius: 8px; object-fit: cover; box-shadow: 0 16px 40px rgba(0, 0, 0, .18); }
    .home-price-badge { position: absolute; top: -28px; right: -28px; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 132px; height: 132px; border: 6px solid #fff; border-radius: 50%; background: var(--l-green); color: #fff; font-size: .875rem; line-height: 1.2; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
    .home-price-badge strong { font: 800 2.25rem/1 var(--font-serif); }
    .home-free-panel { display: flex; flex: 1; flex-direction: column; gap: 22px; margin-left: -8%; padding: 56px 56px 56px calc(8% + 56px); border-radius: 8px; background: var(--l-green); color: #fff; }
    .home-free-text { display: flex; flex-direction: column; gap: 14px; }
    .home-landing .home-free-panel :is(h2, .eyebrow) { color: #fff; }
    .home-landing .home-free-panel .eyebrow::before { background: #c8e6a0; }
    .home-free h2 { margin: -4px 0 0; font-size: clamp(1.75rem, 1rem + 1.6vw, 2.375rem); line-height: 1.15; }
    .home-free-text p { max-width: 620px; font-size: 1.0625rem; line-height: 1.6; color: rgba(255, 255, 255, .9); }
    .home-price ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 0; padding: 0; list-style: none; font-size: .9375rem; }
    .home-price li { display: flex; align-items: center; gap: 10px; line-height: 1.4; }
    .home-price .icon { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: #fff; color: var(--l-green); }
    .home-free-panel > .btn { align-self: flex-start; min-height: 50px; padding: 0 26px; }
    .home-free-panel { position: relative; isolation: isolate; overflow: hidden; }
    .home-free-branch { position: absolute; right: -30px; bottom: -40px; z-index: -1; width: 380px; height: auto; color: rgba(255, 255, 255, .16); }

    /* Pytania: nagłówek po lewej, pytania jako jasne karty z ikoną w zielonym kółku */
    .home-faq { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 56px; padding-top: 24px; padding-bottom: 104px; }
    .home-faq details { margin-bottom: 12px; padding: 0 22px; border-radius: 8px; background: var(--l-sage); }
    .home-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; font: 700 1.0625rem/1.35 var(--font-serif); color: var(--l-forest); list-style: none; cursor: pointer; }
    .home-faq summary::-webkit-details-marker { display: none; }
    .home-faq summary .icon { flex: none; width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: var(--l-green); color: #fff; transition: transform .15s; }
    .home-faq details[open] summary .icon { transform: rotate(180deg); }
    /* Ozdoby z samych konturów (home.php: $branch, $cornerLeaf, sprite z kształtami liści); kreska w kolorze color */
    .home-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
    .home-branch, .home-corner-leaf, .home-sparks, .home-final-arrow { overflow: visible; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
    .home-branch, .home-corner-leaf { stroke-width: 1.4; }
    .home-branch path { vector-effect: non-scaling-stroke; }
    .home-branch use { fill: var(--leaf-fill, none); }
    /* Gałązka pod nagłówkiem FAQ: wypełnia puste miejsce w lewej kolumnie; liście białe, żeby zasłaniały łodygę pod sobą */
    .home-faq-branch { display: block; width: min(100%, 320px); height: auto; margin-top: 28px; color: var(--l-forest); --leaf-fill: #fff; }
    .home-faq details p { max-width: 720px; padding-bottom: 20px; font-size: .9375rem; line-height: 1.6; color: var(--l-text); }

    /* Wezwanie na końcu: rozmyte zdjęcie ogrodu pod ciemną zielenią, poszarpana górna krawędź (biała, jak sekcja nad nią) */
    .home-landing .home-final { position: relative; isolation: isolate; padding-top: 112px; padding-bottom: 88px; overflow: hidden; background: var(--l-forest); }
    .home-final-bg { position: absolute; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
    .home-landing .home-final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 44, 29, .9), rgba(10, 44, 29, .55)); }
    .home-landing .home-final::after { content: ""; position: absolute; top: -1px; right: 0; left: 0; height: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M0 0h1200v14c-34 5-70-3-108 3s-62 9-104 1-86-7-126 4-58-1-98-6-80 7-118 5-66-9-108-2-88 9-128 3-58-7-96-1-82 5-120 1-66-5-106 2-76 6-88 3z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
    .home-landing .home-final h2 { color: #fff; font-size: clamp(2rem, 1.2rem + 2vw, 2.75rem); }
    .home-landing .home-final p { color: rgba(255, 255, 255, .85); }
    /* Funkcje: blada gałązka na lewym marginesie, pod treścią (sekcja izoluje warstwy) */
    .home-dark { isolation: isolate; }
    .home-dark-branch { position: absolute; top: 56px; left: -70px; z-index: -1; width: 360px; height: auto; color: rgba(255, 255, 255, .13); transform: rotate(-8deg); }
    /* Poradniki: duży liść z żyłkami w prawym dolnym rogu karty */
    .home-guide { position: relative; isolation: isolate; overflow: hidden; }
    .home-corner-leaf { position: absolute; right: -14px; bottom: -14px; z-index: -1; width: 170px; height: 170px; color: rgba(13, 59, 39, .12); }
    /* Za darmo: trzy zielone kreski „błysku” na zewnątrz kółka z ceną, na zielonym panelu po prawej u góry */
    .home-sparks { position: absolute; top: -52px; right: -74px; width: 64px; height: 64px; color: #9ccc4a; stroke-width: 5; }
    @media (max-width: 1440px) { .home-dark-branch { display: none; } }
    /* Wezwanie: odręczna strzałka do przycisku */
    .home-final-arrow { flex: none; width: 150px; height: auto; margin: 26px -12px 0 auto; color: rgba(255, 255, 255, .75); stroke-width: 2; }

    /* ===== Podstrony z treścią (page.php, .site-page.home-landing; decyzja z 2026-11-22: wygląd i ozdoby strony głównej) ===== */
    /* Hasło: pierwsza sekcja na ciemnej zieleni z jasnymi plamami, blada gałązka po prawej, na dole separator ze źdźbeł
       w kolorze następnej sekcji (biała; gdy od razu jest wezwanie – ciemna zieleń) */
    .site-hero {
        position: relative;
        isolation: isolate;
        padding-top: 104px;
        padding-bottom: 136px;
        overflow: hidden;
        background:
            radial-gradient(ellipse 40% 30% at 85% 15%, rgba(255, 255, 255, .06), transparent 70%),
            radial-gradient(ellipse 30% 25% at 10% 85%, rgba(255, 255, 255, .04), transparent 70%),
            linear-gradient(180deg, var(--l-forest) 0%, #12482f 75%, #1d5a2c 100%);
        color: #fff;
    }
    .site-hero:has(+ .home-final) { --grass-color: var(--l-forest); }
    .home-landing .site-hero :is(h1, h2, h3) { color: #fff; }
    .home-landing .site-hero > h1 { max-width: 820px; font-size: clamp(2.75rem, 1.6rem + 3vw, 4.25rem); font-weight: 800; line-height: 1.08; }
    .home-landing .site-section.site-hero > :is(p, ul, ol) { color: rgba(255, 255, 255, .85); }
    .home-landing .site-hero a:not(.btn) { color: #c8e6a0; }
    .site-hero > .btn { min-height: 52px; margin-top: 8px; padding: 0 26px; font-size: 1rem; }
    .site-hero-branch { position: absolute; top: 48px; right: max(-40px, calc(var(--home-gutter) - 160px)); z-index: -1; width: 440px; height: auto; color: rgba(255, 255, 255, .14); transform: rotate(6deg); }
    @media (max-width: 1200px) { .site-hero-branch { display: none; } }

    /* Sekcje: ozdoby pod treścią (sekcja izoluje warstwy), co druga na dole z trawą w kolorze następnej sekcji */
    .home-landing .site-section { position: relative; isolation: isolate; overflow: hidden; }
    .home-landing .site-section.has-grass { padding-bottom: 128px; }
    /* Ozdoby page.php ($ornament): blade kontury w kolorze nagłówków, po stronie bez tekstu; .site-orn-left = lustrzanie po lewej */
    .site-orn { position: absolute; z-index: -1; height: auto; color: rgba(13, 59, 39, .14); opacity: .5; }
    .site-orn.home-branch { --leaf-fill: none; }
    .site-orn-branch { right: max(-70px, calc(var(--home-gutter) - 220px)); bottom: -60px; width: 430px; transform: rotate(-6deg); }
    .site-orn-sprig { right: max(20px, calc(var(--home-gutter) - 60px)); top: 40px; width: 260px; transform: rotate(150deg); }
    .site-orn.home-corner-leaf { width: 300px; height: 300px; }
    .site-orn-leaf { top: 36px; right: max(-20px, calc(var(--home-gutter) - 120px)); transform: rotate(14deg); }
    .site-orn-leaf-low { right: max(40px, calc(var(--home-gutter) + 40px)); bottom: 24px; transform: rotate(-28deg); }
    .site-orn-peek.home-corner-leaf { right: -80px; bottom: -90px; width: 260px; height: 260px; transform: rotate(-20deg); }
    .site-orn-left { right: auto; left: max(-70px, calc(var(--home-gutter) - 220px)); scale: -1 1; }
    /* Na szałwii z trawą i tuż nad wezwaniem (jego poszarpana krawędź ma kolor tej sekcji) gałązka kończy się wyżej, bez przerwy do tła */
    .site-section.has-grass > .site-orn-branch, .site-section:has(+ .home-final) > .site-orn-branch { bottom: 10px; }
    @media (max-width: 1100px) { .site-orn:not(.site-orn-peek) { display: none; } }

    /* Nagłówki sekcji z zielonym listkiem nad tekstem (jak podpis sekcji na stronie głównej) */
    .home-landing :is(.site-section:not(.site-hero), .site-section:not(.site-hero) .site-text) > h2::before {
        content: "";
        display: block;
        width: 28px;
        height: 28px;
        margin-bottom: 14px;
        background: var(--l-green);
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 3C11 3 4 8 4 16c0 1.6.4 3 1 4.2C7 14 11 10 17 8c-5 3-8.6 7.3-10.4 13H9c8 0 12-7 12-18z'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 3C11 3 4 8 4 16c0 1.6.4 3 1 4.2C7 14 11 10 17 8c-5 3-8.6 7.3-10.4 13H9c8 0 12-7 12-18z'/%3E%3C/svg%3E") center / contain no-repeat;
    }
    .home-landing :is(.site-section, .site-text) > h2 { max-width: 860px; font-size: clamp(2rem, 1.2rem + 2vw, 2.75rem); }
    .home-landing :is(.site-section, .site-text) > :is(p, ul, ol) { color: var(--l-text); }
    .home-landing .site-section:not(.site-hero) a:not(.btn) { color: var(--l-green); font-weight: 600; }

    /* Lista w sekcji bez filmu i kolumn: karty jak „Dla kogo” na stronie głównej – białe na szałwii, szałwia na bieli,
       ciemna krawędź na dole i duży liść z żyłkami w rogu (znak wodny); <strong> na początku punktu to tytuł karty */
    .home-landing .site-section:not(.has-media, .has-columns, .site-hero) > ul {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 22px;
        max-width: none;
        margin-top: 8px;
        padding: 0;
        list-style: none;
    }
    .home-landing .site-section:not(.has-media, .has-columns, .site-hero) > ul > li {
        position: relative;
        isolation: isolate;
        overflow: hidden;
        padding: 28px 26px 34px;
        border-bottom: 4px solid var(--l-forest);
        border-radius: 8px;
        background: var(--l-sage);
        font-size: 1rem;
        line-height: 1.6;
    }
    .home-landing .site-section.home-tint:not(.has-media, .has-columns) > ul > li { background: #fff; box-shadow: 0 8px 24px rgba(13, 59, 39, .06); }
    .home-landing .site-section:not(.has-media, .has-columns, .site-hero) > ul > li::after {
        content: "";
        position: absolute;
        right: -16px;
        bottom: -16px;
        z-index: -1;
        width: 150px;
        height: 150px;
        background: rgba(13, 59, 39, .1);
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 130'%3E%3Cg transform='translate(12 118) rotate(-50)' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 0C18-24 64-32 108 0 66 24 22 22 0 0Z'/%3E%3Cpath d='M6 0Q54-5 100 0M22-1Q30-8 36-14M42-2Q52-10 58-17M62-2Q72-10 78-14M80-1Q88-6 93-8M22 1Q30 7 36 12M42 2Q52 9 58 14M62 2Q72 8 78 12M80 1Q88 5 93 6'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 130'%3E%3Cg transform='translate(12 118) rotate(-50)' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 0C18-24 64-32 108 0 66 24 22 22 0 0Z'/%3E%3Cpath d='M6 0Q54-5 100 0M22-1Q30-8 36-14M42-2Q52-10 58-17M62-2Q72-10 78-14M80-1Q88-6 93-8M22 1Q30 7 36 12M42 2Q52 9 58 14M62 2Q72 8 78 12M80 1Q88 5 93 6'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
        pointer-events: none;
    }
    .home-landing .site-section > ul > li > strong:first-child { display: block; margin-bottom: 8px; font: 700 1.1875rem/1.3 var(--font-serif); color: var(--l-forest); }
    /* Lista obok filmu, w kolumnie i w haśle: punkty jako zielone listki */
    .home-landing :is(.site-section:is(.has-media, .has-columns, .site-hero) > ul, .site-text > ul) { gap: 10px; padding-left: 0; list-style: none; }
    .home-landing :is(.site-section:is(.has-media, .has-columns, .site-hero) > ul, .site-text > ul) > li { position: relative; padding-left: 30px; }
    .home-landing :is(.site-section:is(.has-media, .has-columns, .site-hero) > ul, .site-text > ul) > li::before {
        content: "";
        position: absolute;
        top: .3em;
        left: 0;
        width: 18px;
        height: 18px;
        background: var(--l-green);
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 3C11 3 4 8 4 16c0 1.6.4 3 1 4.2C7 14 11 10 17 8c-5 3-8.6 7.3-10.4 13H9c8 0 12-7 12-18z'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 3C11 3 4 8 4 16c0 1.6.4 3 1 4.2C7 14 11 10 17 8c-5 3-8.6 7.3-10.4 13H9c8 0 12-7 12-18z'/%3E%3C/svg%3E") center / contain no-repeat;
    }
    .home-landing .site-hero > ul > li::before { background: #9ccc4a; }
    .home-landing .site-section .site-media { border-radius: 8px; }

    /* Wezwanie: poszarpana górna krawędź w kolorze sekcji nad nim (maska; strona główna ma tam zawsze biel) */
    .home-landing.site-page .home-final::after {
        background: var(--edge-color, #fff);
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1200v14c-34 5-70-3-108 3s-62 9-104 1-86-7-126 4-58-1-98-6-80 7-118 5-66-9-108-2-88 9-128 3-58-7-96-1-82 5-120 1-66-5-106 2-76 6-88 3z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1200v14c-34 5-70-3-108 3s-62 9-104 1-86-7-126 4-58-1-98-6-80 7-118 5-66-9-108-2-88 9-128 3-58-7-96-1-82 5-120 1-66-5-106 2-76 6-88 3z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
    }
    .home-landing.site-page .home-tint + .home-final { --edge-color: var(--l-sage); }
    .home-landing.site-page .site-hero + .home-final { --edge-color: transparent; }

    /* Stopka: ciemna zieleń, na dole zielony pas z prawami autorskimi */
    .home-landing .home-footer { padding-bottom: 0; background: var(--l-deep); }
    .home-landing .home-footer .eyebrow { color: #fff; font-size: 1.0625rem; }
    .home-landing .home-footer .eyebrow::before { background: #9ccc4a; }
    .home-landing .home-footer nav a { align-items: baseline; padding: 5px 0; min-height: 0; line-height: 1.4; }
    .home-landing .home-footer nav a::before { content: "–"; flex: none; margin-right: 10px; color: #9ccc4a; }
    .home-landing .home-footer-copy { margin: 0 calc(-1 * var(--home-gutter)); padding: 16px var(--home-gutter); border: 0; background: var(--l-green); color: #fff; }

    @media (max-width: 1280px) {
        .home-features, .home-audience { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .home-faq { grid-template-columns: 300px minmax(0, 1fr); gap: 40px; }
    }

    /* Telefon i tablet */
    @media (max-width: 1280px) {
        .home-landing .home-bar > .brand { padding-right: 48px; }
        .home-landing .home-nav a { padding: 0 10px; font-size: .875rem; }
        .home-landing .home-nav a::after { right: 10px; left: 10px; }
        .home-landing .home-bar { gap: 16px; }
    }
    @media (max-width: 900px) {
        .home-topline { display: none; }
        .home-landing [id] { scroll-margin-top: 76px; }
        .home-landing .home-bar { height: 64px; padding-left: 0; }
        .home-landing .home-bar > .brand { padding: 0 36px 0 16px; clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%); }
        .home-landing .home-bar .brand-logo { height: 34px; }
        .home-landing .home-menu .menu-body { position: fixed; top: 64px; right: 0; left: 0; min-width: 0; border-radius: 0; }
        .home-landing .eyebrow { font-size: .875rem; }
        .home-landing .home-head h2 { font-size: 1.75rem; }

        /* Hasło: poziomy kadr 8:5 jako pas u góry (wysoki na 62,5vw), pod nim tekst na ciemnej zieleni; dół zdjęcia
           przechodzi w zieleń, a tekst zaczyna się tuż nad końcem zdjęcia; bez karty przypomnienia */
        .home-hero { min-height: 0; padding-top: calc(62.5vw - 24px); padding-bottom: 64px; }
        .home-hero::before { background: linear-gradient(180deg, rgba(10, 44, 29, .05) 0, rgba(10, 44, 29, .2) 32vw, rgba(10, 44, 29, .96) 62vw, rgba(10, 44, 29, .96) 100%); }
        .home-hero-bg img { bottom: auto; height: auto; aspect-ratio: 8 / 5; object-position: 50% 0; }
        .home-hero-text { gap: 16px; }
        .home-hero h1 { font-size: 2.5rem; line-height: 1.08; }
        .home-hero-lead { font-size: 1rem; }
        .home-hero-actions { flex-direction: column; gap: 12px; margin: 0; }
        .home-hero-actions .btn { width: 100%; min-height: 48px; font-size: .9375rem; }
        .home-hero .hint { font-size: .8125rem; text-align: center; }
        .home-hero-note { display: none; }

        .home-example { display: flex; align-items: stretch; }
        .home-example-card { margin: 8px 0 0 8px; }
        .home-example-card::before { top: -8px; left: -8px; }
        .home-pin { min-width: 10px; }
        .home-plan-icon { width: 20px; height: 20px; border-width: 1.5px; font-size: .625rem; }
        .home-room-label { padding: 2px 6px; font-size: .6875rem; }
        .home-example-open { width: 100%; }

        .home-dark { padding-bottom: 88px; }
        .home-head-split { display: flex; flex-direction: column; align-items: stretch; }
        .home-features { display: flex; flex-direction: column; gap: 16px; margin: 0; }
        .home-feature { padding: 14px 14px 20px; }
        .home-feature h3 { font-size: 1.125rem; }
        .home-feature-free { padding: 22px; }
        .home-landing .home-feature-free .btn { width: 100%; }

        .home-guides { display: flex; flex-direction: column; gap: 20px; }
        .home-guide { padding: 16px 16px 24px; }
        .home-guide h2 { font-size: 1.5rem; }
        .home-guide .home-guide-lead { font-size: .9375rem; }
        .home-step-no { width: 34px; height: 34px; }
        .home-steps li:not(:last-child)::before { top: 36px; left: 16px; }
        .home-steps p { padding-top: 5px; }

        .home-audience { gap: 12px; margin: 2px 0 0; }
        .home-audience li { padding: 20px 14px; }
        .home-audience-icon { width: 60px; height: 60px; }

        .home-free { flex-direction: column; }
        .home-free-photo { flex: none; margin: 0 16px; }
        .home-free-photo img { height: auto; min-height: 0; } /* całe zdjęcie w proporcjach pliku, bez przycinania głowy */
        .home-price-badge { top: auto; right: 12px; bottom: -40px; width: 100px; height: 100px; border-width: 4px; }
        .home-price-badge strong { font-size: 1.75rem; }
        .home-free-panel { margin: -40px 0 0; padding: 72px 20px 28px; }
        .home-free-text p { font-size: .9375rem; }
        .home-price ul { grid-template-columns: 1fr; }
        .home-free-panel > .btn { width: 100%; }

        .home-faq-branch, .home-sparks, .home-final-arrow, .home-free-branch { display: none; }
        .home-faq { display: flex; gap: 12px; padding-top: 8px; padding-bottom: 56px; }
        .home-faq details { padding: 0 14px; }
        .home-faq summary { min-height: 56px; font-size: .9375rem; }

        .home-landing .home-final { padding-top: 64px; padding-bottom: 48px; }
        .home-landing .home-final h2 { font-size: 1.75rem; }

        .site-hero { padding-top: 48px; padding-bottom: 88px; }
        .home-landing .site-section.has-grass { padding-bottom: 80px; }
        .site-orn { display: none; }
        .home-landing .site-hero > h1 { font-size: 2.25rem; }
        .site-hero > .btn { width: 100%; min-height: 48px; font-size: .9375rem; }
        .home-landing :is(.site-section, .site-text) > h2 { font-size: 1.75rem; }
        .home-landing :is(.site-section:not(.site-hero), .site-section:not(.site-hero) .site-text) > h2::before { width: 22px; height: 22px; margin-bottom: 10px; }
        .home-landing .site-section:not(.has-media, .has-columns, .site-hero) > ul { gap: 12px; margin-top: 2px; }
        .home-landing .site-section:not(.has-media, .has-columns, .site-hero) > ul > li { padding: 20px 18px 24px; font-size: .9375rem; }
        .home-landing .site-section:not(.has-media, .has-columns, .site-hero) > ul > li::after { width: 110px; height: 110px; }
    }
    @media (max-width: 560px) {
        .home-audience { grid-template-columns: 1fr; }
    }
}

