/* Urbanist (SIL OFL 1.1, assets/fonts/OFL.txt) – hostowana lokalnie, bez połączeń z Google */
@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("assets/fonts/urbanist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("assets/fonts/urbanist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #F1F1EB;
  --surface: #FFFFFF;
  --surface-2: #E8E8E0;
  --ink: #1E1E1E;
  --muted: #62625C;
  --line: #D6D6CD;
  --green: #7ED956;
  --green-soft: #E3F5D8;
  --green-ink: #2F6E17;

  --font: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-lg: 28px;
  --r-md: 18px;
  --r-pill: 999px;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }
.svg-sprite { position: absolute; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--green-ink); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font: 600 16px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #3a3a3a; }
.btn-light { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--ink); }
.btn-green { background: var(--green); color: var(--ink); }
.btn-green:hover { background: #6cc944; }
.btn-block { width: 100%; }

/* ---------- nav ---------- */
.nav-wrap {
  position: sticky; top: 0; z-index: 20;
  padding: 14px var(--gutter) 0;
}
.nav {
  max-width: 980px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 8px 8px 8px 22px;
}
.nav-logo img { height: 26px; width: auto; }
.nav-links { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 26px; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { padding: 11px 18px; font-size: 15px; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(56px, 8vw, 104px);
  display: grid;
  grid-template-columns: 1.1fr 1px .9fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
/* hairline divider echoing the vertical rule in the logo */
.hero::before {
  content: ""; grid-column: 2; grid-row: 1;
  align-self: stretch; width: 1px; background: var(--line);
}
.hero-copy { grid-column: 1; grid-row: 1; }
.calc { grid-column: 3; grid-row: 1; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 14px; font-size: 14px; font-weight: 500; color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

h1, .contact h2 { font-size: clamp(44px, 6.4vw, 80px); margin-top: 22px; }
h1 .light, .contact h2 .light { display: block; font-weight: 300; color: var(--green-ink); }
h1 .bold, .contact h2 .bold { display: block; font-weight: 800; }

.lead { margin-top: 24px; font-size: 19px; color: var(--muted); max-width: 34em; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions svg { color: #25a244; }

.hero-facts {
  list-style: none; padding: 24px 0 0; margin: 40px 0 0;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 16px 40px;
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-weight: 700; font-size: 17px; }
.hero-facts span { color: var(--muted); font-size: 15px; }

/* ---------- calculator ---------- */
.calc {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
}
.calc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.calc-head h2 { font-size: 26px; font-weight: 700; }
.calc-sub { color: var(--muted); font-size: 15px; margin-top: 6px; }

.seg {
  display: inline-flex; background: var(--surface-2); border-radius: var(--r-pill); padding: 4px;
}
.seg button {
  font: 600 14px/1 var(--font); color: var(--muted);
  border: 0; background: transparent; border-radius: var(--r-pill);
  padding: 9px 14px; cursor: pointer;
}
.seg button[aria-checked="true"] { background: var(--ink); color: #fff; }

.calc-label { display: block; margin-top: 26px; font-weight: 600; font-size: 15px; }
.calc-docs { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.calc-docs input[type="number"] {
  width: 84px; flex: none;
  font: 700 18px var(--font); text-align: center;
  padding: 8px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
  color: var(--ink);
}
input[type="range"] {
  flex: 1; min-width: 0; appearance: none; -webkit-appearance: none;
  height: 8px; border-radius: 8px; cursor: pointer;
  background: linear-gradient(to right, var(--green) 0 var(--fill, 8%), var(--surface-2) var(--fill, 8%) 100%);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); border: 4px solid #fff; box-shadow: 0 0 0 1px var(--ink);
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); border: 4px solid #fff; box-shadow: 0 0 0 1px var(--ink);
}
.calc-scale {
  display: flex; justify-content: space-between; margin: 6px 98px 0 0;
  font-size: 12px; color: var(--muted);
}

.calc-result {
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line);
  display: grid; gap: 18px;
}
.calc-price { display: flex; align-items: flex-end; gap: 12px; }
.calc-price .amount {
  font-size: clamp(56px, 7vw, 76px); font-weight: 800; line-height: .85; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.calc-price .unit { font-size: 14px; line-height: 1.25; color: var(--muted); padding-bottom: 2px; }
.calc-meta { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.calc-meta div { background: var(--bg); border-radius: 14px; padding: 10px 12px; }
.calc-meta dt { font-size: 12.5px; color: var(--muted); }
.calc-meta dd { margin: 2px 0 0; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.calc-cta { width: 100%; margin-top: 22px; }
.calc-note { margin-top: 12px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* ---------- sections ---------- */
.section {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(56px, 8vw, 100px) var(--gutter);
}
.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; align-items: end;
  padding-bottom: 28px; margin-bottom: 40px;
  border-bottom: 1px solid var(--ink);
}
.section-head h2 { font-size: clamp(36px, 4.6vw, 56px); font-weight: 700; }
.section-head p { color: var(--muted); max-width: 32em; font-size: 18px; }

/* who: 2x2 grid split by a hairline cross, like the logo */
.cross-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative;
}
.cross-grid::before, .cross-grid::after {
  content: ""; position: absolute; background: var(--line);
}
.cross-grid::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.cross-grid::after { top: 50%; left: 0; right: 0; height: 1px; }
.cross-grid article { padding: 36px 40px; }
.cross-grid article:nth-child(odd) { padding-left: 0; }
.cross-grid h3 { font-size: 26px; font-weight: 700; }
.cross-grid p { margin-top: 12px; color: var(--muted); max-width: 30em; }

/* services */
.service-main { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.service-feature {
  background: var(--ink); color: #fff;
  border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px);
  display: flex; flex-direction: column;
}
.service-feature h3 { font-size: clamp(28px, 3vw, 36px); font-weight: 700; }
.check { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; gap: 14px; }
.check li { position: relative; padding-left: 32px; color: #dcdcd6; }
.check li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 18px; height: 18px; border-radius: 50%; background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9'/%3E%3C/svg%3E");
}
.check li::after {
  content: ""; position: absolute; left: 6px; top: calc(.3em + 4px);
  width: 5px; height: 9px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.text-link {
  margin-top: auto; align-self: flex-start;
  color: var(--green); font-weight: 700; text-underline-offset: 5px;
}
.service-list {
  list-style: none; margin: 0; padding: 0;
  background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line);
}
.service-list li { padding: 24px clamp(22px, 3vw, 32px); }
.service-list li + li { border-top: 1px solid var(--line); }
.service-list h3 { font-size: 20px; font-weight: 700; }
.service-list p { margin-top: 6px; color: var(--muted); font-size: 16px; }

/* pricing */
.tabs {
  display: inline-flex; flex-wrap: wrap; gap: 4px;
  background: var(--surface-2); padding: 5px; border-radius: var(--r-pill);
  margin-bottom: 20px;
}
.tabs button {
  font: 600 15px/1 var(--font); color: var(--muted);
  background: transparent; border: 0; border-radius: var(--r-pill);
  padding: 12px 18px; cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(30,30,30,.12); }

.table-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow-x: auto;
}
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 520px; }
.price-table th, .price-table td { text-align: left; padding: 15px 24px; }
.price-table thead th {
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.price-table tbody tr + tr > * { border-top: 1px solid #ecece5; }
.price-table tbody th { font-weight: 600; }
.price-table td { color: var(--muted); }
.price-table td.net { color: var(--ink); font-weight: 700; font-size: 18px; }
.price-table tbody tr.is-active > * { background: var(--green-soft); }
.price-table tr.over td.net { font-size: 16px; }

.pricing-foot {
  margin-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.pricing-foot p { color: var(--muted); max-width: 44em; font-size: 15.5px; }

/* steps — a real sequence, so numbered */
.step-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  counter-reset: step;
}
.step-list li {
  counter-increment: step; padding: 0 28px 0 0; position: relative;
}
.step-list li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 700; font-size: 17px; margin-bottom: 22px;
  position: relative; z-index: 1;
}
.step-list li::after {
  content: ""; position: absolute; top: 22px; left: 44px; right: 0; height: 1px; background: var(--line);
}
.step-list li:last-child::after { display: none; }
.step-list li:first-child::before { background: var(--green); border-color: var(--green); }
.step-list h3 { font-size: 21px; font-weight: 700; }
.step-list p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* faq */
.faq-list { display: grid; gap: 10px; max-width: 860px; margin-left: auto; }
.faq-list details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
}
.faq-list summary {
  list-style: none; cursor: pointer;
  padding: 20px 60px 20px 24px; position: relative;
  font-weight: 700; font-size: 18px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 24px; top: 50%;
  width: 12px; height: 12px; margin-top: -9px;
  border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg);
  transition: transform .2s;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq-list details p { padding: 0 24px 22px; color: var(--muted); max-width: 44em; }

/* contact */
.contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start;
}
.contact h2 { margin-top: 0; font-size: clamp(40px, 5vw, 64px); }
.contact-info > p { margin-top: 22px; color: var(--muted); font-size: 18px; max-width: 30em; }
.contact-lines { list-style: none; padding: 0; margin: 32px 0 0; }
.contact-lines li {
  display: grid; grid-template-columns: 140px 1fr; gap: 12px;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.contact-lines li:last-child { border-bottom: 1px solid var(--line); }
.contact-lines .k { color: var(--muted); }
.contact-lines a { font-weight: 700; text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; text-underline-offset: 4px; }

.form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 3.5vw, 36px); display: grid; gap: 16px;
}
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 600; font-size: 15px; }
.opt-label { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px var(--font); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.form-error { color: #b3261e; font-weight: 600; font-size: 15px; }
.form-note { font-size: 13.5px; color: var(--muted); text-align: center; }

/* footer */
.footer {
  max-width: var(--wrap); margin: 0 auto;
  padding: 56px var(--gutter) 40px;
  border-top: 1px solid var(--line);
}
.footer-logo { width: 240px; height: auto; }
.footer-cols { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 20px 64px; color: var(--muted); font-size: 15px; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { color: var(--ink); }
.copy { margin-top: 36px; font-size: 13.5px; color: var(--muted); }

/* whatsapp float */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #fff;
  box-shadow: 0 6px 20px rgba(30,30,30,.22);
}
.wa-float:hover { background: #1fb858; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero::before { display: none; }
  .hero-copy, .calc { grid-column: 1; grid-row: auto; }
  .service-main, .contact { grid-template-columns: 1fr; }
  .step-list { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .step-list li:nth-child(2)::after { display: none; }
  .faq-list { margin-left: 0; }
}

@media (max-width: 820px) {
  .nav { padding: 8px 8px 8px 18px; gap: 12px; }
  .nav-toggle {
    display: grid; gap: 5px; place-content: center;
    width: 42px; height: 42px; margin-left: auto;
    background: var(--bg); border: 0; border-radius: 50%; cursor: pointer;
  }
  .nav-toggle span:not(.sr-only) { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
  .nav-links {
    display: none;
    position: absolute; top: calc(100% + 8px); left: var(--gutter); right: var(--gutter);
    flex-direction: column; gap: 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 8px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 14px; font-size: 17px; color: var(--ink); }
  .nav-cta { display: none; }
  .section-head { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .cross-grid { grid-template-columns: 1fr; }
  .cross-grid::before, .cross-grid::after { display: none; }
  .cross-grid article, .cross-grid article:nth-child(odd) { padding: 24px 0; }
  .cross-grid article + article { border-top: 1px solid var(--line); }
  .calc-meta { grid-template-columns: 1fr 1fr; }
  .calc-meta div:last-child { grid-column: span 2; }
  .price-table { min-width: 0; }
  .price-table .opt { display: none; }
  .price-table th, .price-table td { padding: 13px 14px; }
  .price-table td.net { font-size: 16px; }
  .tabs { display: flex; border-radius: var(--r-md); }
  .tabs button { flex: 1; border-radius: 14px; padding: 12px 10px; font-size: 14px; }
  .step-list { grid-template-columns: 1fr; }
  .step-list li { padding: 0 0 0 64px; min-height: 44px; }
  .step-list li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .step-list li::after { display: block; top: 52px; bottom: -32px; left: 22px; right: auto; width: 1px; height: auto; }
  .step-list li:last-child::after { display: none; }
  .step-list li:nth-child(2)::after { display: block; }
  .field-row { grid-template-columns: 1fr; }
  .contact-lines li { grid-template-columns: 1fr; gap: 2px; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}
