/* dr. audyt — strona ofertowa. System: Modernist (flat, siatka, 2px linie, Archivo). */

:root {
  --brand: #12519e;
  --brand-dark: #0d3c76;
  --ink: #15171a;
  --paper: #f3f2f2;
  --muted: rgba(21, 23, 26, .76);
  --hair: rgba(21, 23, 26, .25);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, li, figure, figcaption { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
::selection { background: rgba(18, 81, 158, .22); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; }
.rule { height: 2px; background: var(--ink); margin: 26px 0 0; transform-origin: left; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* --- animacje --- */
@keyframes reveal { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes ruleIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@keyframes sweep { 0% { top: 0; } 100% { top: calc(100% - 2px); } }

.reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-in { animation: reveal .75s cubic-bezier(.2,.7,.2,1) forwards; }
.rule.is-in { animation: ruleIn .8s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1; transform: none; animation: none; }
  .hero-sweep, .dot { animation: none !important; }
}

/* --- nav --- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 242, 242, .88);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}
.nav-inner { position: relative; display: flex; align-items: center; gap: 20px; padding: 10px 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex: 0 0 auto; font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.brand img { height: 36px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 22px; margin-left: auto;
  overflow-x: auto; white-space: nowrap; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a:not(.btn) { font-size: 14px; font-weight: 500; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:not(.btn):hover { color: var(--brand); border-bottom-color: var(--brand); }
.nav-burger {
  display: none; margin-left: auto; width: 46px; height: 46px; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: transparent; border: 2px solid var(--ink); cursor: pointer;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-burger { display: flex; }
  .nav-links { display: none; }
  .nav-links.is-open {
    display: flex; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--paper); border-bottom: 2px solid var(--ink);
    padding: 4px 20px 18px; overflow: visible; white-space: normal;
  }
  .nav-links.is-open a:not(.btn) { padding: 16px 0; font-size: 17px; font-weight: 700; border-bottom: 1px solid var(--hair); }
  .nav-links.is-open .btn { margin-top: 14px; justify-content: space-between; }
}

/* --- przyciski --- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: inherit; font-weight: 700; font-size: 16px;
  padding: 16px 24px; border: 2px solid var(--brand); background: var(--brand); color: #fff;
  cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .15s ease, color .15s ease;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; transform: translateY(-2px); }
.btn:active { transform: none; }
.btn-sm { font-size: 14px; padding: 11px 18px; flex: 0 0 auto; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: none; }
.btn-block { display: flex; width: 100%; justify-content: space-between; }

/* --- hero --- */
.hero { position: relative; border-bottom: 2px solid var(--ink); overflow: hidden; }
.hero-inner {
  position: relative; padding: clamp(36px, 6vw, 84px) 20px clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(28px, 5vw, 56px); align-items: center;
}
.hero-inner > * { min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 700;
  color: var(--brand); border: 2px solid var(--brand); padding: 7px 12px; margin-bottom: 22px;
}
.dot { width: 8px; height: 8px; background: var(--brand); border-radius: 50%; animation: pulse 1.8s ease-in-out infinite; }
.hero h1 { font-size: clamp(34px, 6.4vw, 66px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
.hero h1 span { display: block; color: var(--brand); margin-top: .18em; }
.hero .rule { margin: clamp(22px, 3vw, 34px) 0; }
.lead { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; max-width: 54ch; color: rgba(21, 23, 26, .82); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-figure { position: relative; background: #fff; padding: clamp(24px, 4vw, 44px); width: 100%; max-width: 440px; margin: 0 auto; overflow: hidden; }
.hero-sweep { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--brand); animation: sweep 4.5s linear infinite; }
.hero-figure figcaption { border-top: 2px solid var(--ink); margin-top: clamp(18px, 3vw, 28px); padding-top: 14px; font-weight: 700; font-size: clamp(15px, 1.4vw, 18px); letter-spacing: -.01em; }
.hero-progress { display: flex; align-items: center; gap: 12px; margin-top: clamp(18px, 3vw, 28px); }
.hero-progress-bar { flex: 1; height: 12px; border: 2px solid var(--ink); background: #fff; overflow: hidden; }
.hero-progress-bar span { display: block; height: 100%; width: 0; background: var(--brand); }
.hero-progress-pct { font-weight: 800; font-size: 14px; min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }

/* --- sekcje --- */
.section { border-bottom: 2px solid var(--ink); padding: clamp(48px, 7vw, 96px) 20px; }
.section-white { background: #fff; }
.section h2 { font-size: clamp(28px, 4.2vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-head p { max-width: 46ch; font-size: 16px; line-height: 1.55; color: var(--muted); }

/* --- cennik --- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); border-bottom: 2px solid var(--ink); }
.plan { padding: clamp(24px, 3.4vw, 40px); display: flex; flex-direction: column; }
.plan + .plan { border-left: 2px solid var(--ink); }
.plan-featured { background: #fff; }
.tag { align-self: flex-start; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; padding: 6px 10px; margin-bottom: 18px; background: var(--brand); color: #fff; }
.tag-outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); padding: 4px 10px; }
.plan h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -.02em; }
.plan-desc { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.price { margin-top: 26px; font-size: clamp(48px, 7vw, 76px); font-weight: 800; line-height: .9; letter-spacing: -.045em; color: var(--brand); }
.price span { font-size: .32em; font-weight: 700; letter-spacing: 0; margin-left: .2em; }
.price-custom { margin-top: 26px; font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; line-height: 1; letter-spacing: -.035em; }
.price-note { margin-top: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: rgba(21, 23, 26, .62); }
.plan ul { margin: 26px 0 30px; border-top: 2px solid var(--ink); flex: 1; }
.plan li { border-bottom: 1px solid var(--hair); padding: 12px 0; font-size: 15px; display: flex; gap: 12px; }
.plan li:last-child { border-bottom: 0; }
.plan li b { color: var(--brand); font-weight: 800; }
.pricing-note { margin-top: 22px; font-size: 15px; color: var(--muted); }
.pricing-note a { color: var(--brand-dark); font-weight: 700; border-bottom: 2px solid var(--brand); }

/* --- kroki --- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.steps li { border-bottom: 2px solid var(--ink); border-right: 2px solid var(--ink); padding: clamp(22px, 2.6vw, 32px) clamp(18px, 2vw, 26px); }
.steps li:last-child { border-right: 0; }
.step-num { display: block; font-size: clamp(44px, 5vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -.05em; color: var(--brand); }
.steps h3 { margin-top: 16px; font-size: 19px; font-weight: 800; letter-spacing: -.015em; }
.steps p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* --- karty --- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); border-bottom: 2px solid var(--ink); }
.cards article { padding: clamp(24px, 3vw, 36px); border-right: 2px solid var(--ink); transition: background .2s ease; }
.cards article:last-child { border-right: 0; }
.cards article:hover { background: #fff; }
.cards h3 { margin-top: 18px; font-size: 20px; font-weight: 800; letter-spacing: -.015em; }
.cards p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* --- faq --- */
.faq { max-width: 900px; margin: 0 auto; }
.faq details { border-bottom: 2px solid var(--ink); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 22px 0; font-size: clamp(16px, 1.7vw, 20px); font-weight: 700; letter-spacing: -.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }
.faq summary i { color: var(--brand); font-size: 22px; font-style: normal; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq p { padding: 0 0 24px; font-size: 16px; line-height: 1.65; max-width: 62ch; color: rgba(21, 23, 26, .78); }

/* --- kontakt --- */
.contact { background: var(--brand); color: #fff; border-bottom: 2px solid var(--ink); }
.contact-inner {
  padding: clamp(48px, 7vw, 96px) 20px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(28px, 4vw, 56px); align-items: start;
}
.contact-inner > * { min-width: 0; }
.contact h2 { font-size: clamp(34px, 6vw, 62px); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.contact .rule { background: #fff; margin: 24px 0; }
.contact-lead { font-size: clamp(16px, 1.6vw, 20px); line-height: 1.55; max-width: 44ch; }
.contact-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 2px solid #fff; padding: 16px 0; color: #fff; transition: padding-left .18s ease;
}
.contact-row:last-of-type { border-bottom: 2px solid #fff; }
a.contact-row:hover { color: #fff; padding-left: 10px; }
.contact-label { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; opacity: .85; }
.contact-value { font-size: clamp(18px, 2.2vw, 28px); font-weight: 800; letter-spacing: -.02em; word-break: break-word; }
.contact-hint { margin-top: 18px; font-size: 14px; line-height: 1.6; opacity: .9; }

/* --- formularz --- */
.form-card { grid-column: 1 / -1; background: #fff; color: var(--ink); border: 2px solid var(--ink); padding: clamp(22px, 3vw, 40px); }
.form-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; color: var(--brand); }
.form-card h3 { margin-top: 10px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.025em; }
.form-card .rule { background: var(--ink); margin: 20px 0 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > span { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.input {
  font-family: inherit; font-size: 16px; padding: 13px 14px; width: 100%;
  border: 2px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink);
}
.input:focus-visible { border-color: var(--brand); }
textarea.input { line-height: 1.5; resize: vertical; }
.err { font-size: 13px; font-weight: 600; color: var(--brand-dark); min-height: 18px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button {
  font-family: inherit; font-size: 15px; font-weight: 700; padding: 11px 16px; cursor: pointer;
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
  transition: background .15s ease, color .15s ease;
}
.seg button:hover { background: var(--hair); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; cursor: pointer; }
.consent input { width: 22px; height: 22px; flex: 0 0 auto; accent-color: var(--brand); margin: 1px 0 0; }
.consent span { font-size: 14px; line-height: 1.5; color: rgba(21, 23, 26, .8); }
.form-note { margin-top: 14px; font-size: 13px; line-height: 1.5; color: rgba(21, 23, 26, .65); }
.form-submit { margin-top: 20px; font-size: 17px; font-weight: 800; padding: 18px 22px; }
.form-submit[disabled] { opacity: .6; cursor: progress; }
.form-done { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; min-height: 200px; justify-content: center; }
.form-done h3 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 0; }
.form-done p { font-size: 16px; line-height: 1.6; max-width: 52ch; color: rgba(21, 23, 26, .78); }
[hidden] { display: none !important; }

/* --- stopka --- */
.footer { padding: clamp(32px, 4vw, 52px) 20px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; justify-content: space-between; }
.footer img { height: 46px; width: auto; }
.footer p { font-size: 14px; font-weight: 600; color: rgba(21, 23, 26, .7); }
.footer .legal { font-weight: 700; color: var(--ink); }

@media (max-width: 700px) {
  .plan + .plan { border-left: 0; border-top: 2px solid var(--ink); }
  .steps li, .cards article { border-right: 0; }
  .cards article { border-bottom: 2px solid var(--ink); }
  .cards article:last-child { border-bottom: 0; }
}
