/*
Theme Name: Autitask theme
Author: Piotr Wawrzeńczyk
Author URI: https://www.p-wawrzenczyk.dev/
Version: 1.0
Requires at least: 7.0
Tested up to: 7.1.2
Requires PHP: 8.2.29
*/
:root {
  --ink: #12140b;
  --ink-2: #2b2f1b;
  --text: #2b2f1b;
  --muted: #5f6454;
  --soft: #8b917d;
  --line: #d9dccb;
  --paper: #f3f4ec;
  --white: #ffffff;
  --lime: #c8f31d;
  --lime-dk: #b3dd0f;
  --lime-soft: #eef8c4;
  --blue: #12140b;
  --blue-soft: #eef8c4;
  --violet: #12140b;
  --violet-soft: #e3e7d0;
  --teal: #5b6050;
  --teal-soft: #ecefdf;
  --mint: #c8f31d;
  --amber: #b3dd0f;
  --rose-soft: #fff2f2;
  --rose: #e5484d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}
body {
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  letter-spacing: -0.025em;
  color: var(--ink);
}
a {
  color: inherit;
  text-decoration: inherit;
}
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
img,
svg {
  display: block;
}
img {
  max-width: 100%;
  height: auto;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  margin: 0;
}
button {
  background: transparent;
  cursor: pointer;
}
textarea {
  resize: vertical;
}
p {
  margin: 0;
}
/* utilities used by the page */
.grid {
  display: grid;
}
.flex {
  display: flex;
}
.hidden {
  display: none;
}
.relative {
  position: relative;
}
.flex-col {
  flex-direction: column;
}
.text-center {
  text-align: center;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-5 {
  gap: 1.25rem;
}
.gap-6 {
  gap: 1.5rem;
}
.gap-7 {
  gap: 1.75rem;
}
.gap-8 {
  gap: 2rem;
}
.gap-12 {
  gap: 3rem;
}
.gap-14 {
  gap: 3.5rem;
}
.sr-only,
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sm\:flex-row {
    flex-direction: row;
  }
}
@media (min-width: 768px) {
  .md\:hidden {
    display: none;
  }
  .md\:flex {
    display: flex;
  }
  .md\:flex-row {
    flex-direction: row;
  }
  .md\:justify-between {
    justify-content: space-between;
  }
  .md\:items-end {
    align-items: flex-end;
  }
  .md\:items-center {
    align-items: center;
  }
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1150px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .lg\:col-span-2 {
    grid-column: span 2 / span 2;
  }
}
.wrap {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 104px 0;
}
@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }
}

.h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 800;
}
.sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 620px;
  margin-top: 16px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* Przyciski */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--lime);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--lime-dk);
  box-shadow: 0 12px 28px -8px rgba(200, 243, 29, 0.8);
}
.btn-light {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.btn-light:hover {
  background: rgba(255, 255, 255, 0.16);
}
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover {
  background: var(--ink-2);
}
.btn-sm {
  height: 42px;
  padding: 0 18px;
  font-size: 15px;
  border-radius: 10px;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* Nawigacja */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease;
  height: 90px;
}
.nav.is-top {
  background: var(--ink);
}
.nav.is-scrolled {
  background: rgba(243, 244, 236, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navlink {
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 4px;
  transition: color 0.2s;
}
.is-top .navlink {
  color: rgba(255, 255, 255, 0.78);
}
.is-top .navlink:hover {
  color: #fff;
}
.is-scrolled .navlink {
  color: var(--muted);
}
.is-scrolled .navlink:hover {
  color: var(--ink);
}
.burger {
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.is-top .burger {
  color: #fff;
}
.is-scrolled .burger {
  color: var(--ink);
}
.mobile {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 16px 24px 24px;
  display: grid;
  gap: 4px;
  box-shadow: 0 20px 40px -20px rgba(18, 20, 11, 0.3);
}
.mobile .navlink {
  color: var(--ink);
  text-align: left;
  font-size: 17px;
  padding: 12px 0;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--lime);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px -6px rgba(200, 243, 29, 0.7);
}
.logo-mark span {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 12px;
}
.logo-mark i {
  display: block;
  width: 3px;
  background: #fff;
  border-radius: 2px;
}

/* Hero */
.hero {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 125px 0 132px;
}
/* .hero::before {
  content: "";
  position: absolute;
  width: 760px;
  height: 760px;
  right: -220px;
  top: -280px;
  background: radial-gradient(circle, rgba(200, 243, 29, 0.2), transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  left: -260px;
  bottom: -360px;
  background: radial-gradient(
    circle,
    rgba(200, 243, 29, 0.09),
    transparent 62%
  );
  pointer-events: none;
} */
.mint-icon {
  filter: invert(69%) sepia(25%) saturate(1281%) hue-rotate(39deg)
    brightness(142%) contrast(91%);
}
.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(
    ellipse at 70% 30%,
    #000 20%,
    transparent 70%
  );
}
.hero h1 {
  color: #fff;
  font-size: clamp(40px, 5.6vw, 66px);
  line-height: 1.04;
  font-weight: 800;
}
.hero-sub {
  font-size: 19px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.74);
  margin-top: 24px;
  max-width: 540px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 26px;
}
.badge b {
  background: var(--mint);
  color: var(--ink);
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 800;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.7);
}
.trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust svg {
  color: var(--mint);
}
.hero-buttons {
  margin-top: 34px;
}
/* Hero */

/* Karta przepływu w hero */
.flow {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 20px;
  backdrop-filter: blur(8px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.flow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 4px 14px;
}
.flow-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.01em;
}
.flow-tabs {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px;
  border-radius: 12px;
}
.flow-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  padding: 10px 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.flow-tab:hover {
  color: #fff;
}
.flow-tab.on {
  background: #fff;
  color: var(--ink);
}
.flow-tab img {
  filter: brightness(0) invert(1) opacity(0.62);
  transition: filter 0.2s;
}
.flow-tab[aria-selected="true"] img {
  filter: none;
}
.canvas {
  border-radius: 18px;
  padding: 22px 18px;
  background-color: rgba(6, 8, 3, 0.35);
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.09) 1px,
    transparent 1px
  );
  background-size: 18px 18px;
}
.node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(29, 33, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    border-color 0.35s,
    box-shadow 0.35s,
    opacity 0.35s;
  opacity: 0.55;
}
.node.done {
  opacity: 1;
}
.node.on {
  opacity: 1;
  border-color: rgba(200, 243, 29, 0.75);
  box-shadow:
    0 0 0 4px rgba(200, 243, 29, 0.18),
    0 12px 30px -12px rgba(200, 243, 29, 0.6);
}
.node.result.done {
  border-color: rgba(200, 243, 29, 0.55);
  box-shadow: 0 0 0 4px rgba(200, 243, 29, 0.12);
}
.node-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
}
.node-icon.trigger {
  background: #c8f31d;
}
.node-icon.ai {
  background: #f1f3e6;
}
.node-icon.check {
  background: #d9dccb;
}
.node-icon.result {
  background: #a9d80f;
}
.node-body {
  min-width: 0;
  flex: 1;
}
.node-kind {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.node-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
  line-height: 1.3;
}
.node-detail {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
  margin-top: 2px;
  line-height: 1.35;
}
.node-state {
  width: 26px;
  height: 26px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.18);
  color: transparent;
  transition: all 0.3s;
}
.node.done .node-state {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--ink);
}
.node.on .node-state {
  border-color: #c8f31d;
  border-top-color: transparent;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.link {
  position: relative;
  height: 26px;
  margin-left: 33px;
  width: 2px;
  background: rgba(255, 255, 255, 0.14);
  overflow: visible;
}
.link b {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0;
  background: linear-gradient(#c8f31d, #f1f3e6);
  transition: height 0.45s ease;
}
.link.done b {
  height: 100%;
}
.link.flowing::after {
  content: "";
  position: absolute;
  left: -3px;
  top: 0;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 0 10px 2px rgba(200, 243, 29, 0.9);
  animation: pulse 0.9s ease-in infinite;
}
@keyframes pulse {
  from {
    transform: translateY(-4px);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  to {
    transform: translateY(22px);
    opacity: 0;
  }
}

.flow-foot {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
}
.flow-foot strong {
  color: #fff;
  font-weight: 700;
}
.progress {
  height: 4px;
  flex: 1;
  max-width: 140px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--lime);
  border-radius: 99px;
  transition: width 0.5s ease;
}

/* Obszary */
.areas-cards-description {
  font-size: 17px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.areas-card-container {
  max-width: 1180px;
  margin: auto;
  margin-top: 22px;
}
.areas-title-container {
  max-width: 720px;
  margin: 0 auto;
}
.areas-sub {
  margin: 16px auto 0;
}
.areas-buttons-container {
  margin-top: 20px;
}
.seg {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 4px 14px -8px rgba(18, 20, 11, 0.15);
  flex-wrap: wrap;
}
.seg button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.seg button:hover {
  color: var(--ink);
  background: var(--paper);
}
.seg button.on {
  color: #fff;
}
.seg button.on.violet {
  background: var(--violet);
}
.seg button.on.blue {
  background: var(--blue);
}
.seg button.on.teal {
  background: var(--teal);
}
.seg button.on.violet img {
  filter: invert();
}
.seg button.on.blue img {
  filter: none;
}
.seg button.on.teal img {
  filter: invert();
}
.seg button img {
  filter: invert(34%) sepia(34%) saturate(180%) hue-rotate(37deg)
    brightness(96%) contrast(89%);
}
.pair {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  align-items: stretch;
}

@media (max-width: 900px) {
  .pair {
    grid-template-columns: 1fr;
  }
  .pair-arrow {
    transform: rotate(90deg);
    height: 44px;
  }
}
.pain {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
}
.pain-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--rose);
  background: var(--rose-soft);
  padding: 4px 10px;
  border-radius: 999px;
}
.pain-label img {
  filter: invert(38%) sepia(45%) saturate(1252%) hue-rotate(309deg)
    brightness(98%) contrast(83%);
}
.pain h4 {
  font-size: 19px;
  font-weight: 700;
  margin-top: 14px;
  line-height: 1.35;
}
.pain p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
  margin-top: 8px;
}
.pair-arrow {
  display: grid;
  place-items: center;
  color: var(--soft);
}
.pair-arrow img {
  filter: invert(54%) sepia(8%) saturate(1377%) hue-rotate(37deg)
    brightness(127%) contrast(30%);
}
.fix {
  border-radius: 20px;
  padding: 26px;
  border: 1px solid transparent;
}
.fix.violet {
  background: var(--violet-soft);
  border-color: #cfd5b4;
}
.fix.blue {
  background: var(--blue-soft);
  border-color: #dceb8c;
}
.fix.teal {
  background: var(--teal-soft);
  border-color: #d5dac0;
}
.fix h4 {
  font-size: 20px;
  font-weight: 800;
}
.fix ul {
  list-style: none;
  padding: 0;
  margin-top: 8px;
  display: grid;
  gap: 10px;
}
.fix li {
  display: flex;
  gap: 10px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--text);
}
.fix li svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.violet .check {
  color: var(--violet);
}
.blue .check {
  color: var(--blue);
}
.teal .check {
  color: var(--teal);
}
.model {
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  white-space: nowrap;
  border: 1px solid var(--line);
  text-align: center;
}
.fix h4 {
  margin-top: 14px;
}
.fade-in {
  animation: in 0.45s ease both;
}
@keyframes in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Kalkulator */
.calc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(18, 20, 11, 0.35);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}
.calc-contact-button {
  margin-top: 28px;
  align-self: flex-start;
}
@media (max-width: 960px) {
  .calc {
    grid-template-columns: 1fr;
  }
}
.calc-in {
  padding: 40px;
}
@media (max-width: 600px) {
  .calc-in {
    padding: 26px;
  }
}
.toggle {
  display: inline-flex;
  padding: 5px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  gap: 4px;
}
.toggle button {
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--muted);
  cursor: pointer;
}
.toggle button.on {
  background: var(--ink);
  color: #fff;
}
.slider {
  margin-top: 26px;
}
.slider-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.slider label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.slider output {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 99px;
  margin-top: 12px;
  cursor: pointer;
  background: linear-gradient(90deg, var(--ink) var(--p), var(--line) var(--p));
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue);
  box-shadow: 0 2px 8px rgba(18, 20, 11, 0.25);
  transition: transform 0.15s;
}
.range::-webkit-slider-thumb:hover {
  transform: scale(1.12);
}
.range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue);
}
.calc-out {
  background: var(--ink);
  color: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
@media (max-width: 600px) {
  .calc-out {
    padding: 26px;
  }
}
.calc-out::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -160px;
  top: -160px;
  background: radial-gradient(
    circle,
    rgba(200, 243, 29, 0.14),
    transparent 65%
  );
}
.big {
  font-size: clamp(44px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.out-label {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}
.bar {
  display: flex;
  height: 12px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 14px;
}
.bar i {
  display: block;
  height: 100%;
  transition: width 0.4s ease;
}
.legend {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}
.legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.legend em {
  font-style: normal;
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  color: #fff;
  font-weight: 700;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

/* Rozliczenia */
.price-header-container {
  max-width: 700px;
  margin: 0 auto 52px;
}
.price-description {
  margin: 16px auto 0;
}
.price-content {
  max-width: 980px;
  margin: 0 auto;
}
.price-card-container {
  margin-top: 88px;
}
.price {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.price.featured {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.price.featured h3 {
  color: #fff;
}
.price-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
}
.price.featured .price-icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--mint);
}
.price h3 {
  font-size: 24px;
  font-weight: 800;
  margin-top: 20px;
}
.price-for {
  margin-top: 8px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.55;
}
.price.featured .price-for {
  color: rgba(255, 255, 255, 0.7);
}
.price ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}
.price li {
  display: flex;
  gap: 10px;
  font-size: 15.5px;
  line-height: 1.5;
}
.price li svg {
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}
.price.featured li svg {
  color: var(--mint);
}
.price-ex {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.price.featured .price-ex {
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.6);
}
.price-tag {
  margin-top: 24px;
  display: inline-flex;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}
.price.featured .price-tag {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Proces */
.proces-section {
  background: #fff;
  border-top: 1px solid var(--line);
}
.proces-header {
  max-width: 700px;
  margin: 0 auto 60px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.steps::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--line) 0 8px,
    transparent 8px 16px
  );
}
@media (max-width: 900px) {
  .steps::before {
    display: none;
  }
}
.stepcard {
  position: relative;
  text-align: center;
  padding: 0 12px;
}
.stepicon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--blue);
  box-shadow: 0 10px 24px -14px rgba(18, 20, 11, 0.35);
  position: relative;
}
.stepnum {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 99px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.stepcard h3 {
  font-size: 20px;
  font-weight: 800;
  margin-top: 22px;
}
.stepcard p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* Wyróżniki */
.why {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.why:hover {
  border-color: #c3c8ae;
  box-shadow: 0 14px 30px -20px rgba(18, 20, 11, 0.3);
}
.why-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
}
.why h3 {
  font-size: 18px;
  font-weight: 800;
  margin-top: 18px;
}
.why p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* FAQ */
.faq-button {
  margin-top: 28px;
}
.faq-card-container {
  border-top: 1px solid var(--line);
}
.faq {
  border-bottom: 1px solid var(--line);
}
.faq button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.faq-icon {
  width: 34px;
  height: 34px;
  border-radius: 99px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition:
    transform 0.3s,
    background 0.2s;
}
.faq.open .faq-icon {
  transform: rotate(180deg);
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq.open .faq-body {
  grid-template-rows: 1fr;
}
.faq-body > div {
  overflow: hidden;
}
.faq-body p {
  padding: 0 54px 24px 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

/* Kontakt */
.contact-section {
  padding-top: 40px;
}
.contact-desc {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.6;
}
.contact-next {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
}
.contact-under-text {
  margin-top: 36px;
  position: relative;
  z-index: 1;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
}
.contact-under-text a {
  color: #fff;
  font-weight: 700;
}
.contact {
  background: #fff;
  border-radius: 28px;
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  box-shadow: 0 30px 60px -40px rgba(18, 20, 11, 0.35);
}
@media (max-width: 960px) {
  .contact {
    grid-template-columns: 1fr;
  }
}
.contact-side {
  background: var(--ink);
  color: #fff;
  padding: 44px;
  position: relative;
  overflow: hidden;
}
.contact-side::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  left: -140px;
  bottom: -180px;
  background: radial-gradient(
    circle,
    rgba(200, 243, 29, 0.18),
    transparent 65%
  );
}
.contact-side h2 {
  color: #fff;
}
.next div {
  display: flex;
  align-items: center;
  gap: 14px;
}
.next-n {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.next b {
  display: block;
  font-size: 16px;
}
.form {
  padding: 44px;
}
.form br {
  display: none;
}
@media (max-width: 600px) {
  .form,
  .contact-side {
    padding: 26px;
  }
}
.field-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
}
.field-label small {
  font-weight: 500;
  color: var(--soft);
}
.form-group {
  display: flex;
  gap: 20px;
}
.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 10px;
  height: 52px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  white-space: nowrap;
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 8px 24px -8px rgba(200, 243, 29, 0.7);
}
.wpcf7-submit:active {
  transform: translateY(1px);
}
.wpcf7-submit:hover {
  background: var(--lime-dk);
  box-shadow: 0 12px 28px -8px rgba(200, 243, 29, 0.8);
}
.wpcf7-spinner {
  display: none !important;
  visibility: hidden !important;
}

.wpcf7 form .wpcf7-response-output {
  margin-top: 20px;
  padding: 0.2em 1em;
  border: 2px solid #00a0d2;
  border-radius: 10px;
}
@media (max-width: 480px) {
  .form-group {
    flex-direction: column;
    gap: 0;
  }
}
.input {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  padding: 0 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
  outline: none;
}
.input:hover {
  border-color: #c3c8ae;
}
.input:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(200, 243, 29, 0.12);
}
.input.err {
  border-color: var(--rose);
  background: #fff;
}
textarea.input {
  height: auto;
  min-height: 110px;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.5;
}
select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  cursor: pointer;
}
.select {
  position: relative;
}
.select svg {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
}
.err {
  color: var(--rose);
  font-size: 13.5px;
  margin-top: 7px;
  font-weight: 600;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
}
.chip:hover {
  border-color: #c3c8ae;
}
.chip.on {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue);
}
.drop {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  border: 1.5px dashed #c3c8ae;
  background: var(--paper);
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.drop:hover {
  border-color: var(--blue);
  background: #fff;
}
.drop-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--blue);
  flex-shrink: 0;
}
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  cursor: pointer;
}
.consent input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--blue);
  flex-shrink: 0;
  cursor: pointer;
}
.success {
  padding: 56px 44px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}
.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 99px;
  background: #e7f9f1;
  color: #0f9f6e;
  display: grid;
  place-items: center;
}
/* Stopka */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.65);
  padding: 56px 0 40px;
  font-size: 14.5px;
}
.footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
.footer a:hover {
  color: #fff;
}

/* Social links */
.social-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
.social-links a {
  display: grid;
  place-items: center;
  transition:
    color 0.2s ease,
    transform 0.2s ease,
    filter 0.2s ease;
}
.social-links svg {
  width: 28px;
  height: 28px;
}
.social-rail {
  position: fixed;
  left: 32px;
  bottom: 32px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.social-rail:not(:has(.social-links)) {
  display: none;
}
.social-rail .social-links {
  flex-direction: column;
  gap: 20px;
}
.social-rail .social-links a {
  color: var(--muted);
}
.social-links a:hover,
.social-links a:focus-visible,
.footer .social-links a:hover {
  color: #a7cb19;
  filter: drop-shadow(0 4px 10px rgba(255, 255, 255, 0.6));
  transform: translateY(-2px);
}
.footer-social {
  gap: 16px;
  margin-top: 6px;
}
@media (max-width: 1450px) {
  .social-rail {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .social-links a {
    transition: none;
  }
  .social-links a:hover,
  .social-links a:focus-visible {
    transform: none !important;
  }
}
/* flowdo palette: lime fills need ink text */
.kicker {
  background: var(--lime);
  color: var(--ink);
}
.logo-mark i {
  background: var(--ink);
}
.flow-tab.on {
  background: var(--lime);
  color: var(--ink);
}
.node-icon.trigger,
.node-icon.ai,
.node-icon.check,
.node-icon.result {
  color: var(--ink);
}
.seg button.on.blue {
  background: var(--lime);
  color: var(--ink);
}

.range::-webkit-slider-thumb {
  background: var(--lime);
}
.range::-moz-range-thumb {
  background: var(--lime);
}
.price-icon,
.why-icon {
  background: var(--lime);
  color: var(--ink);
}
.stepnum {
  background: var(--lime);
  color: var(--ink);
}
.chip.on {
  background: var(--lime-soft);
  border-color: var(--ink);
  color: var(--ink);
}
.faq.open .faq-icon {
  background: var(--lime);
  border-color: var(--ink);
  color: var(--ink);
}
.input:focus {
  box-shadow: 0 0 0 4px rgba(200, 243, 29, 0.45);
}
.success-icon {
  background: var(--lime);
  color: var(--ink);
}
.consent a {
  text-decoration: underline;
}
/* calculator: three-tab toggle must fit narrow screens */
.calc > * {
  min-width: 0;
}
.toggle {
  max-width: 100%;
}
.toggle button {
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .rt *,
  .rt *::before,
  .rt *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* additions for the non-React version */
.mobile[hidden] {
  display: none;
}
.logo {
  color: var(--ink);
}
.nav.is-top .logo,
.footer .logo {
  color: #fff;
}
.nav.is-scrolled .logo {
  color: var(--ink);
}
.nav.is-top .logo-dark {
  display: none;
}

.nav.is-scrolled .logo-light {
  display: none;
}

.node-body > span {
  display: block;
}
.nav.is-scrolled .i-menu {
  filter: none;
}
.i-menu {
  filter: invert();
}
.burger[aria-expanded="false"] .i-x,
.burger[aria-expanded="true"] .i-menu {
  display: none;
}
.chip {
  position: relative;
}
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip .chip-check {
  display: none;
}
.chip:has(input:checked) {
  background: var(--lime-soft);
  border-color: var(--ink);
  color: var(--ink);
}
.chip:has(input:checked) .chip-check {
  display: block;
}
.chip:has(input:focus-visible) {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.desktop {
  display: flex;
}
@media (max-width: 1050px) {
  .desktop {
    display: none;
  }
}

@media (min-width: 1051px) {
  .burger {
    display: none;
  }
  .mobile {
    display: none;
  }
}

@media (max-width: 680px) {
  /* Calculator */
  .toggle {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .toggle button {
    flex: 1 1 auto;
    padding: 0 10px;
    font-size: 13.5px;
  }
  .calc-out .btn {
    white-space: normal;
    height: auto;
    min-height: 52px;
    padding: 12px 20px;
    text-align: left;
    align-self: stretch !important;
  }
  .calc-contact-button {
    margin-top: 14px;
  }
  /* Areas */
  .seg {
    flex-direction: column;
    align-content: center;
    align-items: center;
    width: 100%;
  }
  .seg button {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  /* Hero */
  .flow-head {
    flex-direction: column;
    align-items: stretch;
  }
  .flow-tab {
    width: 100%;
  }
  .flow-title i {
    width: 6px;
    height: 6px;
  }
  .flow-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .progress {
    flex: none;
    width: 100%;
    max-width: none;
    height: 4px;
  }
}
@media (max-width: 480px) {
  /* Heor */
  .flow-tab {
    flex: 1;
  }
  /* .flow {
    height: 900px;
  } */
  .trust {
    flex-direction: column;
  }
  .flow-title i {
    width: 6px;
    height: 6px;
  }
  .flow-tabs {
    flex-direction: column;
    gap: 10px;
    height: 150px;
  }
  .wrap {
    padding: 0 12px;
  }
  .price-tag {
    width: 100%;
    text-align: center;
    justify-content: space-around;
  }

  .footer-description {
    max-width: 300px;
  }
}

@media (max-width: 380px) {
  .flow {
    height: 950px;
  }
}

/* Polityka prywatności */

/* 404 page */
.error-404 {
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  padding: 80px 0;
}
.error-404 .wrap {
  position: relative;
  z-index: 1;
  width: 100%;
}
.error-404-code {
  font-family: inherit;
  font-weight: 800;
  line-height: 1;
  font-size: clamp(96px, 20vw, 220px);
  letter-spacing: -0.04em;
  color: var(--lime);
  margin: 24px 0 8px;
}
.error-404 .hero-sub {
  margin-left: auto;
  margin-right: auto;
  max-width: 520px;
}
.error-404-buttons {
  justify-content: center;
  align-items: center;
  margin-top: 32px;
}

/* Blog */
.blog-hero {
  padding: 96px 0 88px;
}
.blog-hero .wrap {
  position: relative;
  z-index: 1;
}
.blog-hero .hero-sub {
  margin-left: auto;
  margin-right: auto;
}
.blog-section {
  padding-top: 64px;
}
.blog-filters {
  margin-bottom: 40px;
}
.blog-filters .chip {
  text-decoration: none;
}
.blog-count {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--soft);
}
.chip.on .blog-count {
  color: var(--ink);
}
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
.post-card:hover {
  border-color: #c3c8ae;
  box-shadow: 0 14px 30px -20px rgba(18, 20, 11, 0.3);
  transform: translateY(-2px);
}
.post-card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.post-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--soft);
}
.post-card-cat {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  background: var(--lime);
  padding: 4px 10px;
  border-radius: 999px;
  transition: background 0.2s;
}
.post-card-cat:hover {
  background: var(--lime-dk);
}
.post-card-meta time {
  white-space: nowrap;
}
.post-card h3 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  margin-top: 14px;
}
/* whole card clickable: title link stretches over the card,
   category links sit above it */
.post-card {
  position: relative;
}
.post-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.post-card-link:focus-visible {
  outline: none;
}
.post-card:has(.post-card-link:focus-visible) {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.post-card-cat {
  position: relative;
  z-index: 2;
}
.post-card:hover .post-card-more img {
  transform: translateX(3px);
}
.post-card:hover h3 a {
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}
.post-card-excerpt {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.post-card-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.post-card-more img {
  transition: transform 0.2s;
}
.blog-empty {
  padding: 48px 0;
}
.blog-empty p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 24px;
}
.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
}
.pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  transition:
    border-color 0.2s,
    background 0.2s;
}
.pagination a.page-numbers:hover {
  border-color: #c3c8ae;
  background: var(--paper);
}
.pagination .page-numbers.current {
  background: var(--lime);
  border-color: var(--lime);
}
.pagination .page-numbers.dots {
  background: none;
  border: 0;
  min-width: auto;
  color: var(--soft);
}
@media (max-width: 680px) {
  .blog-hero {
    padding: 72px 0 64px;
  }
  .blog-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .blog-filters .chip {
    flex-shrink: 0;
  }
}

/* Wpis */
.post-hero {
  padding: 88px 0 80px;
}
.post-hero .wrap {
  position: relative;
  z-index: 1;
}
.post-hero h1 {
  max-width: 860px;
  margin: 0 auto;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.1;
}
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
  transition: color 0.2s;
}
.post-back:hover {
  color: #fff;
}
/* svg strokes black; match the link's white */
.post-back img {
  filter: invert(1) opacity(0.7);
  transition:
    filter 0.2s,
    transform 0.2s;
}
.post-back:hover img {
  filter: invert(1);
  transform: translateX(-3px);
}
.post-hero-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.post-hero-meta {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
}
.post-section {
  padding-top: 64px;
}
/* break very long words / URLs instead of overflowing the box */
.post-hero h1,
.post-content,
.post-toc a,
.post-card h3 {
  overflow-wrap: anywhere;
  hyphens: auto;
}
/* grid/flex items default to min-width:auto and grow to fit unbreakable content */
.post-main,
.post-side {
  min-width: 0;
}
.post-layout {
  max-width: 820px;
}
.post-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}
.post-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--line);
}

/* Spis treści */
.post-toc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}
.post-toc-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 12px;
}
.post-toc ol {
  display: grid;
  gap: 2px;
}
.post-toc a {
  display: block;
  padding: 6px 0 6px 12px;
  border-left: 3px solid transparent;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
  transition:
    color 0.2s,
    border-color 0.2s;
}
.post-toc a:hover {
  color: var(--ink);
}
.post-toc a {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.post-toc .toc-text {
  min-width: 0;
}
.post-toc .toc-num {
  flex: none;
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}
.post-toc a.on {
  color: var(--ink);
  font-weight: 700;
  border-left-color: var(--lime);
}
.post-toc .toc-depth-1 a {
  padding-left: 26px;
  font-size: 14px;
}
.post-toc .toc-depth-2 a {
  padding-left: 40px;
  font-size: 14px;
}
.post-toc .toc-depth-3 a,
.post-toc .toc-depth-4 a {
  padding-left: 54px;
  font-size: 13.5px;
}
@media (min-width: 1150px) {
  .post-layout.has-side {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 125px;
    align-items: start;
    max-width: 1280px;
  }
  /* image + toc stick together; the toc scrolls inside if it's taller than the screen */
  .post-layout.has-side .post-side {
    position: sticky;
    top: 114px;
    max-height: calc(100vh - 140px);
    margin-bottom: 0;
  }
  .post-layout.has-side .post-thumb {
    flex-shrink: 0;
  }
  .post-layout.has-side .post-toc {
    min-height: 0;
    overflow-y: auto;
  }
}

/* Treść wpisu */
.post-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}
.post-content > * + * {
  margin-top: 1.2em;
}
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5 {
  scroll-margin-top: 110px;
  line-height: 1.25;
}
.post-content h1 {
  font-size: 34px;
  font-weight: 800;
  margin-top: 2em;
}
.post-content h5 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 1.4em;
}
.post-content h2 {
  font-size: 28px;
  font-weight: 800;
  margin-top: 2em;
}
.post-content h3 {
  font-size: 21px;
  font-weight: 700;
  margin-top: 1.6em;
}
.post-content h4 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 1.4em;
}
.post-content > :first-child {
  margin-top: 0;
}
.post-content a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}
.post-content a:hover {
  text-decoration-color: var(--ink);
}
.post-content ul,
.post-content ol {
  padding-left: 1.4em;
}
.post-content ul {
  list-style: disc;
}
.post-content ol {
  list-style: decimal;
}
.post-content li + li {
  margin-top: 0.4em;
}
.post-content li::marker {
  color: var(--soft);
}
.post-content blockquote {
  border-left: 4px solid var(--lime);
  background: var(--lime-soft);
  padding: 18px 24px;
  border-radius: 0 14px 14px 0;
  font-size: 18px;
  color: var(--ink);
}
.post-content img {
  border-radius: 5px;
}
.post-content figure {
  margin-left: 0;
  margin-right: 0;
}
.post-content figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--soft);
  text-align: center;
}
.post-content code {
  font-size: 0.9em;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}
.post-content pre {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 14.5px;
  line-height: 1.6;
}
.post-content pre code {
  background: none;
  border: 0;
  padding: 0;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}
.post-content th,
.post-content td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
}
.post-content th {
  background: var(--paper);
  color: var(--ink);
}
.post-content .wp-block-table {
  overflow-x: auto;
}
@media (max-width: 680px) {
  .post-hero {
    padding: 64px 0 56px;
  }
  .post-content {
    font-size: 16px;
  }
  .post-content h2 {
    font-size: 24px;
  }
}
