body.public-body {
  --wizard-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wizard-duration: 280ms;
  background: #eef3fb;
  color: #12263a;
}

body.public-body label {
  color: #12263a;
}

.public-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 14px;
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0068f5;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.public-brand-mark {
  width: 22px;
  height: 22px;
}

/* Stroke is on the sprite. External <use> inherits color, not fill or stroke. */
.icon {
  display: block;
  flex: none;
  overflow: visible;
  color: inherit;
}

.public-top-note {
  color: #7b8ba3;
  font-size: 0.92rem;
  font-weight: 500;
}

.public-progress {
  height: 4px;
  background: #d7e1ef;
}

.public-progress span {
  display: block;
  width: 16%;
  height: 100%;
  background: #0068f5;
  transition: width 240ms ease;
}

.public-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 64px;
}

.public-main--landing {
  padding-top: 72px;
}

.public-main h1 {
  margin: 0;
  max-width: 16em;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #12263a;
}

.public-intro {
  max-width: 62ch;
  margin: 14px 0 0;
  color: #667892;
  font-size: 1.05rem;
  line-height: 1.5;
  font-weight: 500;
}

/* Steps share one row so the outgoing panel can leave over the incoming one. */
.public-main > #wizardProgress {
  grid-row: 1;
}

.public-main > #wizardTitle {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}

.public-main > #wizardIntro {
  grid-column: 1;
  grid-row: 3;
  min-width: 0;
}

.public-main > [data-step] {
  grid-column: 1;
  grid-row: 4;
  min-width: 0;
}

.public-card {
  margin-top: 28px;
  padding: 22px;
  background: #fff;
  border: 1px solid #e5edf6;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(18, 38, 58, 0.04);
}

.public-card-title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.public-card--action {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.public-card--action .field {
  flex: 1;
  margin: 0;
}

.public-card--inset {
  margin: 0;
  padding: 16px;
  box-shadow: none;
}

.address-primary,
.address-extra,
.contact-grid {
  display: grid;
  gap: 12px;
  align-items: end;
}

.address-primary {
  grid-template-columns: 1.3fr 1.4fr 0.8fr auto;
}

.address-extra,
.contact-grid {
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: 12px;
}

.address-extra {
  grid-template-columns: 1fr 1fr;
  max-width: 640px;
}

body.public-body .field {
  margin-bottom: 0;
}

body.public-body input[type="text"],
body.public-body input[type="tel"],
body.public-body input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d5deea;
  border-radius: 12px;
  background: #fff;
  color: #12263a;
  font: inherit;
}

body.public-body input::placeholder {
  color: #93a0b5;
}

body.public-body .btn-primary {
  background: linear-gradient(180deg, #4a93f8 0%, #0068f5 100%);
  border-color: #0068f5;
  border-radius: 12px;
  box-shadow: none;
  min-height: 46px;
  padding-inline: 22px;
  white-space: nowrap;
}

body.public-body .btn-primary:hover {
  background: linear-gradient(180deg, #2f82f6 0%, #0056d4 100%);
  border-color: #0056d4;
  box-shadow: none;
}

body.public-body .btn-secondary,
body.public-body .btn-ghost {
  background: transparent;
  border-color: transparent;
  color: #3d5270;
  box-shadow: none;
}

body.public-body .btn-ghost:hover,
body.public-body .btn-secondary:hover {
  background: rgba(0, 104, 245, 0.08);
  border-color: transparent;
}

.field-optional,
.public-hint,
.choice-desc {
  color: #7b8ba3;
  font-weight: 500;
}

.field-optional {
  font-size: 0.82rem;
}

.public-hint {
  margin: 12px 0 0;
  font-size: 0.95rem;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: #5f7390;
  font-size: 0.92rem;
  font-weight: 600;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0068f5;
}

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

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

.choice-grid--inline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0;
}

.choice-set {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.choice-set legend {
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 700;
}

body.public-body .choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid #e4ebf5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(18, 38, 58, 0.03);
  cursor: pointer;
  transition:
    border-color var(--wizard-duration) var(--wizard-ease),
    background-color var(--wizard-duration) var(--wizard-ease),
    box-shadow var(--wizard-duration) var(--wizard-ease),
    transform var(--wizard-duration) var(--wizard-ease);
}

body.public-body .choice--compact {
  align-items: center;
  justify-content: center;
  min-height: 52px;
}

body.public-body .choice:has(input:checked) {
  border-color: #0068f5;
  background: #f3f8ff;
  box-shadow: 0 0 0 1px #0068f5;
}

@media (hover: hover) {
  body.public-body .choice:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(18, 38, 58, 0.07);
  }

  body.public-body .choice:hover:has(input:checked) {
    box-shadow: 0 0 0 1px #0068f5, 0 8px 18px rgba(18, 38, 58, 0.07);
  }
}

body.public-body .choice input {
  margin: 3px 0 0;
  accent-color: #0068f5;
}

.choice-title,
.choice-desc {
  display: block;
}

.choice-title {
  font-weight: 700;
  line-height: 1.3;
}

.choice-desc {
  margin-top: 3px;
  font-size: 0.9rem;
  line-height: 1.35;
}

.wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.analysis-steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 8px 22px;
  background: #fff;
  border: 1px solid #e5edf6;
  border-radius: 22px;
}

.analysis-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid #eef3f8;
  transition: opacity var(--wizard-duration) var(--wizard-ease);
}

.analysis-steps li:first-child {
  border-top: 0;
}

.analysis-steps li[data-phase="pending"] {
  opacity: 0.55;
}

.analysis-steps li[data-phase="active"],
.analysis-steps li[data-phase="done"] {
  opacity: 1;
}

.analysis-mark {
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border: 2px solid #c5d0e0;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  color: transparent;
  font-weight: 700;
}

.analysis-steps li[data-phase="done"] .analysis-mark {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

.analysis-steps li[data-phase="done"] .analysis-mark::before {
  content: "✓";
}

.analysis-steps li[data-phase="active"] .analysis-mark {
  border: 3px solid #dbe7ff;
  border-top-color: #0068f5;
  animation: public-spin 0.8s linear infinite;
}

.analysis-teaser-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -8px 28px 0;
  padding: 16px 18px;
  background: #f3f8ff;
  border: 1px solid #d6e6ff;
  border-radius: 16px;
  position: relative;
}

#analysisTeaserCard:not(.hidden) {
  animation: wizard-rise var(--wizard-duration) var(--wizard-ease) both;
}

.analysis-teaser-kicker {
  margin: 0 0 4px;
  color: #0068f5;
  font-weight: 700;
}

.analysis-teaser-card p {
  margin: 0;
}

.public-matched-address {
  margin-top: 6px !important;
  color: #5f7390;
  font-size: 0.92rem;
  font-weight: 600;
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 18px 0 0;
}

.consent input {
  margin-top: 4px;
  accent-color: #0068f5;
}

.result-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 16px;
  margin-top: 28px;
}

.result-facts,
.result-reco {
  border-radius: 22px;
  padding: 22px;
}

.result-facts {
  background: #fff;
  border: 2px solid #d5deea;
}

.result-reco {
  background: #f8fafc;
  border: 1px solid #e5edf6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

[data-variant="ftth"] .result-facts {
  border-color: #16a34a;
}

[data-variant="ftth"] .result-reco {
  background: #f0fdf4;
}

[data-variant="ftth"] .result-kicker,
[data-variant="ftth"] .result-reco .btn-primary {
  color: #15803d;
}

[data-variant="ftth"] .result-reco .btn-primary {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

[data-variant="hot"] .result-facts,
[data-variant="networks"] .result-facts {
  border-color: #0068f5;
}

[data-variant="hot"] .result-reco,
[data-variant="networks"] .result-reco {
  background: #f3f8ff;
}

[data-variant="future"] .result-facts {
  border-color: #64748b;
}

[data-variant="future"] .result-reco {
  background: #f8fafc;
}

[data-variant="future"] .result-kicker {
  color: #475569;
}

.result-kicker {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 700;
}

[data-variant="ftth"] .result-facts .result-kicker,
[data-variant="hot"] .result-facts .result-kicker,
[data-variant="networks"] .result-facts .result-kicker {
  color: #64748b;
}

.result-facts h2,
.result-operators-title {
  margin: 8px 0 0;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

#resultFacts {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 20px;
  margin: 18px 0 0;
}

#resultFacts dt {
  color: #7b8ba3;
  font-weight: 500;
}

#resultFacts dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.result-reco p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

.result-reco .btn-primary {
  margin-top: auto;
}

.result-operators-title {
  margin-top: 28px;
}

.public-operator-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.public-operator-card {
  padding: 16px 18px;
  border: 1px solid #e4ebf5;
  border-radius: 16px;
  background: #fff;
}

.public-operator-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

[data-step="result"].is-entering .result-facts,
[data-step="result"].is-entering .result-reco {
  animation: wizard-rise var(--wizard-duration) var(--wizard-ease) both;
}

[data-step="result"].is-entering .result-operators-title,
[data-step="result"].is-entering .public-operator-card {
  animation: wizard-rise var(--wizard-duration) var(--wizard-ease) both;
  animation-delay: 40ms;
}

[data-step="result"].is-entering .public-operator-card:nth-child(2) { animation-delay: 80ms; }
[data-step="result"].is-entering .public-operator-card:nth-child(3) { animation-delay: 120ms; }
[data-step="result"].is-entering .public-operator-card:nth-child(4) { animation-delay: 160ms; }
[data-step="result"].is-entering .public-operator-card:nth-child(5) { animation-delay: 200ms; }
[data-step="result"].is-entering .public-operator-card:nth-child(6) { animation-delay: 240ms; }
[data-step="result"].is-entering .public-operator-card:nth-child(7) { animation-delay: 280ms; }
[data-step="result"].is-entering .public-operator-card:nth-child(n + 8) { animation-delay: 320ms; }

.public-operator-meta {
  margin: 0;
  display: grid;
  gap: 4px;
}

.public-operator-meta p {
  margin: 0;
}

.public-operator-meta a {
  color: #0068f5;
}

body.public-body .error-banner {
  color: #b42318;
  font-weight: 600;
}

@keyframes public-spin {
  to {
    transform: rotate(360deg);
  }
}

#wizardTitle.is-entering.is-forward,
#wizardIntro.is-entering.is-forward,
.public-main > [data-step].is-entering.is-forward {
  animation: wizard-enter-forward var(--wizard-duration) var(--wizard-ease) both;
}

#wizardTitle.is-entering.is-back,
#wizardIntro.is-entering.is-back,
.public-main > [data-step].is-entering.is-back {
  animation: wizard-enter-back var(--wizard-duration) var(--wizard-ease) both;
}

.public-main > [data-step].is-entering {
  z-index: 1;
}

.public-main > [data-step].is-leaving {
  z-index: 2;
  pointer-events: none;
}

.public-main > [data-step].is-leaving.is-forward {
  animation: wizard-leave-forward var(--wizard-duration) var(--wizard-ease) forwards;
}

.public-main > [data-step].is-leaving.is-back {
  animation: wizard-leave-back var(--wizard-duration) var(--wizard-ease) forwards;
}

@keyframes wizard-leave-forward {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-12px); }
}

@keyframes wizard-leave-back {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(12px); }
}

@keyframes wizard-enter-forward {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes wizard-enter-back {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: none; }
}

@keyframes wizard-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  body.public-body .choice,
  .analysis-steps li,
  #wizardTitle.is-entering,
  #wizardIntro.is-entering,
  #analysisTeaserCard:not(.hidden),
  .public-main > [data-step].is-entering,
  .public-main > [data-step].is-leaving,
  [data-step="result"].is-entering .result-facts,
  [data-step="result"].is-entering .result-reco,
  [data-step="result"].is-entering .result-operators-title,
  [data-step="result"].is-entering .public-operator-card {
    animation: none !important;
    transition: none !important;
  }

  body.public-body .choice:hover {
    transform: none;
  }
}

@media (max-width: 800px) {
  .address-primary,
  .address-extra,
  .contact-grid,
  .choice-grid--3,
  .choice-grid--inline,
  .result-layout {
    grid-template-columns: 1fr;
  }

  .public-card--action,
  .analysis-teaser-card,
  .wizard-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .analysis-teaser-card {
    margin-left: 0;
    margin-right: 0;
  }

  .public-main h1 {
    max-width: none;
  }
}

body.public-body.public-landing {
  --landing-max: 1240px;
  background: #f4fafe;
}

body.public-body.public-landing :focus-visible {
  outline-color: #0068f5;
}

.landing-wrap {
  width: min(var(--landing-max), calc(100% - 40px));
  margin-inline: auto;
}

.landing-header {
  background: #f4fafe;
}

.landing-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 76px;
}

.landing-header .public-brand {
  justify-self: start;
}

.landing-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
}

.landing-nav a {
  color: #5f7390;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.landing-nav a:hover {
  color: #0068f5;
}

.landing-header-cta {
  justify-self: end;
}

.landing-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d5deea;
  border-radius: 12px;
  background: #fff;
  color: #12263a;
  cursor: pointer;
}

.landing-hero {
  position: relative;
  overflow: hidden;
  background: #f4fafe;
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.7fr);
  gap: 36px;
  align-items: center;
  padding: 48px 0 64px;
}

.landing-hero h1 {
  margin: 0;
  max-width: 14em;
  color: #12263a;
  font-size: clamp(2.05rem, 4vw, 3.05rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.landing-hero-accent {
  color: #0068f5;
}

.landing-intro,
.landing-lead {
  color: #667892;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.55;
}

.landing-intro {
  max-width: 48ch;
  margin: 14px 0 0;
}

.landing-address-form {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 12px 32px rgba(18, 38, 58, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.landing-address {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.2fr) minmax(7.5rem, 0.9fr) auto;
  gap: 10px;
  align-items: end;
}

.landing-address .field:nth-child(3) label {
  white-space: nowrap;
}

.landing-trust {
  display: flex;
  flex-wrap: nowrap;
  grid-column: 1 / -1;
  gap: 12px 32px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  color: #3d5270;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.landing-trust li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-trust svg {
  width: 36px;
  height: 36px;
  color: #0068f5;
  flex: none;
}

@media (max-width: 800px) {
  .landing-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 16px;
    white-space: normal;
  }

  .landing-trust li {
    align-items: flex-start;
    min-width: 0;
  }
}

.landing-hero-copy,
.landing-trust {
  position: relative;
  z-index: 1;
}

.landing-hero-visual {
  min-height: 0;
}

.landing-banner-art {
  overflow: hidden;
  background: #eef6ff;
}

.landing-scene {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 30%;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
}

.landing-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #f4fafe 0%, #f4fafe 8%, rgba(244, 250, 254, 0) 42%),
    linear-gradient(#f4fafe, rgba(244, 250, 254, 0) 11%),
    linear-gradient(transparent 88%, #f4fafe);
}

.landing-scene-photo,
.landing-match-photo,
.landing-banner-art svg,
.landing-mini-map svg {
  display: block;
  width: 100%;
  height: 100%;
}

.landing-scene-photo {
  object-fit: cover;
  object-position: 64% 42%;
}

.landing-hero-card,
.landing-outcome,
.landing-match-card,
.landing-contact-card,
.landing-step,
.landing-faq details {
  background: #fff;
  border: 1px solid #e5edf6;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(18, 38, 58, 0.05);
}

.landing-hero-card {
  position: absolute;
  z-index: 2;
  right: max(20px, calc((100% - min(var(--landing-max), calc(100% - 40px))) / 2));
  bottom: 248px;
  width: 280px;
  margin: 0;
  padding: 16px 16px 12px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(18, 38, 58, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.landing-hero-card-title,
.landing-outcome-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #12263a;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.landing-hero-card-title {
  color: #00a63f;
  font-size: 1rem;
  white-space: nowrap;
}

.landing-hero-card-rate {
  display: block;
  margin-top: 2px;
  color: inherit;
  font-size: calc(0.9rem + 3pt);
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.landing-hero-card-speed,
.landing-speed,
.landing-example-note,
.landing-kicker {
  margin: 8px 0 0;
  color: #667892;
  font-size: 0.9rem;
  font-weight: 600;
}

.landing-hero-card-speed {
  color: #12263a;
}

.landing-check,
.landing-pin {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex: none;
}

.landing-check {
  background: #00c853;
  color: #fff;
}

.landing-pin {
  background: #fff7ed;
  color: #ea580c;
}

.landing-operators {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.landing-hero-card .landing-operators {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #d5deea;
  border-radius: 14px;
}

.landing-operators li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #12263a;
  font-size: 0.92rem;
  font-weight: 700;
}

.landing-op-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.landing-op-dot--a { background: #0068f5; }
.landing-op-dot--b { background: #7c3aed; }
.landing-op-dot--c { background: #0891b2; }

.landing-section {
  padding: 56px 0 32px;
  scroll-margin-top: 18px;
}

.landing-section--band {
  background: #e9f6fe;
}

.landing-section--how {
  padding-bottom: 48px;
}

.landing-section h2 {
  margin: 0;
  color: #12263a;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.landing-section--center h2,
.landing-section--center .landing-lead {
  text-align: center;
}

.landing-lead {
  max-width: 62ch;
  margin: 10px 0 0;
}

.landing-section--center .landing-lead {
  margin-inline: auto;
}

.landing-lead--left {
  margin-left: 0;
  text-align: left;
}

.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px;
  align-items: stretch;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.landing-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
  padding: 22px;
}

.landing-step h3,
.landing-benefit-title,
.landing-contact-card h3 {
  display: block;
  margin: 0;
  color: #12263a;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.landing-step h3 {
  margin-top: 0;
  font-size: 1.35rem;
}

.landing-step p {
  grid-column: 1 / -1;
}

.landing-step p,
.landing-benefit-desc,
.landing-outcome p,
.landing-contact-card p,
.landing-faq p,
.landing-finale-copy p {
  margin: 8px 0 0;
  color: #667892;
  font-weight: 500;
  line-height: 1.5;
}

.landing-outcome .landing-speed {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #12263a;
}

.landing-speed-icon {
  display: grid;
  place-items: center;
  color: #0068f5;
  flex: none;
}

.landing-speed-value {
  font-weight: 800;
}

.landing-step-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eff6ff;
  color: #0068f5;
  flex: none;
}

.landing-step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  left: calc(100% + 22px);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.2 6.4 16.4 12 9.2 17.6' fill='none' stroke='%230068f5' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 26px 26px no-repeat;
  box-shadow:
    0 0 0 1px #cfe3f8,
    0 6px 16px rgba(0, 104, 245, 0.18);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

#dopasowanie {
  position: relative;
  overflow: hidden;
  background: #f4fafe;
}

.landing-match {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.landing-match-scene {
  position: absolute;
  z-index: 0;
  inset: 0 36% 0 0;
  overflow: hidden;
  pointer-events: none;
}

.landing-match-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(270deg, #f4fafe 0%, #f4fafe 8%, rgba(244, 250, 254, 0) 46%),
    linear-gradient(#f4fafe, rgba(244, 250, 254, 0) 12%),
    linear-gradient(transparent 88%, #f4fafe);
}

.landing-match-photo {
  object-fit: cover;
  object-position: 38% 42%;
}

#dopasowanie .landing-match-card {
  position: relative;
  z-index: 1;
  grid-column: 2;
}

.landing-match-card,
.landing-contact-card {
  padding: 28px;
}

.landing-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  margin-top: 18px;
}

.landing-q {
  margin: 0 0 8px;
  color: #12263a;
  font-size: 0.95rem;
  font-weight: 700;
}

.landing-fake-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #d5deea;
  border-radius: 12px;
  background: #fff;
  color: #93a0b5;
  font-weight: 600;
}

.landing-fake-field svg {
  color: #7b8ba3;
  flex: none;
}

.landing-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  container-type: inline-size;
}

.landing-pills li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 6px 0.55em;
  border: 1px solid #d5deea;
  border-radius: 999px;
  background: #fff;
  color: #12263a;
  font-size: clamp(0.68rem, 5cqi, 0.86rem);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.landing-match-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.landing-outcomes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 26px;
  text-align: left;
}

.landing-outcome {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
}

.landing-outcome--available {
  border-color: #5ddea0;
  background: #fff;
  box-shadow:
    inset 0 0 28px rgba(0, 168, 63, 0.16),
    0 10px 30px rgba(18, 38, 58, 0.05);
}

.landing-outcome--planned {
  border-color: #fdba74;
  background: #fff;
  box-shadow:
    inset 0 0 28px rgba(234, 88, 12, 0.16),
    0 10px 30px rgba(18, 38, 58, 0.05);
}

.landing-outcome-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.landing-outcome-copy {
  min-width: 0;
}

.landing-outcome-title {
  display: block;
  color: #ea580c;
  font-size: 1.6rem;
}

.landing-outcome--available .landing-outcome-title {
  color: #00a63f;
}

.landing-outcome .landing-check {
  background: #e8f8ee;
  color: #00a63f;
}

.landing-outcome .landing-check,
.landing-outcome .landing-pin {
  width: 76px;
  height: 76px;
}

.landing-outcome .landing-check svg,
.landing-outcome .landing-pin svg {
  width: 44px;
  height: 44px;
}

.landing-outcome .landing-operators {
  flex-direction: row;
  flex-wrap: wrap;
}

.landing-outcome .landing-operators li {
  padding: 8px 12px;
  border: 1px solid #e5edf6;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.landing-outcome .btn-primary {
  align-self: flex-end;
  margin-top: auto;
}

.landing-outcome--planned .landing-outcome-copy p {
  margin-bottom: 0;
}

.landing-plan {
  display: flex;
  gap: 14px;
  align-items: center;
  width: 100%;
  margin-top: 0;
  margin-bottom: 16px;
}

.landing-mini-map {
  width: 148px;
  height: 112px;
  flex: none;
  border-radius: 16px;
  overflow: hidden;
}

.landing-plan-event {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.08);
}

.landing-cal {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: #fff7ed;
  color: #ea580c;
}

.landing-plan-copy {
  min-width: 0;
}

.landing-plan-copy .landing-kicker {
  margin-top: 0;
  color: #ea580c;
}

.landing-outcome .landing-plan-date {
  margin: 2px 0 0;
  color: #12263a;
  font-size: 1.15rem;
  font-weight: 800;
}

.landing-why {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.landing-benefits,
.landing-assurances,
.landing-contact-points,
.landing-banner-notes {
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.landing-benefits li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  aspect-ratio: 1;
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid #d5e6f4;
  border-radius: 16px;
  background: #fff;
}

.landing-benefits .landing-step-icon {
  width: 40px;
  height: 40px;
}

.landing-benefits li > span:not(.landing-step-icon) {
  min-width: 0;
}

.landing-benefits .landing-benefit-title {
  font-size: 0.95rem;
  line-height: 1.25;
}

.landing-benefits .landing-benefit-desc {
  margin-top: 6px;
  font-size: 0.82rem;
  line-height: 1.4;
}

.landing-assurances li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.landing-benefit-desc {
  display: block;
}

.landing-contact-card p {
  margin-top: 10px;
}

.landing-contact-trust {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: center;
  white-space: normal;
}

.landing-contact-trust span {
  min-width: 0;
}

.landing-contact-trust .icon {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 1px;
}

.landing-contact-points {
  display: grid;
  gap: 8px;
  margin: 16px 0 18px;
  color: #12263a;
  font-weight: 700;
}

.landing-contact-points li {
  display: flex;
  gap: 8px;
  align-items: center;
}

.landing-contact-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0068f5;
  flex: none;
}

.landing-assurances-section {
  background: #fff;
  padding: 48px 0 32px;
}

.landing-assurances {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  align-items: stretch;
  background-image:
    linear-gradient(#c5dff5, #c5dff5),
    linear-gradient(#c5dff5, #c5dff5),
    linear-gradient(#c5dff5, #c5dff5);
  background-size: 1px 100%;
  background-position: 25% 0, 50% 0, 75% 0;
  background-repeat: no-repeat;
}

.landing-assurances li {
  padding: 4px 28px;
}

.landing-assurances li:nth-child(4n + 1) {
  padding-left: 0;
}

.landing-assurances li:nth-child(4n) {
  padding-right: 0;
}

.landing-faq-layout {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 12px 56px;
  align-items: start;
}

.landing-faq-layout > h2 {
  padding-top: 14px;
}

.landing-faq {
  display: grid;
  gap: 10px;
  margin: 0;
  text-align: left;
}

.landing-faq details {
  padding: 0 18px;
  border-radius: 16px;
}

body.public-body.public-landing .landing-faq summary {
  position: relative;
  padding: 16px 32px 16px 0;
  color: #12263a;
  font-size: 1.02rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

body.public-body.public-landing .landing-faq summary::-webkit-details-marker {
  display: none;
}

body.public-body.public-landing .landing-faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #0068f5;
  border-bottom: 2px solid #0068f5;
  transform: translateY(-70%) rotate(45deg);
}

body.public-body.public-landing .landing-faq details[open] summary::after {
  transform: translateY(-20%) rotate(225deg);
}

.landing-faq p {
  margin: 0 0 16px;
}

.landing-finale {
  padding-bottom: 72px;
}

.landing-finale-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.95fr);
  gap: 28px;
  align-items: center;
}

.landing-finale-copy .btn-primary {
  margin-top: 18px;
}

.landing-banner-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  color: #3d5270;
  font-weight: 700;
}

.landing-banner-notes li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.landing-banner-notes li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0068f5;
}

.landing-banner-art {
  height: 100%;
  min-height: 240px;
  border-radius: 22px;
}

@media (max-width: 980px) {
  .landing-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px 0;
  }

  .landing-header .public-brand {
    margin-right: auto;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
  }

  .landing-menu-button {
    display: inline-flex;
    order: 2;
  }

  .landing-header-cta {
    order: 3;
    padding-inline: 14px;
  }

  .landing-nav {
    display: none;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: flex-start;
    order: 4;
    gap: 0;
    padding: 6px 0 10px;
  }

  .landing-nav.is-open {
    display: flex;
  }

  .landing-nav a {
    padding: 10px 0;
  }

  .landing-hero-grid,
  .landing-steps,
  .landing-match,
  .landing-outcomes,
  .landing-why,
  .landing-faq-layout,
  .landing-finale-layout,
  .landing-address,
  .landing-preview,
  .landing-assurances {
    grid-template-columns: 1fr;
  }

  .landing-faq-layout > h2 {
    padding-top: 0;
  }

  .landing-step:not(:last-child)::after {
    display: none;
  }

  .landing-hero-visual {
    position: relative;
    min-height: 0;
  }

  .landing-scene {
    position: relative;
    inset: auto;
    width: 100vw;
    height: min(78vw, 440px);
    margin-left: calc(50% - 50vw);
  }

  .landing-scene::after {
    background: linear-gradient(180deg, #f4fafe 0%, rgba(244, 250, 254, 0) 24%);
  }

  .landing-scene-photo {
    object-position: center 42%;
  }

  .landing-hero-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: -64px 12px 0;
  }

  .landing-hero h1,
  .landing-intro {
    max-width: none;
  }

  .landing-address .btn-primary,
  .landing-outcome .btn-primary,
  .landing-contact-card .btn-primary {
    width: 100%;
  }

  #dopasowanie .landing-match-card {
    grid-column: auto;
  }

  .landing-match-scene {
    position: relative;
    inset: auto;
    width: 100vw;
    height: min(78vw, 440px);
    margin-top: 28px;
    margin-left: calc(50% - 50vw);
  }

  .landing-match-scene::after {
    background: linear-gradient(180deg, #f4fafe 0%, rgba(244, 250, 254, 0) 24%);
  }

  .landing-match-photo {
    object-position: center 42%;
  }

  .landing-finale-copy .btn-primary {
    width: 100%;
  }

  .landing-assurances {
    grid-template-columns: 1fr 1fr;
    row-gap: 22px;
    background-image: linear-gradient(#c5dff5, #c5dff5);
    background-position: 50% 0;
  }

  .landing-assurances li {
    padding: 4px 22px;
  }

  .landing-assurances li:nth-child(2n + 1) {
    padding-left: 0;
  }

  .landing-assurances li:nth-child(2n) {
    padding-right: 0;
  }
}

@media (max-width: 560px) {
  .landing-wrap {
    width: min(var(--landing-max), calc(100% - 28px));
  }

  .landing-outcomes {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-outcome {
    min-width: 0;
    max-width: 100%;
  }

  body.public-body.public-landing .btn-primary {
    white-space: normal;
    text-align: center;
  }

  .landing-banner-art {
    max-width: 100%;
    overflow: clip;
  }

  .landing-benefits {
    grid-template-columns: 1fr;
  }

  .landing-benefits li {
    aspect-ratio: auto;
    flex-direction: row;
    align-items: flex-start;
  }

  .landing-assurances,
  .landing-plan {
    grid-template-columns: 1fr;
  }

  .landing-assurances {
    row-gap: 18px;
    background-image: none;
  }

  .landing-assurances li,
  .landing-assurances li:nth-child(2n),
  .landing-assurances li:nth-child(2n + 1),
  .landing-assurances li:nth-child(4n),
  .landing-assurances li:nth-child(4n + 1) {
    padding: 0;
  }

  .landing-plan {
    display: grid;
  }

  .landing-mini-map {
    width: 100%;
  }
}
