:root {
  --bg: #080b12;
  --section: #0d111b;
  --section-2: #101623;
  --card: #121824;
  --card-2: #151d2b;
  --text: #f4f0e8;
  --muted: #b9bec9;
  --quiet: #8d94a3;
  --gold: #c99a4b;
  --gold-2: #d7b26d;
  --line: rgba(255, 255, 255, 0.10);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(201, 154, 75, 0.08), transparent 28%),
    linear-gradient(180deg, var(--bg), #0a0e17 42%, var(--bg));
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.65;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 18px; }
h1, h2, h3 { margin: 0; letter-spacing: 0; }
h1, h2 { font-family: "Playfair Display", Georgia, serif; }
h1 {
  color: var(--text);
  font-size: clamp(48px, 5.4vw, 86px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.02;
  max-width: 820px;
  text-wrap: balance;
}
h1 span { white-space: nowrap; }
h2 {
  color: var(--text);
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.05;
  text-wrap: balance;
}
h3 {
  color: var(--text);
  font-size: 20px;
  line-height: 1.25;
}

.skip-link {
  background: var(--gold-2);
  color: #10131b;
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: -80px;
  z-index: 30;
}
.skip-link:focus { top: 16px; }

.site-header {
  align-items: center;
  background: rgba(8, 11, 18, 0.42);
  border-bottom: 1px solid transparent;
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 18px clamp(20px, 5vw, 76px);
  position: fixed;
  right: 0;
  top: 0;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  z-index: 20;
}
.site-header.is-scrolled {
  background: rgba(8, 11, 18, 0.86);
  border-color: var(--line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}
.brand { align-items: center; display: inline-flex; gap: 12px; }
.brand-mark {
  align-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(215, 178, 109, 0.16), transparent 34%),
    linear-gradient(135deg, #151b27, #080b12);
  border: 1px solid rgba(201, 154, 75, 0.62);
  color: var(--gold-2);
  column-gap: 0;
  display: inline-flex;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  height: 48px;
  justify-content: center;
  letter-spacing: -0.12em;
  position: relative;
  width: 48px;
}
.brand-mark::before,
.brand-mark::after {
  background: linear-gradient(90deg, transparent, rgba(215, 178, 109, 0.75), transparent);
  content: "";
  height: 1px;
  left: 8px;
  position: absolute;
  right: 8px;
}
.brand-mark::before { top: 8px; }
.brand-mark::after { bottom: 8px; }
.brand-mark span:first-child {
  transform: translateX(2px);
}
.brand-mark span:last-child {
  color: #f1dfb6;
  transform: translateX(-2px);
}
.brand-text { display: grid; line-height: 1.2; }
.brand-text strong { color: var(--text); }
.brand-text small {
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.site-nav { align-items: center; display: flex; gap: 22px; font-size: 14px; font-weight: 700; }
.site-nav a { color: var(--muted); transition: color 160ms ease; }
.site-nav a:hover { color: var(--text); }
.nav-cta {
  border: 1px solid rgba(201, 154, 75, 0.58);
  color: var(--text) !important;
  padding: 10px 14px;
}
.menu-button {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  display: none;
  height: 44px;
  padding: 9px;
  width: 44px;
}
.menu-button span { background: var(--text); display: block; height: 2px; margin: 5px 0; width: 22px; }

.hero {
  isolation: isolate;
  min-height: 92vh;
  overflow: hidden;
  position: relative;
}
.hero-bg {
  background:
    radial-gradient(circle at 74% 22%, rgba(201, 154, 75, 0.10), transparent 30%),
    radial-gradient(circle at 12% 70%, rgba(37, 55, 88, 0.24), transparent 40%),
    linear-gradient(135deg, #080b12 0%, #0d1320 50%, #090c13 100%);
  inset: 0;
  position: absolute;
  transform: translateY(var(--parallax, 0));
  z-index: -2;
}
.hero-bg::before {
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 92px 92px;
  content: "";
  inset: 0;
  opacity: 0.12;
  position: absolute;
}
.hero-bg::after {
  background:
    linear-gradient(90deg, rgba(8, 11, 18, 0.18), transparent 46%, rgba(8, 11, 18, 0.42)),
    linear-gradient(180deg, rgba(8, 11, 18, 0.05), transparent 52%, rgba(8, 11, 18, 0.42));
  content: "";
  inset: 0;
  position: absolute;
}
.hero-watermark {
  background-image: url("assets/dorota-hero.png?v=202607181455");
  background-position: 77% 31%;
  background-repeat: no-repeat;
  background-size: min(58vw, 920px) auto;
  filter: saturate(0.86) contrast(1.08) brightness(0.72);
  inset: 0;
  opacity: 0.58;
  position: absolute;
  transform: translateX(2vw) scale(1.22);
  transform-origin: 78% 28%;
  z-index: -1;
  -webkit-mask-image:
    radial-gradient(ellipse at 78% 47%, #000 0%, #000 30%, rgba(0,0,0,0.72) 43%, rgba(0,0,0,0.18) 62%, transparent 78%),
    linear-gradient(90deg, transparent 0%, transparent 48%, rgba(0,0,0,0.55) 58%, #000 74%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.55) 18%, #000 54%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(ellipse at 78% 47%, #000 0%, #000 30%, rgba(0,0,0,0.72) 43%, rgba(0,0,0,0.18) 62%, transparent 78%),
    linear-gradient(90deg, transparent 0%, transparent 48%, rgba(0,0,0,0.55) 58%, #000 74%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.55) 18%, #000 54%, transparent 100%);
  mask-composite: intersect;
}
.hero-watermark::after {
  background: url("assets/logo-kancelaria.png") center / contain no-repeat;
  content: "";
  height: clamp(92px, 9vw, 150px);
  opacity: 0.11;
  position: absolute;
  right: clamp(54px, 9vw, 160px);
  top: clamp(132px, 18vh, 220px);
  width: clamp(92px, 9vw, 150px);
}
.hero::after {
  background:
    linear-gradient(90deg, #080b12 0%, rgba(8, 11, 18, 0.98) 43%, rgba(8, 11, 18, 0.68) 58%, rgba(8, 11, 18, 0.18) 78%, #080b12 100%),
    radial-gradient(circle at 74% 48%, transparent 0%, rgba(8, 11, 18, 0.22) 48%, #080b12 86%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}
.hero-inner {
  align-items: start;
  display: block;
  min-height: 92vh;
  padding: clamp(118px, 13vh, 150px) clamp(20px, 5vw, 76px) 70px;
  position: relative;
}
.hero-copy {
  max-width: min(760px, 50vw);
  position: relative;
  z-index: 2;
  padding-top: clamp(8px, 3.8vh, 44px);
}
.eyebrow {
  color: var(--gold-2);
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.gold { color: var(--gold-2); }
.hero-note {
  color: var(--gold-2);
  font-size: clamp(20px, 1.75vw, 28px);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.26;
  margin: 20px 0 0;
  max-width: 720px;
  text-wrap: balance;
}
.lead {
  color: var(--muted);
  font-size: clamp(18px, 1.65vw, 21px);
  line-height: 1.65;
  margin-top: 24px;
  max-width: 660px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  min-height: 54px;
  padding: 13px 22px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.button span { transition: transform 160ms ease; }
.button:hover span { transform: translateX(4px); }
.button.primary { background: var(--gold-2); color: #11151f; }
.button.primary:hover { background: #e2c27d; transform: translateY(-2px); }
.button.secondary { background: transparent; border-color: rgba(244, 240, 232, 0.26); color: var(--text); }
.button.secondary:hover { border-color: rgba(201, 154, 75, 0.72); transform: translateY(-2px); }
.professional-note {
  border-left: 2px solid var(--gold);
  display: grid;
  gap: 4px;
  margin-top: 34px;
  min-height: 68px;
  padding-left: 84px;
  position: relative;
}
.office-logo {
  background: transparent;
  border: 1px solid rgba(201, 154, 75, 0.28);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  height: 54px;
  left: 18px;
  object-fit: contain;
  padding: 0;
  position: absolute;
  top: 5px;
  width: 54px;
}
.professional-note strong { color: var(--text); font-size: 16px; }
.professional-note span { color: var(--muted); font-size: 14px; font-weight: 700; }
.professional-note small { color: var(--quiet); font-size: 13px; }
.professional-note a {
  color: var(--gold-2);
  font-weight: 800;
  white-space: nowrap;
}
.professional-note a:hover {
  color: var(--text);
}
.nowrap {
  white-space: nowrap;
}

.section {
  background: var(--section);
  padding: clamp(70px, 9vw, 124px) clamp(20px, 5vw, 76px);
}
.section:nth-of-type(odd) { background: var(--bg); }
.section:nth-of-type(even) { background: var(--section); }
.section-heading { margin-bottom: 42px; max-width: 840px; }
.section-heading p, .section-copy p { color: var(--muted); max-width: 760px; }

.credentials {
  background: #090d16;
  color: var(--text);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: 0;
  padding-top: 0;
}
.credential {
  background: rgba(255, 255, 255, 0.02);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 170px;
  padding: 42px 28px;
}
.credential strong {
  color: var(--gold-2);
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(26px, 3.1vw, 46px);
  line-height: 1.05;
  text-transform: none;
}
.credential span {
  color: var(--muted);
  display: block;
  margin-top: 26px;
}

.about {
  align-items: center;
  display: grid;
  gap: clamp(36px, 6vw, 84px);
  grid-template-columns: minmax(300px, 0.78fr) minmax(320px, 1fr);
}
.section-media {
  background:
    linear-gradient(180deg, rgba(8, 11, 18, 0.04), rgba(8, 11, 18, 0.22)),
    url("assets/team-about.png?v=202607181640") center / cover;
  border: 1px solid rgba(201, 154, 75, 0.3);
  border-radius: 20px;
  box-shadow: var(--shadow);
  min-height: 560px;
}
.dark-section {
  align-items: center;
  background: linear-gradient(135deg, #0a0d15, #111928);
  color: var(--text);
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 0.8fr);
}
.dark-section p { color: var(--muted); }

.specialty-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.specialty-card, .reason, .blog-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)), var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  display: block;
  min-height: 230px;
  padding: 26px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}
.specialty-card:hover, .reason:hover, .blog-card:hover {
  border-color: rgba(201, 154, 75, 0.62);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.specialty-card span {
  border: 1px solid var(--gold);
  border-radius: 10px;
  display: block;
  height: 36px;
  margin-bottom: 28px;
  position: relative;
  width: 36px;
}
.specialty-card span::after {
  background: var(--gold);
  content: "";
  height: 1px;
  left: 8px;
  position: absolute;
  top: 17px;
  width: 18px;
}
.specialty-card p, .reason p, .blog-card p { color: var(--muted); margin-top: 12px; }

.reasons { background: var(--section-2); }
.reason-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reason { min-height: 190px; }

.neuro {
  background:
    linear-gradient(90deg, rgba(8, 11, 18, 0.96), rgba(8, 11, 18, 0.78)),
    url("assets/dorota-hero.png") center 28% / cover fixed;
  color: var(--text);
}
.neuro-panel { max-width: 900px; }
.neuro p { color: var(--muted); font-size: 18px; }

.process { background: var(--section); }
.process-list {
  counter-reset: item;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.process-list li {
  border-top: 2px solid var(--gold);
  min-height: 230px;
  padding: 26px 0 0;
}
.process-list span { color: var(--gold-2); display: block; font-weight: 900; margin-bottom: 22px; }
.process-list p { color: var(--muted); }

.faq-list { display: grid; gap: 10px; }
details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
}
summary {
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  padding: 20px 24px;
}
summary::-webkit-details-marker { display: none; }
details p { color: var(--muted); padding: 0 24px 22px; }

.opinions { background: #090d16; color: var(--text); }
.opinion-slider {
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line);
  border-radius: 18px;
  min-height: 230px;
  padding: clamp(28px, 5vw, 56px);
}
.opinion-slider blockquote { display: none; font-family: "Playfair Display", Georgia, serif; font-size: clamp(26px, 4vw, 46px); line-height: 1.18; margin: 0; }
.opinion-slider blockquote.is-active { display: block; }
.opinion-slider cite { color: var(--gold-2); display: block; font-family: Inter, Arial, sans-serif; font-size: 14px; font-style: normal; font-weight: 800; margin-top: 24px; }

.blog-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.blog-card { min-height: 210px; }
.blog-card p { color: var(--gold-2); font-size: 12px; font-weight: 900; margin-bottom: 18px; text-transform: uppercase; }

.final-cta {
  align-items: center;
  background: linear-gradient(135deg, #090d16, #111a2a);
  color: var(--text);
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 0.55fr);
}
.final-cta p { color: var(--muted); max-width: 850px; }
.contact-card {
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  gap: 16px;
  padding: 30px;
}
.contact-card a:not(.button) { color: var(--text); font-weight: 800; overflow-wrap: anywhere; }
.contact-card .button.primary { background: var(--gold-2); color: #11151f; }

.site-footer {
  background: #070a10;
  border-top: 1px solid var(--line);
  color: var(--text);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(240px, 0.35fr) minmax(300px, 1fr);
  padding: 36px clamp(20px, 5vw, 76px);
}
.site-footer p { color: var(--quiet); margin: 6px 0 0; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 620ms ease, transform 620ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1180px) {
  .site-nav { gap: 16px; font-size: 13px; }
  .hero-copy { max-width: min(720px, 54vw); }
  .hero-watermark {
    background-position: 84% 34%;
    background-size: min(64vw, 820px) auto;
    opacity: 0.5;
    transform: translateX(7vw) scale(1.18);
  }
  .specialty-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .blog-grid, .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .menu-button { display: block; }
  .site-nav {
    align-content: start;
    background: rgba(8, 11, 18, 0.98);
    border-top: 1px solid var(--line);
    display: none;
    gap: 0;
    inset: 81px 0 auto 0;
    min-height: calc(100vh - 81px);
    padding: 24px 20px 36px;
    position: absolute;
  }
  .site-nav.is-open { display: grid; }
  .site-nav a {
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-size: 18px;
    padding: 18px 0;
  }
  .nav-cta { border: 0; }
  .hero { min-height: auto; }
  .hero-inner {
    min-height: auto;
    padding-top: 112px;
  }
  .hero-copy { max-width: 100%; }
  .hero::after {
    background:
      linear-gradient(180deg, #080b12 0%, rgba(8, 11, 18, 0.96) 34%, rgba(8, 11, 18, 0.82) 58%, #080b12 100%),
      linear-gradient(90deg, #080b12 0%, rgba(8, 11, 18, 0.86) 54%, rgba(8, 11, 18, 0.26) 100%);
  }
  .hero-watermark {
    background-position: 74% 78%;
    background-size: min(92vw, 620px) auto;
    opacity: 0.26;
    transform: translateX(12vw) translateY(12vh) scale(1.1);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 72%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 72%, transparent 100%);
  }
  h1 {
    font-size: clamp(42px, 10vw, 58px);
    max-width: 760px;
  }
  h1 span { white-space: normal; }
  .about, .dark-section, .final-cta, .site-footer { grid-template-columns: 1fr; }
  .credentials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specialty-grid, .reason-grid { grid-template-columns: 1fr; }
  .section-media { min-height: 420px; }
}

@media (max-width: 560px) {
  .brand-text small { display: none; }
  .site-header { padding-inline: 16px; }
  .hero-inner { padding-inline: 16px; }
  .section { padding-inline: 16px; }
  .hero-watermark {
    background-position: 82% 88%;
    background-size: 118vw auto;
    opacity: 0.2;
    transform: translateX(18vw) translateY(18vh) scale(1.08);
  }
  .credentials, .blog-grid, .process-list { grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .specialty-card, .reason, .blog-card { min-height: auto; }
  h1 { font-size: clamp(40px, 11vw, 52px); }
  .eyebrow { font-size: 12px; }
  .lead { font-size: 17px; }
  .professional-note {
    padding-left: 72px;
  }
  .office-logo {
    height: 46px;
    width: 46px;
  }
}
