:root {
  --paper: #fbf8f1;
  --paper-deep: #f3eadf;
  --sky: #e8f2f5;
  --sand: #dfd4c2;
  --sage: #b9cdbd;
  --lavender: #d9d3ea;
  --ink: #293330;
  --muted: #697672;
  --line: #e5ded2;
  --panel: #fffdf8;
  --blue-ink: #385a63;

  /* Bursztynowy akcent decyzyjny (zgodnie z briefem) */
  --amber: #b06f24;
  --amber-strong: #97591a;
  --amber-soft: #f6e8d2;

  /* Typografia */
  --font-display: "Montserrat", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Elevation */
  --e1: 0 2px 8px rgba(41, 51, 48, 0.05);
  --e2: 0 14px 46px rgba(41, 51, 48, 0.07);
  --e3: 0 28px 76px rgba(41, 51, 48, 0.1);
  --shadow: 0 24px 70px rgba(41, 51, 48, 0.09);

  /* Promienie i fokus */
  --radius-sm: 9px;
  --radius: 13px;
  --radius-lg: 22px;
  --focus-ring: 0 0 0 3px rgba(176, 111, 36, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--paper) 0%, #f6faf7 42%, var(--paper) 100%);
  font-family: var(--font-sans);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

p {
  text-wrap: pretty;
}

.admin-bar .topbar {
  top: 32px;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 58px);
  background: rgba(251, 248, 241, 0.82);
  border-bottom: 1px solid rgba(229, 222, 210, 0.58);
  box-shadow: 0 10px 34px rgba(41, 51, 48, 0.045);
  backdrop-filter: blur(18px);
}

.brand,
nav,
.hero-actions,
.chip-row,
footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  flex: 0 0 auto;
  width: 50px;
  height: 32px;
  display: inline-flex;
  color: var(--ink);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.brand-mark .spark {
  transform-origin: center;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-mark .house-a,
.brand-mark .house-b {
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.brand:hover .spark {
  transform: translateY(-1.5px) scale(1.18);
}

.brand:hover .house-b {
  transform: translateY(-1px);
}

.brand-word {
  display: inline-grid;
  gap: 1px;
  line-height: 1.02;
}

.brand-word strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.04rem;
  letter-spacing: -0.012em;
}

.brand-word > span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 760;
}

nav a,
footer a,
.text-link {
  text-decoration: none;
}

nav a:hover,
footer a:hover,
.text-link:hover {
  color: var(--blue-ink);
}

.section-band {
  padding: clamp(44px, 6vw, 84px) clamp(18px, 4vw, 58px);
}

.page-hero {
  min-height: 48svh;
  display: grid;
  align-content: center;
  background: linear-gradient(180deg, var(--paper), var(--sky));
}

.page-hero h1 {
  max-width: 980px;
  margin-bottom: 22px;
  font-size: clamp(2.3rem, 4.2vw, 4.3rem);
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.82fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  width: 100%;
}

.page-hero-copy {
  min-width: 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--amber-strong);
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.breadcrumbs .crumb-sep {
  color: var(--amber);
}

.page-hero-copy .lead {
  margin-bottom: 0;
}

.page-hero-media {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--e3);
}

.page-hero-media img {
  height: 100%;
  object-fit: cover;
  transition: transform 820ms cubic-bezier(0.22, 1, 0.36, 1);
}

.page-hero-media:hover img {
  transform: scale(1.045);
}

@media (max-width: 900px) {
  .page-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .page-hero-media {
    aspect-ratio: 16 / 9;
    max-height: 320px;
  }
}

.content-band {
  background: var(--paper);
}

.hero {
  min-height: calc(100svh - 66px);
  display: grid;
  grid-template-columns: minmax(0, 820px);
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  background:
    linear-gradient(90deg, rgba(251, 248, 241, 0.96) 0%, rgba(251, 248, 241, 0.82) 38%, rgba(251, 248, 241, 0.36) 68%, rgba(251, 248, 241, 0.14) 100%),
    linear-gradient(0deg, rgba(251, 248, 241, 0.9) 0%, rgba(251, 248, 241, 0) 28%);
  z-index: -1;
}

.hero-copy {
  max-width: 760px;
  padding-top: clamp(34px, 6vw, 86px);
  padding-bottom: clamp(34px, 6vw, 86px);
}

.eyebrow,
.mini-label {
  margin: 0 0 10px;
  color: var(--blue-ink);
  font-size: 0.76rem;
  font-weight: 860;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.4vw, 5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h2 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.25;
}

h4 {
  margin-bottom: 10px;
}

.lead {
  max-width: 610px;
  color: var(--muted);
  font-size: clamp(1.12rem, 1.6vw, 1.32rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button,
button {
  min-height: 46px;
  border-radius: var(--radius);
  font: inherit;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 17px;
  border: 1px solid var(--ink);
  font-weight: 820;
}

.button.primary {
  background: var(--ink);
  color: #fffdf8;
}

.button.quiet {
  background: rgba(255, 253, 248, 0.7);
}

.button.compact {
  width: 100%;
  margin-top: 18px;
}

.hero-photo {
  margin: 0;
  position: absolute;
  inset: 0;
  z-index: -2;
  min-height: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.hero-photo img,
.portrait-photo img {
  height: 100%;
  object-fit: cover;
}

.hero-photo img {
  object-position: center;
}

.hero-photo figcaption {
  display: none;
}

.soft-panel,
.intro-grid article,
.state-panel,
.communication-grid article,
.material-card,
.article-mock,
.plan-output,
.system-grid article,
.premium-note {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.intro-grid p,
.section-heading p,
.state-panel p,
.communication-grid p,
.material-card p,
.article-lead,
.article-body p,
.plan-output p,
.system-grid p,
.premium-note,
.boundaries-panel p {
  color: var(--muted);
}

.intro {
  background: linear-gradient(180deg, rgba(251, 248, 241, 0.96), rgba(232, 242, 245, 0.72));
  padding-top: clamp(34px, 5vw, 64px);
}

.intro .section-heading {
  max-width: min(1520px, 100%);
}

.intro .section-heading h2 {
  max-width: 1420px;
}

.intro .section-heading p:not(.eyebrow) {
  max-width: 1560px;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 34px;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.section-actions.inline {
  margin-top: 26px;
}

.section-heading.split {
  max-width: 940px;
  display: block;
}

.section-heading.split > p {
  max-width: 720px;
  margin-top: 16px;
  font-size: 1.1rem;
}

.section-heading.split .text-link {
  display: inline-block;
  margin-top: 18px;
}

.intro-grid,
.communication-grid,
.material-grid,
.promise-grid,
.system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 38px);
}

.intro-grid article,
.communication-grid article,
.material-card,
.promise-grid article,
.system-grid article {
  min-height: 230px;
  padding: 24px;
}

.intro-grid article,
.communication-grid article,
.promise-grid article {
  min-height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.symbol {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(232, 242, 245, 0.68));
  color: var(--blue-ink);
  box-shadow: 0 14px 34px rgba(41, 51, 48, 0.055);
}

.intro-grid article {
  text-align: center;
}

.intro-grid p {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.symbol svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.situation,
.materials,
.responsive {
  background: linear-gradient(180deg, rgba(232, 242, 245, 0.86), rgba(251, 248, 241, 0.94));
}

.promise {
  background: var(--paper);
}

.promise-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.promise-grid article {
  background: transparent;
  border: 0;
  border-radius: 0;
}

.situation-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.42fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: start;
}

.situation-list {
  display: grid;
  gap: 0;
  padding: 6px 0;
  border-top: 1px solid rgba(56, 90, 99, 0.18);
  border-bottom: 1px solid rgba(56, 90, 99, 0.14);
}

.situation-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 4px 14px;
  min-height: 86px;
  padding: 16px 14px 16px 12px;
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  border-bottom: 1px solid rgba(56, 90, 99, 0.12);
  border-radius: 0;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font-weight: 760;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.situation-card:last-child {
  border-bottom: 0;
}

.situation-card span {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.68);
  color: var(--blue-ink);
  font-size: 0.74rem;
  font-weight: 860;
}

.situation-card strong {
  display: block;
  line-height: 1.2;
}

.situation-card small {
  display: block;
  max-width: 370px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.42;
}

.situation-card.active,
.situation-card:hover {
  background: rgba(255, 253, 248, 0.64);
  color: var(--ink);
  border-left-color: rgba(56, 90, 99, 0.72);
  transform: translateX(2px);
}

.situation-card.active span,
.situation-card:hover span {
  background: var(--blue-ink);
  color: #fffdf8;
}

.situation-card.active small,
.situation-card:hover small {
  color: var(--muted);
}

.state-panel {
  min-height: 560px;
  padding: clamp(24px, 4vw, 42px);
  border: 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(255, 253, 248, 0.7));
  box-shadow: 0 28px 76px rgba(41, 51, 48, 0.07);
}

.state-panel h3 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.6rem);
  font-weight: 760;
  letter-spacing: -0.018em;
}

.state-columns {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 18px;
  margin: 28px 0;
}

.state-columns > div,
.safety-callout {
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(250, 244, 234, 0.7);
  border: 0;
}

.do-not {
  background: rgba(248, 238, 238, 0.62);
}

ul,
ol {
  margin-bottom: 0;
  padding-left: 22px;
}

li + li {
  margin-top: 7px;
}

.chip-row {
  flex-wrap: wrap;
  gap: 8px;
}

.chip-row span,
.material-card span {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--lavender);
  color: #443c59;
  font-size: 0.78rem;
  font-weight: 820;
}

.safety-callout {
  display: grid;
  gap: 6px;
  margin-top: 22px;
  background: #fff7e8;
}

.child-page {
  background: linear-gradient(180deg, var(--paper), rgba(185, 205, 189, 0.24));
}

.page-mock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: stretch;
}

.page-copy {
  align-self: center;
}

.guide-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.guide-list article {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(229, 222, 210, 0.74);
}

.guide-list span {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sage);
  font-weight: 850;
}

.portrait-photo {
  margin: 0;
  min-height: 620px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 26px 80px rgba(41, 51, 48, 0.1);
}

.communication {
  background: linear-gradient(180deg, rgba(185, 205, 189, 0.24), var(--paper-deep));
}

.wide-photo {
  margin: 0 0 22px;
  height: min(46vw, 440px);
  min-height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.wide-photo img {
  height: 100%;
  object-fit: cover;
}

.materials-photo,
.plan-photo,
.situation-photo {
  margin-bottom: 30px;
}

.text-link {
  font-weight: 850;
  color: var(--blue-ink);
}

.material-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  min-height: 250px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(255, 253, 248, 0.62));
  border: 0;
  box-shadow: 0 14px 46px rgba(41, 51, 48, 0.055);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.material-card:hover {
  box-shadow: 0 22px 60px rgba(41, 51, 48, 0.085);
  transform: translateY(-2px);
}

.material-card span {
  margin-bottom: 18px;
}

.material-card h3 {
  margin-top: 0;
}

.article-screen {
  background: var(--paper);
}

.article-hero {
  background:
    linear-gradient(180deg, rgba(251, 248, 241, 0.94), rgba(232, 242, 245, 0.92)),
    radial-gradient(circle at 76% 24%, rgba(185, 205, 189, 0.42), rgba(185, 205, 189, 0));
}

.article-mock {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 58px);
}

.article-mock h2 {
  margin-bottom: 18px;
}

.article-lead {
  font-size: 1.18rem;
}

.article-photo {
  height: min(46vw, 420px);
  min-height: 270px;
  margin: 0 0 30px;
  border-radius: var(--radius);
  overflow: hidden;
}

.article-photo img {
  height: 100%;
  object-fit: cover;
}

.article-body {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-body h2 {
  margin-top: 30px;
  margin-bottom: 12px;
  font-size: clamp(1.65rem, 2.2vw, 2.35rem);
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 24px;
}

.quote-card {
  margin: 22px 0;
  padding: 22px;
  background: #f8f4fb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.quote-card p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 1.08rem;
}

.plan-section {
  background: linear-gradient(180deg, var(--paper-deep), var(--paper));
}

.plan-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.65fr);
  gap: 18px;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.checklist label {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 760;
}

.checklist input {
  width: 20px;
  height: 20px;
  accent-color: var(--blue-ink);
}

.plan-output {
  padding: 24px;
}

.plan-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.plan-notes label {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.plan-notes span {
  font-weight: 820;
}

.plan-notes textarea {
  width: 100%;
  min-height: 118px;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
}

.plan-notes textarea:focus {
  outline: 2px solid rgba(56, 90, 99, 0.24);
  border-color: rgba(56, 90, 99, 0.5);
}

.plan-fields-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px 20px;
  color: var(--muted);
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ============================================================
   BLOG: filtr kategorii, data wpisu, paginacja
   ============================================================ */
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(22px, 3vw, 36px);
}

.blog-filter a {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.blog-filter a:hover {
  border-color: var(--amber);
  color: var(--amber-strong);
}

.blog-filter a.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fffdf8;
}

.material-card .card-body {
  flex: 1;
}

.post-date {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.post-meta {
  margin-bottom: 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-ink);
}

.blog-pagination {
  margin-top: clamp(28px, 4vw, 46px);
}

.blog-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.blog-pagination .page-numbers:hover {
  border-color: var(--amber);
  color: var(--amber-strong);
}

.blog-pagination .page-numbers.current {
  background: var(--ink);
  border-color: var(--ink);
  color: #fffdf8;
}

.trusted-label {
  margin-top: 22px;
  margin-bottom: 8px;
  font-weight: 800;
  color: var(--ink);
}

.dlb-dot {
  color: var(--amber);
  font-weight: 800;
}

.boundaries {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: 18px;
  background: var(--paper);
}

.boundaries-panel {
  padding: clamp(24px, 4vw, 44px);
}

.premium-note {
  padding: 24px;
  background: #f8f4fb;
}

.device-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: end;
}

.desktop-frame,
.mobile-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mini-browser {
  display: flex;
  gap: 7px;
  padding: 13px;
  border-bottom: 1px solid var(--line);
}

.mini-browser span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sand);
}

.desktop-preview {
  min-height: 360px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  padding: 20px;
}

.desktop-preview div {
  border-radius: var(--radius);
  background: var(--sky);
}

.desktop-preview div:nth-child(2) {
  background: var(--sand);
}

.desktop-preview div:nth-child(3) {
  grid-column: 1 / -1;
  min-height: 120px;
  background: var(--sage);
}

.mobile-frame {
  max-width: 300px;
  padding: 12px;
  border-radius: 28px;
}

.mobile-preview {
  min-height: 500px;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
}

.mobile-preview span {
  display: block;
  width: 72px;
  height: 72px;
  margin-bottom: 26px;
  border-radius: var(--radius);
  background: var(--sky);
}

.mobile-preview strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 520;
  line-height: 1.05;
}

.mobile-preview p {
  color: var(--muted);
}

.mobile-preview button {
  width: 100%;
  margin-top: 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  font-weight: 820;
}

.system-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.system-grid article {
  min-height: 210px;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 18px;
}

.swatches span {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--swatch);
}

footer {
  flex-wrap: wrap;
  gap: 12px 22px;
  padding: 28px clamp(18px, 4vw, 58px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 720;
}

@media (max-width: 1100px) {
  .hero,
  .situation-layout,
  .page-mock,
  .plan-layout,
  .boundaries,
  .device-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo,
  .portrait-photo {
    min-height: 430px;
  }

  .intro-grid,
  .communication-grid,
  .material-grid,
  .promise-grid,
  .system-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  .admin-bar .topbar {
    top: 46px;
  }

  .topbar,
  .section-heading.split {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.4rem);
  }

  .hero {
    padding-top: 44px;
  }

  .hero-photo,
  .portrait-photo {
    min-height: 330px;
  }

  .hero-photo figcaption {
    position: static;
    border-radius: 0;
  }

  .intro-grid,
  .communication-grid,
  .material-grid,
  .promise-grid,
  .system-grid,
  .state-columns,
  .checklist,
  .plan-notes {
    grid-template-columns: 1fr;
  }

  .wide-photo {
    min-height: 240px;
    height: 64vw;
  }

  .state-panel {
    min-height: auto;
  }

  .desktop-preview {
    min-height: 280px;
    grid-template-columns: 1fr;
  }

  .desktop-preview div:nth-child(3) {
    grid-column: auto;
  }

  .mobile-frame {
    max-width: none;
  }
}

/* ============================================================
   WARSTWA PREMIUM — dostepnosc, mikrointerakcje, akcent, stopka
   ============================================================ */

/* --- Globalne wykonczenie --- */
::selection {
  background: var(--amber-soft);
  color: var(--ink);
}

:root {
  accent-color: var(--blue-ink);
  scroll-padding-top: 96px;
}

[id] {
  scroll-margin-top: 96px;
}

/* --- Dostepnosc: widoczny focus --- */
a:focus-visible,
button:focus-visible,
.button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.situation-card:focus-visible,
.material-card:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.checklist label:focus-within,
.plan-notes label:focus-within {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* --- Skip link --- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 60;
  padding: 12px 18px;
  background: var(--ink);
  color: #fffdf8;
  border-radius: var(--radius-sm);
  font-weight: 820;
  text-decoration: none;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 12px;
}

/* --- Header: stan po przewinieciu --- */
.topbar {
  transition: box-shadow 220ms ease, background 220ms ease, border-color 220ms ease;
}

.topbar.is-scrolled {
  background: rgba(251, 248, 241, 0.92);
  border-bottom-color: rgba(229, 222, 210, 0.9);
  box-shadow: 0 14px 40px rgba(41, 51, 48, 0.08);
}

nav a[aria-current="page"] {
  color: var(--ink);
  position: relative;
}

nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  border-radius: 2px;
  background: var(--amber);
}

.nav-cta {
  padding: 9px 15px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fffdf8 !important;
  font-weight: 820;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--e1);
  color: #fffdf8 !important;
}

/* --- Przyciski: lzejsze, cieplejsze, z glebia --- */
.button {
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 700;
  letter-spacing: 0.005em;
  transition: transform 180ms ease, box-shadow 220ms ease, background 220ms ease, border-color 200ms ease, color 200ms ease;
}

.button.primary {
  border: 0;
  background: linear-gradient(135deg, #4d7b84 0%, #335a62 100%);
  color: #fffdf8;
  box-shadow: 0 12px 28px rgba(51, 90, 98, 0.26);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(51, 90, 98, 0.34);
  background: linear-gradient(135deg, #57878f 0%, #3a646d 100%);
}

.button.quiet {
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid var(--line);
  color: var(--ink);
}

.button.quiet:hover {
  border-color: var(--amber);
  color: var(--amber-strong);
  background: var(--amber-soft);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button.compact {
  border-radius: var(--radius);
}

/* nav CTA tez ocieplony pod nowy system */
.nav-cta {
  background: linear-gradient(135deg, #4d7b84 0%, #335a62 100%);
  border: 0;
}

/* --- Akcent bursztynowy na elementach decyzyjnych --- */
.situation-card.active,
.situation-card:hover {
  border-left-color: var(--amber);
}

.situation-card.active span,
.situation-card:hover span {
  background: var(--amber);
}

.text-link {
  background-image: linear-gradient(var(--amber), var(--amber));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 220ms ease, color 160ms ease;
  padding-bottom: 2px;
}

.text-link:hover {
  background-size: 100% 2px;
  color: var(--amber-strong);
}

.safety-callout {
  border-left: 3px solid var(--amber);
}

/* --- Scroll-reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --- Stopka premium --- */
.site-footer {
  display: block;
  padding: clamp(48px, 6vw, 80px) clamp(18px, 4vw, 58px) 28px;
  background: linear-gradient(180deg, var(--paper), var(--paper-deep));
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 60px);
  max-width: 1280px;
  margin: 0 auto;
}

.footer-brand .brand {
  margin-bottom: 14px;
  color: var(--ink);
}

.footer-tagline {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
}

.footer-col h4 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 860;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.footer-col a {
  color: var(--muted);
  font-weight: 720;
}

.footer-col a:hover {
  color: var(--amber-strong);
}

.footer-bottom {
  max-width: 1280px;
  margin: clamp(32px, 4vw, 52px) auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 0.86rem;
  font-weight: 400;
}

.footer-disclaimer {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.emph-112 {
  color: var(--amber-strong);
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 740px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* --- Animacje panelu sytuacji (blok "Gdzie jestescie teraz") --- */
.state-panel.is-entering #state-kicker,
.state-panel.is-entering #state-title,
.state-panel.is-entering #state-copy,
.state-panel.is-entering .state-columns,
.state-panel.is-entering .recommended {
  animation: ddsd-rise 460ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.state-panel.is-entering #state-title { animation-delay: 50ms; }
.state-panel.is-entering #state-copy { animation-delay: 100ms; }
.state-panel.is-entering .state-columns { animation-delay: 150ms; }
.state-panel.is-entering .recommended { animation-delay: 210ms; }

.state-panel.is-entering #state-dont li,
.state-panel.is-entering #state-steps li,
.state-panel.is-entering #state-materials span {
  animation: ddsd-rise 420ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.state-panel.is-entering #state-dont li:nth-child(2),
.state-panel.is-entering #state-steps li:nth-child(2) { animation-delay: 90ms; }

.state-panel.is-entering #state-dont li:nth-child(3),
.state-panel.is-entering #state-steps li:nth-child(3) { animation-delay: 160ms; }

.state-panel.is-entering #state-materials span:nth-child(2) { animation-delay: 80ms; }
.state-panel.is-entering #state-materials span:nth-child(3) { animation-delay: 150ms; }

.situation-card span {
  transition: background 200ms ease, color 200ms ease, transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.situation-card.active span {
  transform: scale(1.08);
}

/* --- Manifest "Charakter miejsca": wysrodkowany, bez pustej prawej --- */
.promise .section-heading.split {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.promise .section-heading.split > p {
  margin: 16px auto 0;
}

.promise .section-heading.split h2 {
  max-width: none;
}

.promise-grid {
  margin-top: clamp(20px, 3vw, 36px);
}

/* --- Lekkosc: wejscia i zywe obrazy --- */
@keyframes ddsd-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.hero-copy > *,
.page-hero > * {
  animation: ddsd-rise 720ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.hero-copy > :nth-child(2),
.page-hero > :nth-child(2) { animation-delay: 90ms; }

.hero-copy > :nth-child(3),
.page-hero > :nth-child(3) { animation-delay: 180ms; }

.hero-copy > :nth-child(4),
.page-hero > :nth-child(4) { animation-delay: 270ms; }

.portrait-photo img,
.wide-photo img,
.article-photo img {
  transition: transform 820ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portrait-photo:hover img,
.wide-photo:hover img,
.article-photo:hover img {
  transform: scale(1.045);
}

/* Delikatna, plynaca bursztynowa poswiata w hero */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -12%;
  right: -6%;
  width: 48%;
  height: 72%;
  background: radial-gradient(circle at 60% 40%, rgba(176, 111, 36, 0.18), rgba(176, 111, 36, 0) 70%);
  filter: blur(8px);
  pointer-events: none;
  animation: ddsd-float 13s ease-in-out infinite alternate;
}

@keyframes ddsd-float {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-4%, 5%) scale(1.1); }
}

/* --- Szacunek dla preferencji ruchu --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   KOMPONENTY: pasek zaufania, scroll-cue, ikony, karty
   ============================================================ */

/* Akcent przy eyebrow */
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  margin-right: 10px;
  border-radius: 2px;
  background: var(--amber);
  vertical-align: middle;
}

.intro-grid .eyebrow::before {
  display: none;
}

/* Strzalka w przycisku */
.btn-arrow {
  width: 18px;
  height: 18px;
  margin-left: 8px;
  transition: transform 200ms ease;
}

.button.primary:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-arrow--left {
  margin-left: 0;
  margin-right: 8px;
}

.button.quiet:hover .btn-arrow--left {
  transform: translateX(-3px);
}

.article-back {
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

/* "Jak to dziala" — instrukcja karty roboczej */
.how-section {
  background: var(--paper);
}

.how-steps {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 26px);
}

.how-steps li {
  padding: 24px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--e1);
}

.how-num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--blue-ink);
  color: #fffdf8;
  font-family: var(--font-display);
  font-weight: 800;
}

.how-steps h3 {
  margin-bottom: 8px;
}

.how-steps p {
  margin-bottom: 0;
  color: var(--muted);
}

.how-note {
  margin-top: 24px;
  padding: 18px 22px;
  background: var(--amber-soft);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
}

.how-note p {
  margin: 0;
  color: var(--ink);
}

@media (max-width: 900px) {
  .how-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .how-steps {
    grid-template-columns: 1fr;
  }
}

/* Wskazowka przewijania */
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
}

.scroll-cue svg {
  width: 20px;
  height: 20px;
  animation: ddsd-bob 1.8s ease-in-out infinite;
}

.scroll-cue:hover {
  color: var(--amber-strong);
}

@keyframes ddsd-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Pasek zaufania */
.trust-bar {
  padding: 18px clamp(18px, 4vw, 58px);
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-bar ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1280px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
}

.trust-bar li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}

.trust-bar svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--blue-ink);
}

/* Karty "Dla kogo" (promise-grid) z ikonami */
.promise-grid article {
  padding: 26px 24px;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--e1);
  transition: transform 200ms ease, box-shadow 220ms ease, border-color 200ms ease;
}

.promise-grid article:hover {
  transform: translateY(-3px);
  box-shadow: var(--e2);
  border-color: rgba(176, 111, 36, 0.3);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 13px;
  background: linear-gradient(180deg, var(--amber-soft), rgba(246, 232, 210, 0.4));
  color: var(--amber-strong);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

/* Karty materialow z miniaturami — zerowy padding TYLKO gdy jest zdjecie
   (karty tekstowe bez zdjecia zachowuja swoj padding z reguly bazowej) */
.material-card:has(.card-thumb) {
  padding: 0;
  min-height: 0;
  overflow: hidden;
}

.card-thumb {
  margin: 0;
  height: 172px;
  overflow: hidden;
  background: var(--paper-deep);
}

.card-thumb img {
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.material-card:hover .card-thumb img {
  transform: scale(1.07);
}

.card-body {
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.card-body span {
  margin: 0 0 12px;
}

.card-body h3 {
  margin-top: 0;
}

.card-body p {
  margin-bottom: 0;
}

/* Plan: informacja zwrotna i sens interakcji */
.checklist label {
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.checklist label:has(input:checked) {
  border-color: var(--amber);
  background: rgba(246, 232, 210, 0.55);
  box-shadow: inset 3px 0 0 var(--amber);
}

.checklist input {
  accent-color: var(--blue-ink);
}

.plan-count {
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-ink);
}

.plan-fulllink {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.92rem;
}

/* ============================================================
   PODSTRONY: oddech w ramkach, aside sytuacji, sekcja "Co dalej?"
   ============================================================ */

/* Wiecej oddechu w ramkach (tekst nie przy krawedzi) */
.state-columns > div {
  padding: 22px 24px;
}

.safety-callout {
  padding: 20px 24px;
}

.quote-card {
  padding: 24px 26px;
}

.state-columns ul,
.state-columns ol {
  padding-left: 20px;
}

/* Aside listy sytuacji (strona "Gdzie jestescie teraz") */
.situation-aside {
  align-self: start;
}

.situation-aside > .eyebrow {
  margin-bottom: 14px;
}

.situation-help {
  margin-top: 20px;
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--e1);
}

.situation-help p {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--ink);
}

/* Sekcja "Co dalej?" */
.cta-band {
  background: linear-gradient(180deg, var(--paper), var(--sky));
}

.cta-band .section-heading {
  max-width: 760px;
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

.next-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--e1);
  color: inherit;
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 220ms ease, border-color 200ms ease;
}

.next-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--e2);
  border-color: rgba(176, 111, 36, 0.3);
}

.next-card h3 {
  margin-top: 4px;
}

.next-card p {
  color: var(--muted);
  margin-bottom: 18px;
}

.next-arrow {
  width: 20px;
  height: 20px;
  margin-top: auto;
  color: var(--blue-ink);
  transition: transform 200ms ease, color 200ms ease;
}

.next-card:hover .next-arrow {
  transform: translateX(4px);
  color: var(--amber-strong);
}

@media (max-width: 900px) {
  .next-grid {
    grid-template-columns: 1fr;
  }
}
