:root {
  font-family: var(--font-sans);
  color: #202338;
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #202338;
  --muted: #5f6475;
  --line: #e9eaf1;
  --purple: #6858e8;
  --purple-dark: #5545d3;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

.site-header { position: relative; z-index: 2; background: rgb(255 255 255 / 92%); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; width: 188px; height: 76px; overflow: hidden; }
.brand img { display: block; width: 188px; height: 76px; object-fit: cover; object-position: center; mix-blend-mode: multiply; }
.main-nav { display: flex; align-items: center; gap: 34px; color: #5d6172; font-size: 14px; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .main-nav a:not(.nav-cta):hover, .footer-links a:hover { color: var(--purple); } }
.main-nav .nav-cta { padding: 12px 17px; border: 1px solid #e8e5fb; border-radius: 10px; color: var(--purple-dark); background: #f8f7ff; }
.nav-cta span { padding-left: 8px; }

.hero { min-height: 514px; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 34px; padding-top: 24px; padding-bottom: 56px; }
.hero-copy { position: relative; z-index: 1; padding: 18px 0 24px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 17px; color: #6e61d8; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff976b; box-shadow: 0 0 0 4px #fff0e9; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-sans); }
h1 { margin-bottom: 20px; color: #222438; font-size: clamp(44px, 6vw, 68px); font-weight: 800; letter-spacing: -.065em; line-height: 1.06; }
h1 span, .hero-slogan span, .benefits-intro h2 span { color: var(--purple); }
.hero-slogan { margin: 0 0 16px; color: #222438; font-family: var(--font-sans); font-size: clamp(44px, 6vw, 68px); font-weight: 800; letter-spacing: -.065em; line-height: 1.06; }
.hero-h1 { max-width: 520px; margin: 0 0 12px; color: #2e3045; font-size: clamp(19px, 2vw, 22px); font-weight: 750; letter-spacing: -.025em; line-height: 1.35; }
.hero-description { max-width: 510px; margin-bottom: 25px; color: #707487; font-size: 16px; line-height: 1.75; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 0 19px; border-radius: 10px; font-size: 14px; font-weight: 700; transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background .18s var(--ease-out), scale .16s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .button:hover { transform: translateY(-2px); } }
.button-primary { color: #fff; background: var(--purple); box-shadow: 0 8px 20px rgb(104 88 232 / 23%); }
@media (hover: hover) and (pointer: fine) { .button-primary:hover { background: var(--purple-dark); box-shadow: 0 11px 25px rgb(104 88 232 / 30%); } }
.button-primary span { font-size: 17px; }
.hero-note { display: flex; align-items: center; gap: 9px; margin-top: 20px; color: #5f6475; font-size: 13px; }
.privacy-icon { width: 19px; height: 19px; display: inline-grid; place-items: center; border-radius: 50%; color: #238c70; background: #e9f8f3; font-size: 11px; font-weight: 700; }

.hero-art { position: relative; min-height: 370px; display: grid; place-items: center; isolation: isolate; }
.art-glow { position: absolute; z-index: -2; width: min(365px, 80%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #f0edff 0%, #f7f5ff 49%, rgb(255 255 255 / 0%) 72%); }
.orbit { position: absolute; z-index: -1; border: 1px solid #ebe8fb; border-radius: 50%; transform: rotate(-25deg); }
.orbit-one { width: 415px; height: 245px; }
.orbit-two { width: 440px; height: 285px; transform: rotate(40deg); }
.logo-frame { width: min(360px, 76%); height: 230px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgb(255 255 255 / 90%); border-radius: 35px; background: rgb(255 255 255 / 76%); box-shadow: 0 26px 75px rgb(79 67 165 / 13%), inset 0 0 0 1px rgb(232 228 255 / 60%); transform: rotate(-3deg); }
.logo-frame img { display: block; width: 113%; height: 113%; object-fit: contain; mix-blend-mode: multiply; }
.floating-card { position: absolute; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #f0eff6; border-radius: 12px; color: #484b60; background: #fff; box-shadow: 0 12px 36px rgb(33 32 61 / 9%); font-size: 12px; font-weight: 700; }
.card-top { top: 39px; left: 2px; transform: rotate(-4deg); }
.card-bottom { right: 0; bottom: 39px; transform: rotate(3deg); }
.mini-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; font-size: 10px; font-weight: 700; }
.mini-purple { color: #695ade; background: #f0edff; }
.sparkle { padding-left: 8px; color: #f09b55; font-size: 16px; }
/* Gwiazdki jako SVG: glif ✳ na iOS renderuje się jako zielone emoji. */
.sparkle svg, .decor-star svg { display: block; width: .8em; height: .8em; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #51c79a; box-shadow: 0 0 0 4px #e6f8f1; }
.card-check { width: 20px; height: 20px; display: grid; place-items: center; margin-left: 8px; border-radius: 50%; color: #24886b; background: #e7f7f0; }
.decor { position: absolute; color: #a49af2; }
.decor-plus { top: 52px; right: 43px; font-size: 26px; }
.decor-star { bottom: 69px; left: 34px; color: #ffb269; font-size: 21px; }

.tools-section { padding: 74px 0 82px; background: #f8f9fc; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-heading .eyebrow, .benefits-intro .eyebrow { margin-bottom: 10px; }
.section-heading h2, .benefits-intro h2 { margin-bottom: 9px; font-size: clamp(29px, 4vw, 38px); font-weight: 800; letter-spacing: -.055em; }
.section-description { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.search-box { width: min(310px, 100%); min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid #e7e8ef; border-radius: 10px; background: #fff; color: #6b7080; transition: border .16s, box-shadow .16s; }
.search-box:focus-within { border-color: #aaa0f3; box-shadow: 0 0 0 4px rgb(104 88 232 / 9%); }
.search-box svg { width: 19px; height: 19px; flex: 0 0 auto; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; }
.search-box input::placeholder { color: #5f6475; }
kbd { min-width: 21px; padding: 3px 6px; border: 1px solid #e8e9ef; border-radius: 5px; color: #5f6475; background: #fafafe; font: inherit; font-size: 12px; text-align: center; }
/* Skrót klawiaturowy nic nie znaczy na ekranie dotykowym. */
@media (hover: none) { .search-box kbd { display: none; } }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.tool-card { min-height: 247px; display: flex; flex-direction: column; padding: 21px; border: 1px solid #eaebf1; border-radius: 15px; background: #fff; box-shadow: 0 3px 10px rgb(28 33 66 / 2%); transition: transform .2s var(--ease-out), border-color .2s var(--ease-out), box-shadow .2s var(--ease-out), scale .16s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { a.tool-card:hover { transform: translateY(-4px); border-color: #d9d3ff; box-shadow: 0 14px 30px rgb(54 45 112 / 8%); } }
.tool-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 19px; }
.tool-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; }
.tool-icon svg { width: 22px; height: 22px; }
.icon-violet { color: #695ade; background: #f0edff; }
.icon-blue { color: #4384d9; background: #eaf3ff; }
.icon-mint { color: #299d7b; background: #e9f8f2; }
.category { padding: 6px 9px; border-radius: 6px; color: #4b438f; background: #f5f3ff; font-size: 12px; font-weight: 700; }
.category-soon { color: #3f7a60; background: #eef8f3; }
.tool-groups { display: grid; gap: 38px; }
.tool-group-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #e9eaf2; }
.tool-group-head h3 { margin: 0; color: #292b40; font-size: 19px; font-weight: 800; letter-spacing: -.035em; }
.tool-group-head p { margin: 0; color: #6b6f80; font-size: 14px; line-height: 1.5; }
.tool-card h3, .tool-card h4 { margin-top: 0; margin-bottom: 8px; color: #292b40; font-size: 17px; font-weight: 750; letter-spacing: -.035em; }
.tool-card p { margin-bottom: 18px; color: #5f6475; font-size: 14px; line-height: 1.6; }
.card-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; color: var(--purple-dark); font-size: 13px; font-weight: 700; }
.card-link span { font-size: 16px; transition: transform .16s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { a.tool-card:hover .card-link span, .tool-card .card-link:hover span { transform: translateX(3px); } }
.tool-card-soon { border-style: dashed; background: #fdfdff; }
.tool-card-soon .card-link { width: fit-content; gap: 15px; }
.no-results { margin: 26px 0 0; padding: 22px; border: 1px dashed #dfe0e9; border-radius: 12px; color: var(--muted); text-align: center; font-size: 14px; }

.benefits-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; padding-top: 91px; padding-bottom: 94px; }
.benefits-intro h2 { margin-bottom: 15px; line-height: 1.2; }
.benefits-intro > p:last-child { max-width: 340px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.benefit-list { display: grid; gap: 20px; }
.benefit { display: grid; grid-template-columns: 42px 1fr; gap: 15px; align-items: start; }
.benefit-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; }
.benefit-icon svg { width: 21px; height: 21px; }
.benefit-purple { color: #695ade; background: #f0edff; }
.benefit-blue { color: #4384d9; background: #eaf3ff; }
.benefit-orange { color: #e89149; background: #fff2e8; }
.benefit h3 { margin: 2px 0 5px; color: #303246; font-size: 16px; font-weight: 750; letter-spacing: -.025em; }
.benefit p { max-width: 460px; margin: 0; color: #5f6475; font-size: 14px; line-height: 1.65; }

.site-footer { border-top: 1px solid #edecf2; background: #fbfbfd; }
.footer-inner { min-height: 123px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; align-items: center; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #5f6475; font-size: 12px; }
.footer-brand img { width: 105px; height: 58px; object-fit: cover; object-position: center; mix-blend-mode: multiply; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; color: #5f6475; font-size: 12px; font-weight: 600; }
.copyright { margin: 0; color: #5f6475; font-size: 12px; text-align: right; }
.footer-legal-note { margin: 9px 0 0; color: #5f6475; font-size: 12px; line-height: 1.6; text-align: center; }
.footer-legal-note a { color: #5e55c8; }

.home-footer { padding: 8px 0 10px; }
.home-footer-inner { min-height: 0; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; }
.home-footer .footer-brand { width: max-content; max-width: 100%; }
.home-footer .footer-brand img { width: 96px; height: 53px; }
.home-footer .footer-links { flex-wrap: nowrap; justify-content: center; gap: clamp(11px, 1.4vw, 19px); white-space: nowrap; }
.home-footer .copyright { justify-self: end; white-space: nowrap; }
.home-footer .home-footer-legal { max-width: 1160px; margin: 0 auto; padding: 8px 24px 2px; border-top: 1px solid #edecf2; text-align: center; }

@media (max-width: 960px) {
  .home-footer-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; }
  .home-footer .footer-brand { grid-column: 1; grid-row: 1; }
  .home-footer .footer-links { grid-column: 1 / -1; grid-row: 2; justify-content: center; flex-wrap: wrap; white-space: normal; }
  .home-footer .copyright { grid-column: 2; grid-row: 1; text-align: right; }
}

@media (max-width: 800px) {
  .container { width: min(100% - 36px, 620px); }
  .main-nav { gap: 17px; }
  .main-nav a:nth-child(2) { display: none; }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 4px; padding-top: 38px; padding-bottom: 40px; }
  .hero-copy { padding: 15px 0 0; }
  .hero-art { min-height: 325px; overflow-x: clip; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefits-section { grid-template-columns: 1fr 1.15fr; gap: 35px; padding-top: 70px; padding-bottom: 72px; }
  .footer-inner { grid-template-columns: 1fr 1fr; padding-top: 20px; padding-bottom: 20px; }
  .copyright { grid-column: 1 / -1; text-align: left; }
  .footer-legal-note { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 30px, 440px); }
  .header-inner { min-height: 72px; }
  .brand { width: 145px; height: 62px; }
  .brand img { width: 145px; height: 62px; }
  /* Na telefonie przycisk "Odkryj narzędzia" dublował "Znajdź swoje narzędzie" z hero (ten sam pierwszy ekran)
     i łamał się na 2-3 linie. Jego miejsce zajmuje link do bloga, którego wcześniej na mobile nie było. */
  .main-nav { gap: 4px; }
  .main-nav .nav-cta { display: none; }
  .main-nav a:first-child { padding: 12px 10px; }
  .hero { padding-top: 26px; }
  .eyebrow { font-size: 11px; letter-spacing: .1em; }
  h1, .hero-slogan { font-size: clamp(43px, 13vw, 58px); }
  .hero-h1 { font-size: 18px; }
  .hero-description { font-size: 15px; }
  .hero-art { min-height: 285px; overflow-x: clip; }
  .logo-frame { width: min(300px, 76%); height: 190px; border-radius: 28px; }
  .orbit-one { width: 315px; height: 195px; }
  .orbit-two { width: 330px; height: 220px; }
  .card-top { top: 25px; left: -2px; }
  .card-bottom { right: -1px; bottom: 24px; }
  .floating-card { padding: 9px 10px; font-size: 11px; }
  .section-heading { align-items: stretch; flex-direction: column; gap: 18px; margin-bottom: 20px; }
  .search-box { width: 100%; }
  .tools-section { padding: 58px 0 60px; }
  .tool-grid { grid-template-columns: 1fr; gap: 12px; }
  .tool-card { min-height: 220px; padding: 19px; }
  .benefits-section { grid-template-columns: 1fr; gap: 28px; padding-top: 63px; padding-bottom: 62px; }
  .benefit-list { gap: 17px; }
  .footer-inner { grid-template-columns: 1fr; gap: 14px; }
  .footer-links { justify-content: flex-start; flex-wrap: wrap; }
  .copyright { grid-column: auto; }
  .home-footer-inner { grid-template-columns: 1fr; justify-items: center; gap: 10px; padding-top: 8px; padding-bottom: 8px; }
  .home-footer .footer-brand { grid-column: auto; grid-row: auto; }
  .home-footer .footer-links { grid-column: auto; grid-row: auto; justify-content: center; gap: 10px 16px; }
  .home-footer .copyright { grid-column: auto; grid-row: auto; text-align: center; }
  .home-footer .home-footer-legal { padding: 8px 15px 2px; }
}
@media (max-width: 380px) {
  /* 320px: logo + Blog + przełącznik języka mieszczą się dopiero z mniejszym logo i odstępem (wcześniej logo było przycinane). */
  .header-inner { gap: 12px; }
  .brand, .brand img { width: 120px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Blok źródeł, autora i stanu prawnego na stronach narzędzi */
.wb-sources ul { margin: 8px 0 0; padding-left: 20px; }
.wb-sources li { margin: 6px 0; }
.wb-sources-meta { margin: 14px 0 0; color: #667085; font-size: .92rem; }
/* Linki w treści poradników VAT i OC - ten sam styl co w poradniku KSeF (ksef-invoice.css) */
.vat-seo-card a, .vat-faq a, .oc-seo-intro a, .oc-seo-card a, .oc-faq a { color: #5146c8; text-decoration: underline; text-decoration-color: #c9c4fa; text-underline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .vat-seo-card a:hover, .vat-faq a:hover, .oc-seo-intro a:hover, .oc-seo-card a:hover, .oc-faq a:hover { color: #3930b4; text-decoration-color: currentColor; } }
