/* ==========================================================================
   Translation Cloud — strona publiczna (uzupełnienie app.css; tylko klasy strony)
   ========================================================================== */

.site main { display: block; }
.site main:focus { outline: none; box-shadow: none; }
.container-narrow { width: min(920px, 100% - 2.5rem); margin-inline: auto; }
.site-flash { padding-top: 1.25rem; }
.h-display { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.03em; font-weight: 780; margin: .9rem 0 .75rem; }
.lead-sm { color: var(--text-2); font-size: 1.05rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 650; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }
.eyebrow .icon { width: 14px; height: 14px; }
.eyebrow-dark { background: rgba(124, 92, 255, .18); color: #cdbfff; }

/* ---------- Header ---------- */
.site-header { transition: box-shadow .2s, background .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(11, 20, 55, .06); }
.site-nav .brand-name { white-space: nowrap; }
.site-links-mobile { display: none; }
.site-actions .lang-switch { margin-right: .25rem; }
.site-actions .lang-switch a { text-decoration: none; }

/* 1.13: wybór języka (4 języki) — rozwijana lista zamiast przycisków */
.lang-menu { position: relative; margin-right: .25rem; }
.lang-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; padding: .35rem .6rem; border: 1px solid var(--border); border-radius: 8px; font-size: .8rem; font-weight: 700; color: var(--text-2); user-select: none; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary .icon { width: 15px; height: 15px; }
.lang-menu > summary:hover, .lang-menu[open] > summary { border-color: var(--navy-900); color: var(--navy-900); }
.lang-menu-list { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 60; min-width: 170px; padding: .35rem; background: var(--surface, #fff); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 32px rgba(11, 20, 55, .12); display: grid; gap: .1rem; }
.lang-menu-list a { display: flex; gap: .55rem; align-items: baseline; padding: .45rem .6rem; border-radius: 7px; color: var(--text-2); text-decoration: none; font-size: .9rem; }
.lang-menu-list a strong { width: 1.6rem; font-size: .75rem; color: var(--muted); }
.lang-menu-list a:hover { background: var(--bg-soft, #f4f6fb); text-decoration: none; }
.lang-menu-list a.active { background: var(--navy-900); color: #fff; }
.lang-menu-list a.active strong { color: #cdd3e6; }
.btn-outline-light { --b-bg: transparent; --b-fg: #fff; --b-bd: rgba(255, 255, 255, .55); box-shadow: none; }
.btn-outline-light:hover { --b-bg: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
@media (max-width: 960px) {
  .site-links { gap: .15rem; }
  .site-links a { padding: .7rem .75rem; font-size: 1rem; }
  .site-links-mobile { display: grid; gap: .5rem; padding-top: .75rem; margin-top: .5rem; border-top: 1px solid var(--border); }
  .site-links-mobile .btn { padding: .7rem 1rem; }
  .site-actions .nav-burger { display: inline-flex; }
  .how-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: .9rem; }
  .how-step h3 { margin-top: .3rem; }
  .how-step p { grid-column: 2; }
}
@media (max-width: 560px) {
  .hide-sm { display: none !important; }
  .site-nav { gap: .75rem; }
  .site-nav .brand-name { font-size: .98rem; }
  .site-actions { gap: .3rem; }
}
@media (max-width: 380px) { .site-nav .brand-name { display: none; } }

/* ---------- Hero ---------- */
.hero-home { padding: 4.5rem 0 4rem; }
.hero-home::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(27, 40, 99, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(27, 40, 99, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero .container { position: relative; }
.hero-sub { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; color: var(--navy-700); margin: 0 0 .6rem; letter-spacing: -.01em; }
.hero-note { display: flex; align-items: center; gap: .4rem; }
.hero-note .icon { width: 16px; height: 16px; color: var(--success); }
.hero-cta .btn .icon { width: 18px; height: 18px; }

/* Flow (wizualizacja) */
.hero-flow { margin: 0; border: 1px solid #1f2b66; background:
  radial-gradient(600px 240px at 100% 0%, rgba(124, 92, 255, .22), transparent 60%),
  radial-gradient(500px 260px at 0% 100%, rgba(77, 105, 255, .18), transparent 60%), var(--navy-900); }
.flow-head { align-items: center; }
.flow-title { margin-left: .6rem; font-family: var(--mono); font-size: .76rem; color: #8b98cc; }
.flow-col { display: flex; flex-direction: column; }
.flow-node .icon { width: 16px; height: 16px; flex: none; }
.flow-node.miss { border-color: rgba(247, 144, 9, .55); background: rgba(247, 144, 9, .1); color: #ffd79b; }
.flow-arrow { margin: .18rem 0; }
.flow-meta { display: flex; align-items: center; gap: .35rem; margin: .7rem 0 0; font-size: .76rem; color: #9fb0ef; }
.flow-meta .icon { width: 14px; height: 14px; }
.flow-json { margin: .8rem 0 0; padding: .65rem .75rem; border-radius: 10px; background: rgba(7, 13, 38, .65); border: 1px solid #1f2b66; font-size: .74rem; line-height: 1.55; color: #cfd8ff; white-space: pre; overflow: hidden; }
@media (max-width: 520px) {
  .flow-row { grid-template-columns: 1fr; }
  .flow-json { display: none; }
}

/* ---------- Pasek technologii ---------- */
.stack-strip { padding: 2rem 0 2.25rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }
.stack-title { text-align: center; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; margin: 0 0 1rem; }
.logo-strip { list-style: none; margin: 0; padding: 0; gap: .6rem 2.2rem; }
.logo-strip li { font-size: .98rem; color: #7a86a8; white-space: nowrap; }

/* ---------- Kroki ---------- */
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; position: relative; }
.how-step { position: relative; padding: 1.4rem 1.25rem 1.3rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.how-step h3 { margin: .85rem 0 .35rem; font-size: 1.05rem; }
.how-step p { margin: 0; color: var(--muted); font-size: .93rem; }
.how-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 750; font-size: .9rem; box-shadow: 0 8px 18px rgba(77, 105, 255, .25); }
.how-step:not(:last-child)::after { content: ""; position: absolute; top: 2.45rem; right: -1rem; width: 1rem; height: 2px; background: linear-gradient(90deg, var(--blue-500), var(--violet-500)); opacity: .45; }
@media (max-width: 980px) { .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .how-step::after { display: none; } }
@media (max-width: 560px) { .how-steps { grid-template-columns: 1fr; } }

/* ---------- Demo ---------- */
.demo-bar { display: flex; align-items: center; gap: .5rem; margin-bottom: .9rem; min-height: 38px; }
.demo-select { width: auto; min-width: 130px; padding: .45rem .7rem; font-size: .9rem; font-weight: 600; }
.demo-arrow { color: var(--muted); display: inline-flex; }
.demo-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.demo-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .6rem; }
.demo-result { display: flex; flex-direction: column; }
.demo-out { color: var(--text); word-break: break-word; }
.demo-out:empty::before { content: attr(data-placeholder); color: var(--muted); }
.demo-meta .latency { margin-left: auto; }
.demo-meta > .muted:last-child { flex-basis: 100%; line-height: 1.45; }
.demo-samples { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-top: 1.1rem; }
.chip { border: 1px solid var(--border-strong); background: #fff; color: var(--text-2); border-radius: 999px; padding: .35rem .8rem; font: 550 .85rem var(--font); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.chip:hover { border-color: var(--blue-500); color: var(--blue-700); background: var(--blue-50); }
.demo-hint { display: flex; align-items: center; gap: .35rem; margin-top: .75rem; }
.demo-hint .icon { width: 15px; height: 15px; }
.demo .btn.is-loading { opacity: .7; }

/* ---------- Funkcje ---------- */
.feature-grid .feature h3 { font-size: 1.02rem; }

/* ---------- Kalkulator ---------- */
.section-dark { background:
  radial-gradient(800px 360px at 90% 0%, rgba(124, 92, 255, .2), transparent 60%),
  radial-gradient(700px 360px at 0% 100%, rgba(77, 105, 255, .16), transparent 60%), var(--navy-900); }
.section-dark .section-head p { color: #a9b5e6; }
.calc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.5rem; }
.calc-inputs, .calc-results { border: 1px solid #25316e; background: rgba(255, 255, 255, .03); border-radius: var(--radius-lg); padding: 1.6rem; }
.calc-field + .calc-field { margin-top: 1.4rem; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .55rem; }
.calc-row label { color: #cfd8ff; font-weight: 600; font-size: .93rem; }
.calc-row output { font-family: var(--mono); color: #fff; font-weight: 700; font-size: 1rem; }
.calc input[type="range"] { width: 100%; accent-color: var(--violet-500); height: 22px; cursor: pointer; }
.calc input[type="range"]:focus-visible { box-shadow: 0 0 0 3px rgba(124, 92, 255, .45); }
.calc-bars { margin-top: 1.8rem; display: grid; gap: .6rem; }
.calc-bars-title { margin: 0; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: #8b98cc; font-weight: 700; }
.calc-bar { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: .75rem; align-items: center; font-size: .82rem; color: #a9b5e6; }
.calc-track { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.calc-fill { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width .25s ease; }
.calc-fill.is-base { background: #56629b; }
.calc-results { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-content: start; }
.calc-kpi { padding: 1rem 1.1rem; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid #25316e; }
.calc-kpi-main { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(77, 105, 255, .25), rgba(124, 92, 255, .25)); border-color: rgba(124, 92, 255, .5); }
.calc-kpi-label { display: block; font-size: .78rem; color: #a9b5e6; text-transform: uppercase; letter-spacing: .06em; font-weight: 650; }
.calc-kpi strong { display: block; color: #fff; font-size: 1.6rem; letter-spacing: -.02em; margin-top: .25rem; font-weight: 780; line-height: 1.15; overflow-wrap: anywhere; }
.calc-kpi-main strong { font-size: clamp(2rem, 4vw, 2.6rem); }
.calc-kpi-sub { color: #a9b5e6; font-size: .82rem; }
.calc-explain { grid-column: 1 / -1; margin: .25rem 0 0; font-size: .85rem; color: #8b98cc; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .calc-results { grid-template-columns: 1fr; } .calc-bar { grid-template-columns: 1fr; gap: .3rem; } .calc-inputs, .calc-results { padding: 1.2rem; } }

/* ---------- Bezpieczeństwo ---------- */
.security-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem; align-items: start; }
.security-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.security-list li { display: flex; gap: .85rem; padding: 1.2rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.security-list h3 { font-size: 1rem; margin: 0 0 .25rem; }
.security-list p { margin: 0; color: var(--muted); font-size: .9rem; }
.s-icon { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--navy-900); color: #b9c6ff; }
@media (max-width: 900px) { .security-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
@media (max-width: 560px) { .security-list { grid-template-columns: 1fr; } }

/* ---------- Cennik ---------- */
.seg-lg { padding: 4px; border-radius: 12px; background: #e9edf7; }
.seg-lg button { padding: .5rem 1.05rem; font-size: .9rem; display: inline-flex; align-items: center; gap: .45rem; }
.save-pill { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--success); background: var(--success-bg); padding: .12rem .5rem; border-radius: 999px; white-space: nowrap; }
.plan .btn { margin-top: 0; }
.plan-price { min-height: 88px; }
.plan-price .price { font-size: 1.85rem; }
.plan-price .per { margin-top: .2rem; }
.plan-price .save-pill { margin-top: .45rem; }
.plan-trial { display: flex; gap: .35rem; align-items: center; font-size: .8rem; color: var(--violet-600); font-weight: 650; margin: .35rem 0 0; }
.plan-trial .icon { width: 14px; height: 14px; }
.plan > .btn { margin-top: 1rem; }
.plan ul.plan-limits { gap: .4rem; margin: 1.2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--border); font-size: .8rem; }
.plan-limits li { justify-content: space-between; color: var(--muted); }
.plan-limits strong { color: var(--text); font-weight: 700; white-space: nowrap; }
.plan ul.plan-features { margin: 1rem 0 0; }
.plan-features li.is-off { color: var(--muted); }
.plan-features li.is-off .icon { color: var(--muted); }
.pricing-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 2rem; list-style: none; padding: 0; margin: 0; }
.pricing-notes li { display: flex; gap: .55rem; color: var(--text-2); font-size: .94rem; }
.pricing-notes .icon { color: var(--blue-600); margin-top: 3px; }
@media (max-width: 760px) { .pricing-notes { grid-template-columns: 1fr; } .plan-price { min-height: 0; } }
.compare-wrap { border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; overflow-x: auto; }
.compare { min-width: 760px; }
.compare thead th { background: var(--surface-2); position: sticky; top: 0; }
.compare th.is-featured, .compare td.is-featured { background: #f5f3ff; }
.compare td { font-variant-numeric: tabular-nums; }
.compare tbody tr:last-child td { border-bottom: 0; }

/* ---------- Podstrony ---------- */
.page-hero { position: relative; padding: 4rem 0 3rem; background:
  radial-gradient(800px 320px at 85% -20%, rgba(124, 92, 255, .12), transparent 60%),
  radial-gradient(700px 320px at 0% 0%, rgba(77, 105, 255, .1), transparent 60%), #fff; border-bottom: 1px solid var(--border); }
.page-hero-inner > * { max-width: 820px; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; margin: 1rem 0 .8rem; }
.page-hero .lead { font-size: 1.15rem; color: var(--text-2); margin: 0; max-width: 680px; }
.page-hero .hero-cta { margin-top: 1.6rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.split + .split { margin-top: 4.5rem; }
.split h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.025em; }
.split p { color: var(--text-2); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 1.5rem; } }
.lookup { list-style: none; margin: 0; padding: 0; counter-reset: lk; display: grid; gap: .6rem; }
.lookup li { counter-increment: lk; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: .8rem; padding: .9rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.lookup li::before { content: counter(lk); width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-700); font-weight: 750; font-size: .85rem; }
.lookup li:last-child { border-color: rgba(124, 92, 255, .45); background: #faf8ff; }
.lookup li:last-child::before { background: var(--violet-100); color: var(--violet-600); }
.lookup strong { display: block; }
.lookup span { color: var(--muted); font-size: .9rem; }
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.role { padding: 1rem; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; text-align: center; font-weight: 650; }
.role small { display: block; color: var(--muted); font-weight: 500; font-family: var(--mono); margin-top: .2rem; }
.role:first-child { border-color: var(--blue-500); box-shadow: var(--focus); }
.check-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.check-list li { display: flex; gap: .5rem; align-items: flex-start; }
.check-list .icon { color: var(--success); margin-top: 3px; }
.state-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.state-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; padding: 1.25rem; }
.state-card .http { font-family: var(--mono); font-weight: 800; font-size: 1.4rem; }
.state-card.ok .http { color: var(--success); } .state-card.wait .http { color: var(--warning); } .state-card.limit .http { color: var(--danger); }
.state-card p { margin: .4rem 0 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) { .state-cards { grid-template-columns: 1fr; } .roles { grid-template-columns: 1fr; } }

/* ---------- Kod ---------- */
.code { font-size: .83rem; }
.code pre { padding-right: 4.5rem; }
.code-label { position: absolute; top: .6rem; left: 1.1rem; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #7d88b3; font-family: var(--font); font-weight: 700; }
.code-label + .copy-btn + pre { padding-top: 1.3rem; }
.code-tabs { margin: 1rem 0 1.4rem; }
.code-tabs .code { border-top-left-radius: 0; border-top-right-radius: 0; }
.code-tabs .lang-tabs { overflow-x: auto; }
.lang-tabs button:focus-visible { box-shadow: inset 0 0 0 2px var(--blue-500); }

/* ---------- Dokumentacja ---------- */
.docs-shell { background: #fff; }
.docs-content { min-width: 0; max-width: 860px; }
.docs-content h1 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); letter-spacing: -.03em; margin: 0 0 .6rem; }
.docs-content h2 { font-size: 1.55rem; letter-spacing: -.02em; margin: 0 0 .6rem; padding-top: 1.2rem; }
.docs-content h3 { font-size: 1.08rem; margin: 1.6rem 0 .5rem; }
.docs-content p, .docs-content li { color: var(--text-2); }
.docs-content section + section { border-top: 1px solid var(--border); margin-top: 1.5rem; }
.docs-nav .docs-nav-inner { border-left: 1px solid var(--border); padding-left: .4rem; }
.docs-nav a { font-size: .88rem; }
.docs-nav a.active { font-weight: 650; }
.docs-nav .docs-search { margin-bottom: .6rem; }
.params { width: 100%; border-collapse: collapse; font-size: .88rem; margin: .75rem 0 1.25rem; }
.params th, .params td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.params th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); }
.params td:first-child { white-space: nowrap; }
.params code { font-size: .82rem; }
.req { color: var(--danger); font-size: .72rem; font-weight: 700; margin-left: .3rem; text-transform: uppercase; }
.opt { color: var(--muted); font-size: .72rem; margin-left: .3rem; }
.table-scroll { overflow-x: auto; }
.callout { display: flex; gap: .7rem; padding: .9rem 1rem; border-radius: var(--radius); background: var(--blue-50); border: 1px solid #d6defe; color: var(--navy-700); font-size: .92rem; margin: 1rem 0; }
.callout .icon { color: var(--blue-600); margin-top: 2px; }
.callout.is-warn { background: var(--warning-bg); border-color: #f8d8a4; color: #6a3f00; }
.callout.is-warn .icon { color: var(--warning); }
.callout p { margin: 0; color: inherit; }
.status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0; }
.status-item { border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem .9rem; background: #fff; }
.status-item .badge { margin-bottom: .35rem; }
.status-item p { margin: 0; font-size: .88rem; }
.docs-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0; }
.docs-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; background: #fff; }
.docs-card h3 { margin: 0 0 .3rem; font-size: 1rem; display: flex; align-items: center; gap: .5rem; }
.docs-card p { margin: 0; font-size: .9rem; }
@media (max-width: 700px) { .status-grid, .docs-cards { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .docs-nav { border: 1px solid var(--border); border-radius: var(--radius); padding: .5rem .75rem; background: var(--surface-2); }
  .docs-nav details > summary { cursor: pointer; font-weight: 650; padding: .35rem 0; }
}
@media (min-width: 901px) { .docs-nav details > summary { display: none; } }

/* ---------- Strony prawne ---------- */
.legal { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 3rem; padding: 3rem 0 4rem; }
.legal-toc { position: sticky; top: 90px; align-self: start; font-size: .88rem; }
.legal-toc h2 { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 0 0 .5rem; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.legal-toc a { display: block; padding: .3rem .6rem; border-radius: 7px; color: var(--text-2); }
.legal-toc a:hover { background: var(--blue-50); text-decoration: none; }
.legal .prose h2 { font-size: 1.25rem; scroll-margin-top: 90px; }
.legal .prose p, .legal .prose li { color: var(--text-2); }
.legal-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .85rem; color: var(--muted); margin-bottom: 1.25rem; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 2rem; } .legal-toc { position: static; } }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 2rem; align-items: start; padding: 3rem 0 4.5rem; }
.contact-form { padding: 1.75rem; }
.contact-side { display: grid; gap: 1rem; }
.contact-side .card-body h3 { font-size: .95rem; margin: 0 0 .35rem; display: flex; gap: .5rem; align-items: center; }
.contact-side address { font-style: normal; color: var(--text-2); font-size: .92rem; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.field .is-invalid + .field-error, .field-error { display: block; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; padding-top: 2rem; } .contact-form { padding: 1.25rem; } }

/* ---------- Stopka ---------- */
.footer-h { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; margin: 0 0 .9rem; font-weight: 700; }
.footer-brand .brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-weight: 750; font-size: 1.05rem; margin-bottom: .9rem; }
.footer-brand .brand:hover { text-decoration: none; }
.footer-brand p { max-width: 340px; }
.footer-brand address { font-style: normal; line-height: 1.6; margin-bottom: .75rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { font-size: .82rem; }
/* 1.19: wymiana linków CoreInfra — pula linków z panel.l4t.pl pod stopką */
.footer-links { margin-top: .9rem; padding-top: .75rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .78rem; text-align: center; opacity: .8; overflow-wrap: anywhere; }
.footer-links a { color: inherit; }
@media (max-width: 760px) { .footer-brand { grid-column: 1 / -1; } }

/* ---------- Drobne ---------- */
.section-cta { padding-top: 1rem; }
@media (max-width: 760px) {
  .section { padding: 3.5rem 0; }
  .cta-band { padding: 2rem 1.5rem; }
  .cta-band h2 { font-size: 1.5rem; }
  .hero-home { padding: 2.75rem 0 3rem; }
  .hero-cta .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .calc-fill { transition: none; } }

/* ---------- Uzupełnienia ---------- */
.page-hero-center .page-hero-inner { text-align: center; }
.page-hero-center .page-hero-inner > * { margin-inline: auto; }
.page-hero-center .lead { margin-inline: auto; }
.h-small { font-size: 1rem; margin: 0 0 .9rem; }
.donut-wrap { display: flex; justify-content: center; }
.donut-wrap .donut { width: 168px; height: 168px; }
.logo-strip-left { justify-content: flex-start; gap: .75rem; }
.logo-strip-left li { padding: .5rem .9rem; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-weight: 650; color: var(--text-2); }
.compare-auto { min-width: 560px; }
.compare-auto .endpoint { margin: 0; }
.docs-intro { padding-bottom: 1rem; }
.docs-intro .secret-box { justify-content: flex-start; margin-top: 1rem; }
.docs-intro .secret-box code { background: none; padding: 0; }
.docs-intro .secret-box .btn { margin-left: auto; }
.section-pricing { padding-top: 3rem; }
.plan-price .price-text { font-size: 1.5rem; letter-spacing: -.02em; }
.plan .plan-trial { margin: .6rem 0 0; justify-content: center; }
.compare tbody th { text-transform: none; letter-spacing: 0; font-size: .92rem; color: var(--text); font-weight: 600; }
.plan-limits li span { min-width: 0; }
.plan ul.plan-features { padding-top: 1rem; border-top: 1px solid var(--border); }
.plan-limits + .plan-features { border-top: 0; padding-top: 0; }
.code pre code { background: none; color: inherit; padding: 0; border-radius: 0; font-size: inherit; }
.docs-nav .docs-nav-inner h4:first-child { margin-top: .2rem; }
.legal-toc ol + h2 { margin-top: 1.5rem; }
.field > label.check { font-weight: 400; color: var(--text-2); font-size: .9rem; }
.compare-wrap, .table-scroll, .code-tabs .lang-tabs { position: relative; }
@media (max-width: 900px) {
  .split, .docs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) { .legal, .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.endpoint { flex-wrap: wrap; }
.endpoint code { overflow-wrap: anywhere; }
.docs-intro .secret-box code { overflow-wrap: anywhere; min-width: 0; }
.site-links .site-links-mobile a.btn { color: var(--b-fg); font-weight: 650; background: var(--b-bg); }
.site-links .site-links-mobile a.btn-gradient { color: #fff; background: var(--grad); }
.site-links .site-links-mobile a.btn-dark { color: #fff; }

/* Cennik: siatka pakietów (np. 6 = 3 × 2) + szeroka karta planu indywidualnego */
.pricing.pricing-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.pricing.pricing-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pricing.pricing-cols-3 .plan.featured { transform: none; }
.plan-custom { margin-top: 1.25rem; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem;
  background: linear-gradient(135deg, #f7f8ff 0%, #f5f0ff 100%); }
.plan-custom h3 { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.plan-custom .desc { min-height: 0; margin-bottom: .6rem; }
.plan-custom > .btn { margin-top: 0; flex: none; }
.plan ul.plan-features-inline { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; border-top: 0; padding-top: 0; margin: .3rem 0 0; }
@media (max-width: 1180px) { .pricing.pricing-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .pricing.pricing-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .pricing.pricing-cols-3, .pricing.pricing-cols-4 { grid-template-columns: 1fr; } .plan-custom { flex-direction: column; align-items: stretch; } }
