/* =========================================================
   BALKONOWY PLAN — SHARED DESIGN SYSTEM V2
   Mobile-first | 9 stron | 2026-11-10

   Założenia:
   - bez zmian w strukturze HTML
   - jeden wspólny CSS dla wszystkich stron
   - bez zależności od JavaScript
   - zachowanie istniejących selektorów v1
   - responsywność i dostępność WCAG AA
   ========================================================= */


/* =========================================================
   01. DESIGN TOKENS
   ========================================================= */

:root {
  color-scheme: light;

  --green: #234b38;
  --green2: #28553c;
  --green-dark: #172e22;

  --light: #f3f6ef;
  --cream: #fbfaf5;
  --white: #ffffff;

  --text: #26352b;
  --muted: #526356;

  --accent: #a56b22;
  --focus: #a05c00;

  --border: #dce5d9;
  --surface: #ffffff;
  --surface-soft: #f5f7f2;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;

  --shadow: 0 12px 35px rgb(23 46 34 / 9%);
  --shadow-lg: 0 20px 55px rgb(23 46 34 / 13%);

  --space-1: .5rem;
  --space-2: .75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 5rem;

  --container: 1160px;
  --reading-width: 860px;
  --prose-width: 76ch;

  --header-height: 68px;
}


/* =========================================================
   02. RESET
   ========================================================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: clip;

  background: var(--cream);
  color: var(--text);

  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 16px;
  line-height: 1.7;

  overflow-wrap: break-word;
}

body,
main {
  min-width: 0;
}

main {
  display: block;
  width: 100%;
}

#main {
  min-height: 1px;
}

[id] {
  scroll-margin-top:
    calc(var(--header-height) + 24px);
}

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

img {
  height: auto;
  vertical-align: middle;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
summary,
label {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--green2);
  text-underline-offset: .2em;
}

a:hover {
  color: var(--green);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: #d3e5cd;
  color: var(--green-dark);
}

.container {
  width: min(
    calc(100% - 36px),
    var(--container)
  );
  margin-inline: auto;
}

:where(
  .grid,
  .hero-grid,
  .about-grid,
  .footer-grid
) > * {
  min-width: 0;
}

main article,
main section,
main aside,
main div {
  min-width: 0;
}

main p,
main li,
main td {
  overflow-wrap: break-word;
}


/* =========================================================
   03. TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4 {
  color: var(--green);
  line-height: 1.24;
  overflow-wrap: break-word;
}

h1 {
  margin: 0 0 1.25rem;

  font-size: clamp(
    2rem,
    5vw,
    3.65rem
  );

  line-height: 1.12;
  letter-spacing: -.035em;
  font-weight: 800;
}

h2 {
  margin: 0 0 1rem;

  font-size: clamp(
    1.55rem,
    2.7vw,
    2.25rem
  );

  line-height: 1.2;
  letter-spacing: -.025em;
  font-weight: 750;
}

h3 {
  margin: 0 0 .75rem;

  font-size: clamp(
    1.15rem,
    1.8vw,
    1.4rem
  );

  line-height: 1.3;
  font-weight: 750;
}

h4 {
  font-size: 1.05rem;
  line-height: 1.4;
}

p {
  margin: 0 0 1.1rem;
}

ul,
ol {
  padding-inline-start: 1.5rem;
}

li {
  margin-block: .4rem;
}

strong {
  font-weight: 750;
}

.eyebrow {
  display: block;
  margin-bottom: .75rem;

  color: var(--green2);
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.5;

  letter-spacing: .12em;
  text-transform: uppercase;
}

.small-muted,
.price-note,
.disclosure {
  color: var(--muted);
  font-size: .875rem;
}


/* =========================================================
   04. ACCESSIBILITY / SKIP LINK

   Ukrywanie przy użyciu clip-path i visibility.
   Samo top:-100px z v1 nie było wystarczająco
   odporne na inne reguły arkuszy.
   ========================================================= */

.skip-link,
a.skip-link {
  position: fixed !important;

  top: 0 !important;
  left: 16px !important;

  z-index: 99999;

  display: block;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: 0;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);

  white-space: nowrap;

  visibility: hidden;
  pointer-events: none;

  transform: translateY(-200%);

  background: var(--white);
  color: var(--green-dark);

  border: 0;
  border-radius: var(--radius-sm);

  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible,
a.skip-link:focus,
a.skip-link:focus-visible {
  width: auto;
  height: auto;
  max-width: calc(100vw - 32px);

  padding: 12px 18px;

  clip: auto;
  clip-path: none;

  overflow: visible;
  white-space: normal;

  visibility: visible;
  pointer-events: auto;

  transform: none;

  border: 3px solid var(--focus);

  outline: 3px solid var(--white);
  outline-offset: 2px;

  box-shadow: var(--shadow-lg);
}

#main:focus {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;

    transition-duration: .01ms !important;
  }
}


/* =========================================================
   05. SITE HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  width: 100%;

  background: rgb(255 255 255 / 97%);
  border-bottom: 1px solid var(--border);

  box-shadow:
    0 2px 12px rgb(23 46 34 / 4%);
}

.site-header .nav {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  min-height: var(--header-height);
}

.logo {
  display: inline-block;

  color: var(--green);

  font-size: clamp(
    1rem,
    2vw,
    1.3rem
  );

  font-weight: 850;
  letter-spacing: -.05em;
  line-height: 1.2;

  text-decoration: none;
  white-space: nowrap;
}

.logo span {
  color: var(--green2);
}

.logo:hover {
  color: var(--green);
}


/* Mobile menu */

.menu-toggle {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
  overflow: hidden;
}

.menu-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 9px;

  min-width: 90px;
  min-height: 44px;

  padding: 9px 14px;

  border: 1px solid var(--border);
  border-radius: var(--radius-sm);

  background: var(--white);
  color: var(--green);

  font-size: .9rem;
  font-weight: 750;
  line-height: 1.3;

  cursor: pointer;

  transition:
    background-color .2s ease,
    border-color .2s ease;
}

.menu-label:hover {
  background: var(--light);
  border-color: #b7c9b6;
}

.menu-toggle:focus-visible + .menu-label {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.menu-icon {
  position: relative;
  display: inline-block;

  width: 19px;
  height: 15px;

  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.menu-icon::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  top: 5px;

  border-top: 2px solid currentColor;
}

.site-nav {
  display: none;

  position: absolute;

  top: 100%;
  left: -18px;
  right: -18px;

  padding: 12px 18px 20px;

  background: var(--white);

  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);

  max-height:
    calc(100dvh - var(--header-height));

  overflow-y: auto;
  overscroll-behavior: contain;
}

.menu-toggle:checked ~ .site-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;

  gap: 3px;
}

.site-nav a {
  display: flex;
  align-items: center;

  min-height: 44px;
  padding: 10px 13px;

  border-radius: 9px;

  color: var(--green-dark);

  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;

  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: var(--light);
  color: var(--green);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 3px 0 var(--green2);
}


/* =========================================================
   06. BREADCRUMBS

   Reset list-style, counters and browser defaults.
   Obejmuje wszystkie strony poza home.
   ========================================================= */

.breadcrumbs {
  display: block;

  width: min(
    calc(100% - 36px),
    var(--container)
  );

  margin: 0 auto;
  padding: 14px 0;

  color: var(--muted);

  font-size: .8125rem;
  line-height: 1.5;
}

.breadcrumbs ol,
.breadcrumbs ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  gap: 5px 9px;

  width: 100%;

  margin: 0;
  padding: 0;

  list-style: none;
  list-style-type: none;

  counter-reset: none;
}

.breadcrumbs li {
  position: relative;

  display: inline-flex;
  align-items: center;

  width: auto;
  max-width: 100%;

  margin: 0;
  padding: 0;

  list-style: none;
  list-style-type: none;

  font-size: inherit;
  line-height: inherit;
}

.breadcrumbs li::marker {
  content: "";
}

.breadcrumbs li::before {
  content: none;
}

.breadcrumbs li + li::before {
  content: "/";

  display: inline-block;

  margin-right: 9px;

  color: #8a9b8d;
  font-weight: 400;
}

.breadcrumbs a {
  display: inline-flex;
  align-items: center;

  min-height: 32px;

  color: var(--green2);

  font-size: inherit;
  font-weight: 600;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--muted);
  font-weight: 600;
  overflow-wrap: anywhere;
}


/* =========================================================
   07. COMMON SECTIONS
   ========================================================= */

main > section,
main > .categories,
main > .products,
main > .about,
main > .newsletter,
main > .faq {
  padding-block: clamp(
    48px,
    6vw,
    80px
  );
}

main > .hero {
  padding-block: clamp(
    44px,
    5.5vw,
    76px
  );
}

.section-heading {
  display: flex;
  flex-direction: column;

  gap: 6px;

  margin-bottom: 30px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading p {
  max-width: 65ch;

  margin: 0;

  color: var(--muted);
}

.grid {
  display: grid;

  grid-template-columns: minmax(0, 1fr);

  gap: 22px;
}


/* =========================================================
   08. HERO
   ========================================================= */

.hero {
  background:
    linear-gradient(
      115deg,
      #eaf0e5,
      #f6f3e9
    );
}

.hero-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr);

  align-items: center;

  gap: 30px;
}

.hero h1 {
  max-width: 19ch;
}

.hero p {
  max-width: 58ch;

  color: var(--muted);

  font-size: clamp(
    1rem,
    1.5vw,
    1.125rem
  );

  line-height: 1.7;
}

.hero .btn {
  margin-top: 8px;
}

.hero-image {
  width: 100%;
  min-height: 240px;

  aspect-ratio: 4 / 3;

  border-radius: var(--radius-lg);

  background-color: #c7d6c0;

  background-image: var(--hero-img, none);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  box-shadow: var(--shadow-lg);

  overflow: hidden;
}


/* =========================================================
   09. BUTTONS / LINKS / TAGS
   ========================================================= */

.btn,
.product-link {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 8px;

  min-height: 44px;
  max-width: 100%;

  padding: 11px 22px;

  border: 2px solid transparent;
  border-radius: 999px;

  background: var(--green);
  color: var(--white);

  font-size: .94rem;
  font-weight: 750;
  line-height: 1.35;

  text-align: center;
  text-decoration: none;

  white-space: normal;
  overflow-wrap: anywhere;

  cursor: pointer;

  transition:
    background-color .18s ease,
    transform .18s ease;
}

.btn:hover,
.product-link:hover {
  background: var(--green-dark);
  color: var(--white);

  transform: translateY(-2px);
}

.btn:focus-visible,
.product-link:focus-visible {
  outline-offset: 4px;
}

.read-more {
  display: inline-flex;
  align-items: center;

  min-height: 44px;

  padding: 8px 0;

  color: var(--green2);

  font-size: .94rem;
  font-weight: 800;

  text-decoration: underline;
  text-underline-offset: 4px;
}

.read-more:hover {
  color: var(--green-dark);
}

.tag {
  display: inline-block;

  padding: 6px 12px;

  border-radius: 999px;

  background: #e5efe1;
  color: var(--green);

  font-size: .76rem;
  font-weight: 800;
  line-height: 1.35;

  letter-spacing: .03em;
  text-transform: uppercase;
}


/* =========================================================
   10. CARDS
   ========================================================= */

.card,
.category-card,
.product-card {
  min-width: 0;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: var(--surface);
}

.card {
  display: flex;
  flex-direction: column;

  overflow: hidden;

  transition:
    box-shadow .2s ease,
    transform .2s ease;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card-image {
  display: block;

  width: 100%;
  height: auto;

  aspect-ratio: 4 / 3;
  object-fit: cover;

  background: #e5eadf;
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  flex: 1;

  padding: 22px;
}

.card h3 {
  margin: 12px 0 8px;

  font-size: 1.22rem;
  line-height: 1.32;
}

.card p,
.category-card p,
.product-card p {
  color: var(--muted);

  font-size: .94rem;
  line-height: 1.65;
}

.card .read-more {
  margin-top: auto;
}


/* =========================================================
   11. CATEGORIES
   ========================================================= */

.categories {
  background: var(--light);
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  height: 100%;

  padding: 22px;

  transition:
    box-shadow .2s ease,
    transform .2s ease;
}

.category-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.category-card .symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;

  font-size: 2rem;
  line-height: 1.2;
}

.category-card h3 {
  margin: 10px 0 7px;
}

.category-card p {
  margin-bottom: 16px;
}

.category-card a {
  display: inline-flex;
  align-items: center;

  min-height: 44px;

  margin-top: auto;

  font-size: .94rem;
  font-weight: 750;
}


/* =========================================================
   12. PRODUCT CARDS
   ========================================================= */

.products {
  background: var(--white);
}

.product-card {
  display: flex;
  flex-direction: column;

  height: 100%;

  padding: 17px;

  background: var(--cream);
}

.product-card img {
  display: block;

  width: 100%;
  height: auto;

  aspect-ratio: 4 / 3;
  object-fit: cover;

  border-radius: 12px;

  background: #e6e9df;
}

.product-card h3 {
  margin: 14px 0 10px;

  font-size: 1.15rem;
  line-height: 1.3;
}

.product-card .tag {
  align-self: flex-start;

  margin-block: 12px 2px;
}

.product-card .btn,
.product-card .product-link {
  display: flex;

  width: 100%;
  min-height: 44px;

  margin-top: auto;
}

.price-note {
  margin-block: 10px 15px;

  line-height: 1.55;
}


/* =========================================================
   13. ABOUT SECTION
   ========================================================= */

.about {
  background: var(--green);
  color: var(--white);
}

.about h2,
.about h3 {
  color: var(--white);
}

.about p {
  max-width: 65ch;

  color: #e1ebe2;
}

.about a:not(.btn) {
  color: var(--white);
  text-decoration: underline;
}

.about-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr);

  align-items: center;

  gap: 32px;
}

.about-points {
  display: grid;
  gap: 14px;
}

.point {
  padding: 18px;

  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 12px;

  background: rgb(255 255 255 / 9%);
  color: var(--white);
}

.point p {
  margin-bottom: 0;
}


/* =========================================================
   14. NEWSLETTER / CTA SECTION
   ========================================================= */

.newsletter {
  background: #e9efe3;
  text-align: center;
}

.newsletter h2 {
  max-width: 23ch;
  margin-inline: auto;
}

.newsletter p {
  max-width: 60ch;

  margin: 15px auto 25px;

  color: var(--muted);
}


/* =========================================================
   15. FAQ
   ========================================================= */

.faq {
  background: var(--white);
}

.faq details,
article details,
.article details,
.article-content details {
  padding: 0;

  border-bottom: 1px solid var(--border);
}

.faq summary,
article summary,
.article summary,
.article-content summary {
  display: list-item;

  min-height: 44px;
  padding: 16px 12px;

  color: var(--green);

  font-weight: 750;
  line-height: 1.5;

  cursor: pointer;
}

.faq summary:hover,
article summary:hover,
.article summary:hover,
.article-content summary:hover {
  background: var(--light);
}

.faq details > :not(summary),
article details > :not(summary),
.article details > :not(summary),
.article-content details > :not(summary) {
  margin: 12px 16px 20px;
}

.faq details p {
  max-width: 76ch;
  color: var(--muted);
}


/* =========================================================
   16. ARTICLES — MAIN LAYOUT

   Dotyczy:
   - donice
   - meble składane
   - skrzynki z nawadnianiem

   Artykuł otrzymuje 860px.
   Długie akapity otrzymują ograniczenie 76ch.
   Tabele i komponenty mogą wykorzystać całą szerokość.

   Nie wymaga dodatkowych wrapperów.
   ========================================================= */

main > article,
main > .article,
main > .balkonowyplan-article {
  display: flow-root;

  width: min(
    calc(100% - 36px),
    var(--reading-width)
  );

  max-width: var(--reading-width);

  margin-inline: auto;

  padding-block: 28px 80px;

  color: var(--text);
}

main > article > *,
main > .article > *,
main > .balkonowyplan-article > * {
  min-width: 0;
}

main > article > header,
main > .article > header,
.balkonowyplan-article > header {
  position: static;
  z-index: auto;

  display: block;

  margin: 0 0 36px;
  padding: 0;

  background: transparent;

  border: 0;
  border-radius: 0;

  box-shadow: none;
}

main > article h1,
main > .article h1,
.balkonowyplan-article h1 {
  max-width: 22ch;

  margin: 0 0 24px;

  font-size: clamp(
    2rem,
    3.5vw,
    3rem
  );

  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.035em;
}

main > article > header p,
main > .article > header p,
.balkonowyplan-article > header p {
  max-width: var(--prose-width);

  margin-bottom: 18px;

  color: var(--text);

  font-size: 1.075rem;
  line-height: 1.8;
}

main > article p,
.article p,
.article-content p,
.balkonowyplan-article p {
  max-width: var(--prose-width);

  margin-bottom: 1.15em;

  font-size: 1rem;
  line-height: 1.8;
}

main > article h2,
.article h2,
.article-content h2,
.balkonowyplan-article h2 {
  max-width: 32ch;

  margin: 52px 0 20px;

  font-size: clamp(
    1.55rem,
    2.4vw,
    2rem
  );

  line-height: 1.24;
  letter-spacing: -.025em;
}

main > article h3,
.article h3,
.article-content h3,
.balkonowyplan-article h3 {
  max-width: 48ch;

  margin: 32px 0 13px;

  font-size: clamp(
    1.2rem,
    1.7vw,
    1.45rem
  );

  line-height: 1.32;
}

main > article h4,
.article h4,
.article-content h4 {
  margin: 24px 0 10px;

  font-size: 1.075rem;
}

main > article ul,
main > article ol,
.article ul,
.article ol,
.article-content ul,
.article-content ol {
  max-width: var(--prose-width);

  margin: 14px 0 26px;
  padding-left: 26px;
}

main > article li,
.article li,
.article-content li {
  margin-bottom: 10px;

  font-size: 1rem;
  line-height: 1.75;
}

main > article li > p,
.article li > p,
.article-content li > p {
  margin-bottom: 9px;
}

main > article a:not(.btn):not(.product-link),
.article a:not(.btn):not(.product-link),
.article-content a:not(.btn):not(.product-link) {
  color: var(--green2);

  text-decoration: underline;
  text-underline-offset: 3px;
}

main > article section,
.article section,
.article-content section {
  padding-block: 12px;
}

main > article > section + section,
.article > section + section {
  margin-top: 12px;
}

main > article > :first-child,
main > .article > :first-child {
  margin-top: 0;
}

/* Lead i akapity po tytule */

main > article > header p:first-of-type,
.balkonowyplan-article > header p:first-of-type {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Płynne odstępy pomiędzy blokami */

main > article p + h2,
main > article ul + h2,
main > article ol + h2 {
  margin-top: 56px;
}

main > article p + h3,
main > article ul + h3 {
  margin-top: 34px;
}


/* =========================================================
   17. ARTICLE CONTENT / FULL-WIDTH TEMPLATES

   Oświetlenie i suszarki mają własny hero.
   Nie wymuszamy szerokości 860px na hero.
   ========================================================= */

main > .article-content,
main > .article {
  min-width: 0;
}

.article-content {
  background: var(--white);
}

.article-content > .container,
.article-content .article,
.article > .container {
  width: min(
    calc(100% - 36px),
    var(--reading-width)
  );

  max-width: var(--reading-width);

  margin-inline: auto;
}

.article-content > .container {
  padding-block: clamp(24px, 4vw, 48px);
}

.article-intro {
  max-width: var(--prose-width);

  color: var(--muted);

  font-size: 1.125rem;
  line-height: 1.8;
}

/* Dłuższe bloki tekstu */

.article-note,
.intro-note {
  max-width: 100%;

  margin: 28px 0;
  padding: 20px 24px;

  border-left: 4px solid var(--green2);
  border-radius: 0 12px 12px 0;

  background: var(--light);
}

.article-warning {
  max-width: 100%;

  margin: 28px 0;
  padding: 20px 24px;

  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;

  background: #fbf3e5;
}

.tip-box {
  max-width: 100%;

  margin: 26px 0;
  padding: 20px 24px;

  border: 1px solid #e8d9bd;
  border-radius: 14px;

  background: #f6f3e9;
}

.article-note p:last-child,
.intro-note p:last-child,
.article-warning p:last-child,
.tip-box p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   18. TABLE OF CONTENTS

   Wyłącznie spis treści artykułu.
   Breadcrumbs posiadają osobne reguły.
   ========================================================= */

.toc,
main > article nav[aria-label="Spis treści"],
.balkonowyplan-article nav[aria-label="Spis treści"] {
  display: block;

  width: 100%;
  max-width: 100%;

  margin: 32px 0 48px;
  padding: 24px 28px;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: var(--white);

  font-size: .96rem;
  line-height: 1.6;

  box-shadow:
    0 3px 16px rgb(23 46 34 / 3%);
}

.toc h2,
article nav[aria-label="Spis treści"] h2 {
  max-width: none;

  margin: 0 0 14px;

  font-size: 1.25rem;
  line-height: 1.35;
}

.toc ol,
.toc ul,
article nav[aria-label="Spis treści"] ol,
article nav[aria-label="Spis treści"] ul {
  display: block;

  max-width: none;

  margin: 0;
  padding-left: 24px;
}

.toc li,
article nav[aria-label="Spis treści"] li {
  display: list-item;

  margin: 7px 0;

  padding-left: 2px;

  font-size: .96rem;
  line-height: 1.6;
}

.toc li::marker,
article nav[aria-label="Spis treści"] li::marker {
  color: var(--green2);
  font-weight: 700;
}

.toc a,
article nav[aria-label="Spis treści"] a {
  display: inline-block;

  padding-block: 4px;

  color: var(--green2);

  font-weight: 500;

  text-decoration: underline;
  text-decoration-color: #b6c9b7;
  text-underline-offset: 4px;

  overflow-wrap: anywhere;
}

.toc a:hover,
article nav[aria-label="Spis treści"] a:hover {
  color: var(--green-dark);
  text-decoration-color: currentColor;
}


/* =========================================================
   19. RANKING ITEMS
   ========================================================= */

.ranking-item {
  padding: 30px 0;

  border-bottom: 1px solid var(--border);
}

.ranking-item:first-child {
  padding-top: 12px;
}

.ranking-item:last-child {
  border-bottom: 0;
}

.ranking-item h3 {
  margin: 10px 0 14px;

  font-size: clamp(
    1.25rem,
    2vw,
    1.5rem
  );
}

.ranking-number {
  display: inline-block;

  padding: 6px 13px;

  border-radius: 999px;

  background: #e5efe1;
  color: var(--green);

  font-size: .83rem;
  font-weight: 850;
  line-height: 1.4;
}

.pros-cons {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr);

  gap: 16px;

  margin: 20px 0 26px;
}

.pros,
.cons {
  min-width: 0;

  padding: 20px;

  border-radius: 12px;
}

.pros {
  background: #edf5e9;
  border: 1px solid #d5e5d0;
}

.cons {
  background: #fbf2e8;
  border: 1px solid #ead9c3;
}

.pros strong,
.cons strong {
  display: block;

  margin-bottom: 9px;

  color: var(--green-dark);
}

.pros ul,
.cons ul {
  margin: 0;
  padding-left: 20px;

  font-size: .94rem;
}

.article-cta {
  margin: 38px 0;
  padding: 28px;

  border-radius: var(--radius);

  background: var(--green);
  color: var(--white);
}

.article-cta h2,
.article-cta h3 {
  color: var(--white);
  margin-top: 0;
}

.article-cta p {
  color: #e1ebe2;
}

.article-cta .btn {
  background: var(--white);
  color: var(--green-dark);
}

.article-cta .btn:hover {
  background: #e4efe0;
}


/* =========================================================
   20. TABLES / COMPARISON

   Wąskie ekrany: przewijanie tabeli.
   Desktop: wykorzystanie dostępnej szerokości.
   ========================================================= */

.comparison-wrap {
  display: block;

  width: 100%;
  max-width: 100%;

  margin: 28px 0;

  overflow-x: auto;
  overscroll-behavior-x: contain;

  -webkit-overflow-scrolling: touch;
}

table,
.comparison {
  width: 100%;

  margin: 26px 0;

  border-collapse: collapse;
  border-spacing: 0;

  background: var(--white);

  font-size: .925rem;
  line-height: 1.55;
}

main > article table,
.article table,
.article-content table {
  display: block;

  max-width: 100%;

  overflow-x: auto;
  overscroll-behavior-x: contain;

  -webkit-overflow-scrolling: touch;
}

.comparison-wrap table {
  display: table;

  width: 100%;
  min-width: 640px;

  margin: 0;
}

article table th,
article table td,
.article table th,
.article table td,
.article-content table th,
.article-content table td,
.comparison th,
.comparison td {
  min-width: 110px;

  padding: 13px 15px;

  border: 1px solid var(--border);

  text-align: left;
  vertical-align: top;

  overflow-wrap: break-word;
}

table th,
.comparison th {
  background: var(--light);
  color: var(--green-dark);

  font-weight: 750;
}

table tbody tr:nth-child(even),
.comparison tbody tr:nth-child(even) {
  background: #f8faf6;
}

table caption {
  padding-bottom: 12px;

  color: var(--green);

  font-weight: 750;
  text-align: left;
}


/* =========================================================
   21. AFFILIATE DISCLOSURES
   ========================================================= */

.disclosure,
.affiliate-disclaimer {
  max-width: 100%;

  margin: 28px 0;
  padding: 18px 22px;

  border: 1px solid var(--border);
  border-left: 4px solid var(--green2);

  border-radius:
    0 var(--radius-sm)
    var(--radius-sm) 0;

  background: var(--light);
  color: var(--text);

  font-size: .9rem;
  line-height: 1.7;
}

.affiliate-disclaimer strong,
.disclosure strong {
  color: var(--green-dark);
}

.podsumowanie {
  margin-top: 40px;
  padding: 26px;

  border-radius: var(--radius);

  background: var(--light);
}

.podsumowanie h2 {
  margin-top: 0;
}


/* =========================================================
   22. GENERIC ASIDES / LONG CONTENT
   ========================================================= */

main aside:not(.pros):not(.cons) {
  max-width: 100%;
}

main blockquote {
  max-width: var(--prose-width);

  margin: 26px 0;
  padding: 14px 22px;

  border-left: 4px solid var(--green2);

  background: var(--light);
}

main blockquote p:last-child {
  margin-bottom: 0;
}

main hr {
  height: 1px;

  margin: 36px 0;

  border: 0;
  background: var(--border);
}


/* =========================================================
   23. SHARED FOOTER
   ========================================================= */

.site-footer {
  padding: 56px 0 26px;

  background: var(--green-dark);
  color: var(--white);
}

.footer-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr);

  gap: 34px;
}

.site-footer .logo {
  display: inline-block;

  margin-bottom: 16px;

  color: var(--white);
}

.site-footer .logo span {
  color: #c7e0c9;
}

.site-footer h2,
.site-footer h3 {
  margin-bottom: 14px;

  color: var(--white);

  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.site-footer p {
  max-width: 55ch;

  color: #e1e9e2;

  font-size: .925rem;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  gap: 2px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;

  min-height: 44px;

  padding: 8px 0;

  color: #e1e9e2;

  font-size: .925rem;
  line-height: 1.45;

  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--white);
  text-decoration: underline;
}

.site-footer a:focus-visible {
  outline-color: #f3ce88;
}

.site-footer .disclaimer {
  margin-top: 36px;
  padding-top: 24px;

  border-top:
    1px solid rgb(255 255 255 / 25%);

  color: #e1e9e2;

  font-size: .875rem;
  line-height: 1.75;
}

.site-footer .disclaimer strong {
  color: var(--white);
}

.footer-bottom {
  padding-top: 20px;

  color: #e1e9e2;

  font-size: .875rem;
  line-height: 1.6;
}


/* =========================================================
   24. RESPONSIVE — TABLET >= 560px
   ========================================================= */

@media (min-width: 560px) {

  .container,
  .breadcrumbs {
    width: min(
      calc(100% - 48px),
      var(--container)
    );
  }

  main > article,
  main > .article,
  main > .balkonowyplan-article,
  .article-content > .container,
  .article-content .article,
  .article > .container {
    width: min(
      calc(100% - 48px),
      var(--reading-width)
    );
  }

  .grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .hero-image {
    min-height: 300px;
  }

  .pros-cons {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .breadcrumbs {
    padding-block: 16px;
  }

}


/* =========================================================
   25. RESPONSIVE — DESKTOP >= 768px
   ========================================================= */

@media (min-width: 768px) {

  :root {
    --header-height: 74px;
  }

  .section-heading {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;

    gap: 24px;
  }

  .hero-grid {
    grid-template-columns:
      minmax(0, 1.1fr)
      minmax(0, .9fr);

    gap: clamp(
      32px,
      4vw,
      58px
    );
  }

  .hero-image {
    min-height: 330px;
  }

  .about-grid {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 1fr);

    gap: 48px;
  }

  .grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    gap: 24px;
  }

  .footer-grid {
    grid-template-columns:
      minmax(0, 1.7fr)
      minmax(0, 1fr)
      minmax(0, 1fr);

    gap: 42px;
  }

  main > article,
  main > .article,
  main > .balkonowyplan-article {
    padding-block: 38px 96px;
  }

  main > article > header,
  .balkonowyplan-article > header {
    margin-bottom: 42px;
  }

  main > article h1,
  .balkonowyplan-article h1 {
    max-width: 25ch;
  }

  .toc,
  main > article nav[aria-label="Spis treści"] {
    padding: 26px 32px;
  }

  table,
  .comparison {
    font-size: .95rem;
  }

}


/* =========================================================
   26. RESPONSIVE — LARGE DESKTOP >= 1100px
   ========================================================= */

@media (min-width: 1100px) {

  .menu-toggle,
  .menu-label {
    display: none;
  }

  .site-nav,
  .menu-toggle:checked ~ .site-nav {
    position: static;

    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;

    gap: 2px;

    padding: 0;

    background: transparent;

    border: 0;
    box-shadow: none;

    max-height: none;
    overflow: visible;
  }

  .site-nav a {
    padding-inline: 10px;

    font-size: .85rem;
    font-weight: 700;

    white-space: nowrap;
  }

  .hero-image {
    min-height: 380px;
  }

  main > article,
  main > .article,
  main > .balkonowyplan-article {
    width: min(
      calc(100% - 64px),
      var(--reading-width)
    );
  }

  main > article h1,
  .balkonowyplan-article h1 {
    font-size: 3rem;
  }

  main > article p,
  .balkonowyplan-article p {
    font-size: 1.0625rem;
    line-height: 1.82;
  }

  main > article li,
  .balkonowyplan-article li {
    font-size: 1.0625rem;
  }

  main > article h2,
  .balkonowyplan-article h2 {
    font-size: 2rem;
  }

  main > article h3,
  .balkonowyplan-article h3 {
    font-size: 1.45rem;
  }

}


/* =========================================================
   27. MOBILE <= 767px
   ========================================================= */

@media (max-width: 767px) {

  :root {
    --header-height: 64px;
  }

  .site-header .nav {
    min-height: var(--header-height);
  }

  .logo {
    font-size: 1.08rem;
  }

  .breadcrumbs {
    padding-block: 12px;
    font-size: .78rem;
  }

  .breadcrumbs ol {
    gap: 4px 7px;
  }

  .breadcrumbs li + li::before {
    margin-right: 7px;
  }

  main > section,
  main > .categories,
  main > .products,
  main > .about,
  main > .newsletter,
  main > .faq {
    padding-block: 48px;
  }

  main > .hero {
    padding-block: 42px;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero h1 {
    max-width: 20ch;

    font-size: clamp(
      2rem,
      7vw,
      2.55rem
    );
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-image {
    min-height: 220px;
    aspect-ratio: 4 / 3;

    border-radius: 18px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .grid {
    gap: 18px;
  }

  .card-content,
  .category-card {
    padding: 20px;
  }

  .card h3 {
    font-size: 1.2rem;
  }

  .product-card {
    padding: 16px;
  }

  main > article,
  main > .article,
  main > .balkonowyplan-article {
    padding-top: 24px;
    padding-bottom: 64px;
  }

  main > article > header,
  .balkonowyplan-article > header {
    margin-bottom: 28px;
  }

  main > article h1,
  .balkonowyplan-article h1 {
    max-width: none;

    margin-bottom: 20px;

    font-size: clamp(
      1.85rem,
      6.4vw,
      2.35rem
    );

    line-height: 1.18;
  }

  main > article > header p,
  .balkonowyplan-article > header p {
    font-size: 1rem;
    line-height: 1.75;
  }

  main > article p,
  .article p,
  .article-content p {
    font-size: 1rem;
    line-height: 1.75;
  }

  main > article h2,
  .article h2,
  .article-content h2 {
    max-width: none;

    margin: 40px 0 16px;

    font-size: 1.55rem;
    line-height: 1.25;
  }

  main > article h3,
  .article h3,
  .article-content h3 {
    max-width: none;

    margin: 28px 0 12px;

    font-size: 1.2rem;
    line-height: 1.34;
  }

  main > article li,
  .article li,
  .article-content li {
    line-height: 1.7;
  }

  .toc,
  main > article nav[aria-label="Spis treści"],
  .balkonowyplan-article nav[aria-label="Spis treści"] {
    margin: 26px 0 38px;
    padding: 20px;

    border-radius: 14px;
  }

  .toc h2,
  article nav[aria-label="Spis treści"] h2 {
    margin: 0 0 12px;

    font-size: 1.2rem;
  }

  .toc li,
  article nav[aria-label="Spis treści"] li {
    margin-block: 6px;

    font-size: .94rem;
  }

  .article-note,
  .intro-note,
  .article-warning,
  .tip-box {
    padding: 17px 18px;
  }

  .ranking-item {
    padding-block: 25px;
  }

  .article-cta {
    padding: 22px;
  }

  .podsumowanie {
    padding: 20px;
  }

  table,
  .comparison {
    font-size: .875rem;
  }

  article table th,
  article table td,
  .article table th,
  .article table td,
  .article-content table th,
  .article-content table td {
    padding: 10px 12px;
  }

  .site-footer {
    padding: 48px 0 24px;
  }

  .footer-grid {
    gap: 30px;
  }

}


/* =========================================================
   28. SMALL MOBILE <= 389px
   ========================================================= */

@media (max-width: 389px) {

  .container,
  .breadcrumbs {
    width: calc(100% - 28px);
  }

  .logo {
    font-size: .98rem;
  }

  .menu-label {
    min-width: 76px;
    padding-inline: 10px;
  }

  .site-nav {
    left: -14px;
    right: -14px;
  }

  h1 {
    font-size: clamp(
      1.85rem,
      7.6vw,
      2.1rem
    );
  }

  .hero-image {
    min-height: 210px;
  }

  .card-content,
  .category-card {
    padding: 17px;
  }

  main > article,
  main > .article,
  main > .balkonowyplan-article,
  .article-content > .container,
  .article-content .article,
  .article > .container {
    width: calc(100% - 28px);
  }

  main > article h1,
  .balkonowyplan-article h1 {
    font-size: 1.85rem;
  }

  main > article h2,
  .article h2,
  .article-content h2 {
    font-size: 1.45rem;
  }

  main > article h3,
  .article h3,
  .article-content h3 {
    font-size: 1.15rem;
  }

  .toc,
  article nav[aria-label="Spis treści"] {
    padding: 17px;
  }

  .article-note,
  .article-warning,
  .intro-note,
  .tip-box,
  .article-cta {
    padding: 17px;
  }

}


/* =========================================================
   29. PRINT
   ========================================================= */

@media print {

  .site-header,
  .site-footer,
  .skip-link,
  .menu-label,
  .btn,
  .product-link {
    display: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  body {
    background: white;
    color: black;

    font-size: 11pt;
    line-height: 1.5;
  }

  main > article,
  main > .article,
  main > .balkonowyplan-article {
    width: 100%;
    max-width: none;

    padding: 0;
    margin: 0;
  }

  a {
    color: black;
  }

  h1,
  h2,
  h3 {
    color: black;
    break-after: avoid;
  }

  table {
    break-inside: avoid;
  }

  .hero {
    background: white;
  }

  .card,
  .category-card,
  .product-card {
    break-inside: avoid;
  }

}


/* =========================================================
   END — BALKONOWY PLAN SITE.CSS V2
   ========================================================= */


/* Balkonowy Plan — editorial photography and eyebrow contrast */

/* Dark green provides AA contrast on cream and pale green backgrounds. */
.eyebrow {
  color: #31573a;
}

/* Preserve a light label on the dark About section, including an inline color override. */
.about .eyebrow {
  color: #e6f1df !important;
}

/* Figures follow the width of the existing article content column. */
article figure.article-figure,
.balkonowyplan-article figure.article-figure,
figure.article-figure {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 2rem 0 2.5rem;
  padding: 0;
}

/* Keep the image and caption visually grouped. */
.article-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  background-color: #eef3ea;
}

/* Optional square images selected through intrinsic width/height attributes. */
.article-figure img[width][height] {
  aspect-ratio: auto;
}

.article-figure figcaption {
  margin: 0.75rem 0 0;
  padding: 0 0.15rem;
  color: #526057;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.65;
  text-align: left;
}

/* Hero directly after the article heading and lead. */
article figure.article-figure.article-hero,
.balkonowyplan-article figure.article-figure.article-hero,
figure.article-figure.article-hero {
  margin-top: 1.25rem;
  margin-bottom: 2rem;
}

.article-hero img {
  aspect-ratio: 3 / 2;
}

/* Maintain predictable spacing after headings and before sections. */
article h2 + .article-figure,
article h3 + .article-figure,
.balkonowyplan-article h2 + .article-figure,
.balkonowyplan-article h3 + .article-figure {
  margin-top: 1.25rem;
}

@media (max-width: 640px) {
  article figure.article-figure,
  .balkonowyplan-article figure.article-figure,
  figure.article-figure {
    margin-top: 1.5rem;
    margin-bottom: 1.875rem;
  }

  .article-figure img {
    border-radius: 12px;
  }

  .article-figure figcaption {
    margin-top: 0.625rem;
    font-size: 0.8125rem;
    line-height: 1.6;
  }

  article figure.article-figure.article-hero,
  .balkonowyplan-article figure.article-figure.article-hero,
  figure.article-figure.article-hero {
    margin-top: 1rem;
    margin-bottom: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-figure img {
    transition: none;
    animation: none;
  }
}

/* Hero image inside the lighting article hero grid */
.hero-image img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}

/* Tighter gap between table of contents and first section */
nav[aria-label="Spis treści"] + section > h2:first-child{margin-top:0}

/* Affiliate buttons (rendered only when a URL is set in affiliate-links.json) */
.aff-box{margin:1rem 0 0;display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .9rem}
.aff-box .btn-aff{margin:0}
.aff-note{font-size:.8125rem;color:#526057;line-height:1.5}
