@font-face {
  font-family: "Inter";
  src: url("./inter-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./inter-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

:root {
  --navy: #0d1523;
  --blue: #4b9ad4;
  --blue-dark: #246b9f;
  --ink: #182232;
  --muted: #5e6a78;
  --line: #d9e2ea;
  --paper: #ffffff;
  --soft: #f4f8fb;
  --sky: #e8f4fb;
  --shadow: 0 14px 36px rgba(13, 21, 35, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #eef2f5;
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
}
main, .footer {
  width: min(1280px, 100%);
  margin-inline: auto;
}
main { background: var(--paper); }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(1240px, calc(100% - 64px)); margin: 0 auto; }
.sr-only, .brand + span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: #fff; padding: 10px 14px; }
.skip-link:focus { top: 16px; }

.topbar { background: var(--navy); color: #fff; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 20px; padding: 7px 0; }
.topbar a { color: #fff; text-decoration: none; }
.header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { flex: 0 0 auto; text-decoration: none; }
.brand img { width: 188px; height: 50px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav > a:not(.btn) { position: relative; padding: 13px 9px 10px; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.nav > a:not(.btn)::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 4px; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform .18s ease; }
.nav > a:hover::after, .nav > a[aria-current="page"]::after { transform: scaleX(1); }
.nav > a[aria-current="page"] { color: var(--blue-dark); }
.menu-button { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); background: #fff; border-radius: 4px; }
.menu-button span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--navy); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 18px; border: 2px solid transparent; border-radius: 5px; font-weight: 800; line-height: 1.15; text-decoration: none; text-align: center; }
.btn-primary { color: #fff; background: var(--navy); }
.btn-primary:hover { background: #25344b; }
.btn-secondary { color: var(--navy); background: #fff; border-color: var(--blue); }
.btn-secondary:hover { background: var(--sky); }
.btn-light { color: var(--navy); background: #fff; }
.text-link { display: inline-flex; align-items: center; color: var(--blue-dark); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

h1, h2, h3 { margin: 0; color: var(--navy); line-height: 1.17; letter-spacing: 0; }
h1 { max-width: 820px; font-size: clamp(36px, 4.3vw, 54px); }
h2 { font-size: clamp(27px, 2.7vw, 36px); }
h3 { font-size: 20px; }
p { margin: 0; }
.lead { margin-top: 20px; max-width: 720px; color: var(--muted); font-size: clamp(18px, 2vw, 20px); }
.eyebrow { margin-bottom: 12px; color: var(--blue-dark); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.section-head { max-width: 760px; margin-bottom: 24px; }
.section-head > p:not(.eyebrow) { margin-top: 12px; color: var(--muted); font-size: 18px; }
.hero-actions, .section-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }

section { padding: 44px 0; }
.home-hero {
  min-height: auto;
  padding: 32px 0;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.94) 47%, rgba(255,255,255,.42) 100%),
    url("./hero-window-v2.png") right center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.home-hero-content { max-width: 720px; padding: 0; }
.page-hero { padding: 44px 0; background: linear-gradient(180deg, #f7fafc, #fff); border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .7fr); align-items: center; gap: 64px; }
.hero-note { padding: 26px; border-top: 4px solid var(--blue); background: #fff; box-shadow: var(--shadow); }
.hero-note strong { display: block; color: var(--navy); font-size: 20px; line-height: 1.25; }
.hero-note p { margin-top: 10px; color: var(--muted); }
.trust-strip { width: min(1240px, calc(100% - 64px)); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-strip div { padding: 20px; border-right: 1px solid var(--line); color: var(--navy); font-size: 14px; font-weight: 800; text-align: center; }
.trust-strip div:last-child { border-right: 0; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { padding: 24px; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 5px; background: #fff; }
.card p { margin-top: 10px; color: var(--muted); }
.card a { display: inline-block; margin-top: 16px; color: var(--blue-dark); font-weight: 800; text-decoration: none; }
.card a:hover { text-decoration: underline; }
.guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.guide-card { display: grid; grid-template-rows: 1fr auto; gap: 24px; align-items: start; padding: 28px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 5px; background: #fff; }
.guide-card h3 { margin-top: 8px; font-size: 24px; }
.guide-card p:not(.guide-meta):not(.guide-author) { margin-top: 10px; color: var(--muted); }
.guide-meta { color: var(--blue-dark); font-size: 13px; font-weight: 800; }
.guide-author { margin-top: 18px; color: var(--navy); font-size: 14px; font-weight: 700; }
.guide-card .btn { justify-self: start; }
.soft { background: var(--soft); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 54px; align-items: start; }
.split p { margin-top: 16px; color: var(--muted); }
.note { padding: 28px; border-left: 5px solid var(--blue); background: #fff; box-shadow: 0 10px 28px rgba(13,21,35,.07); }
.note p { margin-top: 10px; }
.check-list { display: grid; gap: 11px; margin: 18px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--blue-dark); font-weight: 900; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { counter-increment: step; padding-top: 16px; border-top: 1px solid var(--line); }
.step::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 20px; color: var(--blue); font-size: 28px; font-weight: 800; }
.step p { margin-top: 8px; color: var(--muted); }

.identity-section { background: var(--navy); color: #fff; }
.identity-grid { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; gap: 48px; }
.identity-grid h2, .identity-grid .eyebrow { color: #fff; }
.identity-grid p:not(.eyebrow) { margin-top: 14px; color: #dce9f3; }
.identity-mark { width: 160px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.34); background: rgba(75,154,212,.18); }
.identity-mark span { color: #fff; font-size: 48px; font-weight: 800; }
.identity-photo {
  width: 190px;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.34);
  background: rgba(75,154,212,.18);
}
.identity-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 24%;
}
.about-scope { background: #fff; }
.scope-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 54px; padding-top: 24px; border-top: 1px solid var(--line); }
.scope-grid p { color: var(--muted); font-size: 18px; }
.profiles-section { background: var(--soft); }
.profile-links { display: flex; flex-wrap: wrap; gap: 18px 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.profile-links a { color: var(--blue-dark); font-size: 18px; font-weight: 800; text-underline-offset: 5px; }
.profile-links a::after { content: " ↗"; }
.brand-relation { padding: 24px 0; border-top: 1px solid var(--line); background: #fff; }
.brand-relation p { color: var(--muted); font-size: 15px; }
.brand-relation a { color: var(--blue-dark); font-weight: 800; }
.reviews-section { background: #fff; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.review-card { display: flex; min-width: 0; min-height: 258px; flex-direction: column; align-items: flex-start; padding: 24px; border: 1px solid var(--line); border-radius: 5px; background: var(--soft); }
.review-card-meta { display: grid; gap: 3px; }
.review-author-link { color: var(--navy); font-size: 17px; font-weight: 800; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.review-author-link:hover { color: var(--blue-dark); text-decoration-color: currentColor; }
.review-card-meta span, .review-dialog-label { color: var(--muted); font-size: 13px; }
.review-stars { margin-top: 15px; color: #f4b400; font-size: 22px; line-height: 1; letter-spacing: 0; }
.review-excerpt { display: -webkit-box; margin-top: 15px; overflow: hidden; color: var(--ink); -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; }
.review-more { margin-top: auto; padding: 14px 0 0; border: 0; color: var(--blue-dark); background: transparent; font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.review-more:hover { color: var(--navy); }
.review-dialog { width: min(720px, calc(100% - 32px)); max-height: min(86vh, 780px); padding: 0; overflow: hidden; border: 0; border-radius: 6px; color: var(--ink); background: #fff; box-shadow: 0 26px 80px rgba(13,21,35,.3); }
.review-dialog::backdrop { background: rgba(13,21,35,.7); }
.review-dialog-inner { display: grid; grid-template-rows: auto minmax(0, 1fr); max-height: min(86vh, 780px); }
.review-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 26px 30px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.review-dialog-head h3 { margin-top: 4px; font-size: 24px; }
.review-dialog-close { flex: 0 0 40px; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--navy); background: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.review-dialog-close:hover { background: var(--soft); }
.review-dialog-list { min-height: 0; overflow-y: auto; padding: 0 30px 30px; scroll-behavior: smooth; }
.review-full { padding: 28px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.review-full:last-child { border-bottom: 0; }
.review-full:focus { outline: 0; }
.review-full:focus-visible { outline: 3px solid rgba(75,154,212,.35); outline-offset: 6px; }
.review-dialog-text { margin: 18px 0 14px; color: var(--ink); font-size: 17px; line-height: 1.65; }
.review-direct-link { color: var(--blue-dark); font-size: 14px; font-weight: 800; text-underline-offset: 4px; }
body.dialog-open { overflow: hidden; }

.faq-section { padding-top: 24px; }
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 19px 44px 19px 0; color: var(--navy); font-weight: 800; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 13px; color: var(--blue-dark); font-size: 26px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 44px 20px 0; color: var(--muted); }
.cta-band { background: #eef6fb; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.cta-band h2, .cta-band p { color: var(--navy); }
.cta-band p { margin-top: 9px; }
.cta-band .btn-light { color: #fff; background: var(--navy); }
.cta-band .btn-light:hover { background: #25344b; }

.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; }
.contact-list { margin: 24px 0 0; }
.contact-list > div { display: grid; grid-template-columns: 130px 1fr; padding: 15px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--muted); font-weight: 700; }
.contact-list dd { margin: 0; color: var(--navy); font-weight: 700; }
.contact-card { padding: 30px; background: var(--soft); border-top: 4px solid var(--blue); }
.contact-card .btn { margin-top: 26px; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 34px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 12px; color: var(--muted); }

.article-header { padding: 44px 0 36px; background: #f7fafc; border-bottom: 1px solid var(--line); }
.article-wrap { max-width: none; }
.article-header .article-wrap h1,
.article-header .article-answer {
  max-width: 1084px;
}
.article-back { display: inline-flex; align-items: center; margin-bottom: 26px; color: var(--navy); font-weight: 800; text-decoration: none; }
.article-back:hover { color: var(--blue); }
.article-answer { margin-top: 22px; color: var(--ink); font-size: 20px; font-weight: 700; }
.article-author { display: grid; gap: 4px; margin-top: 24px; color: var(--navy); }
.article-author span { color: var(--muted); font-size: 14px; }
.byline { margin-top: 20px; color: var(--muted); font-size: 14px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 740px) 280px; gap: 64px; align-items: start; padding-top: 44px; padding-bottom: 44px; }
.article-content h2 { margin-top: 28px; }
.article-content h2:first-child { margin-top: 0; }
.article-content h3 { margin-top: 22px; }
.article-content p { margin-top: 12px; color: #354152; }
.article-aside { position: sticky; top: 110px; display: grid; gap: 16px; padding: 24px; border-top: 4px solid var(--blue); background: var(--soft); }
.article-aside strong { color: var(--navy); font-size: 22px; }

.footer { padding: 44px 0 92px; background: var(--navy); color: #dce3ec; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; }
.footer strong { color: #fff; }
.footer p { margin-top: 12px; }
.footer a { color: #fff; text-underline-offset: 3px; }
.footer-logo {
  width: 205px;
  height: 58px;
  padding: 4px 10px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
}
.legal-line { font-size: 13px; color: #9eacbc; }
.mobile-call { display: none; }

@media (max-width: 940px) {
  .menu-button { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; display: none; padding: 12px 20px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.is-open { display: grid; }
  .nav > a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav > a:not(.btn)::after { display: none; }
  .nav > a[aria-current="page"] { border-left: 3px solid var(--blue); padding-left: 12px; }
  .page-hero-grid, .article-layout { grid-template-columns: 1fr; gap: 34px; }
  .hero-note { max-width: 620px; }
  .article-aside { position: static; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .guide-list { grid-template-columns: 1fr; }
  .guide-card { gap: 22px; }
  body { padding-bottom: 58px; }
  .wrap, .trust-strip { width: min(100% - 28px, 1240px); }
  .topbar .wrap { justify-content: center; text-align: center; }
  .topbar span { display: none; }
  .header-inner { min-height: 66px; }
  .brand img { width: 164px; height: 44px; }
  section { padding: 38px 0; }
  .home-hero { min-height: auto; background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.98)), url("./hero-window-v2.png") center / cover no-repeat; }
  .home-hero { padding: 34px 0; }
  .home-hero-content { padding: 0; }
  .page-hero { padding: 36px 0; }
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  .lead, .article-answer { font-size: 18px; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-strip div:nth-child(2) { border-right: 0; }
  .grid-3, .grid-2, .split, .steps-grid, .identity-grid, .contact-grid, .footer-grid, .scope-grid, .reviews-grid { grid-template-columns: 1fr; }
  .review-card { min-height: 232px; }
  .review-dialog-head { padding: 20px 20px 16px; }
  .review-dialog-list { padding: 0 20px 20px; }
  .review-full { padding: 24px 0; }
  .identity-grid { gap: 28px; }
  .identity-mark { width: 120px; }
  .identity-mark span { font-size: 36px; }
  .identity-photo { width: 150px; }
  .cta-band .wrap { align-items: flex-start; flex-direction: column; }
  .contact-list > div { grid-template-columns: 1fr; gap: 4px; }
  .article-layout { padding-top: 46px; }
  .footer { padding-bottom: 48px; }
  .mobile-call { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: center; min-height: 58px; background: var(--navy); color: #fff; font-weight: 800; text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Article table of contents: reusable for Poradnik articles */
.article-sidebar-toc{
  position:sticky;
  top:96px;
  align-self:start;
  display:grid;
  gap:18px;
}
.article-sidebar-toc .article-toc{
  margin:0;
  padding:20px 18px;
  border:1px solid var(--line);
  border-radius:5px;
  background:var(--soft);
  box-shadow:var(--shadow);
}
.article-toc-title{
  margin:0 0 12px;
  font-size:20px;
  line-height:1.2;
}
.article-toc ol{
  display:grid;
  gap:0;
  margin:0;
  padding:0;
  list-style:none;
}
.article-toc li+li{
  border-top:1px solid var(--line);
}
.article-toc a{
  display:grid;
  grid-template-columns:28px minmax(0,1fr);
  gap:8px;
  align-items:start;
  padding:10px 2px;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
  line-height:1.35;
  text-decoration:none;
}
.article-toc a:hover{
  color:var(--navy);
  background:var(--sky);
}
.article-toc a:focus-visible{
  outline:3px solid rgba(75,154,212,.35);
  outline-offset:2px;
  color:var(--navy);
  background:var(--sky);
}
.article-toc-number{
  color:var(--blue-dark);
  font-size:12px;
  font-weight:900;
  letter-spacing:.04em;
}
.article-content h2[id]{
  scroll-margin-top:112px;
}
.toc-preview{
  position:fixed;
  z-index:70;
  width:min(420px,calc(100vw - 24px));
  max-height:min(330px,calc(100vh - 24px));
  overflow:auto;
  padding:18px 20px;
  border:1px solid var(--line);
  border-radius:5px;
  background:var(--paper);
  box-shadow:var(--shadow);
  color:var(--ink);
  pointer-events:none;
}
.toc-preview[hidden]{display:none}
.toc-preview p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}
.toc-preview p+p{margin-top:10px}
.article-service-note{margin:30px 0 36px}

@media (hover:none),(pointer:coarse){
  .toc-preview{display:none!important}
}
@media (max-width:980px){
  .article-sidebar-toc{
    display:contents;
    position:static;
    top:auto;
  }
  .article-sidebar-toc .article-toc{
    order:-1;
  }
  .article-sidebar-toc .article-sidebar-contact{
    order:2;
  }
}
@media (max-width:720px){
  .article-sidebar-toc .article-toc{
    padding:18px 16px;
  }
  .article-toc a{
    grid-template-columns:30px minmax(0,1fr);
    padding:12px 2px;
    font-size:14px;
  }
  .article-content h2[id]{
    scroll-margin-top:92px;
  }
}

/* Compact article hero for the A04 article */
.article-header-compact{
  padding-top:28px;
  padding-bottom:34px;
}
.article-header-compact .article-back{
  margin-bottom:20px;
}
.article-header-compact h1{
  margin-top:0;
  margin-bottom:20px;
}
.article-header-compact .article-answer{
  margin-top:0;
  margin-bottom:18px;
}
.article-header-compact .article-author{
  margin-top:0;
}
@media (max-width:720px){
  .article-header-compact{
    padding-top:22px;
    padding-bottom:28px;
  }
}

@media (max-width:720px){
  .article-content h2 { margin-top:24px; }
  .article-content h3 { margin-top:18px; }
  .faq-section { padding-top:20px; }
}

/* Systemic Poradnik heading rules */
.article-header .eyebrow {
  display: none;
}
.article-header h1 {
  text-wrap: balance;
}
