/* ============================================================
   Kancelaria Adwokacka Mateusz Faron — style głównego arkusza
   Paleta i typografia 1:1 z projektem graficznym (czerń / biel,
   Montserrat, złote akcenty gwiazdek).
   ============================================================ */

:root {
  --black: #0b0b0b;
  --dark: #141414;
  --panel: #1b1b1b;
  --line-dark: rgba(255, 255, 255, 0.14);
  --white: #ffffff;
  --off-white: #f6f6f6;
  --text: #3f3f3f;
  --text-light: #6f6f6f;
  --muted: #9a9a9a;
  --gold: #b99a5f;
  --gold-light: #d9c08c;
  --btn-gray: #a3a3a3;
  --max: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow { max-width: 860px; }

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

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 26px 0;
}

.site-header .container {
  max-width: 1240px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { color: var(--white); line-height: 1.1; display: inline-block; }

.logo .logo-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo .logo-sub {
  display: block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 7px;
  text-transform: uppercase;
  margin-top: 3px;
  color: #d9d9d9;
  text-align: center;
}

.logo--dark { color: var(--white); }

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

.main-nav a {
  color: #e8e8e8;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}

.main-nav a:hover { color: var(--white); border-color: var(--white); }
.main-nav a.active { color: var(--white); border-color: rgba(255,255,255,.65); }

.nav-search {
  background: none;
  border: none;
  color: #e8e8e8;
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
  transition: color .2s;
}
.nav-search:hover { color: var(--white); }
.nav-search svg { width: 17px; height: 17px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: transform .25s, opacity .25s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.hero {
  position: relative;
  background:
    linear-gradient(90deg, #0b0b0b 0%, #0b0b0b 34%, rgba(11,11,11,.55) 62%, rgba(11,11,11,.35) 100%),
    url("../img/hero-right.jpg") right center / cover no-repeat, #0b0b0b;
  color: var(--white);
  display: flex;
  align-items: center;
}

.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11,11,11,.55) 0%, rgba(11,11,11,0) 35%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 2; width: 100%; }

.hero--page { min-height: 380px; padding: 130px 0 60px; }

.hero--home { min-height: 78vh; padding: 150px 0 90px; }

.hero-kicker {
  font-size: 17px;
  font-weight: 400;
  color: #cfcfcf;
  letter-spacing: .5px;
  margin-bottom: 2px;
}

.hero h1 {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: .5px;
  line-height: 1.15;
}

.hero-lead {
  max-width: 520px;
  margin-top: 18px;
  font-size: 13.5px;
  font-weight: 300;
  color: #b9b9b9;
}

.hero .btn { margin-top: 32px; }

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

.btn {
  display: inline-block;
  background: var(--btn-gray);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 13px 38px;
  border: none;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.btn:hover { background: var(--white); color: var(--black); }

.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: #2c2c2c; color: var(--white); }

/* ---------------- Sekcje ---------------- */

.section { padding: 90px 0; }
.section--tight { padding: 64px 0; }
.section--gray { background: var(--off-white); }

.section-title {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: .5px;
  color: #2a2a2a;
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.35;
}

.section-title--left { text-align: left; }

.section-text {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-light);
}
.section-text p + p { margin-top: 18px; }

.section-text--left { text-align: left; margin: 0; }

/* Ciemna wstęga z Temidą / cytatem */

.band {
  position: relative;
  background:
    linear-gradient(90deg, rgba(11,11,11,0) 0%, rgba(11,11,11,.72) 34%, #0b0b0b 58%),
    url("../img/band-temida.jpg") left center / auto 100% no-repeat, #0b0b0b;
  color: var(--white);
  padding: 84px 0;
}

.band--books {
  background:
    linear-gradient(0deg, rgba(11,11,11,.82), rgba(11,11,11,.82)),
    url("../img/band-books.jpg") center / cover no-repeat, #0b0b0b;
}

.band h2, .band .band-quote {
  max-width: 640px;
  margin-left: auto;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}

.band--left h2, .band--left .band-quote {
  margin-left: 0;
  text-align: left;
  max-width: none;
  font-size: 24px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ---------------- Zakres usług — karty (strona główna) ---------------- */

.services-dark {
  position: relative;
  background:
    linear-gradient(0deg, rgba(10,10,10,.88), rgba(10,10,10,.88)),
    url("../img/band-books.jpg") center / cover no-repeat, #0d0d0d;
  color: var(--white);
  padding: 84px 0;
}

.services-dark h2 {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line-dark);
  padding: 26px 26px 30px;
  transition: background .25s, transform .25s;
  display: block;
}
.service-card:hover { background: rgba(255,255,255,.11); transform: translateY(-3px); }

.service-card .sc-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.service-card svg { width: 30px; height: 30px; flex: none; stroke: #dcdcdc; }

.service-card h3 {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
}

.service-card p {
  font-size: 12px;
  font-weight: 300;
  color: #b5b5b5;
  line-height: 1.75;
}

/* ---------------- Opinie ---------------- */

.reviews { padding: 90px 0; }

.reviews-grid {
  display: grid;
  grid-template-columns: 250px 1fr 1fr 1fr;
  gap: 34px;
  align-items: start;
}

.reviews-summary { text-align: center; padding-top: 8px; }

.reviews-summary .rs-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #2a2a2a;
}

.stars { display: inline-flex; gap: 3px; margin: 10px 0 8px; }
.stars svg { width: 20px; height: 20px; fill: url(#goldGrad); }
.stars--gold svg { fill: #c5a25e; }
.stars--dark svg { width: 14px; height: 14px; fill: #1c1c1c; }

.reviews-summary .rs-count { font-size: 12.5px; color: var(--text-light); }

.google-logo {
  margin-top: 10px;
  font-size: 26px;
  font-weight: 500;
  font-family: "Montserrat", Arial, sans-serif;
  letter-spacing: -.5px;
}
.google-logo span:nth-child(1) { color: #4285f4; }
.google-logo span:nth-child(2) { color: #ea4335; }
.google-logo span:nth-child(3) { color: #fbbc05; }
.google-logo span:nth-child(4) { color: #4285f4; }
.google-logo span:nth-child(5) { color: #34a853; }
.google-logo span:nth-child(6) { color: #ea4335; }

.review-card { font-size: 12.5px; }

.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }

.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #1d1d1d;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600;
  flex: none;
}

.review-head .rv-name { font-weight: 600; color: #2a2a2a; line-height: 1.3; }
.review-head .rv-sub { font-size: 11px; color: var(--muted); }

.review-card p { color: var(--text-light); line-height: 1.7; margin-top: 6px; }
.review-card .rv-src { margin-top: 10px; font-size: 11px; color: var(--muted); }

/* ---------------- Kancelaria — galeria ---------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery img { width: 100%; height: 240px; object-fit: cover; filter: saturate(.15) contrast(1.02); }

/* ---------------- Zespół ---------------- */

.member {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;
  padding: 54px 0;
}
.member + .member { border-top: 1px solid #ececec; }

.member-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #e9e9e9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b5b5b5;
}
.member-photo svg { width: 74px; height: 74px; }

.member h2 {
  font-size: 23px;
  font-weight: 600;
  color: #232323;
  margin-bottom: 4px;
}
.member .member-role {
  font-size: 11.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.member p { font-size: 13.5px; color: var(--text-light); }
.member p + p { margin-top: 14px; }

/* ---------------- Zakres usług — podstrona ---------------- */

.service-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-buttons a {
  background: #b5b5b5;
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  padding: 15px 10px;
  transition: background .25s;
}
.service-buttons a:hover { background: var(--black); }

.acc { border-bottom: 1px solid #e6e6e6; }
.acc:first-of-type { border-top: 1px solid #e6e6e6; }

.acc-btn {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #262626;
  text-align: left;
  transition: color .2s;
}
.acc-btn:hover { color: var(--black); }

.acc-btn .acc-ico {
  flex: none;
  width: 26px; height: 26px;
  border: 1px solid #cfcfcf;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform .3s, background .3s, border-color .3s;
}
.acc-btn .acc-ico::before,
.acc-btn .acc-ico::after {
  content: "";
  position: absolute;
  background: #6d6d6d;
  transition: background .3s;
}
.acc-btn .acc-ico::before { width: 11px; height: 1.5px; }
.acc-btn .acc-ico::after { width: 1.5px; height: 11px; }

.acc.open .acc-ico { transform: rotate(45deg); background: var(--black); border-color: var(--black); }
.acc.open .acc-ico::before, .acc.open .acc-ico::after { background: var(--white); }

.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s ease;
}

.acc-body {
  padding: 4px 6px 34px;
  font-size: 13.5px;
  color: var(--text-light);
}

.acc-body h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #2e2e2e;
  margin: 24px 0 8px;
}
.acc-body h3:first-child { margin-top: 0; }

.acc-body h4 {
  font-size: 13px;
  font-weight: 600;
  color: #2e2e2e;
  margin: 18px 0 6px;
}

.acc-body p + p { margin-top: 12px; }

.acc-body ul { margin: 8px 0 0 18px; }
.acc-body li { margin-bottom: 5px; }

.acc-body .steps { margin-top: 6px; }
.acc-body .steps li { margin-bottom: 8px; list-style: none; position: relative; padding-left: 0; }
.acc-body .steps li strong { color: #2e2e2e; }
.acc-body .steps { margin-left: 0; }

/* ---------------- Zaufali nam ---------------- */

.logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px 40px;
  align-items: center;
  justify-items: center;
}
.logos-grid svg { width: 150px; height: auto; color: #2f2f2f; }

/* ---------------- FAQ / Pytania ---------------- */

.faq .acc-btn { text-transform: none; letter-spacing: .2px; font-size: 15px; font-weight: 600; }

/* ---------------- Kontakt ---------------- */

.contact-logo { text-align: center; margin-bottom: 54px; color: #1a1a1a; }
.contact-logo .logo-name { font-size: 26px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; }
.contact-logo .logo-sub { display: block; font-size: 10px; letter-spacing: 8px; text-transform: uppercase; color: #7c7c7c; margin-top: 4px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.contact-item svg { width: 22px; height: 22px; flex: none; margin-top: 4px; stroke: #1c1c1c; }
.contact-item .ci-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.contact-item .ci-value { font-size: 15px; font-weight: 600; color: #232323; }
.contact-item .ci-value a:hover { text-decoration: underline; }
.contact-item .ci-sub { font-size: 12.5px; color: var(--text-light); }

.urgent-box {
  border: 1px solid #1c1c1c;
  background: #101010;
  color: #eaeaea;
  padding: 24px 26px;
  margin-top: 8px;
}
.urgent-box h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}
.urgent-box p { font-size: 12.5px; color: #c9c9c9; }

.map-wrap { position: relative; }
.map-wrap iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
  filter: grayscale(1) contrast(1.02);
}
.map-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #232323;
  border-bottom: 1px solid #232323;
  padding-bottom: 2px;
}
.map-link:hover { color: var(--black); }

.hours { text-align: center; }
.hours svg { width: 26px; height: 26px; stroke: #1c1c1c; margin: 0 auto 16px; }
.hours ul { list-style: none; font-size: 15px; color: var(--text-light); }
.hours li { margin-bottom: 4px; }
.hours strong { color: #1e1e1e; font-weight: 700; }

/* ---------------- Strony tekstowe (polityka / regulamin) ---------------- */

.legal h2 { font-size: 17px; font-weight: 600; color: #232323; margin: 34px 0 10px; }
.legal p, .legal li { font-size: 13.5px; color: var(--text-light); }
.legal p + p { margin-top: 10px; }
.legal ol, .legal ul { margin: 8px 0 0 20px; }
.legal li { margin-bottom: 6px; }

/* ---------------- CTA ---------------- */

.cta { text-align: center; }
.cta h2 { font-size: 24px; font-weight: 600; color: #232323; margin-bottom: 12px; }
.cta p { max-width: 640px; margin: 0 auto 28px; color: var(--text-light); font-size: 13.5px; }

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

.site-footer {
  background: #0f0f0f;
  color: #bdbdbd;
  padding: 64px 0 0;
  font-size: 12.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.site-footer .logo { margin-bottom: 22px; }

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #e6e6e6;
  margin-bottom: 20px;
}

.footer-contact { list-style: none; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.footer-contact svg { width: 15px; height: 15px; flex: none; margin-top: 4px; stroke: #bdbdbd; }
.footer-contact a:hover { color: var(--white); }

.footer-hours { list-style: none; margin: 16px 0; color: #a9a9a9; }
.footer-hours li { margin-bottom: 2px; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #bdbdbd; transition: color .2s; }
.footer-links a:hover { color: var(--white); }

.footer-map iframe {
  width: 100%;
  max-width: 300px;
  height: 190px;
  border: 0;
  display: block;
  filter: grayscale(1);
}

.footer-bottom {
  border-top: 1px solid #262626;
  padding: 20px 0;
  text-align: center;
  font-size: 11.5px;
  color: #8d8d8d;
}
.footer-bottom a { color: #8d8d8d; }
.footer-bottom a:hover { color: var(--white); }
.footer-bottom .sep { margin: 0 8px; color: #4c4c4c; }

/* ---------------- Wyszukiwarka (overlay) ---------------- */

.search-overlay {
  position: fixed; inset: 0;
  background: rgba(8, 8, 8, 0.96);
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 120px 24px 40px;
}
.search-overlay.open { display: flex; }

.search-box { width: 100%; max-width: 640px; }

.search-box input {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid #4a4a4a;
  color: var(--white);
  font-family: inherit;
  font-size: 22px;
  font-weight: 300;
  padding: 10px 4px;
  outline: none;
}
.search-box input::placeholder { color: #7a7a7a; }

.search-results { list-style: none; margin-top: 28px; }
.search-results li { margin-bottom: 4px; }
.search-results a {
  display: block;
  color: #cfcfcf;
  padding: 10px 4px;
  font-size: 14px;
  border-bottom: 1px solid #1f1f1f;
}
.search-results a:hover { color: var(--white); background: #161616; }
.search-results .sr-cat {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #7a7a7a;
  display: block;
}

.search-close {
  position: absolute;
  top: 30px; right: 34px;
  background: none;
  border: none;
  color: #cfcfcf;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}
.search-close:hover { color: var(--white); }

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

@media (max-width: 1020px) {
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .reviews-summary { grid-column: 1 / -1; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 8, 0.97);
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    display: none;
    z-index: 60;
  }
  .nav-open .main-nav { display: flex; }
  .main-nav a { font-size: 14px; }
  .nav-toggle { position: relative; z-index: 70; }

  .hero h1 { font-size: 32px; }
  .hero--page { min-height: 300px; padding-top: 110px; }

  .member { grid-template-columns: 1fr; gap: 26px; }
  .member-photo { max-width: 300px; }

  .contact-grid { grid-template-columns: 1fr; }
  .service-buttons { grid-template-columns: 1fr 1fr; }
  .logos-grid { grid-template-columns: 1fr 1fr; gap: 44px 24px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: 220px; }
  .band { background: linear-gradient(0deg, rgba(11,11,11,.82), rgba(11,11,11,.82)), url("../img/band-temida.jpg") left center / cover no-repeat, #0b0b0b; }
  .band--books { background: linear-gradient(0deg, rgba(11,11,11,.85), rgba(11,11,11,.85)), url("../img/band-books.jpg") center / cover no-repeat, #0b0b0b; }
  .band h2, .band .band-quote { max-width: none; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .service-buttons { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero h1 { font-size: 27px; }
}
