/* ==========================================================================
   KANCELARIA NOTARIALNA W CHEŁMIE
   System wizualny: "Papier i pieczęć" (cichy luksus)
   Atrament · mosiądz · lak pieczętny
   ========================================================================== */

/* --------------------------------------------------------------------------
   FONTY (hostowane lokalnie, patrz fonts/README.txt)
   Cormorant Garamond 500 (normal + italic) i Hanken Grotesk 400/500.
   Każdy krój w dwóch podzbiorach: latin + latin-ext (polskie znaki).
   Gdy pliku brak, przeglądarka używa fallbacków z --font-display / --font-sans.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-ext-500-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/hanken-grotesk-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/hanken-grotesk-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   TOKENY
   -------------------------------------------------------------------------- */
:root {
  /* Kolory */
  --paper: #F5F1E8;
  --paper-deep: #ECE6DA;
  --ink: #14130F;
  --ink-2: #4A463E;
  --obsidian: #101412;
  --obsidian-2: #171C19;
  --brass: #7A5C34;
  --brass-light: #C2A26B;
  --wax: #6B1E2A;
  --on-dark: #F2EDE2;
  --on-dark-2: #B9B3A4;

  --line: rgba(20, 19, 15, 0.14);
  --line-strong: rgba(20, 19, 15, 0.32);
  --line-dark: rgba(242, 237, 226, 0.16);

  /* Typografia */
  --font-display: "Cormorant Garamond", "Cormorant", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-sans: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Układ */
  --container: 1320px;
  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --section-space: clamp(5rem, 10vw, 9.5rem);
  --header-h: 84px;

  /* Ruch */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 280ms;

  --z-header: 100;
  --z-call: 90;
}

/* --------------------------------------------------------------------------
   RESET I BAZA
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--paper);
  background-image: radial-gradient(120% 60% at 50% 0%, #FAF7F0 0%, rgba(250, 247, 240, 0) 70%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 4px;
}

.contact a:focus-visible,
.contact button:focus-visible,
.call-bar:focus-visible {
  outline-color: var(--brass-light);
}

ol, ul {
  list-style: none;
}

::selection {
  background: var(--brass);
  color: var(--paper);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nowrap {
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   NAGŁÓWEK
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: var(--z-header);
  background: rgba(245, 241, 232, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  transition: height var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.site-header.is-scrolled {
  height: 72px;
  box-shadow: 0 10px 30px -22px rgba(20, 19, 15, 0.45);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2vw, 2rem);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-seal {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--brass);
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px rgba(122, 92, 52, 0.45);
  transition: transform var(--dur) var(--ease);
}

.brand-seal img {
  width: 24px;
  height: auto;
  mix-blend-mode: multiply;
}

.brand-seal:hover {
  transform: rotate(-4deg);
}

.sitename {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  padding-left: 0.9rem;
  min-width: 0;
}

.sitename-title {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 0.1rem;
}

.sitename-person {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--ink-2);
}

.nav-panel {
  display: flex;
  align-items: center;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 1.9vw, 2.2rem);
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color var(--dur) var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.1rem;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 420ms var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.5rem 1.15rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.phone-btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.phone-btn:hover {
  background: var(--wax);
}

.phone-btn:active {
  transform: translateY(1px);
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  color: var(--ink);
  transition: background-color var(--dur) var(--ease);
}

.nav-toggle:hover {
  background: var(--paper-deep);
}

.nav-toggle-icon {
  position: relative;
  width: 18px;
  height: 10px;
}

.nav-toggle-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}

.nav-toggle-icon span:nth-child(1) { top: 0; }
.nav-toggle-icon span:nth-child(2) { top: 9px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(1) {
  top: 4.5px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) {
  top: 4.5px;
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   HERO (typograficzne, z pieczęcią)
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--header-h);
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(3rem, 8vh, 6rem);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.motto {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(3.5rem, 7.2vw, 7.4rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: clamp(1.75rem, 3.5vw, 3rem);
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.line > span {
  display: block;
}

.hero-rule {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}

.hero-rule::before {
  content: "";
  width: 64px;
  height: 1px;
  background: var(--brass);
}

.hero-rule::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--wax);
}

.oath p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.1vw, 1.85rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 36em;
  text-wrap: pretty;
}

.seal-wrap {
  justify-self: center;
  width: min(100%, 460px);
}

.seal {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}

.seal-ring {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: seal-turn 180s linear infinite;
}

.seal-text {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  fill: var(--brass);
}

@keyframes seal-turn {
  to { transform: rotate(360deg); }
}

.hero-info {
  border-top: 1px solid var(--line);
}

.hero-info .container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 3rem;
  padding-block: 1.5rem;
}

.hero-info p {
  font-size: 1rem;
  color: var(--ink-2);
}

.hero-info strong {
  font-weight: 500;
  color: var(--ink);
}

.hero-info a {
  border-bottom: 1px solid var(--brass);
  padding-bottom: 1px;
  transition: color var(--dur) var(--ease);
}

.hero-info a:hover {
  color: var(--wax);
}

/* --------------------------------------------------------------------------
   WSPÓLNY UKŁAD SEKCJI
   -------------------------------------------------------------------------- */
.section {
  padding-block: var(--section-space);
  border-bottom: 1px solid var(--line);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.section-label {
  position: sticky;
  top: calc(var(--header-h) + 2.5rem);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 4.4vw, 3.9rem);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.section-title::before {
  content: "";
  flex: none;
  width: 28px;
  height: 1px;
  background: var(--brass);
}

/* --------------------------------------------------------------------------
   O KANCELARII
   -------------------------------------------------------------------------- */
.about-text p {
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  line-height: 1.85;
  color: var(--ink);
  max-width: 62ch;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   NOTARIUSZE
   -------------------------------------------------------------------------- */
.notaries-head {
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
  padding-bottom: clamp(1.75rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.notaries-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.portrait {
  position: relative;
  margin: 0 16px 16px 0;
}

.portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--brass);
  transform: translate(16px, 16px);
  transition: transform 700ms var(--ease);
}

.portrait-frame {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper-deep);
  box-shadow: 0 30px 50px -34px rgba(20, 19, 15, 0.5);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  /* Jednolita, ciepła korekta tonalna dla obu portretów */
  filter: sepia(0.14) saturate(0.92) contrast(1.03);
  transform: scale(var(--zoom, 1));
  transform-origin: var(--origin, 50% 50%);
  transition: transform 1400ms var(--ease);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 19, 15, 0) 60%, rgba(20, 19, 15, 0.16) 100%);
  pointer-events: none;
}

.notary:hover .portrait::before {
  transform: translate(10px, 10px);
}

.notary:hover .portrait-frame img {
  transform: scale(calc(var(--zoom, 1) * 1.04));
}

.notary-details {
  margin-top: clamp(2rem, 3.5vw, 3rem);
}

.notary-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 3.4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.notary-name span {
  display: block;
}

.notary-name .firstname {
  font-style: italic;
  color: var(--ink-2);
}

.notary-position {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.notary-description {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink-2);
  max-width: 60ch;
  text-wrap: pretty;
}

.notary-mail {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
  min-height: 44px;
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 2px;
  overflow-wrap: anywhere;
  transition: color var(--dur) var(--ease), gap var(--dur) var(--ease);
}

.notary-mail::after {
  content: "→";
  color: var(--brass);
  transition: transform var(--dur) var(--ease);
}

.notary-mail:hover {
  color: var(--wax);
}

.notary-mail:hover::after {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   CZYNNOŚCI
   -------------------------------------------------------------------------- */
.actions {
  background: var(--paper-deep);
}

.actions-lead {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line-strong);
}

.actions-lead p {
  font-size: clamp(1.1rem, 1.35vw, 1.2rem);
  line-height: 1.8;
  color: var(--ink-2);
  max-width: 64ch;
  text-wrap: pretty;
}

.actions-lead p:last-child {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.25;
  color: var(--ink);
  margin-top: 0.5rem;
}

.ledger {
  counter-reset: item;
}

.ledger li {
  counter-increment: item;
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  align-items: baseline;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  line-height: 1.65;
  text-wrap: pretty;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.ledger li::before {
  content: counter(item, decimal-leading-zero);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--brass);
  font-variant-numeric: lining-nums tabular-nums;
}

.ledger li:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.ledger-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  column-gap: clamp(2rem, 4vw, 4rem);
}

.ledger-long {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding-top: 0.5rem;
  border-top: 1px solid var(--line-strong);
}

.ledger-long li {
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   KONTAKT
   -------------------------------------------------------------------------- */
.contact {
  background: var(--obsidian);
  color: var(--on-dark);
  padding-block: var(--section-space);
}

.contact .section-title {
  color: var(--on-dark);
}

.contact .section-title::before {
  background: var(--brass-light);
}

.contact-body {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.contact-phone {
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line-dark);
}

.contact-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 0.4rem;
}

.contact-phone a {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--on-dark);
  border-bottom: 1px solid var(--brass-light);
  padding-bottom: 0.05em;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.contact-phone a:hover {
  color: var(--brass-light);
}

.contact-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line-dark);
}

.contact-item {
  padding-left: 1.25rem;
  border-left: 1px solid var(--line-dark);
  transition: border-color var(--dur) var(--ease);
}

.contact-item:hover {
  border-left-color: var(--brass-light);
}

.contact-item:last-child {
  grid-column: 1 / -1;
}

.contact-item p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--on-dark-2);
}

.contact-item span,
.contact-item a {
  color: var(--on-dark);
  font-weight: 500;
}

.contact-item a {
  display: inline-block;
  min-height: 32px;
  overflow-wrap: anywhere;
  border-bottom: 1px solid rgba(242, 237, 226, 0.3);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.contact-item a:hover {
  color: #fff;
  border-bottom-color: var(--brass-light);
}

.map-box {
  position: relative;
  min-height: 440px;
  background-color: var(--obsidian-2);
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 56px 56px;
  border: 1px solid var(--line-dark);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.map-box.is-loaded {
  background-image: none;
  display: block;
}

.map-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem;
  background: var(--obsidian);
  border: 1px solid var(--line-dark);
}

.map-btn {
  min-height: 48px;
  padding: 0.7rem 2rem;
  background: transparent;
  border: 1px solid var(--brass-light);
  color: var(--brass-light);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.map-btn:hover {
  background: var(--brass-light);
  color: var(--obsidian);
}

.map-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.95rem;
  color: var(--on-dark-2);
  border-bottom: 1px solid var(--line-dark);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.map-link:hover {
  color: var(--on-dark);
  border-bottom-color: var(--brass-light);
}

.map-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------------
   STOPKA
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--obsidian);
  color: var(--on-dark-2);
  border-top: 1px solid var(--line-dark);
  padding-block: 2.25rem;
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.site-footer span {
  color: var(--on-dark);
  font-weight: 500;
}

.site-footer small {
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   PASEK TELEFONU (mobile)
   -------------------------------------------------------------------------- */
.call-bar {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: var(--z-call);
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 60px;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--paper);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: transform 450ms var(--ease);
}

.call-bar svg {
  width: 18px;
  height: 18px;
}

.call-bar.is-hidden {
  transform: translateY(100%);
}

/* --------------------------------------------------------------------------
   RUCH (tylko transform i opacity)
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}

.js .reveal.is-visible,
.reveal-all .reveal {
  opacity: 1;
  transform: none;
}

.js .reveal.d1 { transition-delay: 100ms; }
.js .reveal.d2 { transition-delay: 200ms; }

.js .line > span {
  transform: translateY(108%);
  transition: transform 1200ms var(--ease);
}

.js .line:nth-child(2) > span {
  transition-delay: 140ms;
}

.js.is-ready .line > span,
.reveal-all .line > span {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js .reveal,
  .js .line > span {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .seal-ring { animation: none; }
  .seal { transform: none; }
  .portrait::before,
  .portrait-frame img { transition: none; }
}

/* --------------------------------------------------------------------------
   RESPONSYWNOŚĆ
   -------------------------------------------------------------------------- */
@media (max-width: 1240px) {
  .nav-toggle {
    display: grid;
  }

  .nav-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.75rem;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  }

  .nav-panel.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }

  .main-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .main-menu li + li {
    border-top: 1px solid var(--line);
  }

  .nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 0.9rem;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.active {
    color: var(--brass);
  }
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .seal-wrap {
    justify-self: start;
    width: min(78vw, 340px);
  }

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

  .section-label {
    position: static;
  }

  .notaries-grid {
    grid-template-columns: 1fr;
    gap: clamp(4rem, 9vw, 6rem);
  }

  .portrait {
    max-width: 640px;
  }

}

@media (max-width: 640px) {
  .contact-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 72px;
  }

  body {
    padding-bottom: 60px;
  }

  .header-actions .phone-btn {
    display: none;
  }

  .call-bar {
    display: flex;
  }

  .brand {
    gap: 0.7rem;
  }

  .brand-seal {
    width: 42px;
    height: 42px;
  }

  .brand-seal img {
    width: 21px;
  }

  .sitename {
    padding-left: 0.7rem;
  }

  .sitename-title {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .sitename-person {
    font-size: 0.7rem;
  }

  .ledger-main {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
  }

  .hero-info .container {
    flex-direction: column;
    gap: 0.25rem;
  }

  .map-box {
    min-height: 360px;
  }
}

@media (max-width: 380px) {
  .sitename-title {
    font-size: 0.58rem;
    letter-spacing: 0.05em;
  }

  .sitename-person {
    font-size: 0.66rem;
  }
}
