/* ============================================================
   DESIGN SYSTEM — CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* ── Color Palette ── */
  --navy:         #0d1c36;
  --navy-mid:     #1a2e52;
  --navy-dark:    #070f1f;
  --cream:        #f5f0e8;
  --cream-dark:   #ece6db;
  --warm-white:   #fdfaf5;
  --gold:         #9a7440;
  --gold-mid:     #b89055;
  --gold-light:   #d4aa78;
  --gold-faint:   rgba(154, 116, 64, 0.10);
  --gold-border:  rgba(154, 116, 64, 0.25);
  --text:         #1a1a1a;
  --text-mid:     #444444;
  --text-muted:   #787878;
  --border:       #ddd6c6;
  --white:        #ffffff;

  /* ── Typography ── */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Lato', 'Helvetica Neue', Arial, sans-serif;

  /* ── Spacing ── */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-14: 3.5rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* ── Layout ── */
  --container-max:  1160px;
  --container-px:   1.5rem;
  --header-h:       84px;
  --section-py:     6rem;

  /* ── Transitions ── */
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:  cubic-bezier(0.0, 0.0, 0.2, 1.0);
  --dur-fast:  0.18s;
  --dur:       0.32s;
  --dur-slow:  0.6s;

  /* ── Shadows ── */
  --shadow-sm: 0 2px 12px rgba(13, 28, 54, 0.07);
  --shadow:    0 6px 28px rgba(13, 28, 54, 0.10);
  --shadow-lg: 0 12px 48px rgba(13, 28, 54, 0.15);
  --shadow-xl: 0 20px 72px rgba(13, 28, 54, 0.18);
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
address { font-style: normal; }
em { font-style: italic; }


/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1.25rem;
  background: var(--navy);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 0 0 4px 4px;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--gold-mid);
  outline-offset: 3px;
}


/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}


/* ── Shared section header ── */
.section__header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.section__eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.section__rule {
  width: 56px;
  height: 1px;
  background: var(--gold-mid);
  margin: 1.25rem auto 0;
}


/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--header-h);
  /* Transparent by default — over hero */
  background: transparent;
  transition:
    background var(--dur) var(--ease),
    box-shadow  var(--dur) var(--ease);
}

.header.scrolled {
  background: rgba(253, 250, 245, 0.97);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* ── Logo ── */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 2px;
  text-decoration: none;
  transition: opacity var(--dur-fast);
}
.logo:hover { opacity: 0.75; }

.logo__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.02em;
  transition: color var(--dur) var(--ease);
}
.logo__name em { font-style: normal; color: var(--gold-light); }

.logo__sub {
  font-size: 0.575rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.50);
  transition: color var(--dur) var(--ease);
}

/* Scrolled state: navy logo */
.header.scrolled .logo__name      { color: var(--navy); }
.header.scrolled .logo__name em   { color: var(--gold); }
.header.scrolled .logo__sub       { color: var(--text-muted); }

/* ── Nav ── */
.nav__list {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__link {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.80);
  padding: 0.25rem 0;
  position: relative;
  transition: color var(--dur-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-light);
  transition: width var(--dur) var(--ease);
}

.nav__link:hover { color: var(--white); }
.nav__link:hover::after { width: 100%; }

/* Scrolled state: navy nav */
.header.scrolled .nav__link {
  color: var(--navy-mid);
}
.header.scrolled .nav__link::after { background: var(--gold); }
.header.scrolled .nav__link:hover  { color: var(--navy); }

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}

.hamburger__bar {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  border-radius: 1px;
  transform-origin: center;
  transition: transform var(--dur) var(--ease), opacity var(--dur), background var(--dur);
}

.header.scrolled .hamburger__bar { background: var(--navy); }

.hamburger.open .hamburger__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open .hamburger__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .hamburger__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Layered gradient: strong left, fades right + bottom darkening */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(7, 15, 31, 0.92) 0%,
      rgba(7, 15, 31, 0.72) 40%,
      rgba(7, 15, 31, 0.30) 100%
    ),
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.45) 0%,
      transparent 45%
    );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
}

.hero__card {
  max-width: 680px;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.4rem;
  animation: fadeSlideUp 0.9s var(--ease) 0.25s both;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 8.5vw, 7.5rem);
  font-weight: 300;
  line-height: 0.96;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
  animation: fadeSlideUp 1.1s var(--ease) 0.45s both;
}

.hero__title em {
  display: block;
  font-style: italic;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
}

.hero__rule {
  width: 72px;
  height: 1px;
  background: var(--gold-mid);
  border: none;
  margin: 0 0 1.5rem;
  animation: scaleIn 0.7s var(--ease) 0.95s both;
  transform-origin: left center;
}

.hero__names {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.70);
  letter-spacing: 0.06em;
  animation: fadeSlideUp 0.8s var(--ease) 1.1s both;
}

.hero__amp {
  color: var(--gold-mid);
  font-style: normal;
}

/* Scroll indicator + call button bottom row */
.hero__bottom {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  z-index: 1;
  animation: fadeSlideUp 0.6s var(--ease) 1.6s both;
}

.hero__call {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.35rem;
  border: 1px solid var(--gold-mid);
  border-radius: 2rem;
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.hero__call:hover {
  background: var(--gold-mid);
  color: var(--white);
  border-color: var(--gold-mid);
}

.hero__scroll {
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: color var(--dur-fast);
}

.hero__scroll svg {
  animation: scrollBounce 2.4s ease-in-out 2.8s infinite;
}


/* ============================================================
   SECTION: KANCELARIA
   ============================================================ */
.kancelaria {
  background: var(--warm-white);
}

.kancelaria__layout {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.kancelaria__body .section__header {
  text-align: left;
  margin-bottom: 1.25rem;
}

.kancelaria__body .section__header + .kancelaria__text {
  margin-bottom: 3rem;
}

.kancelaria__body .section__rule {
  margin-left: 0;
}

.kancelaria__text {
  padding-top: 0.5rem;
}

.kancelaria__text p {
  margin-bottom: 1.4rem;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-mid);
}
.kancelaria__text p:last-child { margin-bottom: 0; }

/* English callout */
.kancelaria__english {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 2rem;
  padding: 1.1rem 1.4rem;
  background: var(--gold-faint);
  border-left: 2px solid var(--gold-border);
  color: var(--text-mid);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.kancelaria__en-tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 18px;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  border: 1px solid var(--gold-border);
  margin-top: 3px;
}

/* Offset image grid */
.kancelaria__images {
  position: relative;
  padding-bottom: 72px;
  padding-left: 8px;
}

.kancelaria__img-primary img {
  width: 82%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  box-shadow: var(--shadow-lg);
}

.kancelaria__img-secondary {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 56%;
  border: 7px solid var(--warm-white);
  box-shadow: var(--shadow-xl);
}

.kancelaria__img-secondary img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}


/* ============================================================
   SECTION: ZESPÓŁ (full-bleed rows)
   ============================================================ */
.zespol {
  background: var(--cream);
  padding-bottom: 0;  /* filler image flush at bottom */
}

.team__member {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
  transition: none;
}

.team__member:nth-child(odd)  { background: var(--warm-white); }
.team__member:nth-child(even) { background: var(--cream); }

/* All children default: photo = col 1, text = col 2 */
.team__member .team__photo { order: 1; }
.team__member .team__text  { order: 2; }

/* Reversed: text left, photo right */
.team__member--reverse .team__text  { order: 1; }
.team__member--reverse .team__photo { order: 2; }

.team__photo {
  overflow: hidden;
}

.team__photo img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s var(--ease);
}
.team__member:hover .team__photo img {
  transform: scale(1.025);
}

.team__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px clamp(32px, 7%, 80px);
}

.team__role {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

.team__name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 0.75rem;
}

.team__name-rule {
  width: 40px;
  height: 1px;
  background: var(--gold-mid);
  margin-bottom: 1.6rem;
}

.team__text p {
  margin-bottom: 0.9rem;
  line-height: 1.85;
  color: var(--text-mid);
  font-size: 0.9375rem;
  max-width: 520px;
}
.team__text p:last-child { margin-bottom: 0; }

/* Full-width filler image at bottom of team section */
.team__filler {
  position: relative;
  height: 340px;
  overflow: hidden;
}

.team__filler img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.team__filler-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(13, 28, 54, 0.55) 0%,
    rgba(13, 28, 54, 0.15) 60%,
    transparent 100%
  );
}


/* ============================================================
   SECTION: UDOGODNIENIA
   ============================================================ */
.udogodnienia {
  padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.udogodnienia .section__header {
  margin-bottom: 2.5rem;
}

.udogodnienia__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2rem 2.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.udogodnienia__item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

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

.udogodnienia__icon {
  flex-shrink: 0;
  color: var(--gold);
}

.udogodnienia__name {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
}

.udogodnienia__item p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--text-muted);
}


/* ============================================================
   SECTION: OPŁATY
   ============================================================ */
.oplaty {
  background: var(--warm-white);
}

.oplaty__layout {
  display: grid;
  grid-template-columns: 58fr 42fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.oplaty__lead {
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: 1.6rem;
  line-height: 1.8;
}

.oplaty__list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-bottom: 2.2rem;
}

.oplaty__list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border);
}
.oplaty__list li:last-child { border-bottom: none; padding-bottom: 0; }

.oplaty__num {
  font-size: 0.575rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  padding-top: 5px;
  line-height: 1;
}

.oplaty__list span:last-child {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-mid);
}

.oplaty__content > p {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--text-mid);
  margin-bottom: 1.4rem;
}
.oplaty__content > p:last-of-type { margin-bottom: 0; }

.oplaty__content em {
  font-style: italic;
  color: var(--text-muted);
}

/* Callout box */
.oplaty__callout {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  background: var(--cream);
  border-left: 2px solid var(--gold-mid);
}

.oplaty__callout p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 0.9rem !important;
}

.oplaty__cta-link {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--gold-mid);
  padding-bottom: 2px;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.oplaty__cta-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* Image */
.oplaty__image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  box-shadow: var(--shadow-lg);
}


/* ============================================================
   SECTION: PRZYDATNE LINKI
   ============================================================ */
.linki {
  background: var(--cream);
}

.linki__layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.linki__groups {
  display: flex;
  flex-direction: column;
  gap: 2.8rem;
}

.linki__group-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.02em;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.1rem;
}

.linki__list {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.linki__list a {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 0.55rem 0;
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--navy-mid);
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast), padding-left var(--dur-fast);
  line-height: 1.5;
}

.linki__list a::before {
  content: '—';
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gold-mid);
  margin-right: 0.65rem;
  margin-top: 0.15rem;
  transition: transform var(--dur-fast);
}

.linki__list a:hover {
  color: var(--gold);
  padding-left: 0.3rem;
}
.linki__list a:hover::before {
  transform: translateX(0.3rem);
}

/* Aside */
.linki__aside {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.linki__figure {
  margin: 0;
}

.linki__figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.linki__figure figcaption {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.55;
  padding-top: 0.75rem;
  font-style: italic;
  font-family: var(--font-display);
}


/* ============================================================
   SECTION: CONTACT CTA
   ============================================================ */
.contact-cta {
  background: var(--navy);
}

.contact-cta__eyebrow {
  color: rgba(255, 255, 255, 0.40) !important;
}

.contact-cta__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-bottom: var(--sp-12);
}

.contact-cta__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: 0.01em;
  margin-bottom: 1.25rem;
}

.contact-cta__title em {
  display: block;
  font-style: italic;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88em;
}

.contact-cta__text {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.75rem;
}

.contact-cta__phone {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--gold-mid);
  line-height: 1;
  text-decoration: none;
  transition: color var(--dur-fast);
}
.contact-cta__phone:hover { color: var(--gold-light); }

.contact-cta__building {
  position: relative;
  overflow: hidden;
}

.contact-cta__building img {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: cover;
  box-shadow: var(--shadow-xl);
}

/* Map */
.contact-cta__map-wrap {
  padding-top: var(--sp-4);
  padding-bottom: 0;
}

.contact-cta__map {
  width: 100%;
  height: 400px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-cta__gmaps-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.38);
  text-underline-offset: 3px;
  text-decoration: underline;
  transition: color var(--dur-fast);
}
.contact-cta__gmaps-link:hover { color: rgba(255, 255, 255, 0.75); }


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-dark);
}

.footer__main {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  gap: 2rem 4rem;
  padding-top: 4rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Brand column */
.footer__logo {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}

.footer__logo-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.footer__logo-name em { font-style: normal; color: var(--gold-mid); }

.footer__logo-sub {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

/* Contact / hours columns */
.footer__col-title {
  font-size: 0.575rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-mid);
  margin-bottom: 1.1rem;
}

.footer__contact address p {
  font-size: 0.9375rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.50);
  line-height: 1.65;
}

.footer__link {
  display: block;
  font-size: 0.9375rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.50);
  margin-top: 0.5rem;
  text-decoration: none;
  transition: color var(--dur-fast);
}
.footer__link:hover { color: rgba(255, 255, 255, 0.88); }

.footer__hours p {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.footer__hours-time {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
}

/* Bottom bar */
.footer__seo {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.9rem 0;
}

.footer__seo-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.18);
  text-transform: uppercase;
}

.footer__bottom {
  padding: 1.25rem 0;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.22);
}

.footer__bottom-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__dot { opacity: 0.4; }

.footer__bottom-link {
  color: rgba(255, 255, 255, 0.28);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur-fast);
}
.footer__bottom-link:hover { color: rgba(255, 255, 255, 0.65); }


/* ============================================================
   SCROLL-REVEAL ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.fade-in.visible,
.fade-in-left.visible,
.fade-in-right.visible {
  opacity: 1;
  transform: none;
}


/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

@keyframes scaleIn {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}


/* ============================================================
   RESPONSIVE — ≤ 1024px
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --section-py: 4.5rem;
    --container-px: 1.25rem;
  }

  .kancelaria__layout {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .team__text {
    padding: 52px clamp(24px, 5%, 56px);
  }

  .oplaty__layout {
    grid-template-columns: 55fr 45fr;
    gap: 3rem;
  }

  .linki__layout {
    grid-template-columns: 1fr 240px;
    gap: 3rem;
  }

  .contact-cta__top {
    gap: 2.5rem;
  }

  .footer__main {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem 2.5rem;
  }
}


/* ============================================================
   RESPONSIVE — ≤ 768px (mobile breakpoint)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --header-h:    64px;
    --section-py:  3.5rem;
    --container-px: 1rem;
  }

  /* Mobile nav */
  .hamburger { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--warm-white);
    border-bottom: 2px solid var(--gold-border);
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
    z-index: 899;
    animation: slideDown 0.22s var(--ease);
  }
  .nav.open { display: block; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: 0.85rem var(--container-px);
    color: var(--navy-mid);
    border-bottom: 1px solid var(--border);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
  }
  .nav__link::after { display: none; }
  .nav__item:last-child .nav__link { border-bottom: none; }
  .header:not(.scrolled) .nav__link { color: var(--navy-mid); }

  /* Hero */
  .hero__title { font-size: clamp(3rem, 11vw, 4.5rem); }
  .hero__names { font-size: 1.2rem; }

  /* Section titles */
  .section__title { font-size: 2rem; }
  .section__header { margin-bottom: 3rem; }

  /* Kancelaria */
  .kancelaria__layout { grid-template-columns: 1fr; gap: 3rem; }
  .kancelaria__images { padding-bottom: 56px; }
  .kancelaria__img-secondary { width: 50%; }

  /* Team: stacked */
  .team__member {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .team__member .team__photo,
  .team__member .team__text,
  .team__member--reverse .team__photo,
  .team__member--reverse .team__text {
    order: unset;
  }
  .team__member .team__photo   { order: 1; }  /* photo always first */
  .team__member--reverse .team__photo { order: 1; }
  .team__member .team__text   { order: 2; }
  .team__member--reverse .team__text  { order: 2; }

  .team__photo img { min-height: 320px; max-height: 420px; }
  .team__text { padding: 2.5rem 1.5rem; }
  .team__name { font-size: 1.8rem; }

  .team__filler { height: 200px; }

  /* Opłaty */
  .oplaty__layout { grid-template-columns: 1fr; gap: 3rem; }
  .oplaty__image img { max-height: 420px; }

  /* Linki */
  .linki__layout { grid-template-columns: 1fr; gap: 3rem; }
  .linki__aside { position: static; }
  .linki__figure img { max-height: 320px; }

  /* Contact CTA */
  .contact-cta__top { grid-template-columns: 1fr; gap: 2rem; }
  .contact-cta__map { height: 300px; }
  .contact-cta__phone { font-size: 2.6rem; }

  /* Footer */
  .footer__main { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
}


/* ============================================================
   RESPONSIVE — ≤ 480px (small phones)
   ============================================================ */
@media (max-width: 480px) {
  :root {
    --section-py: 2.75rem;
    --container-px: 1rem;
  }

  .logo__name  { font-size: 1rem; }
  .logo__sub   { font-size: 0.5rem; }

  .hero { min-height: 560px; }
  .hero__title { font-size: 3rem; line-height: 0.92; }
  .hero__names { font-size: 1.05rem; }

  .kancelaria__images { padding-bottom: 48px; }
  .kancelaria__img-primary img { width: 88%; }
  .kancelaria__img-secondary { width: 55%; }

  .team__photo img { min-height: 260px; max-height: 360px; }
  .team__text { padding: 2rem 1.25rem; }
  .team__name { font-size: 1.6rem; }

  .oplaty__list li { grid-template-columns: 36px 1fr; gap: 0.75rem; }

  .contact-cta__phone { font-size: 2.2rem; }
  .contact-cta__map   { height: 240px; }

  .footer__main { grid-template-columns: 1fr; }
  .section__title { font-size: 1.8rem; }
}


/* ============================================================
   SUBPAGES
   ============================================================ */

/* ── Hero ── */
.subpage-hero {
  background: var(--navy-dark);
  padding-top: calc(var(--header-h) + 5rem);
  padding-bottom: 5rem;
  text-align: center;
}

.subpage-hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.subpage-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.subpage-hero__title em {
  color: var(--gold-mid);
  font-style: italic;
}

.subpage-hero__rule {
  width: 56px;
  height: 1px;
  background: var(--gold-mid);
  margin: 1.5rem auto 0;
}

/* ── Content grid ── */
.subpage-content__grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 5rem;
  align-items: start;
}

/* ── Article text ── */
.subpage-content__text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 400;
  color: var(--navy);
  margin-top: 2.5rem;
  margin-bottom: 0.9rem;
}

.subpage-content__text h2:first-child { margin-top: 0; }

.subpage-content__text p { margin-bottom: 1.15rem; }

.subpage-content__text ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.15rem;
}

.subpage-content__text ul li { margin-bottom: 0.35rem; }

/* ── Sidebar CTA ── */
.subpage-cta__box {
  background: var(--cream);
  padding: 2.5rem 2rem;
  border-top: 3px solid var(--gold-mid);
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.subpage-cta__eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.subpage-cta__title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0;
}

.subpage-cta__title em { color: var(--gold-mid); }

.subpage-cta__rule {
  width: 40px;
  height: 1px;
  background: var(--gold-mid);
  margin: 1rem 0 1.25rem;
}

.subpage-cta__box address {
  font-style: normal;
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.subpage-cta__phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color var(--dur-fast);
}
.subpage-cta__phone:hover { color: var(--gold); }

.subpage-cta__email {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 1.75rem;
  transition: color var(--dur-fast);
  word-break: break-word;
}
.subpage-cta__email:hover { color: var(--gold); }

.subpage-cta__btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--dur-fast);
}
.subpage-cta__btn:hover { background: var(--gold); }

/* ── Footer SEO links ── */
.footer__seo-link {
  color: rgba(255, 255, 255, 0.32);
  text-decoration: none;
  transition: color var(--dur-fast);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer__seo-link:hover { color: rgba(255, 255, 255, 0.65); }

@media (max-width: 900px) {
  .subpage-content__grid { grid-template-columns: 1fr; }
  .subpage-cta__box { position: static; }
}
