.blog-page {
  --blog-ink: #202338;
  --blog-muted: #666b7d;
  --blog-line: #e8e9f1;
  --blog-purple: #6858e8;
  font-family: var(--font-sans);
  color: var(--blog-ink);
  background: #fff;
  line-height: 1.5;
  min-width: 320px;
  margin: 0;
}
/* Stopka zawsze na dole ekranu, także gdy wyszukiwanie zostawi pustą listę. svh: bez skoku przy chowaniu paska adresu. */
.blog-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.blog-page > main { flex: 1 0 auto; }
.blog-page * { box-sizing: border-box; }
.blog-page a { color: inherit; text-decoration: none; }
.blog-page [hidden] { display: none !important; }
.blog-container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.blog-site-header { position: relative; z-index: 2; background: rgb(255 255 255 / 92%); }
.blog-header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.blog-site-header .brand { width: 188px; height: 76px; display: inline-flex; align-items: center; overflow: hidden; }
.blog-site-header .brand img { display: block; width: 188px; height: 76px; object-fit: cover; object-position: center; mix-blend-mode: multiply; }
.blog-site-header .main-nav { display: flex; align-items: center; gap: 34px; color: #5d6172; font-size: 14px; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .blog-site-header .main-nav > a:not(.nav-cta):hover, .blog-site-footer .footer-links a:hover { color: var(--blog-purple); } }
.blog-site-header .main-nav .nav-cta { padding: 12px 17px; border: 1px solid #e8e5fb; border-radius: 10px; color: #5545d3; background: #f8f7ff; }
.blog-site-header .nav-cta > span:last-child { padding-left: 8px; }
.nav-cta-mobile { display: none; }
.blog-language-switch { flex: 0 0 auto; }
.blog-language-switch a { min-height: 32px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 8px; border-radius: 7px; color: #5f6475; font-size: 11px; font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .blog-language-switch a:hover { background: #f6f5ff; } }
.blog-language-switch a[aria-current="page"] { color: #5545d3; background: #f0edff; }
@media (hover: hover) and (pointer: fine) { .blog-article a:hover { color: var(--brand-dark); } }
.blog-hero { position: relative; overflow: hidden; margin-top: 38px; padding: 54px 58px; border: 1px solid #eeecfb; border-radius: 25px; background: radial-gradient(ellipse at 87% 20%, #f0edff 0, rgb(240 237 255 / 0%) 42%), linear-gradient(120deg, #fbfaff, #fff 70%); }
.blog-kicker { margin: 0 0 12px; color: var(--blog-purple); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.blog-hero h1 { max-width: 700px; margin: 0 0 13px; font-size: clamp(36px, 5vw, 54px); font-weight: 800; letter-spacing: -.055em; line-height: 1.08; }
.blog-hero p:last-child { max-width: 660px; margin: 0; color: var(--blog-muted); font-size: 15px; line-height: 1.8; }
.blog-content { padding: 36px 0 74px; }
.blog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 24px; }
.blog-count { margin: 0; color: var(--blog-muted); font-size: 14px; }
.blog-search { width: min(330px, 100%); min-height: 44px; padding: 0 14px; border: 1px solid var(--blog-line); border-radius: 11px; color: var(--blog-ink); background: #fff; font: inherit; font-size: 14px; outline: none; }
.blog-search:focus { border-color: #aaa0f3; box-shadow: 0 0 0 4px rgb(104 88 232 / 10%); }
.blog-category-carousel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; margin: 0 0 24px; }
.blog-categories { min-width: 0; display: flex; gap: 9px; overflow-x: auto; padding: 3px 1px 5px; scrollbar-width: none; scroll-snap-type: x proximity; }
.blog-categories::-webkit-scrollbar { display: none; }
.blog-category { min-height: 38px; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--blog-line); border-radius: 999px; color: #606477; background: #fff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; scroll-snap-align: start; transition: border-color .16s ease, color .16s ease, background .16s ease, box-shadow .16s ease, scale .16s var(--ease-out); }
.blog-category[aria-pressed="true"] { border-color: #d7d1ff; color: #5143cf; background: #f6f4ff; }
@media (hover: hover) and (pointer: fine) { .blog-category:hover { border-color: #d7d1ff; color: #5143cf; background: #f6f4ff; } }
.blog-category[aria-pressed="true"] { box-shadow: 0 3px 10px rgb(104 88 232 / 9%); }
.blog-category-count { min-width: 22px; height: 22px; display: inline-grid; place-items: center; padding: 0 6px; border-radius: 999px; color: #626777; background: #f3f4f8; font-size: 12px; font-weight: 750; }
.blog-category[aria-pressed="true"] .blog-category-count { color: #5545d3; background: #e9e5ff; }
.blog-category-arrow { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid var(--blog-line); border-radius: 50%; color: #565b70; background: #fff; cursor: pointer; box-shadow: 0 3px 10px rgb(31 35 65 / 5%); transition: color .16s ease, border-color .16s ease, background .16s ease, scale .16s var(--ease-out); }
.blog-category-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
@media (hover: hover) and (pointer: fine) { .blog-category-arrow:hover:not(:disabled) { border-color: #d7d1ff; color: #5143cf; background: #f6f4ff; } }
.blog-category-arrow:disabled { opacity: .4; cursor: default; box-shadow: none; }
/* Zwykły przepływ strony - bez przewijania wewnątrz siatki, w którym palec utykał na telefonie. */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.blog-card { min-height: 255px; display: flex; flex-direction: column; overflow: hidden; padding: 20px; border: 1px solid var(--blog-line); border-radius: 17px; background: #fff; box-shadow: 0 4px 15px rgb(31 35 65 / 3%); transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), border-color .18s var(--ease-out), scale .16s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .blog-card:hover { transform: translateY(-3px); border-color: #dcd7ff; box-shadow: 0 14px 30px rgb(54 45 112 / 8%); } }
.blog-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: #626777; font-size: 12px; }
.blog-card-category { padding: 6px 9px; border-radius: 7px; color: #5548c8; background: #f3f1ff; font-weight: 750; }
.blog-card h2 { display: -webkit-box; overflow: hidden; margin: 0 0 8px; font-size: 17px; font-weight: 780; letter-spacing: -.035em; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.blog-card-description { display: -webkit-box; overflow: hidden; margin: 0 0 14px; color: var(--blog-muted); font-size: 14px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.blog-card-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; color: #5545d3; font-size: 13px; font-weight: 750; }
.blog-card-link span { font-size: 17px; transition: transform .16s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .blog-card:hover .blog-card-link span { transform: translateX(3px); } }
.blog-empty { grid-column: 1 / -1; padding: 42px 22px; border: 1px dashed #dfe0ea; border-radius: 16px; color: var(--blog-muted); text-align: center; }
.blog-empty p { margin: 0; font-size: 14px; line-height: 1.7; }
/* "Pokaż więcej" zamiast przewijania wewnątrz siatki (przycisk dodaje blog.js). */
.blog-more { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 24px auto 0; padding: 0 20px; border: 1px solid #e8e5fb; border-radius: 11px; color: #5545d3; background: #f8f7ff; cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; transition: border-color .16s ease, background .16s ease, scale .16s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .blog-more:hover { border-color: #d7d1ff; background: #f0edff; } }
.blog-coming-soon { padding: 48px 24px; border-style: solid; background: radial-gradient(ellipse at 90% 10%, #f0edff 0, rgb(240 237 255 / 0%) 48%), #fff; }
.blog-coming-soon p { color: #606477; font-size: 14px; }
.blog-article-wrap { width: min(820px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 78px; }
.blog-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; color: #626777; font-size: 13px; }
.blog-breadcrumbs a { color: #5e55c8; }
.blog-article-head { margin-bottom: 31px; padding-bottom: 25px; border-bottom: 1px solid #eeeff4; }
.blog-article-category { display: inline-flex; margin-bottom: 14px; padding: 7px 10px; border-radius: 7px; color: #5548c8; background: #f3f1ff; font-size: 12px; font-weight: 800; }
.blog-article-head h1 { margin: 0 0 14px; font-size: clamp(33px, 5vw, 48px); font-weight: 800; letter-spacing: -.05em; line-height: 1.13; }
.blog-article-description { max-width: 700px; margin: 0 0 15px; color: var(--blog-muted); font-size: 15px; line-height: 1.8; }
.blog-article-date { color: #626777; font-size: 13px; }
.blog-article { color: #373a4d; font-size: 15px; line-height: 1.9; overflow-wrap: anywhere; }
.blog-article h2 { margin: 38px 0 14px; color: var(--blog-ink); font-size: 26px; font-weight: 800; letter-spacing: -.04em; line-height: 1.25; }
.blog-article h3 { margin: 29px 0 11px; color: var(--blog-ink); font-size: 20px; font-weight: 760; letter-spacing: -.025em; line-height: 1.35; }
.blog-article p { margin: 0 0 19px; }
.blog-article ul, .blog-article ol { margin: 0 0 22px; padding-left: 24px; }
.blog-article li { margin: 0 0 8px; padding-left: 3px; }
.blog-article li::marker { color: #7365e8; }
.blog-article a { color: #5545d3; font-weight: 650; text-decoration: underline; text-decoration-color: #d6d1fa; text-underline-offset: 3px; }
.blog-article blockquote { margin: 24px 0; padding: 15px 20px; border-left: 3px solid #7768e8; border-radius: 0 10px 10px 0; color: #565a6d; background: #f7f6ff; }
.blog-article blockquote p:last-child { margin-bottom: 0; }
.blog-article code { padding: 2px 5px; border-radius: 5px; color: #5045bc; background: #f3f1ff; font-size: .9em; }
.blog-article pre { overflow-x: auto; margin: 20px 0; padding: 17px; border-radius: 12px; color: #f5f4ff; background: #25263a; font-size: 13px; line-height: 1.7; }
.blog-article pre code { padding: 0; color: inherit; background: transparent; }
.blog-article hr { margin: 30px 0; border: 0; border-top: 1px solid var(--blog-line); }
.blog-related { margin-top: 48px; padding: 22px; border: 1px solid #eeecfb; border-radius: 15px; background: #fbfaff; }
.blog-related h2 { margin: 0 0 8px; font-size: 16px; }
.blog-related p { margin: 0; color: var(--blog-muted); font-size: 14px; line-height: 1.7; }
.blog-related a { color: #5545d3; font-weight: 750; }
.blog-related-list { display: grid; gap: 8px; margin: 4px 0 16px; padding: 0; list-style: none; }
.blog-related-list li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.55; }
.blog-related-list li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: #6858e8; }
.blog-related-list a { text-decoration: none; }
.blog-related-list a:hover, .blog-related-list a:focus-visible { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.blog-site-footer { padding: 8px 0 10px; border-top: 1px solid #edecf2; color: #5f6475; background: #fbfbfd; line-height: normal; }
.blog-site-footer .home-footer-inner { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; }
.blog-site-footer .footer-brand { width: max-content; max-width: 100%; display: flex; align-items: center; gap: 12px; color: #5f6475; font-size: 12px; }
.blog-site-footer .footer-brand img { width: 96px; height: 53px; object-fit: cover; object-position: center; mix-blend-mode: multiply; }
.blog-site-footer .footer-links { display: flex; flex-wrap: nowrap; justify-content: center; gap: clamp(11px, 1.4vw, 19px); color: #5f6475; font-size: 12px; font-weight: 600; white-space: nowrap; }
.blog-site-footer .copyright { justify-self: end; margin: 0; color: #5f6475; font-size: 12px; text-align: right; white-space: nowrap; }
.blog-site-footer .home-footer-legal { max-width: 1160px; margin: 0 auto; padding: 8px 24px 2px; border-top: 1px solid #edecf2; color: #5f6475; font-size: 12px; line-height: 1.6; text-align: center; }
.blog-page :focus-visible { outline: 3px solid rgb(104 88 232 / 35%); outline-offset: 3px; }
@media (max-width: 850px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .blog-site-footer .home-footer-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; }
  .blog-site-footer .footer-brand { grid-column: 1; grid-row: 1; }
  .blog-site-footer .footer-links { grid-column: 1 / -1; grid-row: 2; justify-content: center; flex-wrap: wrap; white-space: normal; }
  .blog-site-footer .copyright { grid-column: 2; grid-row: 1; text-align: right; }
}
@media (max-width: 800px) {
  .blog-header-inner { min-height: 72px; }
  .blog-site-header .main-nav { gap: 17px; }
  .blog-site-header .main-nav > a:nth-child(2) { display: none; }
}
@media (max-width: 600px) {
  .blog-container { width: min(100% - 30px, 500px); }
  .blog-site-header .brand { width: 145px; height: 62px; }
  .blog-site-header .brand img { width: 145px; height: 62px; }
  .blog-site-header .main-nav { gap: 8px; }
  .blog-site-header .main-nav > a:first-child { display: none; }
  .blog-site-header .main-nav .nav-cta { padding: 10px 12px; font-size: 12px; }
  .nav-cta-desktop { display: none; }
  .nav-cta-mobile { display: inline; }
  .blog-language-switch { gap: 2px; padding: 3px; }
  .blog-language-switch a { min-height: 30px; padding: 0 6px; font-size: 10px; }
  .blog-hero { margin-top: 20px; padding: 35px 24px; border-radius: 19px; }
  .blog-hero h1 { font-size: clamp(34px, 10vw, 45px); }
  .blog-hero p:last-child { font-size: 15px; }
  .blog-content { padding: 28px 0 55px; }
  .blog-toolbar { align-items: stretch; flex-direction: column; gap: 12px; }
  .blog-search { width: 100%; }
  .blog-grid { grid-template-columns: 1fr; gap: 12px; }
  .blog-card { min-height: 0; padding: 19px; }
  .blog-card h2 { padding-bottom: 2px; font-size: 16px; line-height: 1.35; }
  .blog-article-wrap { width: min(100% - 32px, 540px); padding-top: 28px; }
  .blog-article { font-size: 14px; }
  .blog-article h2 { font-size: 23px; }
  .blog-site-footer .home-footer-inner { grid-template-columns: 1fr; justify-items: center; gap: 10px; padding-top: 8px; padding-bottom: 8px; }
  .blog-site-footer .footer-brand { grid-column: auto; grid-row: auto; }
  .blog-site-footer .footer-links { grid-column: auto; grid-row: auto; justify-content: center; gap: 10px 16px; }
  .blog-site-footer .copyright { grid-column: auto; grid-row: auto; text-align: center; }
  .blog-site-footer .home-footer-legal { padding: 8px 15px 2px; }
}
@media (max-width: 380px) {
  .blog-container { width: min(100% - 24px, 500px); }
  .blog-site-header .brand, .blog-site-header .brand img { width: 105px; }
  .blog-site-header .main-nav { gap: 5px; }
  .blog-site-header .main-nav .nav-cta { padding: 9px 8px; font-size: 10px; }
  .blog-language-switch { gap: 1px; }
  .blog-language-switch a { gap: 3px; padding: 0 4px; font-size: 9px; }
  .blog-language-switch .flag { width: 15px; flex-basis: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .blog-page *, .blog-page *::before, .blog-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Author byline under the article title */
.blog-article-byline { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.blog-author-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #f0edff; }
.blog-byline-text { display: flex; flex-direction: column; gap: 2px; }
.blog-author-name { color: #2e3045; font-size: 14px; font-weight: 750; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .blog-author-name:hover { color: #5e55c8; text-decoration: underline; } }
.blog-author-credentials { color: #4a4f63; font-size: 13px; font-weight: 600; }
.blog-article-byline .blog-article-date { color: #626777; font-size: 13px; }
