/* =========================================================
   WithLaw Partners – arkusz stylów
   Kolory i fonty z projektu wizytówki (BUSINESS CARDS v2).
   ========================================================= */

:root {
  --bg: #F2EFEA;          /* kość słoniowa – tło */
  --bg-soft: #FAF8F5;     /* jaśniejsze sekcje */
  --bg-deep: #E8E2DA;     /* ciemniejszy beż */
  --ink: #1E1E1E;         /* tekst, przyciski */
  --ink-2: #4A4540;       /* tekst drugorzędny */
  --ink-3: #5A534C;       /* drobny tekst */
  --taupe: #A3917B;       /* akcent – linie, dekor */
  --taupe-text: #75654F;  /* akcent – drobny tekst (kontrast AA) */
  --taupe-light: #C9B9A4; /* akcent na ciemnym tle */
  --line: #DDD5CB;        /* linie podziału */
  --on-dark: #E2DCD4;     /* tekst na ciemnym tle */

  --font-display: 'Nunito Sans', sans-serif; /* darmowy odpowiednik Avenir Next */
  --font-caps: 'Raleway', sans-serif;
  --font-body: 'Montserrat', sans-serif;

  --wrap: 1240px;
  --gutter: 32px;
  --section: 104px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--taupe-text); }
:focus-visible { outline: 2px solid var(--taupe-text); outline-offset: 3px; }
strong { font-weight: 500; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 12px 20px; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--bg); }

/* ---------- układ ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section); padding-bottom: var(--section); }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--deep { background: var(--bg-deep); }
.section--dark { background: var(--ink); color: var(--bg); }
.section--dark a:not(.btn) { color: var(--bg); }

.split { display: flex; flex-wrap: wrap; gap: 64px; }
.split--center { align-items: center; }
.split--end { align-items: flex-end; }
.split > * { flex: 1 1 440px; min-width: 0; }
.split > .split__narrow { flex: 1 1 380px; }

.stack { display: flex; flex-direction: column; gap: 24px; }
.stack--tight { gap: 16px; }

/* ---------- typografia ---------- */
.eyebrow {
  margin: 0; font-family: var(--font-caps); font-size: 12px; font-weight: 400;
  letter-spacing: 0.4em; text-transform: uppercase; color: var(--taupe-text);
}
.section--dark .eyebrow { color: var(--taupe-light); }
.section--deep .eyebrow { color: #5E5141; }

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 300; line-height: 1.2; }
.h1 { font-size: clamp(38px, 5.2vw, 60px); line-height: 1.12; letter-spacing: 0.01em; }
.h1--sm { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.15; }
.h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.18; }
.h2--sm { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.25; }
.h3 { font-size: 22px; font-weight: 400; line-height: 1.3; }
.lead { margin: 0; max-width: 560px; }
.muted { color: var(--ink-2); }
.small { font-size: 15px; }
.tiny { font-size: 12px; line-height: 1.6; color: var(--ink-3); }
p { margin: 0; }

.rule { display: block; width: 64px; height: 1px; background: var(--taupe); border: 0; margin: 0; }

.caps {
  font-family: var(--font-caps); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
}

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 14px 28px; font-family: var(--font-caps); font-size: 12px; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: #3A3633; border-color: #3A3633; color: var(--bg); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--bg); }
.btn--light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--sm { min-height: 44px; padding: 12px 22px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 8px; }
.link-arrow {
  font-family: var(--font-caps); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  display: inline-flex; align-items: center; min-height: 44px;
}

/* ---------- logotyp ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); }
.logo__main { font-family: var(--font-display); font-size: 20px; letter-spacing: 0.42em; padding-left: 0.42em; white-space: pre; }
.logo__line { width: 34px; height: 1px; background: var(--taupe); }
.logo__sub { font-family: var(--font-caps); font-size: 10px; letter-spacing: 0.6em; padding-left: 0.6em; color: var(--taupe-text); }
.logo--sm .logo__main { font-size: 16px; }
.logo--sm .logo__line { width: 28px; }
.logo--sm .logo__sub { font-size: 9px; }

/* ---------- nagłówek ---------- */
.site-header { position: relative; border-bottom: 1px solid var(--line); background: var(--bg); z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; padding-bottom: 22px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; }
.nav a:not(.btn) {
  font-family: var(--font-caps); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; padding: 10px 0; border-bottom: 1px solid transparent;
}
.nav a[aria-current="page"] { border-bottom-color: var(--taupe); }

/* menu mobilne – <details>, działa bez JavaScriptu */
.mnav { display: none; position: relative; }
.mnav summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; color: var(--ink);
}
.mnav summary::-webkit-details-marker { display: none; }
.mnav .icon-close { display: none; }
.mnav[open] .icon-close { display: block; }
.mnav[open] .icon-open { display: none; }
.mnav__panel {
  position: absolute; right: -16px; top: 56px; width: min(320px, calc(100vw - 32px));
  background: var(--bg); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(30,30,30,.08);
  display: flex; flex-direction: column; padding: 8px 24px 24px;
}
.mnav__panel a:not(.btn) {
  font-family: var(--font-caps); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); min-height: 44px;
  display: flex; align-items: center;
}
.mnav__panel .btn { margin-top: 16px; }
@media (max-width: 900px) {
  .nav { display: none; }
  .mnav { display: block; }
}

/* ---------- hero ---------- */
.hero { padding-top: 88px; padding-bottom: 96px; }
.hero__img { width: 100%; height: 560px; object-fit: cover; object-position: 48% 30%; }
.ebook-cover { background: var(--bg-deep); display: flex; justify-content: center; padding: 56px 24px; }
.ebook-cover img { width: 100%; max-width: 360px; }

/* ---------- siatki i karty ---------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.cards--wide { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--bg-soft); padding: 40px 32px; display: flex; flex-direction: column; gap: 16px; }
.section--soft .card, .card--bg { background: var(--bg); }
.card--dark { background: var(--ink); color: var(--bg); }
.card--dark .card__num { color: var(--taupe-light); }
.card--dark p { color: var(--on-dark); }
.card__num { font-family: var(--font-caps); font-size: 12px; letter-spacing: 0.3em; color: var(--taupe-text); }
.card p { font-size: 15px; }
.card ul { margin: 0; padding-left: 18px; font-size: 15px; display: flex; flex-direction: column; gap: 6px; }

.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.team--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.person { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.person img { width: 100%; height: 640px; object-fit: cover; object-position: 50% 18%; }
.team--3 .person img { height: 380px; object-position: 50% 20%; }
.person figcaption { display: flex; flex-direction: column; gap: 4px; }
.person__name { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.32em; text-transform: uppercase; }
.person__role { font-family: var(--font-caps); font-size: 12px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--taupe-text); }
.section--dark .person__role { color: var(--taupe-light); }
.quote { font-family: var(--font-display); font-weight: 300; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.4; max-width: 760px; }

/* listy */
.numbered { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.numbered li { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.numbered .card__num { padding-top: 4px; flex: none; }
.dashlist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; }
.dashlist li { display: flex; gap: 18px; align-items: flex-start; }
.dashlist li::before { content: ""; flex: none; width: 24px; height: 1px; background: var(--ink); margin-top: 14px; }
.plainlist { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); font-size: 15px; }
.plainlist li { padding: 16px 0; border-bottom: 1px solid var(--line); }

/* spis treści */
.toc { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 56px; font-size: 15px; line-height: 1.6; }
.toc__col { display: flex; flex-direction: column; gap: 10px; }
.toc h3 { font-family: var(--font-caps); font-weight: 500; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; margin: 12px 0 6px; }
.toc h3:first-child { margin-top: 0; }

/* cena */
.price-card { background: var(--ink); color: var(--bg); padding: 56px 48px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.price-card__title { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.24em; }
.price-card__meta { font-family: var(--font-caps); font-size: 12px; letter-spacing: 0.4em; color: var(--taupe-light); }
.price-card__price { font-family: var(--font-display); font-weight: 300; font-size: 64px; line-height: 1; }
.price-card__note { font-size: 12px; color: var(--taupe-light); }

/* kontakt */
.contact-list { display: flex; flex-direction: column; gap: 10px; font-size: 15px; padding-top: 8px; }
.contact-list a { text-decoration: none; }
.contact-rows { display: flex; flex-direction: column; border-top: 1px solid #C9BDAE; font-size: 15px; }
.contact-rows a { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 18px 0; border-bottom: 1px solid #C9BDAE; text-decoration: none; }

.form { background: var(--bg-soft); border: 1px solid var(--line); padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-family: var(--font-caps); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; }
.form input, .form textarea {
  font-family: var(--font-body); font-size: 16px; font-weight: 300; padding: 12px 0; border: 0;
  border-bottom: 1px solid var(--taupe); background: transparent; color: var(--ink); min-height: 44px; border-radius: 0;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--ink); }
.form .btn { align-self: flex-start; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error { font-family: var(--font-body); font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; color: #9B2C1F; }
.form__alert { margin: 0; padding: 12px 16px; border-left: 3px solid #9B2C1F; background: #F8E9E6; font-size: 14px; font-weight: 400; color: #7A2115; }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-bottom-color: #9B2C1F; }
.form label.form__consent { flex-direction: row; align-items: flex-start; gap: 12px; font-family: var(--font-body); font-size: 12px; font-weight: 300; line-height: 1.6; letter-spacing: 0; text-transform: none; color: var(--ink-3); cursor: pointer; }
.form input[type="checkbox"] { flex: none; width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; accent-color: var(--ink); }
.form input[type="checkbox"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.form__thanks { gap: 12px; }
.form__thanks p { margin: 0; }

/* ---------- tekst prawny ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 26px; margin: 48px 0 16px; }
.legal h3 { font-size: 19px; font-weight: 400; margin: 28px 0 10px; }
.legal p, .legal li { font-size: 16px; }
.legal p + p { margin-top: 14px; }
.legal ul, .legal ol { padding-left: 22px; display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.legal li > p { margin-top: 6px; }
.todo { background: #FFF3C4; padding: 0 4px; font-weight: 400; }

/* ---------- stopka ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; padding-top: 48px; padding-bottom: 48px; font-size: 13px; color: var(--ink-2); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__links a { padding: 12px 0; }
.site-footer p { line-height: 1.6; }

/* ---------- telefony ---------- */
@media (max-width: 600px) {
  :root { --gutter: 20px; --section: 72px; }
  .site-header__inner { padding-top: 16px; padding-bottom: 16px; }
  .hero { padding-top: 56px; padding-bottom: 64px; }
  .hero__img { height: 420px; }
  .person img { height: 480px; }
  .form { padding: 28px 20px; }
  .price-card { padding: 44px 24px; }
  .split { gap: 48px; }
}
