/* Kancelaria Radcy Prawnego Konrad Izdebski
   Identyfikacja: KIRP Blue #002F5D (C100 M60 Y0 K56 / R0 G47 B93),
   szary #959799, biel, czerń – zgodnie z https://kirp.pl/kolory-kirp/
   Typografia: Source Sans 3 + Arial (jak w identyfikacji KIRP) */

:root {
  --bg: #f4f6f8;
  --bg-elevated: #ffffff;
  --bg-dark: #001f3f;
  --bg-dark-2: #002f5d;
  --text: #1a1d21;
  --text-muted: #5a6169;
  --text-on-dark: #f0f3f7;
  --text-on-dark-muted: #a8b0ba;
  --kirp: #002F5D;
  --kirp-hover: #0a4a8a;
  --kirp-light: #1a5a9e;
  --kirp-dim: rgba(0, 47, 93, 0.1);
  --kirp-glow: rgba(0, 47, 93, 0.35);
  --grey: #959799;
  --green: #0a4a2e;
  --border: rgba(0, 47, 93, 0.12);
  --border-dark: rgba(240, 243, 247, 0.12);
  --font: "Source Sans 3", Arial, "Helvetica Neue", system-ui, sans-serif;
  --display: "Source Sans 3", Arial, "Helvetica Neue", system-ui, sans-serif;
  --radius: 14px;
  --header-h: 76px;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 0.28s var(--ease);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t), border-color var(--t), background var(--t); }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
::selection { background: rgba(0, 47, 93, 0.2); color: #000; }
:focus-visible { outline: 2px solid var(--kirp); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--kirp);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 2000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(0, 31, 63, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-dark);
  transition: box-shadow var(--t);
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(0, 31, 63, 0.35); }
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-on-dark);
}
.logo-mark {
  width: 3.6rem;
  height: 3.6rem;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
  /* nie ucinaj wagi – pełny sygnet */
  overflow: visible;
  filter: drop-shadow(0 0 0.5px rgba(255, 255, 255, 0.2));
}
.logo-footer .logo-mark {
  width: 4.5rem;
  height: 4.5rem;
}
.logo-footer .logo-brand {
  font-size: 1.2rem;
}
.logo-footer .logo-sub {
  font-size: 0.72rem;
  max-width: 18rem;
}
.about-badge .logo-mark,
.about-badge img {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8eb4d8;
  max-width: 16rem;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.2rem 1.4rem;
}
.nav-menu a:not(.btn) {
  color: var(--text-on-dark-muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-menu a:not(.btn):hover,
.nav-menu a:not(.btn).active { color: var(--text-on-dark); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-on-dark);
  transition: var(--t);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--t);
}
.btn-primary {
  background: linear-gradient(135deg, var(--kirp-hover), var(--kirp));
  color: #fff;
  box-shadow: 0 6px 22px var(--kirp-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--kirp-light), var(--kirp-hover));
  transform: translateY(-1px);
}
.btn-outline {
  border-color: rgba(142, 180, 216, 0.55);
  color: var(--text-on-dark);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(142, 180, 216, 0.12);
  border-color: #8eb4d8;
  color: #fff;
}
.btn-outline-light {
  border-color: rgba(0, 47, 93, 0.4);
  color: var(--kirp);
  background: transparent;
}
.btn-outline-light:hover {
  background: var(--kirp-dim);
  border-color: var(--kirp);
  color: var(--kirp);
}
.btn-nav {
  padding: 0.55rem 1.1rem;
  background: var(--kirp-hover);
  color: #fff !important;
  border-radius: 999px;
  font-size: 0.88rem !important;
}
.btn-nav:hover { background: var(--kirp-light); }
.btn-block { width: 100%; }
.text-link {
  display: inline-flex;
  margin-top: 0.75rem;
  color: var(--kirp);
  font-weight: 600;
}
.text-link:hover { color: var(--kirp-hover); }

/* Hero – centered */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  color: var(--text-on-dark);
  overflow: hidden;
  text-align: center;
}
.hero-bg { position: absolute; inset: 0; }
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 31, 63, 0.72) 0%, rgba(0, 47, 93, 0.82) 45%, rgba(0, 31, 63, 0.9) 100%),
    radial-gradient(ellipse at center, rgba(0, 47, 93, 0.35) 0%, rgba(0, 31, 63, 0.75) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 44rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(142, 180, 216, 0.45);
  background: rgba(142, 180, 216, 0.12);
  color: #b8d4ee;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.15rem;
}
.hero-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 1.1rem;
}
.hero-title .accent { color: #8eb4d8; }
.hero-lead {
  color: var(--text-on-dark-muted);
  font-size: 1.05rem;
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: 1.6rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.5rem;
  color: var(--text-on-dark-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-dark);
  padding-top: 1.1rem;
  width: 100%;
  max-width: 36rem;
}
.hero-meta strong { color: #8eb4d8; font-weight: 600; }

/* Sections */
.section { padding: 5rem 0; }
.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}
.section-head p { color: var(--text-muted); margin-top: 0.75rem; }
.section-tag {
  display: inline-block;
  color: var(--kirp);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}
.section h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.5vw, 2.45rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Services */
.services { background: var(--bg-elevated); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 47, 93, 0.35);
  box-shadow: 0 16px 40px rgba(0, 31, 63, 0.08);
}
.service-icon {
  width: 2.75rem;
  height: 2.75rem;
  color: var(--kirp);
  margin-bottom: 0.9rem;
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  color: var(--kirp);
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.service-card-more {
  background: linear-gradient(165deg, var(--bg-dark), var(--bg-dark-2));
  color: var(--text-on-dark);
  border-color: rgba(142, 180, 216, 0.25);
}
.service-card-more h3 { color: #fff; }
.service-card-more p { color: var(--text-on-dark-muted); }
.service-card-more .service-icon { color: #8eb4d8; }
.service-card-more .text-link { color: #8eb4d8; }
.service-card-more .text-link:hover { color: #fff; }

/* About */
.about {
  background: var(--bg);
  overflow: visible;
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 2.5rem 3rem;
  align-items: start;
  overflow: visible;
}
.about-media {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
  align-self: start;
  height: fit-content;
  z-index: 1;
}
.about-figure {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 47, 93, 0.2);
  box-shadow: 0 24px 50px rgba(0, 31, 63, 0.12);
  background: var(--kirp);
}
.about-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: min(72vh, 560px);
  object-fit: cover;
  object-position: center center;
}
.about-badge {
  position: absolute;
  z-index: 2;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.85rem;
  background: rgba(0, 31, 63, 0.92);
  border: 1px solid rgba(142, 180, 216, 0.4);
  border-radius: 999px;
  color: var(--text-on-dark);
  font-size: 0.85rem;
  font-weight: 600;
}
.about-badge img {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}
.photo-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.about-copy {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
  padding-bottom: 0.5rem;
}
.about-block h2 { margin-bottom: 0.85rem; }
.about-block h3 {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--kirp);
}
.about-copy p { margin-bottom: 1rem; color: var(--text-muted); }
.about-copy p strong { color: var(--text); }
.specialty-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin: 0.5rem 0 1.25rem;
}
.specialty-list li {
  padding: 1rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--kirp);
}
.specialty-list h4 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--kirp);
  margin-bottom: 0.4rem;
}
.specialty-list p {
  margin-bottom: 0 !important;
  font-size: 0.95rem;
  line-height: 1.6;
}
.about-closing {
  margin-top: 0.5rem;
  font-weight: 500;
  color: var(--text) !important;
}

/* Collab */
.collab { background: var(--bg-dark); color: var(--text-on-dark); }
.collab .section-tag { color: #8eb4d8; }
.collab .section-head p { color: var(--text-on-dark-muted); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.step {
  padding: 1.5rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}
.step-num {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  color: #8eb4d8;
  margin-bottom: 0.5rem;
  line-height: 1;
}
.step h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.step p { color: var(--text-on-dark-muted); font-size: 0.95rem; }
.collab-visual {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(142, 180, 216, 0.25);
  max-height: 380px;
}
.collab-visual img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 40%;
}

/* Info */
.info-block { background: var(--bg); }
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.info-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.info-card h2 {
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
  color: var(--kirp);
}
.info-card p {
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}
.check-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.5rem;
}
.check-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-muted);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--kirp);
  box-shadow: 0 0 0 3px var(--kirp-dim);
}

/* Contact: dane + mapa w jednym wierszu */
.contact { background: var(--bg-elevated); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 2rem;
  align-items: stretch;
}
.contact-info p { color: var(--text-muted); margin: 0.75rem 0 1.5rem; }
.contact-list { display: grid; gap: 1.15rem; }
.contact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kirp);
  margin-bottom: 0.25rem;
}
.contact-list a:hover { color: var(--kirp); }
.contact-map-wrap {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(0, 31, 63, 0.08);
  min-height: 360px;
  background: var(--bg);
}
.contact-map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
  filter: grayscale(0.15) contrast(1.05) saturate(0.9);
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark-muted);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand .logo { margin-bottom: 0; }
.footer-col h3 {
  font-family: var(--display);
  color: var(--text-on-dark);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.footer-col ul { display: grid; gap: 0.45rem; }
.footer-col a:hover { color: #8eb4d8; }
.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
}
.footer-note { opacity: 0.75; max-width: 32rem; }

/* Float call */
.float-call {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 900;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--kirp-hover), var(--kirp));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px var(--kirp-glow);
  transition: transform var(--t);
}
.float-call:hover { transform: scale(1.06); }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-grid,
  .contact-grid,
  .steps { grid-template-columns: 1fr; }
  .about-media {
    position: relative;
    top: auto;
    max-width: 420px;
    margin-inline: auto;
  }
  .about-img { max-height: none; }
  .contact-map-wrap,
  .contact-map-wrap iframe { min-height: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    inset: 0;
    background: rgba(0, 31, 63, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    z-index: 1001;
  }
  .nav-menu.open { transform: none; }
  .nav-menu a:not(.btn) { font-size: 1.2rem; color: var(--text-on-dark); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .services-grid,
  .info-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-bottom: 3rem; }
  .section { padding: 3.5rem 0; }
  .logo-brand { font-size: 0.95rem; }
}

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