:root {
  color-scheme: light;
  --ink: #172027;
  --muted: #5d6872;
  --line: #d8e0e6;
  --paper: #f7fafb;
  --panel: #ffffff;
  --teal: #0d7c86;
  --teal-dark: #095965;
  --copper: #b5652a;
  --steel: #314757;
  --focus: #f2b84b;
  --danger: #b3261e;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal-dark);
  color: white;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

nav a {
  color: var(--steel);
  padding: 9px 10px;
  text-decoration: none;
  font-size: 0.95rem;
}

nav a:hover,
nav a:focus-visible {
  color: var(--teal-dark);
}

.hero {
  position: relative;
  min-height: min(620px, 78vh);
  display: grid;
  align-items: end;
  background-image: url("assets/instalacja-chlodnicza.png");
  background-size: cover;
  background-position: center right;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 22, 30, 0.9) 0%, rgba(8, 22, 30, 0.68) 43%, rgba(8, 22, 30, 0.18) 100%),
    linear-gradient(0deg, rgba(8, 22, 30, 0.72) 0%, rgba(8, 22, 30, 0) 42%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(280px, 380px);
  gap: clamp(22px, 5vw, 72px);
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 96px 0 72px;
}

.hero-copy {
  color: white;
}

.eyebrow,
.section-number,
.status-kicker {
  margin: 0 0 10px;
  color: var(--focus);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 5.1vw, 4.9rem);
  line-height: 1;
}

.hero-copy p:last-child {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
}

.primary-link {
  background: var(--focus);
  color: #18232b;
}

.secondary-link {
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: white;
}

.lead-card {
  align-self: end;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.lead-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lead-card li {
  position: relative;
  padding-left: 22px;
  color: var(--steel);
  font-weight: 700;
  line-height: 1.45;
}

.lead-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--teal);
}

.status-panel {
  align-self: end;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.status-panel strong {
  display: block;
  margin-bottom: 14px;
  color: var(--teal-dark);
  font-size: 2.4rem;
}

.status-panel p {
  margin: 12px 0 0;
  color: var(--muted);
}

.progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe8ec;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--copper));
  transition: width 180ms ease;
}

.quote-form,
.value-section,
.owner-section,
.audience-section,
.process-section,
.trust-section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.quote-form {
  display: grid;
  gap: 18px;
  padding: 18px 0 28px;
}

.form-section,
.value-section,
.owner-section,
.audience-section,
.process-section,
.trust-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 36px rgba(23, 32, 39, 0.06);
}

.form-section,
.value-section,
.owner-section,
.audience-section,
.process-section,
.trust-section {
  padding: clamp(20px, 4vw, 34px);
}

.value-section {
  margin-top: 28px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.value-grid article {
  min-height: 156px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

.value-grid strong {
  display: block;
  color: var(--teal-dark);
  font-size: 1.06rem;
}

.value-grid p,
.owner-section p,
.owner-points p,
.trust-section p {
  color: var(--muted);
  line-height: 1.6;
}

.owner-section,
.audience-section,
.process-section,
.trust-section {
  margin-top: 18px;
}

.owner-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.95fr);
  gap: 22px;
  align-items: start;
  border-color: rgba(181, 101, 42, 0.35);
}

.owner-points {
  display: grid;
  gap: 12px;
}

.owner-points article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8ef;
}

.owner-points strong {
  color: var(--copper);
}

.audience-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: center;
}

.audience-list,
.trust-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.audience-list span,
.trust-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: 6px;
  padding: 0 12px;
  background: #eef7f7;
  color: var(--teal-dark);
  font-weight: 800;
}

.form-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 28px;
  border-color: rgba(13, 124, 134, 0.42);
}

.form-intro {
  align-self: start;
  position: sticky;
  top: 92px;
}

.form-intro p {
  color: var(--muted);
  line-height: 1.6;
}

.form-fields {
  min-width: 0;
}

.compact-heading {
  grid-template-columns: 42px minmax(0, 1fr);
  margin-bottom: 18px;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
  letter-spacing: 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading h2,
.form-section h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.section-heading p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.question-list {
  display: grid;
  gap: 14px;
}

.question-list label {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

.question-list span {
  padding-top: 13px;
}

.verification-box {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(181, 101, 42, 0.35);
  border-radius: 8px;
  background: #fff8ef;
}

.verification-box[hidden],
[hidden] {
  display: none;
}

.honeypot {
  display: none;
}

label,
.choice-group legend {
  color: var(--steel);
  font-size: 0.95rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #c8d3db;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  outline: none;
}

input,
select {
  min-height: 46px;
  padding: 0 13px;
}

textarea {
  min-height: 112px;
  resize: vertical;
  padding: 12px 13px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 124, 134, 0.16);
}

.wide,
.full-label {
  grid-column: 1 / -1;
}

.compact-note {
  display: block;
  margin-top: 18px;
}

.choice-group {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
  margin: 22px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.choice-group legend {
  padding: 0 8px;
}

.choice-group label,
.consent-box label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  line-height: 1.45;
}

input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  accent-color: var(--teal);
}

.consent-box {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-left: 5px solid var(--teal);
  background: #eef7f7;
}

.select-all-consents {
  justify-self: start;
  width: auto;
  min-height: 42px;
  margin: 0 0 4px;
  padding: 0 14px 0 14px;
  border: 1px solid rgba(13, 124, 134, 0.28);
  border-radius: 6px;
  background: white;
  border-bottom: 1px solid rgba(13, 124, 134, 0.18);
  color: var(--teal-dark);
  font-weight: 800;
  cursor: pointer;
}

.select-all-consents:hover,
.select-all-consents:focus-visible {
  border-color: var(--teal);
  background: #f7fdfd;
}

.full-label {
  display: block;
  margin-top: 18px;
}

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

button {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.primary {
  background: var(--teal-dark);
  color: white;
}

.primary:hover,
.primary:focus-visible {
  background: #074b55;
}

.secondary {
  border: 1px solid #bfccd3;
  background: white;
  color: var(--steel);
}

.secondary:hover,
.secondary:focus-visible {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.legal-note {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.process-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 26px;
}

.process-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.process-list li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

.process-list li::before {
  content: counter(steps);
  grid-row: 1 / span 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal-dark);
  color: white;
  font-weight: 800;
}

.process-list strong,
.process-list span {
  display: block;
  grid-column: 2;
}

.process-list strong {
  color: var(--ink);
}

.process-list span {
  color: var(--muted);
  line-height: 1.5;
}

.trust-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 26px;
  align-items: center;
}

.trust-metrics span {
  background: var(--steel);
  color: white;
}

.success-message {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(13, 124, 134, 0.28);
  border-radius: 8px;
  background: #eef7f7;
  color: var(--teal-dark);
  font-weight: 800;
  line-height: 1.45;
}

pre {
  min-height: 220px;
  max-height: 520px;
  overflow: auto;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101820;
  color: #eef8f8;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.55;
}

.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12);
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner,
  .owner-section,
  .audience-section,
  .form-hero,
  .process-section,
  .trust-section {
    grid-template-columns: 1fr;
  }

  .form-intro {
    position: static;
  }

  .hero-inner {
    padding: 76px 0 40px;
  }

  h1 {
    max-width: 12ch;
  }

  .field-grid,
  .choice-group,
  .question-list label,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .question-list span {
    padding-top: 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 12px 16px;
  }

  nav a {
    padding: 8px 6px;
    font-size: 0.88rem;
  }

  .quote-form,
  .hero-inner {
    width: min(100% - 24px, 1160px);
  }

  .form-section,
  .status-panel {
    padding: 18px;
  }

  h1 {
    font-size: 2.4rem;
  }
}

.thanks-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(8, 22, 30, 0.86), rgba(8, 22, 30, 0.5)),
    url("assets/instalacja-chlodnicza.png") center / cover;
}

.thanks-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.thanks-card {
  width: min(720px, 100%);
  padding: clamp(26px, 5vw, 48px);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.thanks-card h1 {
  max-width: 12ch;
  color: var(--ink);
  font-size: clamp(2.1rem, 4vw, 4rem);
}

.thanks-card p:not(.section-number) {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.65;
}
