/* ===== moj-link.pl – motyw „Jasny, lekki” (wzór: dawny katalog-stron.eu): cienka czcionka, biel, zieleń, panorama miasta, boczny pasek ===== */
:root {
    --bg: #fbfbfb; --bg-soft: #f3f4f4; --card: #ffffff; --text: #4a4d50; --muted: #7a7e82; --line: #e3e5e6; --input-bg: #ffffff;
    --primary: #1ea362; --primary-dark: #168a52; --violet: #4f5152; --teal: #1ea362; --amber: #1ea362; --orange: #1ea362; --pink: #1ea362;
    --grad: #1ea362; --grad-warm: #1ea362; --hero-bg: #fbfbfb;
    --ac0: #1ea362; --ac1: #4f5152; --ac2: #7fc8a5; --ac3: #9aa0a4; --ac4: #168a52;
    --tag-bg: #e6f5ed; --tag-text: #168a52;
    --ink: #4f5152; --ink-2: #444647; --radius: 3px;
    --shadow: 0 1px 3px rgba(0,0,0,.07); --shadow-hover: 0 4px 14px rgba(0,0,0,.12);
    --rail: 62px;
}
:root[data-theme="dark"] {
    --bg: #1d1f20; --bg-soft: #252728; --card: #2a2c2d; --text: #e4e6e7; --muted: #a3a8ab; --line: #3b3e40; --input-bg: #252728;
    --primary: #3fc582; --primary-dark: #7fdcad; --tag-bg: #1f3b2d; --tag-text: #9be3bf; --ink: #151617; --ink-2: #202223;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) { --bg: #1d1f20; --bg-soft: #252728; --card: #2a2c2d; --text: #e4e6e7; --muted: #a3a8ab; --line: #3b3e40; --input-bg: #252728; --primary: #3fc582; --primary-dark: #7fdcad; --tag-bg: #1f3b2d; --tag-text: #9be3bf; --ink: #151617; --ink-2: #202223; }
}
body { font-family: "Lato", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif; font-weight: 300; font-size: 1.02rem; line-height: 1.65; background: var(--bg); color: var(--text); }
b, strong { font-weight: 700; }
h1, h2, h3, .kx-serif { font-family: "Lato", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif; font-weight: 300; letter-spacing: 0; color: var(--text); }
a { color: var(--primary); }
@media (min-width: 900px) { body { padding-left: var(--rail); } }

/* boczny pasek */
.rail { display: none; }
@media (min-width: 900px) {
    .rail { display: flex; flex-direction: column; align-items: center; position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail); background: var(--card); box-shadow: 2px 0 8px rgba(0,0,0,.08); z-index: 60; padding-top: 26px; gap: 22px; }
    .rail-btn { background: none; border: 0; cursor: pointer; width: 38px; height: 30px; display: grid; align-content: center; gap: 6px; padding: 0; }
    .rail-btn i { display: block; height: 2px; background: var(--primary); }
    .rail-btn i:nth-child(2) { width: 70%; }
    .rail a.rail-ico { color: var(--muted); font-size: 1.15rem; text-decoration: none; width: 38px; height: 38px; display: grid; place-items: center; }
    .rail a.rail-ico:hover { color: var(--primary); }
    .rail-sp { flex: 1; }
}
.rail-panel { position: fixed; left: var(--rail); top: 0; bottom: 0; width: 280px; background: var(--card); box-shadow: 4px 0 16px rgba(0,0,0,.14); z-index: 59; padding: 24px 22px; transform: translateX(-120%); transition: transform .25s; overflow: auto; }
.rail-panel.open { transform: none; }
.rail-panel a { display: block; padding: 9px 0; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.rail-panel a:hover { color: var(--primary); }
.rail-panel b { display: block; margin: 0 0 10px; font-weight: 300; font-size: 1.4rem; color: var(--primary); }

/* nagłówek: jasny, cienki */
.topbanner { background: var(--primary) !important; padding: 5px 12px; font-size: .82rem; }
.topbanner a { color: #fff !important; font-weight: 400; }
.top, :root[data-theme="dark"] .top { background: var(--card) !important; border-bottom: 1px solid var(--line); box-shadow: none; backdrop-filter: none; }
.top .bar { min-height: 66px; }
.top nav a, .mega-btn, .top .more-btn { color: var(--text); font-weight: 400; font-size: .98rem; border-radius: 0; }
.top nav a:hover, .mega-btn:hover, .top .more-btn:hover { color: var(--primary); background: transparent; }
.top nav a.active, .top .more-btn.active, .mega.open .mega-btn { color: var(--primary); box-shadow: inset 0 -2px 0 var(--primary); background: transparent; }
.top nav a.cta { background: var(--primary); color: #fff; border-radius: 0; box-shadow: none; }
.top nav a.nav-art { border: 1px solid var(--primary); color: var(--primary); border-radius: 0; background: transparent; }
.top nav a.nav-art:hover { background: var(--primary); color: #fff; }
.top .theme-toggle, .top .fs-switch button, .top nav .nav-add a, .nav-add i { color: var(--text); }
.nav-add, .nav-add-l { color: var(--muted); }
.top .fs-switch { border-radius: 0; }
.top .fs-switch button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.top .logo .logo-svg { color: var(--text); height: 36px; }
.top .logo .logo-svg rect { fill: var(--primary); }
.top .logo .logo-svg text { font-family: "Lato", "Segoe UI", Arial, sans-serif; font-weight: 300; }

/* przyciski */
.btn-pill { border-radius: 0; font-weight: 400; letter-spacing: .02em; }
.btn-pill.solid { background: var(--primary); color: #fff; box-shadow: none; }
.btn-pill.solid:hover { background: var(--primary-dark); }
.fab { background: var(--primary); color: #fff; border-radius: 0; box-shadow: 0 6px 16px rgba(30,163,98,.35); font-weight: 400; }

/* sekcje: duże, cienkie, wyśrodkowane nagłówki */
.band { padding: 54px 0; }
.section-head { margin-bottom: 26px; }
.section-head.center, .center { text-align: center; }
.section-head h2, .kx-dir h2, .kx-about h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); text-align: center; margin: 0 0 26px; padding: 0; position: relative; }
.section-head h2::after, .kx-dir h2::after, .kx-about h2::after { display: none; }
.eyebrow, .eyebrow.dark { color: var(--primary); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; background: none; }
.band.soft { background: var(--bg-soft); }
.featured-band { background: var(--bg-soft) !important; border: 0; }

/* karty */
.entry-card, .card, .feature { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--card); }
.entry-card { border-left: 1px solid var(--line); }
.entry-card:hover { transform: none; box-shadow: var(--shadow-hover); }
.entry-card h3 { font-size: 1.1rem; font-weight: 400; }
.entry-card .media, .entry-card.c0 .media, .entry-card.c1 .media, .entry-card.c2 .media, .entry-card.c3 .media, .entry-card.c4 .media, .thumb, .entry-thumb { background: linear-gradient(135deg, #5a5d5f, #3f4142) !important; border-radius: 0; }
.entry-card .media-initial { color: #fff; font-weight: 300; }
.cat-tile { background: var(--card); border: 1px solid var(--line); border-radius: 0; }
.tag, .badge, .pill { border-radius: 0; font-weight: 400; }
.search-bar { border-radius: 0; box-shadow: none; }
.search-bar button { border-radius: 0; background: var(--primary); }
.tabs-row a { border-radius: 0; font-weight: 400; }
.tabs-row a.active { background: var(--primary); color: #fff; }
.cat-list a.active, .side-cats a.active, .cat-side a.active { background: var(--primary); border-radius: 0; }

/* ===== strona główna ===== */
.kx-hero { position: relative; background: var(--bg) url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='240' viewBox='0 0 200 60' preserveAspectRatio='none'%3E%3Cpolygon points='0,60 0,30 20,30 20,14 38,14 38,36 52,36 52,6 66,6 66,28 84,28 84,20 104,20 104,40 120,40 120,10 136,10 136,34 158,34 158,24 176,24 176,44 200,44 200,60' fill='%23d9dde0'/%3E%3C/svg%3E") repeat-x bottom center / auto 55%; color: var(--text); padding: 70px 0 90px; border: 0; }
:root[data-theme="dark"] .kx-hero { background-blend-mode: normal; opacity: 1; }
.kx-hero::after { content: ""; display: block; position: absolute; left: auto; right: 0; top: 18%; width: 90px; height: 54%; background: linear-gradient(180deg, var(--primary) 0 48%, #7fc8a5 48% 100%); clip-path: polygon(100% 0, 100% 100%, 0 78%, 35% 30%); opacity: .9; pointer-events: none; }
.kx-h1, .kx-hero h1.kx-h1 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); font-weight: 300; line-height: 1.2; margin: 0 0 26px; color: var(--text); max-width: none; text-align: center; }
.kx-search { border-radius: 0; max-width: 760px; margin: 0 auto; box-shadow: var(--shadow); padding: 4px; background: var(--card); border: 1px solid var(--line); }
.kx-search input { padding: 13px 16px; font-size: 1.05rem; font-weight: 300; }
.kx-search button { background: var(--primary); color: #fff; border-radius: 0; padding: 0 28px; font-weight: 400; }
.kx-search button:hover { background: var(--primary-dark); }
.kx-paths { max-width: 760px; margin: 16px auto 0; gap: 12px; }
.kx-path { padding: 12px 16px; border-radius: 0; flex-direction: row; align-items: baseline; gap: 10px; background: var(--card); border: 1px solid var(--line); color: var(--text); justify-content: center; text-align: left; }
.kx-path span { font-size: .85rem; color: var(--muted); flex: 1; min-width: 0; text-align: right; }
.kx-path b, .kx-path strong, .kx-slogan a { color: var(--primary); font-weight: 400; white-space: nowrap; }
.kx-path:hover { border-color: var(--primary); transform: none; }

/* sześciokątne ikony: „dlaczego” i „3 kroki” */
.kx-trust { background: var(--bg); padding: 40px 0 10px; }
.kx-trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 28px; }
.kx-trust li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.kx-trust .ti { width: 112px; height: 128px; display: grid; place-items: center; font-size: 2.6rem; background: var(--primary); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); filter: grayscale(.2); box-shadow: none; }
.kx-trust li b { display: block; font-size: 1.45rem; font-weight: 300; color: var(--text); margin-bottom: 4px; }
.kx-trust li span:last-child { color: var(--muted); }
.kx-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; counter-reset: st; }
.kx-step { text-align: center; background: none; border: 0; box-shadow: none; padding: 0 10px; counter-increment: st; }
.kx-step::before { content: counter(st); position: static; border-radius: 0; font-family: inherit; display: grid; place-items: center; margin: 0 auto 14px; width: 96px; height: 110px; background: var(--primary); color: #fff; font-size: 2.6rem; font-weight: 300; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.kx-step h3 { font-size: 1.5rem; margin: 0 0 8px; }
.kx-step p { color: var(--muted); }
@media (max-width: 900px) { .kx-trust ul { grid-template-columns: repeat(2, 1fr); } .kx-steps { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .kx-trust ul { grid-template-columns: 1fr; } }

/* katalog kategorii */
.kx-dir { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 50px 0; }
.dir-grid { list-style: none; margin: 0; padding: 0; columns: 4 230px; column-gap: 32px; }
.dir-item { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid var(--line); line-height: 1.4; }
.dir-cat { font-weight: 400; color: var(--text); font-size: 1.02rem; }
.dir-cat small { font-weight: 300; color: var(--muted); }
.dir-cat:hover { color: var(--primary); text-decoration: none; }
.dir-subs { display: block; font-size: .86rem; color: var(--muted); }
.dir-subs a { color: var(--muted); } .dir-subs a:hover { color: var(--primary); }
.kx-about-box { background: var(--card); border: 0; border-left: 3px solid var(--primary); padding: 8px 20px; margin: 0 0 14px; color: var(--text); line-height: 1.8; }
.kx-about-box p { margin: 0 0 10px; color: var(--text); }
.kx-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 24px; padding: 0; margin: 8px 0 0; }
.kx-stats strong { color: var(--primary); font-size: 1.3rem; font-weight: 300; margin-right: 4px; }
.kx-slogan { color: var(--muted); margin: 6px 0 0; }
.kx-win { display: none !important; }

/* strony podrzędne */
.hero-band { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 40px 0; color: var(--text); }
.hero-band h1 { font-size: 2rem; color: var(--text); }
.hero-band p { color: var(--muted); }

/* pasek zachęty i stopka: ciemnoszary z zielonymi akcentami */
.cta-band { background: #4f5152; border: 0; padding: 40px 0; color: #fff; }
.cta-band h2 { font-size: 1.8rem; color: #fff; }
.cta-band p { color: #dfe2e3; }
.cta-band .btn-pill:not(.ghost) { background: var(--primary); color: #fff; }
.cta-band .btn-pill.ghost { border-color: #fff; color: #fff; background: transparent; }
.site-foot { background: #4f5152; color: #dfe2e3; border-top: 1px solid rgba(255,255,255,.12); font-weight: 300; }
.site-foot h2 { font-size: 1.7rem; font-weight: 300; color: #fff; }
.site-foot .foot-logo .logo-svg { color: #fff; }
.site-foot .foot-logo .logo-svg rect { fill: var(--primary); }
.site-foot a { color: #fff; }
.site-foot a:hover { color: #7fdcad; }
.site-foot ul { list-style: none; padding: 0; }
.site-foot nav li { background: rgba(0,0,0,.14); border-right: 5px solid var(--primary); margin: 0 0 8px; padding: 8px 14px; }
.site-foot .foot-bottom { color: #c4c8ca; }
@media (max-width: 640px) { .dir-grid { columns: 2 150px; column-gap: 16px; } .kx-path { flex-direction: column; align-items: flex-start; } .kx-path span { text-align: left; } .band { padding: 36px 0; } }

.top .logo .logo-svg text:last-child, .site-foot .logo-svg tspan:last-child { fill: var(--primary); }
.kx-trust .ti { color: #fff; filter: brightness(0) invert(1); }
.logo-svg tspan { fill: var(--primary); }

/* menu boczne: bez świecącego kółka wokół przycisku (nie ma się aż tak wyróżniać) */
.rail-btn, .rail-btn:hover, .rail-btn:focus, .rail-btn:focus-visible, .rail-btn:active, .rail-btn[aria-expanded="true"] {
    box-shadow: none !important; background: none !important; border-radius: 0 !important; outline: none !important; filter: none !important; animation: none !important; transform: none !important;
}
.rail-btn i { background: var(--muted) !important; }
.rail-btn:hover i { background: var(--primary) !important; }
