:root {
  --swd-ink: #101a2e;
  --swd-muted: #5f6f84;
  --swd-line: #d5dee8;
  --swd-paper: #ffffff;
  --swd-ground: #f5f8fb;
  --swd-warm: #f4ecdf;
  --swd-red: #dc3446;
  --swd-red-soft: #fff0f2;
  --swd-green: #2b7061;
}

#main-content {
  overflow: clip;
  color: var(--swd-ink);
  background: var(--swd-paper);
}

/* Legacy city markup stays preserved in source but is inert in this HOLD draft. */
#main-content > :not(.swd-page):not(#kalkulator):not(#contact-component-container):not(script) {
  display: none !important;
}

.swd-page,
.swd-page * {
  box-sizing: border-box;
}

.swd-page {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--swd-paper);
}

.swd-shell {
  width: min(100% - 40px, 1240px);
  margin-inline: auto;
}

.swd-kicker {
  margin: 0 0 14px;
  color: var(--swd-red);
}

.swd-kicker::before {
  content: '';
  display: inline-block;
  width: 26px;
  height: 2px;
  margin: 0 10px 3px 0;
  background: currentColor;
}

.swd-page h1,
.swd-page h2,
.swd-page h3,
.swd-page p,
.swd-page figure,
.swd-page ol,
.swd-page ul,
.swd-page dl {
  margin-top: 0;
}

.swd-page h1,
.swd-page h2,
.swd-page h3 {
  color: var(--swd-ink);
}

.swd-page em {
  color: var(--swd-red);
  font-style: normal;
}

.swd-page a {
  color: inherit;
}

.swd-page a:focus-visible,
.swd-page summary:focus-visible {
  outline: 3px solid var(--swd-red);
  outline-offset: 4px;
}

#kontrakt-odbioru,
#kalkulator,
#contact-component-container {
  scroll-margin-top: 96px;
}

.swd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.swd-actions a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--swd-ink);
  border-radius: 11px;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}

.swd-actions a:first-child {
  color: #fff;
  background: var(--swd-ink);
}

.swd-actions a:hover {
  transform: translateY(-2px);
}

.swd-actions a:first-child:hover {
  background: var(--swd-red);
  border-color: var(--swd-red);
}

.swd-status {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--swd-line);
  color: var(--swd-muted);
}

.swd-status span:last-child {
  color: var(--swd-red);
  text-align: right;
}

.swd-hero {
  padding: 112px 0 64px;
  border-bottom: 1px solid var(--swd-line);
  background:
    linear-gradient(90deg, rgba(220,52,70,.035), transparent 43%),
    var(--swd-paper);
}

.swd-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr);
  align-items: center;
  gap: clamp(34px, 5vw, 76px);
  padding-top: 50px;
}

.swd-hero__copy {
  min-width: 0;
}

.swd-hero__copy h1 {
  max-width: 12ch;
  margin-bottom: 22px;
}

.swd-hero__copy > p[data-city-type='lead'] {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--swd-muted);
}

.swd-hero__visual {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--swd-line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(16,26,46,.11);
}

.swd-hero__visual picture,
.swd-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
}

.swd-hero__visual img {
  aspect-ratio: 860 / 620;
}

.swd-hero__visual figcaption {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 18px;
  padding: 13px 10px 3px;
  color: var(--swd-muted);
}

.swd-hero__visual figcaption strong {
  color: var(--swd-ink);
}

.swd-evidence {
  border-bottom: 1px solid var(--swd-line);
  background: var(--swd-ground);
}

.swd-evidence__grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.16fr) minmax(250px, .84fr) minmax(200px, .65fr);
  min-height: 318px;
}

.swd-evidence__grid > * {
  min-width: 0;
  padding: 44px 34px;
  border-left: 1px solid var(--swd-line);
}

.swd-evidence__grid > :first-child {
  padding-left: 0;
  border-left: 0;
}

.swd-evidence h2 {
  max-width: 17ch;
  margin-bottom: 0;
}

.swd-evidence article strong {
  display: block;
  margin-bottom: 14px;
  color: var(--swd-ink);
}

.swd-evidence article p,
.swd-evidence nav {
  color: var(--swd-muted);
}

.swd-evidence nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.swd-evidence nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--swd-line);
  text-decoration: none;
  color: var(--swd-ink);
}

.swd-contract,
.swd-scenario,
.swd-choice,
.swd-delivery,
.swd-faq {
  padding: clamp(58px, 7vw, 92px) 0;
  border-bottom: 1px solid var(--swd-line);
}

.swd-two-col {
  display: grid;
  grid-template-columns: minmax(250px, .75fr) minmax(0, 1.25fr);
  gap: clamp(38px, 7vw, 100px);
  align-items: start;
}

.swd-two-col > * {
  min-width: 0;
}

.swd-two-col > header h2 {
  max-width: 14ch;
  margin-bottom: 20px;
}

.swd-two-col > header > p:last-child {
  max-width: 35rem;
  margin: 0;
  color: var(--swd-muted);
}

.swd-contract__rows {
  margin: 0;
  border-top: 1px solid var(--swd-line);
}

.swd-contract__rows > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(190px, .75fr);
  gap: 22px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--swd-line);
}

.swd-contract__rows dt {
  color: var(--swd-red);
  font-weight: 800;
}

.swd-contract__rows dd {
  margin: 0;
}

.swd-contract__rows dd:last-child {
  color: var(--swd-muted);
}

.swd-scenario {
  background: var(--swd-ground);
}

.swd-scenario__path {
  counter-reset: swd-step;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--swd-line);
}

.swd-scenario__path li {
  counter-increment: swd-step;
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--swd-line);
}

.swd-scenario__path li::before {
  content: '0' counter(swd-step);
  color: var(--swd-red);
  font-weight: 800;
}

.swd-scenario__path strong {
  color: var(--swd-ink);
}

.swd-scenario__path span {
  color: var(--swd-muted);
}

.swd-choice__matrix {
  overflow: hidden;
  border: 1px solid var(--swd-line);
  border-radius: 24px;
  background: #fff;
}

.swd-choice__row {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) minmax(210px, 1fr) minmax(210px, 1fr);
}

.swd-choice__row + .swd-choice__row {
  border-top: 1px solid var(--swd-line);
}

.swd-choice__row > * {
  min-width: 0;
  padding: 22px 24px;
}

.swd-choice__row > * + * {
  border-left: 1px solid var(--swd-line);
}

.swd-choice__row > strong {
  background: var(--swd-ground);
}

.swd-choice__row p {
  margin-bottom: 0;
  color: var(--swd-muted);
}

.swd-delivery {
  background: var(--swd-ground);
}

.swd-delivery__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--swd-line);
}

.swd-delivery__list li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(190px, .6fr);
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--swd-line);
}

.swd-delivery__list b {
  color: var(--swd-red);
}

.swd-delivery__list em {
  color: var(--swd-muted);
  font-style: normal;
}

.swd-stack {
  padding: 42px 0;
  border-bottom: 1px solid var(--swd-line);
  background: #fff;
}

.swd-stack__grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) repeat(4, minmax(110px, .48fr));
  align-items: stretch;
  border-block: 1px solid var(--swd-line);
}

.swd-stack__grid > * {
  min-width: 0;
  padding: 24px;
  border-left: 1px solid var(--swd-line);
}

.swd-stack__grid > :first-child {
  padding-left: 0;
  border-left: 0;
}

.swd-stack__grid h2 {
  margin-bottom: 0;
}

.swd-stack__grid strong,
.swd-stack__grid small {
  display: block;
}

.swd-stack__grid small {
  margin-top: 8px;
  color: var(--swd-muted);
}

.swd-faq__list {
  border-top: 1px solid var(--swd-line);
}

.swd-faq details {
  border-bottom: 1px solid var(--swd-line);
}

.swd-faq summary {
  min-height: 64px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  list-style: none;
  color: var(--swd-ink);
}

.swd-faq summary::-webkit-details-marker {
  display: none;
}

.swd-faq summary span:first-child {
  color: var(--swd-red);
  font-weight: 800;
}

.swd-faq summary i {
  width: 18px;
  height: 18px;
  position: relative;
}

.swd-faq summary i::before,
.swd-faq summary i::after {
  content: '';
  position: absolute;
  inset: 8px 0 auto;
  height: 2px;
  background: var(--swd-red);
}

.swd-faq summary i::after {
  transform: rotate(90deg);
  transition: transform .2s ease;
}

.swd-faq details[open] summary i::after {
  transform: rotate(0);
}

.swd-faq details > div {
  max-width: 48rem;
  padding: 0 42px 22px 60px;
  color: var(--swd-muted);
}

.swd-editorial {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(0, 1.2fr);
  gap: 36px;
  padding: 30px 0;
  border-bottom: 1px solid var(--swd-line);
}

.swd-editorial > div,
.swd-editorial nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}

.swd-editorial span {
  color: var(--swd-muted);
}

.swd-editorial nav {
  justify-content: flex-end;
}

.swd-editorial a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-bottom: 1px solid var(--swd-line);
}

@media (max-width: 1023px) {
  .swd-hero__layout,
  .swd-two-col {
    grid-template-columns: 1fr;
  }

  .swd-hero__layout {
    gap: 38px;
  }

  .swd-evidence__grid {
    grid-template-columns: 1fr 1fr;
  }

  .swd-evidence__grid > :first-child {
    grid-column: 1 / -1;
    padding-left: 24px;
    border-bottom: 1px solid var(--swd-line);
  }

  .swd-evidence__grid > :nth-child(2) {
    border-left: 0;
  }

  .swd-stack__grid {
    grid-template-columns: 1fr 1fr;
  }

  .swd-stack__grid > :first-child {
    grid-column: 1 / -1;
    padding-left: 24px;
    border-bottom: 1px solid var(--swd-line);
  }

  .swd-stack__grid > :nth-child(even) {
    border-left: 0;
  }
}

@media (max-width: 700px) {
  .swd-shell {
    width: min(100% - 28px, 1240px);
  }

  .swd-status {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .swd-status span:last-child {
    text-align: left;
  }

  .swd-hero {
    padding: 98px 0 44px;
  }

  .swd-hero__layout {
    padding-top: 34px;
  }

  .swd-actions,
  .swd-actions a {
    width: 100%;
  }

  .swd-hero__visual {
    padding: 8px;
    border-radius: 22px;
  }

  .swd-hero__visual img {
    aspect-ratio: 360 / 500;
  }

  .swd-hero__visual figcaption {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-inline: 8px;
  }

  .swd-evidence__grid,
  .swd-contract__rows > div,
  .swd-scenario__path li,
  .swd-choice__row,
  .swd-delivery__list li,
  .swd-editorial {
    grid-template-columns: 1fr;
  }

  .swd-evidence__grid > * {
    padding: 30px 0;
    border-left: 0;
    border-bottom: 1px solid var(--swd-line);
  }

  .swd-evidence__grid > :first-child {
    padding-left: 0;
  }

  .swd-contract__rows > div,
  .swd-scenario__path li,
  .swd-delivery__list li {
    gap: 8px;
    padding: 18px 0;
  }

  .swd-contract__rows dd:last-child {
    padding-top: 6px;
  }

  .swd-choice__row > * {
    padding: 18px;
  }

  .swd-choice__row > * + * {
    border-left: 0;
    border-top: 1px solid var(--swd-line);
  }

  .swd-stack__grid {
    grid-template-columns: 1fr;
  }

  .swd-stack__grid > *,
  .swd-stack__grid > :first-child {
    grid-column: auto;
    padding: 18px 0;
    border-left: 0;
    border-bottom: 1px solid var(--swd-line);
  }

  .swd-faq summary {
    grid-template-columns: 36px minmax(0, 1fr) 24px;
    gap: 10px;
    padding: 10px 0;
  }

  .swd-faq details > div {
    padding: 0 28px 20px 46px;
  }

  .swd-editorial nav {
    justify-content: flex-start;
  }
}

@media (max-width: 360px) {
  .swd-page h1,
  .swd-page h2 {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .swd-page *,
  .swd-page *::before,
  .swd-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
