/* ============================================================
   Kancelaria Grabowska & Malinowski — przykładowa strona (wisnia.dev)
   Elegancka, stonowana paleta: granat, złoto, kość słoniowa.
   ============================================================ */

:root {
  --navy: #16233b;
  --navy-2: #1e3050;
  --ink: #10192b;
  --paper: #ffffff;
  --bg: #f7f5f0;
  --tint: #eef0f2;
  --gold: #b0863a;
  --gold-2: #c9a24a;
  --muted: #5a6478;
  --muted-light: #a9b2c4;
  --line: rgba(22, 35, 59, 0.12);
  --line-soft: rgba(22, 35, 59, 0.07);
  --line-dark: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 50px rgba(16, 25, 43, 0.14);
  --shadow-sm: 0 10px 26px rgba(16, 25, 43, 0.08);
  --radius: 14px;
  --radius-lg: 20px;
  --head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 88px; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.12; letter-spacing: 0; }

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, iframe:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(1160px, 91%); margin-inline: auto; }
.eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.eyebrow-gold { color: var(--gold-2); }
.center { text-align: center; }

/* ===== pasek demo ===== */
.demo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  background: var(--ink);
  color: #d7dced;
  text-align: center;
  font-size: 0.83rem;
  padding: 9px 16px;
  text-decoration: none;
}
.demo-bar b { color: #fff; }
.demo-bar-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 4px rgba(201, 162, 74, 0.22); }
.demo-bar-arrow { transition: transform 0.2s; }
.demo-bar:hover .demo-bar-arrow { transform: translateX(4px); }

/* ===== nagłówek ===== */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-head.scrolled {
  background: rgba(247, 245, 240, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(16, 25, 43, 0.06);
}
.head-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 15px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--navy);
  color: var(--gold-2);
  font-family: var(--head);
  font-size: 1.7rem;
  line-height: 1;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--head); font-size: 1.4rem; font-weight: 700; letter-spacing: 0.01em; }
.brand-sub { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.site-head:not(.scrolled) .brand-name { color: #fff; }
.site-head:not(.scrolled) .brand-sub { color: rgba(255, 255, 255, 0.7); }
.site-head:not(.scrolled) .nav a:not(.btn) { color: rgba(255, 255, 255, 0.88); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.94rem; transition: color 0.2s; }
.nav a:not(.btn):hover { color: var(--gold); }

.burger { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; }
.burger span { width: 24px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.3s, opacity 0.3s; }
.site-head:not(.scrolled) .burger { color: #fff; }
.site-head.scrolled .burger { color: var(--ink); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== przyciski ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 26px;
  border-radius: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 8px 22px rgba(176, 134, 58, 0.28); }
.btn-gold:hover { background: #9a7430; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(176, 134, 58, 0.36); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.nav-cta { padding: 10px 20px; font-size: 0.88rem; }

/* ===== hero ===== */
.hero {
  position: relative;
  min-height: min(90vh, 780px);
  display: flex;
  align-items: center;
  padding-block: 120px 60px;
  margin-top: -73px;
  color: #fff;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 18, 32, 0.92) 0%, rgba(11, 18, 32, 0.7) 45%, rgba(11, 18, 32, 0.3) 100%),
    linear-gradient(180deg, rgba(11, 18, 32, 0.5), rgba(11, 18, 32, 0.55));
}
.hero-content { position: relative; max-width: 680px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 600; margin-bottom: 24px; letter-spacing: -0.005em; }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: rgba(255, 255, 255, 0.86); max-width: 56ch; margin-bottom: 36px; line-height: 1.75; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== pasek zaufania ===== */
.marks { background: var(--navy); color: #fff; }
.marks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: 40px; }
.mark { text-align: center; position: relative; }
.mark + .mark::before { content: ""; position: absolute; left: -10px; top: 50%; transform: translateY(-50%); height: 44px; width: 1px; background: var(--line-dark); }
.mark-num { display: block; font-family: var(--head); font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; color: var(--gold-2); text-transform: lowercase; }
.mark-label { color: var(--muted-light); font-size: 0.85rem; }

/* ===== sekcje ===== */
.section { padding-block: 96px; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--navy); color: #fff; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
.section-sub { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }
.on-dark { color: #fff; }
.on-dark-sub { color: var(--muted-light); }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }

/* ===== o kancelarii (split) ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-text h2 { margin-bottom: 22px; }
.split-text p { color: var(--muted); margin-bottom: 16px; font-size: 1.05rem; }
.creds { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 13px; }
.creds li { display: flex; align-items: center; gap: 13px; font-weight: 500; color: var(--ink); }
.creds .ic { width: 22px; height: 22px; color: #fff; background: var(--gold); border-radius: 50%; padding: 4px; stroke-width: 2.6; flex-shrink: 0; }

.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.split-media img { width: 100%; aspect-ratio: 4 / 3.6; object-fit: cover; }
.split-badge {
  position: absolute; left: 22px; bottom: 22px;
  display: flex; align-items: center; gap: 13px;
  background: rgba(16, 25, 43, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.35;
}
.split-badge-num { font-family: var(--head); font-size: 2rem; color: var(--gold-2); line-height: 1; }
.split-badge b { color: var(--gold-2); }

/* ===== zakres pomocy ===== */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.area {
  background: var(--navy-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.area:hover { transform: translateY(-5px); border-color: rgba(201, 162, 74, 0.5); background: #24375a; }
.area-ic {
  display: inline-grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: 12px;
  background: rgba(201, 162, 74, 0.14);
  color: var(--gold-2);
  margin-bottom: 20px;
}
.area-ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.area h3 { font-size: 1.5rem; margin-bottom: 10px; color: #fff; }
.area p { color: var(--muted-light); font-size: 0.94rem; line-height: 1.65; }

/* ===== jak pracujemy ===== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: none; }
.step { position: relative; padding-top: 24px; border-top: 2px solid var(--line); }
.step-num { font-family: var(--head); font-size: 2.6rem; font-weight: 700; color: var(--gold); line-height: 1; display: block; margin-bottom: 14px; }
.step h3 { font-size: 1.5rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.96rem; }

/* ===== zespół ===== */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 900px; margin-inline: auto; }
.member {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 26px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.member-photo { border-radius: 14px; overflow: hidden; aspect-ratio: 1; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-body h3 { font-size: 1.6rem; }
.member-role { color: var(--gold); font-weight: 600; font-size: 0.88rem; letter-spacing: 0.02em; margin-bottom: 10px; }
.member-body p:last-child { color: var(--muted); font-size: 0.94rem; }

/* ===== opinie ===== */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 34px 30px 28px;
  box-shadow: var(--shadow-sm);
}
.quote-mark { width: 40px; height: 40px; fill: var(--gold); opacity: 0.28; margin-bottom: 12px; }
.quote blockquote { font-family: var(--head); font-size: 1.42rem; line-height: 1.4; color: var(--ink); margin-bottom: 18px; }
.quote figcaption { font-size: 0.85rem; color: var(--muted); font-weight: 500; padding-top: 14px; border-top: 1px solid var(--line-soft); }

/* ===== kontakt ===== */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: start; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 15px; margin-bottom: 26px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: 1.02rem; }
.contact-list a { color: var(--navy); text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--gold); }
.ci-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--paper); border: 1px solid var(--line); color: var(--gold); flex-shrink: 0; }
.ci-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.hours { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.hours h3 { font-size: 1.4rem; margin-bottom: 12px; }
.hours table { width: 100%; border-collapse: collapse; }
.hours td { padding-block: 9px; font-size: 0.96rem; color: var(--muted); }
.hours td:last-child { text-align: right; font-weight: 600; color: var(--ink); }
.hours tr + tr td { border-top: 1px solid var(--line-soft); }
.hours-note { color: var(--muted); font-size: 0.86rem; margin-top: 12px; }

.contact-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); height: 230px; }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(0.2); }

/* formularz */
.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: 0.96rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: #fcfcfb;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: #9aa2b1; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176, 134, 58, 0.14);
}
.field textarea { resize: vertical; min-height: 96px; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: var(--muted); cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--gold); width: 16px; height: 16px; flex-shrink: 0; }
.form-note {
  background: rgba(176, 134, 58, 0.1);
  border: 1px solid rgba(176, 134, 58, 0.3);
  color: #7a5c26;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
}

/* ===== stopka ===== */
.site-foot { background: var(--ink); color: #b9c1d3; padding-top: 52px; }
.foot-inner { display: flex; justify-content: space-between; gap: 36px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.foot-brand-block { display: flex; align-items: center; gap: 15px; }
.foot-mark { width: 50px; height: 50px; font-size: 2rem; }
.foot-brand { font-family: var(--head); font-size: 1.55rem; font-weight: 700; color: #fff; display: block; }
.foot-inner p { font-size: 0.9rem; color: #8b95ab; }
.foot-demo { max-width: 400px; }
.foot-demo p + p { margin-top: 6px; }
.foot-demo b { color: #e6ebf5; }
.site-foot a { color: var(--gold-2); font-weight: 600; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; font-size: 0.83rem; color: #7a839a; }

/* ===== animacje wejścia ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== responsywność ===== */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-media { order: -1; }
  .areas { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 26px; }
  .quotes { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .contact { grid-template-columns: 1fr; gap: 34px; }
  .team { grid-template-columns: 1fr; max-width: 540px; }
  .marks-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .mark:nth-child(odd)::before { display: none; }
}

@media (max-width: 720px) {
  .burger { display: flex; }
  .brand-sub { display: none; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height 0.34s ease, opacity 0.2s, visibility 0.34s;
  }
  .nav.open { max-height: 480px; opacity: 1; visibility: visible; }
  .site-head:not(.scrolled) .nav a:not(.btn), .nav a:not(.btn) { color: var(--ink) !important; }
  .nav a:not(.btn) { padding: 15px 6%; border-top: 1px solid var(--line-soft); }
  .nav a:first-child { border-top: none; }
  .nav-cta { margin: 14px 6%; }
  .hero { min-height: 86vh; padding-block: 110px 40px; }
  .section { padding-block: 68px; }
  .member { grid-template-columns: 1fr; text-align: center; }
  .member-photo { width: 150px; margin-inline: auto; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .areas { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .marks-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-form { padding: 24px; }
  .foot-bottom { flex-direction: column; gap: 6px; }
}


/* mapa: facade — iframe wczytywany dopiero po kliknięciu (zero third-party na starcie) */
.map-facade {
  width: 100%; height: 100%; min-height: inherit; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  font: inherit; color: var(--ink, #222);
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 1px, transparent 1px 46px),
    linear-gradient(140deg, #e9e4dc, #f6f3ee);
  transition: filter .2s ease;
}
.map-facade:hover { filter: brightness(.97); }
.map-facade-pin { font-size: 2rem; line-height: 1; }
.map-facade-txt { font-weight: 600; font-size: .95rem; letter-spacing: .01em; }
