/*
Theme Name: Fando
Theme URI: https://fando.pl/
Author: Fando
Description: Ciepły motyw o finansach domowych dla fando.pl — skarbonka zamiast tabel. Krem, terakota i głęboka śliwka, zaokrąglone kształty, w logo moneta wpadająca do słoika, pasek „Porada na ten miesiąc”, duży wpis na górze strony, sidebar na stronie głównej i we wpisach, miejsca na reklamy włączane w Customizerze.
Version: 1.0.7
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: fando
*/
:root {
  --bg: #faf5ee; --paper: #fffdf9; --ink: #2b2230; --ink2: #5b5060; --muted: #948a96; --line: #ece2d6;
  --acc: #c8613f; --acc2: #5a2e4f; --plum: #5a2e4f; --plum-deep: #3f1f38; --soft: #f5e7dc; --gold: #e0a43a;
  --head: "Young Serif", Georgia, serif; --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif; --ui: "Nunito Sans", system-ui, sans-serif;
  --hw: 400; --hls: -.005em; --r: 20px; --ri: 14px; --rb: 999px; --wrap: 1200px; --link: var(--plum); --hover: var(--acc);
}

/* ================= RDZEŃ ================= */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: var(--fs, 17px); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link, var(--acc)); text-decoration: none; transition: color .15s, background .15s, border-color .15s; }
a:hover { color: var(--hover, var(--acc2)); }
h1,h2,h3,h4 { font-family: var(--head); font-weight: var(--hw, 700); line-height: 1.2; letter-spacing: var(--hls, -.01em); color: var(--ink); margin: 0 0 .5em; }
p { margin: 0 0 1.1em; }
button, input, select, textarea { font-family: var(--ui); }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; clip: auto; width: auto; height: auto; background: #fff; padding: 8px 14px; }
:focus-visible { outline: 2px solid var(--acc2); outline-offset: 2px; }
.fd-wrap { max-width: var(--wrap, 1200px); margin: 0 auto; padding: 0 20px; }

.fd-iconbtn { width: 40px; height: 40px; border-radius: var(--rb, 50%); border: 1px solid var(--line); background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.fd-iconbtn:hover { border-color: var(--acc); color: var(--acc); }
.fd-iconbtn svg { width: 18px; height: 18px; }
.fd-menu-toggle { display: none; }
.fd-search-drop { display: none; padding: 14px 0; border-bottom: 1px solid var(--line); background: var(--paper); }
.fd-search-drop.is-open { display: block; }
.fd-searchform { display: flex; gap: 8px; }
.fd-searchform input[type=search] { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--ri, 8px); font-size: 15px; background: var(--paper); color: var(--ink); }
.fd-searchform button { padding: 0 18px; border: 0; border-radius: var(--ri, 8px); background: var(--acc); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.fd-searchform button:hover { background: var(--acc2); }

.fd-ad { margin: 24px auto; text-align: center; }
.fd-ad__label { display: block; font-family: var(--ui); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.fd-ad--sidebar { margin: 0 0 24px; }

.fd-badge { align-self: flex-start; display: inline-block; font-family: var(--ui); font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--acc); }
.fd-meta { font-family: var(--ui); font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: auto; }
.fd-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--soft); }
.fd-ph__icon { width: 56px; height: 56px; opacity: .5; }

.fd-main { padding: 36px 0 60px; }
.fd-layout { display: grid; grid-template-columns: minmax(0,1fr) var(--side, 320px); gap: 44px; align-items: start; }
.fd-sidebar { position: sticky; top: 24px; }
.fd-section { margin-bottom: 46px; }
.fd-section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.fd-section__title { font-size: 24px; margin: 0; }
.fd-more { font-family: var(--ui); font-size: 14px; font-weight: 700; white-space: nowrap; }
.fd-more::after { content: " →"; }

.fd-list { display: flex; flex-direction: column; gap: 18px; }
.fd-row { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 22px; }
.fd-row__img { aspect-ratio: 4/3; overflow: hidden; position: relative; background: var(--soft); display: block; border-radius: var(--r, 10px); }
.fd-row__img img { width: 100%; height: 100%; object-fit: cover; }
.fd-row > div { display: flex; flex-direction: column; }
.fd-row__title { font-size: 21px; margin: 6px 0 8px; }
.fd-row__title a, .fd-card__title a, .fd-mini__title a { color: var(--ink); }
.fd-row__title a:hover, .fd-card__title a:hover, .fd-mini__title a:hover { color: var(--acc); }
.fd-row__excerpt { color: var(--ink2); font-size: 16px; margin: 0 0 10px; }

.fd-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.fd-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.fd-card { display: flex; flex-direction: column; }
.fd-card__img { aspect-ratio: 3/2; overflow: hidden; position: relative; background: var(--soft); display: block; border-radius: var(--r, 10px); }
.fd-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.fd-card:hover .fd-card__img img { transform: scale(1.04); }
.fd-card__body { padding: 12px 0 0; display: flex; flex-direction: column; flex: 1; }
.fd-card__title { font-size: 19px; margin: 6px 0 6px; line-height: 1.28; }
.fd-card__excerpt { color: var(--ink2); font-size: 15px; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.fd-mini { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 12px; align-items: start; }
.fd-mini__img { aspect-ratio: 1; overflow: hidden; position: relative; display: block; border-radius: var(--r, 10px); background: var(--soft); }
.fd-mini__img img { width: 100%; height: 100%; object-fit: cover; }
.fd-mini__title { font-size: 16px; margin: 0 0 4px; line-height: 1.3; }

.widget { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r, 10px); padding: 22px; margin-bottom: 24px; font-size: 15px; }
.widget-title, .widget .wp-block-heading { font-size: 18px; margin: 0 0 14px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget li a { color: var(--ink); }
.widget li a:hover { color: var(--acc); }
.widget .cat-item { display: flex; justify-content: space-between; font-family: var(--ui); }
.fd-wpop { counter-reset: fd; }
.fd-wpop li { display: grid; grid-template-columns: 30px 1fr; gap: 8px; counter-increment: fd; line-height: 1.4; }
.fd-wpop li::before { content: counter(fd); font-family: var(--head); font-weight: 700; color: var(--acc); }
.fd-wcomments li { font-size: 14px; line-height: 1.45; }
.fd-wcomments strong { font-family: var(--ui); }

.fd-crumbs { font-family: var(--ui); font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.fd-crumbs a { color: var(--ink2); }
.fd-crumbs .sep { margin: 0 6px; opacity: .6; }
.fd-article { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r, 10px); padding: 38px 44px 42px; }
.fd-article__title { font-size: 38px; line-height: 1.14; margin: 10px 0 16px; }
.fd-article__meta { font-family: var(--ui); font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; padding-bottom: 20px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.fd-article__thumb { margin: 0 0 30px; overflow: hidden; border-radius: var(--r, 10px); }
.fd-article__thumb img { width: 100%; max-height: 480px; object-fit: cover; }
.fd-content { font-size: var(--cfs, 18px); line-height: 1.75; }
.fd-content h2 { font-size: 27px; margin: 1.6em 0 .6em; }
.fd-content h3 { font-size: 21px; margin: 1.4em 0 .5em; }
.fd-content a { text-decoration: underline; text-decoration-color: var(--acc); text-underline-offset: 3px; }
.fd-content ul, .fd-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.fd-content li { margin-bottom: .35em; }
.fd-content ul li::marker { color: var(--acc); }
.fd-content blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--acc); background: var(--soft); font-family: var(--head); font-size: 20px; line-height: 1.45; }
.fd-content blockquote p:last-child { margin: 0; }
.fd-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-family: var(--ui); font-size: 15px; }
.fd-content th, .fd-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.fd-content th { background: var(--soft); }
.fd-content img { border-radius: var(--ri, 8px); }
.fd-content figure { margin: 1.6em 0; }
.fd-content figure > p { margin: 0; line-height: 0; }
.fd-content figure br { display: none; }
.fd-content figure.ap3-main, .fd-content figure.ap3-wide { line-height: 0; }
.fd-content figure.ap3-main img, .fd-content figure.ap3-wide img { border-radius: 0; margin: 0; }
.fd-content figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.fd-toc { background: var(--soft); border-radius: var(--r, 10px); padding: 18px 22px; margin: 0 0 28px; font-family: var(--ui); font-size: 15px; }
.fd-toc strong { font-family: var(--head); font-size: 17px; display: block; margin-bottom: 6px; }
.fd-toc ol { margin: 0; padding-left: 1.2em; }
.fd-toc a { color: var(--ink); }
.fd-toc a:hover { color: var(--acc); }
.fd-tags { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.fd-tags a { font-family: var(--ui); font-size: 13px; padding: 5px 12px; border: 1px solid var(--line); border-radius: var(--rb, 999px); color: var(--ink2); }
.fd-tags a:hover { border-color: var(--acc); color: var(--acc); }
.fd-author { display: flex; gap: 16px; align-items: center; margin-top: 28px; padding: 20px; background: var(--soft); border-radius: var(--r, 10px); }
.fd-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.fd-postnav a { display: block; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r, 10px); color: var(--ink); font-family: var(--head); font-weight: var(--hw, 700); font-size: 16px; line-height: 1.35; }
.fd-postnav a small { display: block; font-family: var(--ui); font-weight: 600; font-size: 12px; color: var(--acc); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.fd-postnav a:hover { border-color: var(--acc); }
.fd-postnav .next { text-align: right; }
.fd-related { margin-top: 40px; }

.fd-archive-head { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r, 10px); padding: 28px 30px; margin-bottom: 28px; }
.fd-archive-head h1 { font-size: 32px; margin: 6px 0; }
.fd-archive-head p, .fd-archive-head .archive-description { color: var(--ink2); margin: 0; }
.fd-kicker { font-family: var(--ui); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--acc); font-weight: 700; }

.fd-pagination { margin-top: 32px; }
.fd-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.fd-pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--rb, 8px); border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-family: var(--ui); font-size: 15px; font-weight: 600; }
.fd-pagination .page-numbers.current { background: var(--acc); border-color: var(--acc); color: #fff; }
.fd-pagination a.page-numbers:hover { border-color: var(--acc); color: var(--acc); }

.fd-comments { margin-top: 36px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r, 10px); padding: 28px 32px; }
.fd-comments ol { list-style: none; padding: 0; margin: 0 0 20px; }
.fd-comments .children { list-style: none; padding-left: 24px; }
.fd-comments .comment-body { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.fd-comments .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.fd-comments input[type=text], .fd-comments input[type=email], .fd-comments input[type=url], .fd-comments textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--ri, 8px); font: inherit; background: var(--bg); }
.fd-comments .submit { background: var(--acc); color: #fff; border: 0; border-radius: var(--ri, 8px); padding: 11px 22px; font-weight: 700; cursor: pointer; }

.fd-404 { text-align: center; padding: 64px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r, 10px); }
.fd-404 .fd-mark { width: 90px; height: 90px; margin: 0 auto 6px; }
.fd-404 h1 { font-size: 76px; margin: 0; color: var(--acc); }
.fd-404 p { color: var(--ink2); max-width: 460px; margin: 10px auto 24px; }
.fd-404 .fd-searchform { max-width: 420px; margin: 0 auto 20px; }

.fd-footer { font-size: 15px; padding-top: 48px; }
.fd-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.fd-footer .widget { background: transparent; border: 0; padding: 0; color: inherit; }
.fd-footer__brand p { margin-top: 14px; max-width: 340px; }
.fd-footer__bottom { padding: 18px 0; font-family: var(--ui); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.fd-footer__bottom ul { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; }
.fd-totop { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: var(--rb, 50%); border: 0; background: var(--acc); color: #fff; font-size: 18px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 40; }
.fd-totop.is-visible { opacity: 1; pointer-events: auto; }
.fd-totop:hover { background: var(--acc2); }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 14px; color: var(--muted); }

@media (max-width: 1080px) {
  .fd-layout { grid-template-columns: minmax(0,1fr) 280px; gap: 30px; }
  .fd-grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .fd-row { grid-template-columns: 180px minmax(0,1fr); }
}
@media (max-width: 900px) {
  .fd-layout { grid-template-columns: minmax(0,1fr); }
  .fd-sidebar { position: static; }
  .fd-menu-toggle { display: inline-flex; }
  .fd-footer__grid { grid-template-columns: 1fr 1fr; }
  .fd-article { padding: 26px 22px 30px; }
  .fd-article__title { font-size: 30px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .fd-grid, .fd-grid--3 { grid-template-columns: minmax(0,1fr); }
  .fd-row { grid-template-columns: 110px minmax(0,1fr); gap: 14px; }
  .fd-row__title { font-size: 17px; }
  .fd-row__excerpt { display: none; }
  .fd-section__title { font-size: 21px; }
  .fd-content { font-size: 17px; }
  .fd-content figure.ap3-main { float: none !important; width: 100% !important; max-width: none !important; margin: 0 0 20px !important; }
  .fd-postnav { grid-template-columns: minmax(0,1fr); }
  .fd-footer__grid { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .fd-comments { padding: 22px 18px; }
}

/* reklamy — dodatkowe miejsca */
.fd-ad--sidebar_bottom { margin: 24px 0 0; }
.fd-ad--footer { margin: 34px auto 10px; }

/* stopka — „Z archiwum” */
.fd-farch { border-top: 1px solid rgba(127,127,127,.25); padding: 22px 0 24px; }
.fd-farch__title { color: inherit; font-size: 14px; font-family: var(--ui); text-transform: uppercase; letter-spacing: .12em; margin: 0 0 12px; opacity: .8; }
.fd-farch__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px 30px; }
.fd-farch__list li { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.35; }
.fd-farch__list span { font-family: var(--ui); font-size: 12px; opacity: .6; }
@media (max-width: 900px) { .fd-farch__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .fd-farch__list { grid-template-columns: minmax(0,1fr); } }

/* slider — wspólny szkielet (wygląd ustawia każdy motyw) */
.fd-slider { position: relative; overflow: hidden; }
.fd-slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.fd-slider__track::-webkit-scrollbar { display: none; }
.fd-slide { position: relative; flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.fd-slide__img { display: block; position: relative; overflow: hidden; background: var(--soft); }
.fd-slide__img img { width: 100%; height: 100%; object-fit: cover; }
.fd-slide__body { display: flex; flex-direction: column; align-items: flex-start; }
.fd-slide__title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fd-slider__arrow { position: absolute; z-index: 2; width: 40px; height: 40px; border: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, color .2s; }
.fd-slider__arrow svg { width: 18px; height: 18px; }
.fd-slider__dots { position: absolute; z-index: 2; display: flex; gap: 8px; }
.fd-slider__dot { width: 9px; height: 9px; padding: 0; border: 0; cursor: pointer; transition: width .3s, background .3s; }
.fd-slider__dot.is-active { width: 28px; }
@media (max-width: 640px) { .fd-slider__arrow { display: none; } }

/* narzędzia w sidebarze */
.fd-tool { --ta: var(--ink); --tb: var(--acc); --tc: var(--acc2, var(--muted)); }
.fd-tool .widget-title { margin-bottom: 2px; }
.fd-tool__lead { font-family: var(--ui); font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.fd-tool__f { display: block; margin-bottom: 10px; min-width: 0; }
.fd-tool__f > span:first-child { display: block; font-family: var(--ui); font-size: 12.5px; font-weight: 600; color: var(--ink2); margin-bottom: 4px; }
.fd-tool__in { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--ri, 8px); background: var(--bg); overflow: hidden; }
.fd-tool__in:focus-within { border-color: var(--acc); }
.fd-tool__in input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 9px 10px; font-family: var(--ui); font-size: 16px; font-weight: 700; color: var(--ink); -moz-appearance: textfield; }
.fd-tool__in input:focus { outline: none; }
.fd-tool__in input::-webkit-outer-spin-button, .fd-tool__in input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fd-tool__in em { font-style: normal; font-family: var(--ui); font-size: 13px; color: var(--muted); padding: 0 10px 0 4px; }
.fd-tool select { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--ri, 8px); background: var(--bg); font-family: var(--ui); font-size: 15px; font-weight: 600; color: var(--ink); }
.fd-tool__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fd-tool__chk { display: flex; gap: 8px; align-items: center; font-family: var(--ui); font-size: 13px; margin: 2px 0 12px; }
.fd-tool__chk input { accent-color: var(--acc); width: 16px; height: 16px; }
.fd-tool__seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--ri, 8px); margin: 2px 0 12px; }
.fd-tool__seg button { border: 0; background: transparent; padding: 8px 6px; font-family: var(--ui); font-size: 13px; font-weight: 700; color: var(--ink2); border-radius: calc(var(--ri, 8px) - 2px); cursor: pointer; }
.fd-tool__seg button.is-active { background: var(--ink); color: #fff; }
.fd-tool__res { background: var(--ink); color: rgba(255,255,255,.75); border-radius: var(--ri, 8px); padding: 12px 14px; margin: 4px 0 12px; font-family: var(--ui); font-size: 13px; }
.fd-tool__res strong { display: block; color: #fff; font-size: 26px; line-height: 1.2; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.fd-tool__res small { display: block; font-size: 12.5px; margin-top: 2px; }
.fd-tool__bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--line); margin: 0 0 10px; }
.fd-tool__bar i { display: block; height: 100%; transition: width .4s; }
.fd-tool__bar i:nth-child(1) { background: var(--ta); }
.fd-tool__bar i:nth-child(2) { background: var(--tb); }
.fd-tool__bar i:nth-child(3) { background: var(--tc); }
.fd-tool__bar--3 i:nth-child(1) { width: 50%; }
.fd-tool__bar--3 i:nth-child(2) { width: 30%; }
.fd-tool__bar--3 i:nth-child(3) { width: 20%; }
.fd-tool__out { margin: 0 0 4px; }
.fd-tool__out div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-family: var(--ui); font-size: 13.5px; }
.fd-tool__out div:last-child { border-bottom: 0; }
.fd-tool__out dt { color: var(--ink2); }
.fd-tool__out dt small { display: block; font-size: 11.5px; color: var(--muted); margin: 1px 0 0 16px; }
.fd-tool__out dd { margin: 0; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fd-tool__dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 0; }
.fd-tool__dot.is-a { background: var(--ta); }
.fd-tool__dot.is-b { background: var(--tb); }
.fd-tool__dot.is-c { background: var(--tc); }
.fd-tool__note { font-family: var(--ui); font-size: 11.5px; line-height: 1.45; color: var(--muted); margin: 8px 0 0; }
.fd-tool__btn { display: block; width: 100%; margin: 2px 0 12px; padding: 11px 14px; border: 0; border-radius: var(--ri, 8px); background: var(--acc); color: #fff; font-family: var(--ui); font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s; }
.fd-tool__btn:hover { background: var(--ink); }
.fd-tool.is-flash .fd-tool__res { animation: fd-flash .6s ease; }
@keyframes fd-flash { 0% { transform: scale(.97); opacity: .6; } 100% { transform: none; opacity: 1; } }
.fd-tool__pane--grow { display: none; }
.fd-tool[data-mode="grow"] .fd-tool__pane--grow { display: block; }
.fd-tool[data-mode="grow"] .fd-tool__pane--save { display: none; }
.fd-tool__sub { font-family: var(--ui); font-size: 12.5px; font-weight: 600; color: var(--ink2); margin: 10px 0 0; }
.fd-tool__out--steps div { padding: 5px 0; }

/* wgrane logo + nazwa */
.fd-brand--logo { gap: 12px; }
.fd-brand--logo .custom-logo { display: block; max-height: 56px; width: auto; }
.fd-header .fd-brand--logo .custom-logo { mix-blend-mode: multiply; }
@media (max-width: 640px) { .fd-brand--logo .custom-logo { max-height: 42px; } }

/* ================= FANDO ================= */
.fd-tipbar { background: var(--plum); color: #f6e6ee; font-size: 14px; }
.fd-tipbar__inner { display: flex; gap: 14px; align-items: center; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.fd-tipbar__label { flex-shrink: 0; background: var(--gold); color: var(--plum-deep); font-weight: 800; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.fd-tipbar__text { line-height: 1.4; }

.fd-header { background: var(--bg); position: relative; z-index: 50; }
.fd-header__inner { display: flex; align-items: center; gap: 26px; min-height: 86px; }
.fd-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.fd-brand:hover { color: var(--ink); }
.fd-brand__name { font-family: var(--head); font-size: 30px; letter-spacing: -.02em; line-height: 1; color: var(--plum); }
.fd-brand__name span { color: var(--acc); }
.fd-brand .custom-logo { max-height: 54px; width: auto; }
.fd-mark { width: 36px; height: 46px; overflow: visible; }
.fd-mark__coin { animation: fd-coin 4.5s ease-in infinite; transform-origin: 20px 8px; }
@keyframes fd-coin {
  0%, 30% { transform: translateY(-4px); opacity: 0; }
  40% { transform: translateY(0); opacity: 1; }
  62% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(12px) scaleX(.55); opacity: 1; }
  86%, 100% { transform: translateY(14px) scaleX(.3); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .fd-mark__coin { animation: none; } }

.fd-nav { margin-left: auto; }
.fd-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.fd-nav li { position: relative; }
.fd-nav a { display: block; padding: 9px 15px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--ink); }
.fd-nav a:hover, .fd-nav .current-menu-item > a, .fd-nav .current-cat > a { background: var(--soft); color: var(--acc); }
.fd-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 6px; flex-direction: column; box-shadow: 0 16px 40px rgba(43,34,48,.12); }
.fd-nav li:hover > .sub-menu, .fd-nav li:focus-within > .sub-menu { display: flex; }
.fd-header__tools { display: flex; gap: 8px; }
.fd-iconbtn { background: var(--paper); }

/* hero: slider + trzy obok */
.fd-hero { padding: 18px 0 8px; }
.fd-hero__grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 18px; }
.fd-hero__grid.is-single { grid-template-columns: minmax(0,1fr); }
.fd-slider { position: relative; border-radius: 28px; overflow: hidden; background: var(--plum); box-shadow: 0 20px 50px rgba(63,31,56,.18); height: 400px; }
.fd-slider__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.fd-slider__track::-webkit-scrollbar { display: none; }
.fd-slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; }
.fd-slide__img { position: absolute; inset: 0; display: block; background: var(--soft); }
.fd-slide__img img { width: 100%; height: 100%; object-fit: cover; }
.fd-slide__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(48,22,42,.94) 0%, rgba(63,31,56,.72) 38%, rgba(63,31,56,0) 72%); }
.fd-slide__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 36px 52px; display: flex; flex-direction: column; align-items: flex-start; pointer-events: none; }
.fd-slide__body a { pointer-events: auto; }
.fd-slide__body .fd-badge { color: var(--plum-deep); background: var(--gold); }
.fd-slide__title { font-size: 30px; line-height: 1.18; margin: 10px 0 16px; max-width: 640px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fd-slide__title a { color: #fff; }
.fd-slide__title a:hover { color: #ffd9c9; }
.fd-hero__btn { background: var(--acc); color: #fff; font-weight: 800; padding: 11px 22px; border-radius: 999px; font-size: 15px; }
.fd-hero__btn:hover { background: var(--gold); color: var(--plum-deep); }
.fd-slider__arrow { position: absolute; top: 22px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: var(--plum); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, color .2s; }
.fd-slider__arrow svg { width: 18px; height: 18px; }
.fd-slider__arrow:hover { background: var(--acc); color: #fff; }
.fd-slider__arrow--prev { right: 70px; }
.fd-slider__arrow--next { right: 22px; }
.fd-slider__dots { position: absolute; left: 36px; bottom: 22px; display: flex; gap: 8px; }
.fd-slider__dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.45); cursor: pointer; transition: width .3s, background .3s; }
.fd-slider__dot.is-active { width: 28px; background: var(--gold); }
.fd-hero__side { display: grid; grid-template-rows: repeat(3, minmax(0,1fr)); gap: 14px; height: 400px; }
.fd-hero__item { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 12px; transition: border-color .2s, box-shadow .2s; }
.fd-hero__item:hover { border-color: #e6cdbf; box-shadow: 0 10px 26px rgba(63,31,56,.08); }
.fd-hero__thumb { aspect-ratio: 1; border-radius: 14px; overflow: hidden; position: relative; display: block; background: var(--soft); }
.fd-hero__thumb img { width: 100%; height: 100%; object-fit: cover; }
.fd-hero__small { font-size: 16px; line-height: 1.3; margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fd-hero__small a { color: var(--ink); }
.fd-hero__small a:hover { color: var(--acc); }

/* sekcje */
.fd-section__title { display: inline-flex; align-items: center; gap: 12px; font-size: 26px; }
.fd-section__title::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 5px 0 0 var(--acc); margin-right: 6px; }
.fd-more { color: var(--plum); background: var(--soft); padding: 7px 14px; border-radius: 999px; }
.fd-more:hover { background: var(--acc); color: #fff; }
.fd-card { background: var(--paper); border-radius: 22px; padding: 10px; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.fd-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(63,31,56,.1); }
.fd-card__img { border-radius: 16px; }
.fd-card__body { padding: 12px 8px 8px; }
.fd-badge { background: var(--soft); color: var(--acc); padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.fd-catblock { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: start; }
.fd-catblock__side { display: flex; flex-direction: column; gap: 12px; }
.fd-mini { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 10px; }
.fd-mini__img { border-radius: 12px; }
.fd-catsec { background: linear-gradient(180deg, var(--soft) 0, transparent 140px); border-radius: 28px; padding: 22px 22px 6px; margin-left: -22px; margin-right: -22px; }
.fd-row { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 12px; }

/* widgety */
.widget { border-radius: 22px; }
.widget-title { color: var(--plum); }
.fd-about { background: var(--plum); border: 0; color: #ecd9e4; position: relative; overflow: hidden; }
.fd-about .widget-title { color: #fff; }
.fd-about p { margin: 0; position: relative; z-index: 1; }
.fd-about::after { content: ""; position: absolute; right: -28px; top: -28px; width: 110px; height: 110px; border-radius: 50%; background: rgba(224,164,58,.22); }
.fd-wpop li::before { color: #fff; background: var(--acc); width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-family: var(--ui); font-weight: 800; }

/* wpis */
.fd-article { border-radius: 28px; }
.fd-article__title { color: var(--plum-deep); }
.fd-toc { background: var(--soft); border-radius: 20px; }
.fd-toc strong { color: var(--plum); }
.fd-content h2 { color: var(--plum); }
.fd-content blockquote { border-left: 0; border-radius: 20px; background: var(--plum); color: #f3e3ec; position: relative; padding-left: 64px; }
.fd-content blockquote::before { content: "„"; position: absolute; left: 20px; top: -6px; font-size: 64px; color: var(--gold); font-family: var(--head); }
.fd-archive-head { background: var(--plum); border: 0; color: #f3e3ec; border-radius: 28px; }
.fd-archive-head h1 { color: #fff; }
.fd-archive-head p, .fd-archive-head .archive-description { color: #e4cfdc; }
.fd-archive-head .fd-kicker { color: var(--gold); }

/* stopka */
.fd-footer { background: var(--plum-deep); color: #d9c4d2; margin-top: 20px; border-radius: 36px 36px 0 0; }
.fd-footer a { color: #fff; }
.fd-footer a:hover { color: var(--gold); }
.fd-footer .widget-title { color: #fff; }
.fd-footer .widget li { border-color: rgba(255,255,255,.1); }
.fd-footer .widget li a { color: #f0e3ea; }
.fd-footer__brand .fd-brand__name { color: #fff; }
.fd-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); }

@media (max-width: 1080px) {
  .fd-slide__title { font-size: 26px; }
  .fd-hero__item { grid-template-columns: 76px minmax(0,1fr); }
  .fd-hero__small { font-size: 15px; }
}
@media (max-width: 900px) {
  .fd-header__inner { min-height: 70px; gap: 12px; }
  .fd-header__tools { margin-left: auto; }
  .fd-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); padding: 10px 20px 16px; box-shadow: 0 16px 30px rgba(43,34,48,.12); margin: 0; }
  .fd-nav.is-open { display: block; }
  .fd-nav ul { flex-direction: column; }
  .fd-nav .sub-menu { display: flex; position: static; box-shadow: none; border: 0; }
  .fd-hero__grid { grid-template-columns: minmax(0,1fr); }
  .fd-hero__side { height: auto; grid-template-rows: none; }
  .fd-catblock { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 640px) {
  .fd-tipbar__inner { flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 8px; padding-bottom: 8px; }
  .fd-tipbar__text { font-size: 13px; }
  .fd-brand__name { font-size: 25px; }
  .fd-mark { width: 30px; height: 38px; }
  .fd-slider { height: 340px; border-radius: 22px; }
  .fd-slide__body { padding: 0 20px 44px; }
  .fd-slide__title { font-size: 22px; }
  .fd-slider__arrow { display: none; }
  .fd-slider__dots { left: 20px; bottom: 18px; }
  .fd-catsec { margin-left: 0; margin-right: 0; padding: 16px 12px 4px; }
  .fd-footer { border-radius: 24px 24px 0 0; }
}
.fd-footer .fd-farch__title { color: var(--gold); opacity: 1; }
.fd-tool { --ta: var(--plum); --tb: var(--acc); }
.fd-tool__res { background: var(--plum); border-radius: 16px; }
.fd-tool__res strong { font-family: var(--head); font-weight: 400; color: #fff; }
.fd-tool__in, .fd-tool select, .fd-tool__seg { border-radius: 12px; }

/* porada dnia z żaróweczką */
.fd-hero__side.has-tip { grid-template-rows: auto minmax(0,1fr) minmax(0,1fr); }
.fd-daytip { position: relative; overflow: hidden; background: linear-gradient(135deg, #fff6e2 0%, #fde9d9 100%); border: 1px solid #f1d9b8; border-radius: 20px; padding: 14px 16px 14px; }
.fd-daytip::before { content: ""; position: absolute; left: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(255,211,107,.55) 0%, rgba(255,211,107,0) 70%); animation: fd-glow 3.2s ease-in-out infinite; pointer-events: none; }
.fd-daytip__head { position: relative; display: grid; grid-template-columns: 40px minmax(0,1fr); column-gap: 10px; align-items: center; margin-bottom: 6px; }
.fd-daytip__bulb { grid-row: span 2; width: 40px; height: 40px; }
.fd-daytip__bulb svg { width: 40px; height: 40px; overflow: visible; }
.fd-daytip__glass { filter: drop-shadow(0 0 4px rgba(255,190,60,.8)); animation: fd-bulb 3.2s ease-in-out infinite; }
.fd-daytip__rays { animation: fd-rays 3.2s ease-in-out infinite; transform-origin: 20px 20px; }
.fd-daytip__k { font-family: var(--ui); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--acc); }
.fd-daytip__t { font-family: var(--head); font-size: 16px; color: var(--plum); line-height: 1.2; }
.fd-daytip__text { position: relative; margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink); }
@keyframes fd-glow { 0%, 100% { opacity: .55; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes fd-bulb { 0%, 100% { filter: drop-shadow(0 0 2px rgba(255,190,60,.5)); } 50% { filter: drop-shadow(0 0 9px rgba(255,190,60,1)); } }
@keyframes fd-rays { 0%, 100% { opacity: .35; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .fd-daytip::before, .fd-daytip__glass, .fd-daytip__rays { animation: none; } }
@media (max-width: 900px) { .fd-hero__side.has-tip { grid-template-rows: none; } }

/* stopka: opis + „Z archiwum” */
.fd-footer__grid { grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 48px; }
.fd-footer__arch .fd-farch { border-top: 0; padding: 0; }
.fd-footer__arch .fd-farch__title { font-family: var(--head); font-size: 20px; text-transform: none; letter-spacing: 0; margin-bottom: 14px; }
.fd-footer__arch .fd-farch__list { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 30px; }
.fd-footer__arch .fd-farch__list li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 15px; }
@media (max-width: 900px) { .fd-footer__grid { grid-template-columns: minmax(0,1fr); gap: 28px; } }
@media (max-width: 640px) { .fd-footer__arch .fd-farch__list { grid-template-columns: minmax(0,1fr); } }
