/* ============================================================
   Zofia Zimoch — Radca prawny
   Paleta: kremowy premium · oliwkowe złoto · ciepły brąz
   Typografia: Fraunces (serif) + Inter (sans)
   ============================================================ */

:root {
  --bg:           #FAF8F4;
  --bg-accent:    #EFE9DD;
  --text:         #1F1B16;
  --text-muted:   #5C5142;
  --accent:       #7A6A3E;
  --accent-dark:  #5F5230;
  --heading:      #3D3528;
  --line:         #D9D0BE;
  --line-soft:    #E7DFCE;

  --font-serif:   'Fraunces', 'Cormorant Garamond', 'Georgia', serif;
  --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius:       6px;
  --shadow-sm:    0 1px 2px rgba(31,27,22,.05);
  --shadow-md:    0 8px 32px -16px rgba(31,27,22,.18);

  --container:    1180px;
  --pad-x:        clamp(20px, 4vw, 40px);
  --pad-section:  clamp(72px, 10vw, 128px);

  --ease:         cubic-bezier(.22,.61,.36,1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: var(--accent-dark); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--text); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

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

/* Typography */
h1, h2, h3, .hero__title, .section__title {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--heading);
  letter-spacing: -.01em;
  line-height: 1.15;
  margin: 0;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin: 0 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.btn--primary {
  background: var(--accent);
  color: #FFFDF6;
}
.btn--primary:hover {
  background: var(--accent-dark);
  color: #FFFDF6;
}
.btn--ghost {
  background: transparent;
  color: var(--heading);
  border-color: var(--line);
}
.btn--ghost:hover {
  background: var(--bg-accent);
  color: var(--heading);
  border-color: var(--accent);
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,248,244,.78);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav--scrolled {
  border-bottom-color: var(--line-soft);
  background: rgba(250,248,244,.92);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--heading);
  font-family: var(--font-serif);
}
.nav__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent);
}
.nav__brand-name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .005em;
}
.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 8px;
}
.nav__links a {
  font-size: 14px;
  color: var(--text);
  font-weight: 400;
}
.nav__links a:hover { color: var(--accent); }
.nav__cta {
  padding: 10px 20px;
  font-size: 14px;
}
.nav__toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav__toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--heading);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px var(--pad-x) 24px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
}
.nav__mobile a {
  padding: 14px 4px;
  font-size: 16px;
  color: var(--text);
  border-bottom: 1px solid var(--line-soft);
}
.nav__mobile a.btn { border: none; margin-top: 12px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 10vw, 120px);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.hero__title {
  font-size: clamp(46px, 7.5vw, 80px);
  font-weight: 400;
  margin: 0 0 28px;
  letter-spacing: -.02em;
}
.hero__lead {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 56ch;
  margin: 0 0 36px;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero__photo {
  margin: 0;
  position: relative;
}
.hero__photo picture,
.hero__photo img {
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  background: var(--bg-accent);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line-soft);
}
.hero__photo::before {
  content: '';
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  z-index: -1;
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding: var(--pad-section) 0;
}
.section--accent {
  background: var(--bg-accent);
}
.section--contact {
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
}
.section__head {
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 72px);
  text-align: center;
}
.section__title {
  font-size: clamp(34px, 4.5vw, 50px);
  font-weight: 400;
}
.section__intro {
  margin: 24px auto 0;
  font-size: 17px;
  color: var(--text-muted);
  max-width: 60ch;
}

/* ============================================================
   About
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.about__text p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 22px;
}
.about__text p:first-child::first-letter {
  font-family: var(--font-serif);
  font-size: 3.4em;
  float: left;
  line-height: .9;
  margin: 6px 12px 0 -2px;
  color: var(--accent);
  font-weight: 500;
}

.factcard {
  background: var(--bg-accent);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 32px;
}
.factcard h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.factcard dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.factcard dt {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 2px;
}
.factcard dd {
  margin: 0;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

/* ============================================================
   Specializations
   ============================================================ */
.specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
}
.spec {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.spec:hover {
  transform: translateY(-3px);
  border-color: var(--line);
  box-shadow: var(--shadow-md);
}
.spec__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-bottom: 22px;
  color: var(--accent);
}
.spec__icon svg {
  width: 28px; height: 28px;
}
.spec h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 14px;
  letter-spacing: -.005em;
}
.spec p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ============================================================
   Timeline
   ============================================================ */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 154px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}
.timeline__item {
  display: grid;
  grid-template-columns: 130px 24px 1fr;
  gap: 24px;
  padding: 24px 0;
  position: relative;
}
.timeline__item::before {
  content: '';
  position: absolute;
  left: 150px;
  top: 36px;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline__date {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  padding-top: 28px;
  text-align: right;
}
.timeline__body {
  grid-column: 3;
}
.timeline__body h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--heading);
  padding-top: 22px;
}
.timeline__org {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.timeline__body > p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ============================================================
   Process
   ============================================================ */
.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}
.process__step {
  padding: 36px 32px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  position: relative;
}
.process__num {
  display: block;
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: -.02em;
}
.process__step h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 12px;
}
.process__step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ============================================================
   Contact
   ============================================================ */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact__lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 38ch;
  margin: 0 0 28px;
}
.contact__email {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  color: var(--heading);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  margin-bottom: 36px;
  letter-spacing: -.005em;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.contact__email:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.contact__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact__meta li {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact__meta strong {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  font-weight: 500;
}

.contact__form {
  background: var(--bg-accent);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--heading);
  letter-spacing: .01em;
}
.field label span {
  color: var(--accent);
}
.field input,
.field textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: #FFFDF6;
}
.field textarea {
  resize: vertical;
  min-height: 130px;
}
.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
}
.field--check input {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--accent);
}
.field--check label {
  font-weight: 400;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}
.field--check label a {
  color: var(--accent-dark);
  text-decoration: underline;
}
.field--hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.field--error input,
.field--error textarea {
  border-color: #B23B3B;
  background: #FDF5F5;
}
.field__error {
  font-size: 12px;
  color: #B23B3B;
  margin-top: 2px;
}
.contact__submit {
  align-self: flex-start;
  padding: 14px 32px;
}
.contact__status {
  margin: 0;
  font-size: 14px;
  min-height: 20px;
  color: var(--text-muted);
}
.contact__status.is-success { color: #2F6E3F; }
.contact__status.is-error { color: #B23B3B; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--text);
  color: #C9C0AE;
  padding: 56px 0 36px;
}
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.footer__name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--bg);
  margin: 0 0 12px;
  letter-spacing: -.005em;
}
.footer__credentials {
  font-size: 13px;
  line-height: 1.6;
  color: #B6AC97;
  margin: 0 0 20px;
}
.footer__copy {
  font-size: 12px;
  color: #897F6A;
  margin: 0;
}
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__nav a {
  font-size: 14px;
  color: #C9C0AE;
}
.footer__nav a:hover { color: var(--bg); }
.footer__col--right {
  text-align: right;
}
.footer__email {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--bg);
  border-bottom: 1px solid #4A4232;
  padding-bottom: 4px;
  display: inline-block;
}
.footer__email:hover { border-color: var(--accent); color: var(--bg); }

/* ============================================================
   Cookie banner
   ============================================================ */
.cookie {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 60;
  background: #FFFDF6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  max-width: 720px;
  margin: 0 auto;
  animation: cookie-in .4s var(--ease);
}
@keyframes cookie-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 24px;
}
.cookie__title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 4px;
  color: var(--heading);
}
.cookie__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}
.cookie__accept {
  flex-shrink: 0;
  padding: 10px 22px;
  font-size: 14px;
}

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero__photo {
    order: -1;
    max-width: 420px;
    margin: 0 auto;
  }
  .hero__photo::before { display: none; }

  .about {
    grid-template-columns: 1fr;
  }
  .factcard { order: -1; }

  .specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .process {
    grid-template-columns: 1fr;
  }
  .contact {
    grid-template-columns: 1fr;
  }

  .timeline::before { left: 6px; }
  .timeline__item {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-left: 30px;
  }
  .timeline__item::before { left: 2px; top: 8px; }
  .timeline__date {
    text-align: left;
    padding-top: 0;
  }
  .timeline__body { grid-column: 1; }
  .timeline__body h3 { padding-top: 4px; }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer__col--right { text-align: left; }
}

@media (max-width: 720px) {
  .nav__links,
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__mobile.is-open {
    display: flex;
  }

  .specs {
    grid-template-columns: 1fr;
  }

  .cookie__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
  }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .btn { width: 100%; }
  .hero__ctas { flex-direction: column; }
  .contact__submit { width: 100%; }
}
