:root {
  --green-950: #09251d;
  --green-900: #10382c;
  --green-800: #184c3b;
  --green-100: #eaf1ed;
  --gold: #b68b42;
  --gold-light: #d4b877;
  --cream: #f8f5ee;
  --white: #ffffff;
  --ink: #1c2521;
  --muted: #6c756f;
  --line: #dfe4e0;
  --shadow: 0 24px 60px rgba(9, 37, 29, 0.10);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: 'Inter', Arial, sans-serif;
  line-height: 1.65;
}

body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(16,56,44,.08);
}
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: var(--gold); border: 1px solid rgba(182,139,66,.5); font: 700 28px/1 'Cormorant Garamond', serif;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font: 600 19px/1.1 'Cormorant Garamond', serif; letter-spacing: .02em; }
.brand-text small { margin-top: 5px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: #37423c; font-size: 14px; font-weight: 500; transition: color .2s; }
.main-nav a:hover { color: var(--gold); }
.nav-toggle { display: none; border: 0; background: transparent; padding: 7px; }
.nav-toggle span { width: 25px; height: 2px; display: block; background: var(--green-900); margin: 5px 0; }

.hero { position: relative; overflow: hidden; background: linear-gradient(115deg, var(--cream) 0%, #fff 66%); padding: 98px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 76px; align-items: center; position: relative; z-index: 2; }
.hero-decoration { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-decoration-one { width: 430px; height: 430px; right: -170px; top: -140px; border: 1px solid rgba(182,139,66,.25); }
.hero-decoration-two { width: 270px; height: 270px; right: 70px; bottom: -170px; background: rgba(16,56,44,.045); }
.eyebrow { margin: 0 0 15px; color: var(--gold); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .22em; }
.hero h1, .section-heading h2, .contact-copy h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--green-950);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.025em;
}
.hero h1 { font-size: clamp(54px, 6.2vw, 82px); max-width: 780px; margin: 0; }
.hero h1 span { color: var(--gold); }
.hero-lead { max-width: 690px; margin: 28px 0 0; font-size: 18px; color: #536159; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 4px; border: 1px solid transparent; font-weight: 600; font-size: 14px; cursor: pointer; transition: .2s ease; }
.btn-primary { color: white; background: var(--green-900); }
.btn-primary:hover { background: var(--green-800); transform: translateY(-1px); }
.btn-secondary { border-color: #c9d0cb; background: rgba(255,255,255,.55); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.btn-gold { background: var(--gold); color: white; width: 100%; }
.btn-gold:hover { background: #9f7634; }
.hero-points { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 34px; color: var(--muted); font-size: 13px; }
.hero-points span::before { content: '•'; color: var(--gold); margin-right: 8px; }

.hero-card { background: var(--green-950); color: white; padding: 42px; border-radius: var(--radius); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero-card::after { content: ''; width: 150px; height: 150px; border: 1px solid rgba(212,184,119,.35); border-radius: 50%; position: absolute; right: -45px; top: -45px; }
.hero-card-symbol { color: var(--gold-light); font: 700 56px/1 'Cormorant Garamond', serif; }
.hero-card-kicker { color: var(--gold-light); margin: 22px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .15em; }
.hero-card h2 { margin: 0; font: 600 34px/1.08 'Cormorant Garamond', serif; }
.hero-card p:not(.hero-card-kicker) { color: rgba(255,255,255,.72); }
.text-link { display: inline-flex; gap: 9px; color: var(--gold-light); font-weight: 600; font-size: 14px; margin-top: 12px; }

.trust-strip { background: var(--green-900); color: white; }
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.trust-grid div { min-height: 105px; display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-left: 1px solid rgba(255,255,255,.1); }
.trust-grid div:last-child { border-right: 1px solid rgba(255,255,255,.1); }
.trust-grid strong { color: var(--gold-light); font-family: 'Cormorant Garamond', serif; font-size: 25px; }
.trust-grid span { font-size: 13px; color: rgba(255,255,255,.82); }

.section { padding: 108px 0; }
.section-soft { background: #f5f7f5; }
.about-grid, .billing-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; align-items: start; }
.section-heading h2, .contact-copy h2 { margin: 0; font-size: clamp(42px, 4.4vw, 60px); }
.section-heading > p:last-child { color: var(--muted); max-width: 620px; }
.section-heading.centered { text-align: center; max-width: 760px; margin: 0 auto 50px; }
.section-heading.centered > p:last-child { margin-left: auto; margin-right: auto; }
.lead-paragraph { font-size: 20px; color: #34423b; margin-top: 0; }
.about-content > p:not(.lead-paragraph) { color: var(--muted); }
.quote-card { margin-top: 34px; padding: 28px 30px; border-left: 3px solid var(--gold); background: var(--cream); display: flex; gap: 18px; }
.quote-card span { color: var(--gold); font: 700 48px/1 'Cormorant Garamond', serif; }
.quote-card p { margin: 0; font-family: 'Cormorant Garamond', serif; font-size: 22px; line-height: 1.4; }

.services-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.service-card { background: white; border: 1px solid var(--line); padding: 36px; min-height: 285px; transition: .22s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(9,37,29,.08); border-color: rgba(182,139,66,.35); }
.service-number { color: var(--gold); font: 600 18px 'Cormorant Garamond', serif; }
.service-card h3 { margin: 34px 0 12px; color: var(--green-950); font: 600 31px/1.1 'Cormorant Garamond', serif; }
.service-card p { color: var(--muted); margin-bottom: 28px; }
.service-card a { color: var(--green-800); font-weight: 600; font-size: 13px; }

.billing-options { border-top: 1px solid var(--line); }
.billing-row { display: grid; grid-template-columns: 58px 1fr; gap: 15px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.billing-row > span { color: var(--gold); font: 600 18px 'Cormorant Garamond', serif; }
.billing-row h3 { margin: 0 0 6px; font: 600 25px 'Cormorant Garamond', serif; color: var(--green-950); }
.billing-row p { margin: 0; color: var(--muted); }

.contact-section { padding: 100px 0; background: var(--green-950); color: white; position: relative; overflow: hidden; }
.contact-section::before { content: ''; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(212,184,119,.12); border-radius: 50%; left: -220px; bottom: -220px; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: start; position: relative; z-index: 1; }
.eyebrow-light { color: var(--gold-light); }
.contact-copy h2 { color: white; }
.contact-copy > p:not(.eyebrow) { color: rgba(255,255,255,.68); max-width: 540px; font-size: 17px; }
.contact-details { margin-top: 42px; display: grid; gap: 18px; }
.contact-details a, .contact-details div { display: flex; flex-direction: column; }
.contact-details span { color: var(--gold-light); font-size: 11px; text-transform: uppercase; letter-spacing: .16em; }
.contact-details strong { margin-top: 4px; font-weight: 500; }
.contact-form { background: white; color: var(--ink); padding: 36px; border-radius: 8px; box-shadow: 0 26px 70px rgba(0,0,0,.18); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: block; margin-bottom: 18px; font-size: 13px; font-weight: 600; color: #39453f; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; margin-top: 8px; border: 1px solid #d5ddd8; border-radius: 4px; padding: 13px 14px; color: var(--ink); background: #fff;
  outline: none; transition: border .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(182,139,66,.12); }
.contact-form textarea { resize: vertical; min-height: 125px; }
.checkbox-row { display: grid !important; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-weight: 400 !important; color: var(--muted) !important; line-height: 1.45; }
.checkbox-row input { width: 16px; margin: 3px 0 0; accent-color: var(--green-800); }
.form-status { display: none; padding: 11px 13px; margin: 14px 0 0; font-size: 13px; border-radius: 4px; }
.form-status.visible { display: block; }
.form-status.success { background: #eef7f0; color: #235d32; }
.form-status.error { background: #fff0f0; color: #8a2d2d; }
.form-note { margin: 13px 0 0; color: #89918d; font-size: 11px; text-align: center; }

.site-footer { background: #071b15; color: rgba(255,255,255,.7); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .7fr .7fr; gap: 70px; }
.brand-footer { color: white; margin-bottom: 18px; }
.footer-grid > div:first-child p { max-width: 400px; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 9px; }
.footer-grid strong { color: white; margin-bottom: 6px; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-bottom { margin-top: 45px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 20px; font-size: 12px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal-delay { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .22s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .hero-grid, .about-grid, .billing-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .main-nav { position: fixed; inset: 82px 0 0; background: white; padding: 30px 20px; flex-direction: column; align-items: flex-start; transform: translateX(100%); transition: transform .25s ease; }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .section { padding: 80px 0; }
  .hero { padding-top: 70px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1/-1; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .brand-text strong { font-size: 16px; }
  .hero h1 { font-size: 48px; }
  .hero-card { padding: 30px; }
  .trust-grid, .services-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .trust-grid div { min-height: 82px; border-right: 0 !important; }
  .section { padding: 66px 0; }
  .contact-section { padding: 70px 0; }
  .contact-form { padding: 24px 18px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

/* Identyfikacja wizualna kancelarii */
.brand-logo img {
  width: 255px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.about-profile { display: grid; gap: 38px; }
.lawyer-photo-placeholder {
  min-height: 470px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  background: linear-gradient(145deg, #f5f2e9, #e8eee9);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.lawyer-photo-placeholder::before {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(182,139,66,.35);
}
.photo-watermark {
  position: absolute;
  width: 66%;
  max-height: 76%;
  object-fit: contain;
  left: 50%;
  top: 44%;
  transform: translate(-50%,-50%);
  opacity: .12;
}
.photo-placeholder-copy { position: relative; z-index: 1; display: flex; flex-direction: column; }
.photo-placeholder-copy span { color: var(--green-950); font: 600 24px/1.1 'Cormorant Garamond', serif; }
.photo-placeholder-copy small { margin-top: 7px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .13em; }
.about-heading h2 { font-size: clamp(38px, 3.8vw, 52px); }
.footer-logo img { width: 300px; height: 72px; object-fit: contain; object-position: left center; }

@media (max-width: 900px) {
  .brand-logo img { width: 220px; height: 52px; }
  .lawyer-photo-placeholder { min-height: 520px; max-width: 560px; }
}
@media (max-width: 620px) {
  .brand-logo img { width: 190px; height: 46px; }
  .lawyer-photo-placeholder { min-height: 420px; padding: 24px; }
  .footer-logo img { width: 250px; }
}


/* Ulepszona sekcja O kancelarii */
.about-section { position: relative; }
.about-section > .about-heading {
  max-width: 900px;
  margin-bottom: 54px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.about-section > .about-heading h2 {
  max-width: 850px;
  font-size: clamp(42px, 4.5vw, 64px);
  line-height: 1.02;
}
.about-section > .about-heading h2 span { color: var(--green-800); }
.about-section .about-grid {
  grid-template-columns: .9fr 1.1fr;
  gap: 76px;
  align-items: center;
}
.about-section .about-profile { display: block; }
.about-section .lawyer-photo-placeholder { min-height: 540px; }
.about-section .about-content {
  padding: 16px 0 16px 42px;
  border-left: 1px solid var(--line);
}
.about-section .lead-paragraph {
  font-family: 'Cormorant Garamond', serif;
  font-size: 27px;
  line-height: 1.45;
  color: var(--green-950);
}
@media (max-width: 900px) {
  .about-section > .about-heading { margin-bottom: 38px; }
  .about-section .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-section .about-content { padding: 0; border-left: 0; }
}
@media (max-width: 620px) {
  .about-section > .about-heading h2 { font-size: 40px; }
  .about-section > .about-heading { margin-bottom: 30px; padding-bottom: 24px; }
  .about-section .lead-paragraph { font-size: 24px; }
}

/* Netlify Forms */
.netlify-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.contact-form .btn:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
}

/* Poprawione menu mobilne */
@media (max-width: 900px) {
  .main-nav {
    inset: 82px 0 auto auto;
    width: min(360px, 88vw);
    height: calc(100dvh - 82px);
    padding: 32px 26px;
    background: #fff;
    box-shadow: -18px 24px 45px rgba(9, 37, 29, .14);
    transform: translateX(110%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 60;
  }

  .main-nav.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .nav-toggle {
    position: relative;
    z-index: 70;
    cursor: pointer;
  }
}

@media (min-width: 901px) {
  body.menu-open { overflow: auto; }
  .main-nav {
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

/* Blokada poziomego przewijania na mobile */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html, body {
    overflow-x: clip;
  }
}

@media (max-width: 900px) {
  .site-header,
  .hero,
  main,
  .trust-strip,
  .contact-section,
  .site-footer {
    max-width: 100%;
    overflow-x: clip;
  }

  .nav-wrap {
    min-width: 0;
  }

  .brand-logo {
    min-width: 0;
    max-width: calc(100% - 58px);
  }

  .brand-logo img {
    max-width: 100%;
  }

  .main-nav {
    right: 0;
    left: auto;
    max-width: 88vw;
    will-change: transform;
  }
}

/* Privacy / legal */
.checkbox-row a,
.form-privacy-note a,
.legal-page a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.form-privacy-note { margin: -4px 0 18px; font-size: 12px; line-height: 1.65; opacity: .78; }
.form-privacy-note strong { font-weight: 600; }
.legal-hero { padding: 88px 0 38px; background: var(--cream, #f7f3eb); border-bottom: 1px solid var(--line); }
.legal-hero h1 { max-width: 900px; margin: 10px 0 0; }
.legal-section { padding: 64px 0 90px; }
.legal-content { max-width: 860px; }
.legal-content h2 { margin: 38px 0 12px; font-size: clamp(25px, 3vw, 34px); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { line-height: 1.8; color: var(--text-muted, #5c5c5c); }
.legal-content ul { padding-left: 22px; }
.legal-notice { margin: 0 0 30px; padding: 18px 20px; border-left: 3px solid var(--gold, #c59a45); background: rgba(197,154,69,.08); }
.legal-back { display: inline-flex; margin-top: 32px; }
@media (max-width: 700px) { .legal-hero { padding: 62px 0 28px; } .legal-section { padding: 42px 0 70px; } }

/* Aktualizacja po uwagach klienta */
section[id] { scroll-margin-top: 96px; }
.hero-values span { text-transform: uppercase; letter-spacing: .11em; font-weight: 700; color: var(--green-800); }
.office-about-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 82px; align-items: center; }
.office-mark { min-height: 420px; background: var(--green-950); display: grid; place-items: center; border-radius: var(--radius); overflow: hidden; }
.office-mark img { width: min(230px, 58%); opacity: .92; }
.person-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; align-items: center; }
.person-copy h2 { margin: 0 0 24px; font: 600 clamp(44px,5vw,66px)/1 'Cormorant Garamond',serif; color: var(--green-950); }
.person-intro { font-size: 21px; color: #34423b; }
.placeholder-text { color: var(--muted); }
.values-band { background: var(--green-900); color: white; padding: 42px 0; }
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); }
.values-grid div { padding: 8px 38px; border-left: 1px solid rgba(255,255,255,.13); }
.values-grid div:last-child { border-right: 1px solid rgba(255,255,255,.13); }
.values-grid strong { display: block; color: var(--gold-light); text-transform: uppercase; letter-spacing: .14em; font-size: 14px; }
.values-grid span { display: block; margin-top: 7px; color: rgba(255,255,255,.72); font-size: 13px; }
.gallery-section { background: var(--cream); }
.gallery-section .section-heading { max-width: 760px; margin-bottom: 44px; }
.gallery-section .section-heading h2 span { color: var(--green-800); }
.gallery-grid { display: grid; grid-template-columns: 1.35fr .65fr; grid-template-rows: repeat(2,220px); gap: 18px; }
.gallery-placeholder { background: #ede9df; border: 1px solid rgba(182,139,66,.25); display: grid; place-items: center; position: relative; overflow: hidden; min-width: 0; }
.gallery-placeholder.gallery-large { grid-row: 1 / 3; }
.gallery-placeholder img { width: 110px; opacity: .13; }
.gallery-placeholder span { position: absolute; bottom: 20px; left: 22px; color: #7b7468; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; }
.branch-address { margin-top: 8px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }
.branch-address em { margin-top: 9px; max-width: 500px; color: rgba(255,255,255,.62); font-size: 12px; font-style: normal; line-height: 1.55; }

/* Menu mobilne: panel jest przypięty do viewportu, a nie do miejsca otwarcia strony. */
@media (max-width: 900px) {
  .site-header { position: sticky; top: 0; }
  .main-nav {
    position: fixed !important;
    top: 82px !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    height: calc(100dvh - 82px) !important;
    max-height: calc(100dvh - 82px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .office-about-grid, .person-grid { grid-template-columns: 1fr; gap: 42px; }
  .office-mark { min-height: 320px; }
  .values-grid { grid-template-columns: 1fr; }
  .values-grid div, .values-grid div:last-child { border-right: 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.13); padding: 18px 0; }
  .values-grid div:last-child { border-bottom: 0; }
}
@media (max-width: 620px) {
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: 300px 190px 190px; }
  .gallery-placeholder.gallery-large { grid-row: auto; }
  .person-copy h2 { font-size: 44px; }
}


/* Finalne menu mobilne — niezależne od pozycji przewinięcia strony */
.nav-backdrop { display: none; }

@media (max-width: 900px) {
  body.has-mobile-menu.menu-open {
    overflow: hidden !important;
  }

  body.has-mobile-menu .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1200 !important;
  }

  body.has-mobile-menu .nav-toggle {
    display: block !important;
    position: relative !important;
    z-index: 1300 !important;
  }

  body.has-mobile-menu .main-nav {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: min(360px, 88vw) !important;
    max-width: 88vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 100px 28px 34px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    background: #fff !important;
    box-shadow: -20px 0 55px rgba(9, 37, 29, .22) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    transform: translate3d(105%, 0, 0) !important;
    opacity: 1 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform .28s ease, visibility 0s linear .28s !important;
    z-index: 1150 !important;
  }

  body.has-mobile-menu .main-nav.open {
    transform: translate3d(0, 0, 0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: transform .28s ease, visibility 0s !important;
  }

  body.has-mobile-menu .main-nav a {
    width: 100% !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid var(--line) !important;
    font-size: 16px !important;
  }

  body.has-mobile-menu .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(5, 20, 15, .42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility 0s linear .25s;
  }

  body.has-mobile-menu .nav-backdrop.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .25s ease, visibility 0s;
  }
}

@media (min-width: 901px) {
  body.has-mobile-menu .nav-backdrop { display: none !important; }
}

/* Mobilne menu v3 — osobna warstwa na poziomie BODY. Nie zależy od scrolla ani headera. */
.mobile-menu-layer { display: none; }

@media (max-width: 900px) {
  /* Desktopowa nawigacja nie pełni już roli szuflady na mobile. */
  body.has-mobile-menu .site-header .main-nav {
    display: none !important;
  }

  body.has-mobile-menu .nav-backdrop {
    display: none !important;
  }

  .mobile-menu-layer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 10000;
    visibility: hidden;
    pointer-events: none;
    overscroll-behavior: none;
  }

  .mobile-menu-layer.is-open {
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 20, 15, .46);
    opacity: 0;
    transition: opacity .24s ease;
    touch-action: none;
  }

  .mobile-menu-layer.is-open .mobile-menu-backdrop {
    opacity: 1;
  }

  .mobile-menu-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: min(360px, 88vw);
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
    padding: max(22px, env(safe-area-inset-top)) 28px 32px;
    background: #fff;
    box-shadow: -20px 0 55px rgba(9, 37, 29, .22);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    transform: translate3d(105%, 0, 0);
    transition: transform .28s ease;
  }

  .mobile-menu-layer.is-open .mobile-menu-drawer {
    transform: translate3d(0, 0, 0);
  }

  .mobile-menu-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0 0 24px auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--green-950);
    font: 300 38px/1 Arial, sans-serif;
    cursor: pointer;
  }

  .mobile-menu-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .mobile-menu-nav a {
    display: block;
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    color: #37423c;
    font-size: 16px;
    font-weight: 500;
  }

}

/* Zdjęcia i biografia – październik 2026 */
.person-grid { align-items: start; gap: clamp(34px,5vw,78px); }
.person-portrait { margin: 0; position: sticky; top: 110px; min-width: 0; overflow: hidden; border-radius: 3px; background: #e6e8e7; }
.person-portrait img { display:block; width:100%; height:auto; max-height: 780px; object-fit: cover; object-position: center top; }
.person-copy p:not(.eyebrow) { line-height:1.82; margin:0 0 17px; }
.person-copy .person-signoff { font: 600 clamp(24px,3vw,32px)/1.2 'Cormorant Garamond',serif; color:var(--green-900); margin-top:25px; }
.photo-gallery { display:grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: 260px 260px; gap:16px; }
.photo-gallery figure { margin:0; min-width:0; overflow:hidden; background:#16221f; }
.photo-gallery .photo-gallery-main { grid-row: span 2; }
.photo-gallery img { display:block; width:100%; height:100%; object-fit:cover; transition: transform .4s ease; }
.photo-gallery figure:hover img { transform:scale(1.035); }
@media(max-width:900px) { .person-portrait {position:static;max-width:560px;} .photo-gallery {grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,220px);} .photo-gallery .photo-gallery-main {grid-row:span 2;} }
@media(max-width:620px) { .photo-gallery {grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,170px);gap:9px;} .photo-gallery .photo-gallery-main {grid-row:span 2;} .person-portrait img {max-height:620px;} }

/* CTA premium: tekst na czystej zieleni, wizytówka w osobnym fotograficznym pasie */
.hero-card {
  background: linear-gradient(155deg, #103c2e 0%, #09251d 62%, #061c16 100%);
  min-height: 565px;
  padding: 38px 42px 205px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  isolation: isolate;
}
.hero-card::before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 215px;
  background:
    linear-gradient(to bottom, #09251d 0%, rgba(9,37,29,.15) 31%, rgba(9,37,29,.12) 76%, rgba(9,37,29,.50) 100%),
    linear-gradient(90deg, rgba(9,37,29,.35), transparent 30%, transparent 72%, rgba(9,37,29,.25)),
    url('galeria-wizytowka.jpg') center 50% / cover no-repeat;
  z-index: 0;
  pointer-events: none;
}
.hero-card::after { width: 115px; height: 115px; right: -35px; top: -38px; z-index: 0; }
.hero-card > * { z-index: 1; }
.hero-card-symbol { font-size: 46px; }
.hero-card-kicker { margin-top: 14px; }
.hero-card h2 { max-width: 390px; }
.hero-card p:not(.hero-card-kicker) { max-width: 390px; margin-bottom: 12px; }
.hero-card .text-link { margin-top: 10px; }
@media (max-width: 720px) {
  .hero-card { min-height: 545px; padding: 32px 30px 195px; }
  .hero-card::before { height: 205px; background-position: center, center, center 50%; }
}
@media (max-width: 380px) {
  .hero-card { padding: 28px 25px 175px; min-height: 555px; }
  .hero-card::before { height: 185px; }
}

/* Premium 2026: hero, biografia, proces i galeria */
.hero-grid {grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:clamp(30px,5vw,72px)}
.hero h1 {font-size:clamp(45px,5vw,72px);line-height:1.05}
.hero-photo {margin:0;position:relative;min-height:540px;align-self:stretch;overflow:hidden;border-radius:18px;background:#0b1f1a;box-shadow:0 24px 55px rgba(8,34,27,.17)}
.hero-photo picture,.hero-photo img {display:block;width:100%;height:100%}
.hero-photo img {position:absolute;inset:0;object-fit:cover;object-position:42% center}
.hero-photo::after {content:"";position:absolute;inset:55% 0 0;background:linear-gradient(transparent,rgba(4,22,17,.88))}
.hero-photo figcaption {position:absolute;bottom:28px;left:30px;z-index:1;display:grid;gap:3px;color:#fff}
.hero-photo figcaption span {font:600 29px/1.1 'Cormorant Garamond',serif}
.hero-photo figcaption small {color:#e0c58b;letter-spacing:.09em;text-transform:uppercase}
.bio-details {border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:22px 0;padding:17px 0}
.bio-details summary {display:flex;justify-content:space-between;align-items:center;gap:20px;cursor:pointer;font-weight:650;color:var(--green-800);list-style:none}
.bio-details summary::-webkit-details-marker {display:none}
.bio-details[open] summary span {transform:rotate(45deg)}
.bio-details summary span {transition:transform .2s ease;font-size:24px}
.bio-details-content {padding-top:22px}
.process-section {background:#fff}
.process-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.process-card {padding:32px;border:1px solid var(--line);border-top:3px solid var(--gold);background:var(--cream)}
.process-card>span {font:600 26px 'Cormorant Garamond',serif;color:var(--gold)}
.process-card h3 {font:600 31px 'Cormorant Garamond',serif;margin:20px 0 10px;color:var(--green-950)}
.process-card p {margin:0;color:var(--muted)}
.photo-gallery.photo-gallery-curated {grid-template-columns:1.25fr .75fr;grid-template-rows:360px;gap:20px}
.photo-gallery-curated figure {grid-row:auto!important;border-radius:8px}
.service-card {display:flex;flex-direction:column;min-height:245px}
.service-card h3 {margin:8px 0 12px}
.service-card a {margin-top:auto}
@media(max-width:900px) {.hero-grid {grid-template-columns:1fr}.hero-photo {min-height:480px}.process-grid {grid-template-columns:1fr}.photo-gallery.photo-gallery-curated {grid-template-rows:280px}}
@media(max-width:620px) {.hero-photo {min-height:380px}.hero-photo img {object-position:42% center}.photo-gallery.photo-gallery-curated {grid-template-columns:1fr;grid-template-rows:250px 210px}.hero h1 {font-size:clamp(43px,10vw,58px)}.process-card {padding:25px}}
@media(prefers-reduced-motion:reduce){.reveal,.reveal-delay,.reveal-delay-2 {opacity:1!important;transform:none!important;transition:none!important}}

/* Sekcja O kancelarii: tekst po lewej, sygnet po prawej */
@media (min-width: 901px) {
  .office-about-grid { grid-template-columns: 1.25fr .75fr; gap: clamp(36px, 5vw, 82px); }
}
.office-about-grid .about-content { border-left: 0; padding-left: 0; }
.office-mark { position: relative; min-height: 390px; background: #08291f; isolation: isolate; }
.office-mark::after { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(188,145,67,.26); border-radius: 12px; pointer-events: none; }
.office-mark img { width: min(168px, 45%); max-height: 240px; object-fit: contain; opacity: .95; }
@media (max-width: 900px) { .office-mark { min-height: 300px; } }

/* Fotografia kancelarii zamiast dekoracyjnego sygnetu w sekcji O kancelarii */
.office-mark.office-photo { background: #edf0ed; min-height: 390px; }
.office-mark.office-photo::after { display: none; }
.office-mark.office-photo img { display: block; width: 100%; height: 100%; min-height: 390px; max-height: none; object-fit: cover; object-position: center 34%; opacity: 1; }
@media (max-width: 900px) { .office-mark.office-photo, .office-mark.office-photo img { min-height: 340px; } }
