/* ==========================================================================
   Chwila Rozmowy — Studio Graficzne
   Arkusz stylów. Bez zależności, bez frameworków.
   ========================================================================== */

:root {
  --paper: #f4f2ed;
  --paper-2: #eae7e0;
  --surface: #ffffff;
  --ink: #16161a;
  --ink-2: #33333c;
  --muted: #6b6b76;
  --line: #ddd8ce;
  --accent: #5b45e0;
  --accent-dark: #4734c4;
  --accent-soft: rgba(91, 69, 224, 0.09);
  --ok: #1d7a53;
  --err: #b53535;
  --radius: 18px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 24px 60px rgba(22, 22, 26, 0.10);
  --shadow-sm: 0 4px 16px rgba(22, 22, 26, 0.06);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.45rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.28rem; letter-spacing: -0.018em; }
p { margin: 0 0 1.15em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 92px 0; }
.section--alt { background: var(--paper-2); }
.section--white { background: var(--surface); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink .lead, .section--ink .muted { color: rgba(255, 255, 255, 0.68); }
.section--ink a { color: #b9aaff; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.lead { font-size: 1.14rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 30px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-2); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--paper-2); color: var(--ink); }
.btn--block { width: 100%; }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 242, 237, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}
.brand:hover { color: var(--ink); }
.brand__dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1px;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); font-size: 0.93rem; font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav .btn { padding: 11px 21px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  padding: 9px 12px;
  cursor: pointer;
  font-size: 1rem;
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 22px 26px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 15px; border-bottom: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 86px 0 80px; border-bottom: 1px solid var(--line); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.hero__note { margin-top: 20px; font-size: 0.89rem; color: var(--muted); }
@media (max-width: 920px) {
  .hero { padding: 58px 0 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 42px; }
}

/* Znak graficzny zbudowany w CSS — bez plików obrazkowych */
.mark {
  position: relative;
  aspect-ratio: 1 / 1;
  width: min(360px, 84%);
  margin-inline: auto;
}
.mark__shape {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
}
.mark__shape--a {
  inset: 0 34% 34% 0;
  background: var(--accent);
  opacity: 0.85;
}
.mark__shape--b {
  inset: 26% 0 12% 30%;
  background: var(--ink);
  opacity: 0.88;
  border-radius: 50% 50% 50% 8px;
}
.mark__shape--c {
  inset: 52% 42% 0 10%;
  background: #ffcf5c;
  border-radius: 50% 8px 50% 50%;
}

/* ---------- Pasek ---------- */
.strip { background: var(--ink); color: #fff; padding: 22px 0; }
.strip__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  text-align: center;
}
.strip__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}
.strip__item span { font-size: 0.83rem; color: rgba(255, 255, 255, 0.6); }

/* ---------- Karty / siatki ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }

/* ---------- Usługi ---------- */
.service {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service:hover { border-color: var(--accent); transform: translateY(-3px); }
.service__icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.service ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
.service ul li { position: relative; padding-left: 22px; font-size: 0.92rem; color: var(--muted); }
.service ul li::before {
  content: "";
  position: absolute; left: 2px; top: 10px;
  width: 9px; height: 5px;
  border: solid var(--accent);
  border-width: 0 0 1.8px 1.8px;
  transform: rotate(-45deg);
}

/* ---------- Kroki procesu ---------- */
.steps { counter-reset: st; display: grid; gap: 16px; max-width: 900px; margin-inline: auto; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 30px;
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: st;
  content: counter(st, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.step h3 { font-size: 1.14rem; margin-bottom: 7px; }
.step p { margin-bottom: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Lista wyróżników ---------- */
.feature-list { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 12px; }
.feature-list li { position: relative; padding-left: 30px; color: var(--muted); }
.feature-list li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 14px; height: 8px;
  border: solid var(--accent);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 840px; margin-inline: auto; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 2px 26px;
  box-shadow: var(--shadow-sm);
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 21px 36px 21px 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute; right: 4px; top: 50%;
  width: 12px; height: 12px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > p { color: var(--muted); padding-bottom: 20px; margin: 0; font-size: 0.97rem; }

/* ---------- Formularz ---------- */
.form-shell { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 48px; align-items: start; }
@media (max-width: 920px) { .form-shell { grid-template-columns: 1fr; gap: 34px; } }

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 19px; }
.field label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 7px; }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.98rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { min-height: 136px; resize: vertical; }
.field .hint { font-size: 0.79rem; color: var(--muted); margin-top: 6px; }
.field .error { display: none; font-size: 0.81rem; color: var(--err); margin-top: 6px; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: var(--err); }
.field.is-invalid .error { display: block; }

.checks { display: grid; gap: 10px; margin-top: 4px; }
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  cursor: pointer;
  font-size: 0.93rem;
}
.check:hover { border-color: var(--accent); }
.check input { width: 17px; height: 17px; accent-color: var(--accent); flex: none; margin: 0; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.consent input { width: 18px; height: 18px; margin-top: 4px; flex: none; accent-color: var(--accent); }
.consent label { font-size: 0.82rem; color: var(--muted); line-height: 1.55; }

.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.91rem; }
.form-status[data-state="ok"] { display: block; background: rgba(29, 122, 83, 0.08); border: 1px solid var(--ok); color: var(--ok); }
.form-status[data-state="err"] { display: block; background: rgba(181, 53, 53, 0.07); border: 1px solid var(--err); color: var(--err); }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* ---------- Nagłówek podstrony ---------- */
.page-head {
  padding: 70px 0 56px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.breadcrumb { font-size: 0.81rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }

/* ---------- Treść prawna ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.48rem; margin-top: 46px; }
.legal h3 { font-size: 1.04rem; margin-top: 26px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.legal ol, .legal ul { color: var(--muted); padding-left: 22px; }
.legal li { margin-bottom: 9px; }
.legal p { color: var(--muted); }
.legal table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 0.91rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; vertical-align: top; color: var(--muted); }
.legal th { background: var(--paper-2); color: var(--ink); font-weight: 600; }
.table-scroll { overflow-x: auto; }

.notice {
  background: var(--paper-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 26px 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.notice strong { color: var(--ink); }

/* ---------- Stopka ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 62px 0 28px;
  font-size: 0.9rem;
}
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: rgba(255, 255, 255, 0.5); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.25fr;
  gap: 34px;
  margin-bottom: 44px;
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-family: var(--font-body);
  font-size: 0.77rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.company-data { font-size: 0.85rem; line-height: 1.85; color: rgba(255, 255, 255, 0.64); }
.company-data strong { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.48);
}

/* ---------- Baner cookie ---------- */
.cookie {
  position: fixed;
  left: 18px; right: 18px; bottom: 18px;
  z-index: 90;
  max-width: 580px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: none;
}
.cookie[data-visible="true"] { display: block; }
.cookie p { font-size: 0.88rem; color: var(--muted); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.cookie .btn { padding: 11px 21px; font-size: 0.9rem; }

/* ---------- Korekta: przyciski wewnątrz nawigacji i sekcji ciemnych ----------
   Reguły dla zwykłych linków (.nav a, .section--ink a) mają wyższą specyficzność
   niż klasy .btn--*, więc kolor tekstu przycisków trzeba ustawić wprost. */
.nav a.btn--primary,
.nav a.btn--primary:hover,
.nav a.btn--ink,
.nav a.btn--ink:hover { color: #fff; }
.section--ink a.btn--light,
.section--ink a.btn--light:hover { color: var(--ink); }
.section--ink a.btn--primary,
.section--ink a.btn--primary:hover { color: #fff; }

/* ---------- Pomocnicze ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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