:root {
  --bg: #eef3ee;
  --paper: #fdfcf7;
  --ink: #0d2b30;
  --muted: #5c6f6b;
  --green: #0e5e54;
  --green-2: #0e3b3d;
  --deep: #082a2e;
  --aqua: #2aa7a1;
  --sand: #e8c77c;
  --orange: #f08a3c;
  --amber: #ffb25e;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(13, 43, 48, .16);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  /* Tło: zdjęcie jeziora pod jasną mgiełką — treść leży na kartach, więc czytelność zostaje */
  background:
    linear-gradient(180deg, rgba(236, 242, 237, .9), rgba(228, 238, 232, .93)),
    url('https://images.unsplash.com/photo-1439066615861-d1af74d74000?auto=format&fit=crop&w=1800&q=70') center/cover;
  background-attachment: fixed;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  /* Ciemne, przejrzyste tło menu: głęboka toń jeziora + delikatna poświata */
  background:
    radial-gradient(120% 160% at 85% -40%, rgba(42, 167, 161, .28), transparent 60%),
    linear-gradient(180deg, rgba(8, 34, 38, .82), rgba(6, 26, 30, .72));
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 10px 30px rgba(4, 18, 22, .25);
}

.nav { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--white); }
.logo-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--aqua));
  font-size: 1.7rem;
  box-shadow: 0 6px 16px rgba(42, 167, 161, .4);
}

/* Przejrzysta „pigułka" menu zamiast surowej listy */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 6px;
  margin: 0;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav-menu li { display: flex; }
.nav-menu a {
  position: relative;
  padding: 9px 15px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .82);
  white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}
.nav-menu a:hover { color: var(--white); background: rgba(255, 255, 255, .12); }
.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: var(--white) !important;
  box-shadow: 0 8px 20px rgba(240, 138, 60, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.nav-cta:hover { transform: translateY(-1px); background: linear-gradient(135deg, var(--amber), var(--orange)); box-shadow: 0 12px 26px rgba(240, 138, 60, .5); }
.nav-toggle { display: none; }

.hero {
  min-height: 50vh;
  display: grid;
  align-items: center;
  position: relative;
  /* Jezioro o świcie: ciepła poświata wschodu + głęboka toń */
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 178, 94, .28), transparent 38%),
    radial-gradient(circle at 12% 80%, rgba(42, 167, 161, .3), transparent 45%),
    linear-gradient(160deg, rgba(8, 42, 46, .88), rgba(14, 94, 84, .82) 55%, rgba(8, 42, 46, .92)),
    url('https://images.unsplash.com/photo-1500534623283-312aade485b7?auto=format&fit=crop&w=1800&q=80') center/cover;
  color: var(--white);
  padding-bottom: 40px;
}
/* Falisty brzeg między hero a treścią */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 70px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 45c160 30 320-35 480-25s320 50 480 30 320-45 480-10v30H0z' fill='%23ffffff' fill-opacity='.5'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; padding: 32px 0; }
.eyebrow { color: var(--orange); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; margin: 0 0 12px; }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.5rem); line-height: 1; margin: 0 0 18px; letter-spacing: -.04em; }
.hero-text { max-width: 650px; color: rgba(255,255,255,.82); font-size: 1.15rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; font-weight: 800; cursor: pointer; }
.btn-primary { background: linear-gradient(135deg, var(--amber), var(--orange)); color: var(--white); box-shadow: 0 12px 28px rgba(240,138,60,.4); transition: transform .15s ease, box-shadow .15s ease; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(240,138,60,.5); }
.btn-secondary { background: rgba(255,255,255,.12); color: var(--white); border: 1px solid rgba(255,255,255,.22); }
.stats { display: flex; gap: 18px; margin-top: 28px; flex-wrap: wrap; }
.stats div { padding: 16px 20px; border-radius: 18px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); }
.stats strong { display: block; font-size: 1.45rem; }
.stats span { color: rgba(255,255,255,.72); font-size: .9rem; }
.hero-card { align-self: end; padding: 34px; border-radius: var(--radius); background: rgba(255,250,240,.94); color: var(--ink); box-shadow: var(--shadow); transform: rotate(2deg); }
.hero-card h2 { font-size: 2rem; line-height: 1.1; margin: 18px 0 12px; }
.badge { display: inline-block; padding: 8px 12px; border-radius: 999px; background: rgba(42,167,161,.14); color: var(--green); font-weight: 800; }
.price { margin-top: 22px; font-size: 2rem; font-weight: 900; color: var(--green); }

.section { padding: 96px 0; }
.section-heading { max-width: 720px; margin-bottom: 38px; }
.section-heading h2, .map-grid h2, .contact h2 { margin: 0 0 14px; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.05; letter-spacing: -.04em; }
.section-heading p:not(.eyebrow), .map-grid p, .contact p { color: #41544f; }
.light h2 { color: var(--white); }
.light p:not(.eyebrow) { color: rgba(255,255,255,.72); }

.category-grid, .product-grid, .blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-card, .blog-card, .contact-card { background: var(--paper); border: 1px solid rgba(17,49,47,.08); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(17,49,47,.07); }
.category-card { padding: 28px; transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: hidden; }
/* Pasek akcentu jak spławik wynurzający się przy najechaniu */
.category-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--aqua), var(--green), var(--amber)); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.category-card:hover::before { transform: scaleX(1); }
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.icon { font-size: 2.2rem; }
.category-card h3, .blog-card h3 { font-size: 1.35rem; margin: 16px 0 8px; }
.category-card p, .blog-card p { color: var(--muted); margin: 0; }

.section-dark {
  background:
    radial-gradient(circle at 88% 10%, rgba(255,178,94,.12), transparent 35%),
    radial-gradient(circle at 5% 95%, rgba(42,167,161,.18), transparent 40%),
    linear-gradient(165deg, var(--green-2), var(--deep));
}
.product-grid { grid-template-columns: repeat(3, 1fr); }
.product-card { overflow: hidden; border-radius: var(--radius); background: var(--paper); box-shadow: 0 18px 40px rgba(0,0,0,.2); }
.product-card.featured { transform: translateY(-18px); outline: 3px solid var(--orange); }
.product-image { min-height: 220px; background-size: cover; background-position: center; }
.product-image.water { background-image: linear-gradient(rgba(17,49,47,.1), rgba(17,49,47,.2)), url('https://images.unsplash.com/photo-1517760444937-f6397edcbbcd?auto=format&fit=crop&w=900&q=80'); }
.product-image.predator { background-image: linear-gradient(rgba(17,49,47,.1), rgba(17,49,47,.2)), url('../assets/img/ryby/szczupak.jpg'); }
.product-image.carp { background-image: linear-gradient(rgba(17,49,47,.1), rgba(17,49,47,.2)), url('https://images.unsplash.com/photo-1524704654690-b56c05c78a00?auto=format&fit=crop&w=900&q=80'); }
.product-body { padding: 24px; }
.product-body h3 { margin: 0 0 8px; font-size: 1.45rem; }
.product-body p { color: var(--muted); }
.product-body strong { color: var(--green); font-size: 1.5rem; }

.blog-grid { grid-template-columns: repeat(3, 1fr); }
.blog-card { padding: 28px; }
.blog-card a { display: inline-block; margin-top: 18px; color: var(--green); font-weight: 800; }

.map-section { background: linear-gradient(180deg, rgba(227, 239, 232, .55), rgba(216, 234, 230, .6)); }
.map-card { border: 4px solid var(--white); }
.map-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: center; }
.map-card { min-height: 480px; border-radius: 34px; background: #d9e8e2; box-shadow: var(--shadow); position: relative; overflow: hidden; z-index: 0; }
.map-links { margin: 0 0 18px; padding-left: 20px; color: var(--muted); }
.map-links li { margin-bottom: 8px; }
.map-links a { font-weight: 700; }
.leaflet-popup-content { font-family: inherit; line-height: 1.45; }

.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; padding: 34px; }
.contact-form { display: grid; gap: 14px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 16px 18px; border: 1px solid rgba(17,49,47,.14); border-radius: 16px; font: inherit; background: var(--white); }
.contact-form textarea { min-height: 130px; resize: vertical; }

.footer { padding: 60px 0 34px; background: linear-gradient(180deg, var(--green-2), var(--deep)); color: rgba(255,255,255,.78); position: relative; }
.footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 0c180 25 360-15 540-5s360 30 540 10 240-15 360 0v-5H0z' fill='%23ffffff' fill-opacity='.5'/%3E%3C/svg%3E") top/100% 100% no-repeat;
  pointer-events: none;
}
.footer-grid { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media (max-width: 840px) {
  .nav-toggle { display: inline-flex; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 10px 16px; background: rgba(255,255,255,.1); color: var(--white); font-weight: 800; }
  .nav-menu {
    position: absolute; inset: 82px 16px auto;
    display: none; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(10, 38, 43, .96), rgba(7, 28, 32, .96));
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(4, 18, 22, .5);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 16px; }
  .nav-cta { text-align: center; margin-top: 4px; }
  .hero-grid, .map-grid, .contact-card { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-card { transform: none; }
  .category-grid, .product-grid, .blog-grid { grid-template-columns: 1fr; }
  .product-card.featured { transform: none; }
}

.equipment-grid { grid-template-columns: repeat(3, 1fr); }
.category-card { display: block; }

/* Karuzela kategorii na stronie głównej */
.carousel-wrap { position: relative; }
.category-grid.carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 10px; scrollbar-width: none; }
.category-grid.carousel::-webkit-scrollbar { display: none; }
.category-grid.carousel > .category-card { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 46px; height: 46px; border: 0; border-radius: 999px; background: var(--green, #0f5b4c); color: var(--white, #fff); font-size: 1.3rem; font-weight: 800; cursor: pointer; box-shadow: var(--shadow, 0 12px 30px rgba(17,49,47,.25)); display: flex; align-items: center; justify-content: center; transition: opacity .2s ease, transform .2s ease; }
.carousel-btn:hover { transform: translateY(-50%) scale(1.08); }
.carousel-btn.prev { left: -14px; }
.carousel-btn.next { right: -14px; }
.carousel-btn[disabled] { opacity: .35; cursor: default; }
@media (max-width: 840px) {
  /* Jedna duża karta na środku, sąsiednie lekko widoczne po bokach */
  .category-grid.carousel { gap: 12px; padding-left: 5%; padding-right: 5%; }
  .category-grid.carousel > .category-card { flex: 0 0 90%; scroll-snap-align: center; padding: 20px 18px; }
  .carousel-btn { width: 44px; height: 44px; font-size: 1.25rem; box-shadow: 0 6px 18px rgba(17,49,47,.35); }
  .carousel-btn.prev { left: 2px; }
  .carousel-btn.next { right: 2px; }
}
.subpage-hero {
  padding: 60px 0 56px;
  color: var(--white);
  position: relative;
  background:
    radial-gradient(circle at 85% 15%, rgba(255,178,94,.25), transparent 42%),
    radial-gradient(circle at 8% 90%, rgba(42,167,161,.3), transparent 40%),
    linear-gradient(160deg, var(--deep), var(--green) 60%, var(--green-2));
}
.subpage-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 50px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 50' preserveAspectRatio='none'%3E%3Cpath d='M0 32c160 22 320-25 480-18s320 36 480 21 320-32 480-7v22H0z' fill='%23ffffff' fill-opacity='.5'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;
  pointer-events: none;
}
.subpage-hero h1 { max-width: 850px; margin: 0 0 18px; font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: 1; letter-spacing: -.05em; }
.subpage-hero p:not(.eyebrow) { max-width: 760px; color: rgba(255,255,255,.86); font-size: 1.18rem; line-height: 1.7; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.article-card, .side-nav { background: var(--paper); border: 1px solid rgba(17,49,47,.08); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(17,49,47,.07); }
.article-card { padding: clamp(26px, 4vw, 46px); }
.article-card h2 {
  margin: 44px 0 24px; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.1; letter-spacing: -.03em;
}
.article-card h2:first-child { margin-top: 0; }
.article-card h2::after {
  content: ""; display: block; width: 64px; height: 5px; margin-top: 12px;
  border-radius: 999px; background: linear-gradient(90deg, var(--orange), var(--aqua));
}
.info-block {
  margin: 0 0 16px; padding: 22px 24px;
  background: #faf6ec;
  border: 1px solid rgba(17,49,47,.07);
  border-left: 5px solid var(--aqua);
  border-radius: 16px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.info-block:nth-of-type(even) { border-left-color: var(--orange); }
.info-block:hover { transform: translateX(4px); box-shadow: 0 14px 30px rgba(17,49,47,.1); }
.info-block h3 { margin: 0 0 10px; font-size: 1.3rem; color: var(--green-2); letter-spacing: -.015em; }
.info-block p { margin: 0; color: #3d4c48; line-height: 1.75; }
.info-block p + p { margin-top: 10px; }
.info-block em { color: var(--green); font-style: italic; }
.info-block strong { color: var(--ink); }
.source-box {
  margin-top: 30px; padding: 24px 26px; border-radius: 18px;
  background: linear-gradient(135deg, #eaf3ef, #e2efe6);
  border-left: 5px solid var(--green);
}
.source-box h3 { margin-top: 0; color: var(--green-2); }
.source-box p { color: #4a5a55; margin-bottom: 0; line-height: 1.7; }
.side-rail { position: sticky; top: 96px; display: grid; gap: 20px; align-content: start; }
.side-rail .side-nav { position: static; }
.side-rail .article-figure {
  margin: 0; background: var(--paper); padding: 12px;
  border: 1px solid rgba(17,49,47,.08); border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(17,49,47,.07);
  transform: rotate(-1.2deg);
  transition: transform .25s ease;
}
.side-rail .article-figure:hover { transform: rotate(0deg) scale(1.02); }
.side-rail .article-image { max-height: 300px; border-radius: 16px; margin-bottom: 8px; }
.side-rail .image-caption { margin: 0 4px 4px; font-size: .76rem; line-height: 1.5; }
.side-nav { position: sticky; top: 96px; padding: 22px; }
.side-nav h3 { margin-top: 0; }
.side-nav a {
  display: block; padding: 9px 10px; margin: 0 -10px; border-radius: 10px;
  color: var(--green); font-weight: 700; border-top: 1px solid rgba(17,49,47,.07);
  transition: background .15s ease, color .15s ease, padding-left .15s ease;
}
.side-nav a:hover { background: rgba(42,167,161,.1); color: var(--green-2); padding-left: 16px; }
.side-nav a.active {
  background: linear-gradient(90deg, rgba(231,130,53,.16), transparent);
  color: var(--ink); border-left: 3px solid var(--orange); padding-left: 14px;
}
@media (max-width: 840px) {
  .equipment-grid, .article-layout { grid-template-columns: 1fr; }
  .side-nav, .side-rail { position: static; }
  .side-rail .article-figure { transform: none; }
  /* Szerszy tekst artykułów: bez kolorowych pasków i ramek */
  .article-card { padding: 18px 14px; }
  .info-block { padding: 0; margin: 0 0 22px; background: none; border: 0; border-radius: 0; }
  .info-block:hover { transform: none; box-shadow: none; }
}
.article-image { width: 100%; max-height: 430px; object-fit: cover; border-radius: 20px; margin-bottom: 10px; }
.image-caption { margin: 0 0 26px; color: var(--muted); font-size: .88rem; }
.article-card > p { color: #3d4c48; font-size: 1.08rem; line-height: 1.75; margin: 0 0 18px; }
.article-figure { margin: 0 0 8px; }
.article-figure .image-caption a { color: var(--green); }
.blog-card-img { width: 100%; height: 170px; object-fit: cover; border-radius: 14px; margin-bottom: 14px; }
.category-card .card-img { width: 100%; height: 140px; object-fit: cover; border-radius: 14px; margin-bottom: 14px; }

/* === Ciemny motyw (przełącznik przy menu) === */
.theme-toggle {
  margin-left: 6px;
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  font-size: 1.15rem;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.theme-toggle:hover { transform: scale(1.08); box-shadow: 0 8px 18px rgba(13,43,48,.18); }

html.dark {
  --paper: #10333a;
  --ink: #e8f1ee;
  --muted: #9eb5af;
  --green: #3ec9b4;
  --green-2: #0b2d31;
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
html.dark body {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(7, 26, 30, .82), rgba(6, 22, 26, .88)),
    url('https://images.unsplash.com/photo-1439066615861-d1af74d74000?auto=format&fit=crop&w=1800&q=70') center/cover;
  background-attachment: fixed;
}
html.dark .site-header { box-shadow: 0 10px 30px rgba(2, 12, 15, .45); }
html.dark .theme-toggle { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
html.dark .category-card, html.dark .blog-card, html.dark .contact-card,
html.dark .article-card, html.dark .side-nav, html.dark .product-card,
html.dark .side-rail .article-figure {
  background: rgba(13, 40, 46, .92);
  border-color: rgba(255,255,255,.08);
}
html.dark .category-card p, html.dark .blog-card p { color: var(--muted); }
html.dark .section-heading p:not(.eyebrow), html.dark .map-grid p, html.dark .contact p { color: #aebfba; }
html.dark .hero-card { background: rgba(13, 40, 46, .94); color: var(--ink); }
html.dark .map-section { background: linear-gradient(180deg, rgba(8, 30, 34, .65), rgba(7, 26, 30, .7)); }
html.dark .map-card { border-color: rgba(255,255,255,.14); background: #0d282e; }
html.dark .map-links { color: var(--muted); }
html.dark .info-block { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
html.dark .info-block p { color: #c5d6d0; }
html.dark .info-block h3 { color: var(--green); }
html.dark .info-block strong { color: var(--ink); }
html.dark .source-box { background: rgba(62, 201, 180, .08); border-left-color: var(--green); }
html.dark .source-box p { color: #c5d6d0; }
html.dark .article-card > p { color: #c5d6d0; }
html.dark .image-caption { color: var(--muted); }
html.dark .side-nav a { color: var(--green); border-top-color: rgba(255,255,255,.08); }
html.dark .side-nav a:hover { background: rgba(62, 201, 180, .12); color: var(--ink); }
html.dark .side-nav a.active { color: var(--ink); }
html.dark .contact-form input, html.dark .contact-form textarea {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
  color: var(--ink);
}
html.dark .contact-form input::placeholder, html.dark .contact-form textarea::placeholder { color: var(--muted); }
html.dark .product-body strong { color: var(--green); }
html.dark .badge { background: rgba(62,201,180,.16); color: var(--green); }
html.dark .price { color: var(--green); }
html.dark .blog-card a { color: var(--green); }
html.dark .leaflet-popup-content-wrapper, html.dark .leaflet-popup-tip { background: #10333a; color: var(--ink); }

/* === Komponenty afiliacyjne === */
.btn-aff {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; margin-top: 14px;
  border-radius: 999px; font-weight: 800; font-size: .95rem;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: var(--white) !important;
  box-shadow: 0 10px 24px rgba(240,138,60,.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-aff:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(240,138,60,.45); }
.btn-aff::after { content: " →"; }

/* Ramka polecanego produktu w artykułach */
.aff-box {
  margin: 26px 0; padding: 24px 26px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(42,167,161,.1), rgba(232,199,124,.12));
  border: 1px solid rgba(42,167,161,.3);
  position: relative;
}
.aff-box::before {
  content: "Nasz typ";
  position: absolute; top: -12px; left: 20px;
  padding: 3px 12px; border-radius: 999px;
  background: var(--green); color: var(--white);
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.aff-box h4 { margin: 4px 0 8px; font-size: 1.2rem; color: var(--ink); }
.aff-box p { margin: 0; color: var(--muted); line-height: 1.65; }
.aff-box .aff-meta { margin-top: 6px; font-size: .85rem; color: var(--muted); }
.aff-note { font-size: .8rem; color: rgba(255,255,255,.55); margin-top: 10px; flex-basis: 100%; }

html.dark .aff-box { background: linear-gradient(135deg, rgba(62,201,180,.08), rgba(232,199,124,.06)); border-color: rgba(62,201,180,.25); }
html.dark .aff-box h4 { color: var(--ink); }

/* === Szklane plakietki ikon (glassmorphism) === */
.icon.icon-glass {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,.2));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: 0 10px 26px rgba(13,43,48,.14), inset 0 1px 0 rgba(255,255,255,.7);
  color: var(--green);
  transition: transform .2s ease, box-shadow .2s ease;
}
.icon.icon-glass svg { width: 32px; height: 32px; }
.category-card:hover .icon.icon-glass {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 34px rgba(13,43,48,.2), inset 0 1px 0 rgba(255,255,255,.7);
  color: var(--orange);
}
html.dark .icon.icon-glass {
  background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 10px 26px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.18);
  color: var(--green);
}

/* Szerszy układ artykułów — mniej pustych marginesów po bokach (tylko desktop;
   bez media query nadpisywało mobilną regułę jednej kolumny i ściskało tekst) */
@media (min-width: 841px) {
  .container.article-layout { width: min(1560px, calc(100% - 48px)); }
  .article-layout { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 840px) {
  .container.article-layout { width: calc(100% - 24px); }
  .article-layout { grid-template-columns: 1fr; }
}

/* Osadzone filmy z YouTube — responsywny kontener 16:9 */
.video-embed {
  margin: 1.6rem 0;
}
.video-embed .video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(13,43,48,.18);
  background: #000;
}
.video-embed .video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-embed figcaption {
  margin-top: .55rem;
  font-size: .9rem;
  color: var(--muted, #5a6b6a);
  text-align: center;
}
.video-embed figcaption a { color: inherit; text-decoration: underline; }
html.dark .video-embed figcaption { color: rgba(255,255,255,.65); }
