/* ============================================================
   Kancelaria Adwokacka - Adwokat Adrian Dorobek
   Czysty CSS, bez zależności. Fonty self-hosted (css/fonts.css).
   ============================================================ */

:root {
  --gold: #bb9246;
  --gold-dark: #a67f35;
  --gold-light: #d8bc84;
  --navy: #14233a;
  --navy-deep: #0f1e33;
  --ink: #1e2a3a;
  --text: #4a5361;
  --text-light: #6b7482;
  --cream: #f5f0e6;
  --cream-dark: #efe9dc;
  --paper: #fdfbf7;
  --blue-grey: #e9edf3;
  --white: #ffffff;
  --line: #e3ddd0;
  --shadow: 0 12px 40px rgba(20, 35, 58, 0.08);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Lato', 'Segoe UI', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typografia ---------- */

h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 600; }

.section-title {
  font-size: 34px;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  font-weight: 500;
}

.section-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  background: var(--gold);
  margin: 18px auto 0;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Przyciski ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn svg { flex: none; }

.btn-gold {
  background: var(--gold);
  color: var(--white);
}

.btn-gold:hover { background: var(--gold-dark); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: #cfd5dd;
}

.btn-outline:hover { border-color: var(--gold); color: var(--gold-dark); }

.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline-dark:hover { background: var(--ink); color: var(--white); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid rgba(20, 35, 58, 0.06);
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled { box-shadow: 0 6px 24px rgba(20, 35, 58, 0.08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.brand-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.5;
}

.main-nav { display: flex; align-items: center; gap: 34px; }

.main-nav a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.2s ease;
}

.main-nav a:hover { color: var(--gold); }

.main-nav .btn { padding: 13px 26px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  margin: 6px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(105deg, var(--paper) 0%, #f4f1ea 55%, #e9e9e6 100%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: stretch;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-content { padding: 90px 0 70px; max-width: 620px; }

.hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.15;
  font-weight: 500;
  margin: 18px 0 26px;
}

.hero h1 .dot { color: var(--gold); }

.hero-lead {
  font-size: 17px;
  max-width: 540px;
  margin-bottom: 40px;
}

.hero-usps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 44px;
}

.usp {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0 18px;
  border-left: 1px solid #ddd8cd;
}

.usp:first-child { border-left: none; padding-left: 0; }

.usp svg { flex: none; margin-top: 2px; }

.usp p {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.6;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 36px; }

.hero-urgent {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 16px;
  color: var(--ink);
}

.hero-urgent a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--gold-dark);
}

.hero-urgent a:hover { color: var(--gold); }

.hero-photo { position: relative; min-height: 420px; }

.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f4f1ea 0%, rgba(244, 241, 234, 0) 35%);
  pointer-events: none;
}

/* ---------- Specjalizacje ---------- */

.specializations { padding: 90px 0 80px; background: var(--white); }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 60px;
}

.spec-card {
  padding: 10px 30px;
  text-align: center;
  border-left: 1px solid #e8e4da;
}

.spec-card:first-child { border-left: none; }

.spec-card svg { margin: 0 auto 26px; display: block; }

.spec-card h3 {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  line-height: 1.6;
}

.spec-card p { font-size: 14px; color: var(--text-light); }

/* ---------- O mnie ---------- */

.about { padding: 90px 0; background: var(--paper); }

.about h2 {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.about h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  background: var(--gold);
  margin-top: 14px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 70px;
  margin-top: 44px;
  align-items: start;
}

.about-text .lead {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 24px;
}

.about-text p { margin-bottom: 20px; font-size: 15.5px; }

.about-facts {
  background: var(--cream);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.fact { display: flex; gap: 20px; align-items: flex-start; }

.fact svg { flex: none; margin-top: 2px; }

.fact h3 {
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 4px;
}

.fact p { font-size: 14.5px; }

/* ---------- Współpraca ---------- */

.partners { padding: 80px 0; background: var(--blue-grey); }

.partners .section-title {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.partners .section-title::after { display: none; }

.partners-sub { text-align: center; margin-top: 14px; font-size: 15.5px; }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  margin-top: 56px;
}

.partner { text-align: center; }

.partner-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #dde3ec;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.partner p {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.6;
}

/* ---------- Konsultacja ---------- */

.consultation { padding: 80px 0; background: var(--white); }

.consult-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: stretch;
}

.consult-col {
  background: var(--cream);
  padding: 44px 38px;
}

.consult-col h3 {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.consult-col > p { font-size: 15px; margin-bottom: 28px; }

.consult-points { display: flex; flex-direction: column; gap: 20px; }

.consult-point { display: flex; gap: 16px; align-items: flex-start; }

.consult-point svg { flex: none; margin-top: 2px; }

.consult-point p { font-size: 14px; }

.consult-pay {
  background: var(--navy-deep);
  color: #d6dbe4;
  padding: 44px 38px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 20px;
}

.consult-pay h3 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

.consult-pay .pay-sub { font-size: 15px; margin: 0; }

.consult-pay .btn { width: 100%; max-width: 320px; }

.pay-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 6px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
}

.pay-logos span {
  opacity: 0.9;
  letter-spacing: 0.02em;
}

.pay-logos .p24 { color: #d13239; background: var(--white); padding: 2px 8px; border-radius: 4px; font-style: italic; }
.pay-logos .blik { background: #000; padding: 2px 10px; border-radius: 4px; }

.consult-ebooks { display: flex; flex-direction: column; }

.consult-ebooks .ebook-inner { display: flex; gap: 24px; align-items: center; }

.consult-ebooks .ebook-text { flex: 1; }

.consult-ebooks img { width: 170px; flex: none; }

.consult-ebooks .btn { margin-top: 26px; align-self: flex-start; }

/* ---------- Stopka ---------- */

.site-footer { background: var(--paper); border-top: 1px solid var(--line); }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 50px;
  padding: 70px 0 60px;
  align-items: start;
}

.footer-brand .brand { margin-bottom: 24px; }

.footer-brand p { font-size: 14.5px; margin-bottom: 24px; }

.footer-social { display: flex; gap: 12px; }

.footer-social a {
  width: 42px;
  height: 42px;
  border: 1px solid #cfd5dd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease;
}

.footer-social a:hover { border-color: var(--gold); }

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 24px;
}

.contact-list { list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 14.5px; }

.contact-list li { display: flex; gap: 14px; align-items: flex-start; }

.contact-list svg { flex: none; margin-top: 3px; }

.contact-list .place { font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: 0.06em; font-size: 13px; }

.contact-list a:hover { color: var(--gold-dark); }

.footer-info p { font-size: 14.5px; margin-bottom: 18px; }

.footer-photo { align-self: stretch; }

.footer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.footer-bottom { border-top: 1px solid var(--line); }

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 22px 0;
  font-size: 13.5px;
  color: var(--text-light);
}

.footer-legal { display: flex; align-items: center; gap: 16px; }

.footer-legal a:hover { color: var(--gold-dark); }

.footer-legal .sep { color: #cfd5dd; }

/* ---------- Podstrony prawne ---------- */

.legal-page { padding: 70px 0 90px; max-width: 820px; }

.legal-page h1 { font-size: 36px; font-weight: 500; margin-bottom: 30px; }

.legal-page h2 { font-family: var(--sans); font-size: 18px; font-weight: 700; margin: 34px 0 12px; }

.legal-page p { margin-bottom: 16px; }

.legal-placeholder {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  font-size: 15px;
  margin: 24px 0;
}

/* ---------- Responsywność ---------- */

@media (max-width: 1080px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .spec-card:nth-child(3) { border-left: none; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .consult-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .site-header { position: sticky; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(20, 35, 58, 0.1);
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }

  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }

  .main-nav a { padding: 14px 0; width: 100%; }

  .main-nav .btn { margin-top: 10px; width: 100%; }

  .nav-toggle { display: block; }

  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-content { padding: 60px 0 50px; }
  .hero-photo { min-height: 340px; margin: 0 -24px; }
  .hero-photo::after { background: linear-gradient(180deg, #f4f1ea 0%, rgba(244, 241, 234, 0) 30%); }

  .hero-usps { grid-template-columns: 1fr; gap: 18px; }
  .usp { border-left: none; padding: 0; max-width: none; }

  .about-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 620px) {
  .spec-grid { grid-template-columns: 1fr; }
  .spec-card { border-left: none; padding: 0 10px; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; padding: 50px 0 40px; }
  .footer-photo { display: none; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .consult-ebooks .ebook-inner { flex-direction: column; align-items: flex-start; }
  .hero-cta .btn { width: 100%; }
}
