/* ══════════════════════════════════════════
       TOKENS — Dark Academia
       ══════════════════════════════════════════ */
    :root {
      --bg: #17110a;
      --bg-2: #1d160c;
      --surface: #251c11;
      --surface-2: #2e2317;
      --surface-3: #392c1c;
      --surface-notice: #5c4726; /* between surface-3 and --gold, for the Znany Lekarz contact notice */

      --gold: #c9a455;
      --gold-lt: #e2c27e;
      --gold-dk: #8a6d35;
      --gold-label: #b08f45;
      --gold-faint: rgba(201, 164, 85, .08);
      --gold-glow: rgba(201, 164, 85, .18);

      --cream: #ede0c4;
      --cream-dim: #b09070;
      --cream-faint: #6b5535;
      --ink: #1a0f05;

      --border: #2a1e0e;
      --border-lt: #3e2c18;
      --border-gold: rgba(201, 164, 85, .25);

      --shadow-deep: 0 8px 48px rgba(0, 0, 0, .75);
      --shadow-card: 0 2px 24px rgba(0, 0, 0, .5);
      --glow-gold: 0 0 40px rgba(201, 164, 85, .12);

      --tr: 250ms ease-out;
      --ff-display: 'Cinzel', 'Cormorant Garamond', serif;
      --ff-heading: 'Cormorant Garamond', Georgia, serif;
      --ff-body: 'Crimson Pro', Georgia, serif;
    }

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

    html {
      scroll-behavior: smooth;
    }

    @media (prefers-reduced-motion: reduce) {

      *,
      *::before,
      *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
      }

      html {
        scroll-behavior: auto;
      }
    }

    body {
      font-family: var(--ff-body);
      font-size: 1.1rem;
      line-height: 1.7;
      color: var(--cream);
      background-color: var(--bg);
      -webkit-font-smoothing: antialiased;
      position: relative;
    }

    /* Skip link */
    .skip-link {
      position: absolute;
      top: -100%;
      left: 16px;
      z-index: 10000;
      padding: 8px 20px;
      background: var(--gold);
      color: var(--ink);
      font-family: var(--ff-display);
      font-size: .7rem;
      font-weight: 500;
      letter-spacing: .16em;
      text-transform: uppercase;
      border-radius: 2px;
      transition: top .15s;
    }

    .skip-link:focus {
      top: 8px;
    }

    /* Film grain overlay */
    body::after {
      content: '';
      position: fixed;
      inset: 0;
      z-index: 9999;
      pointer-events: none;
      opacity: .045;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
      background-size: 200px 200px;
    }

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

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

    p {
      max-width: 60ch;
    }

    ul {
      list-style: none;
    }

    /* ══════════════════════════════════════════
       TYPOGRAPHY
       ══════════════════════════════════════════ */
    h1 {
      font-family: var(--ff-display);
      font-weight: 500;
      font-size: clamp(2.4rem, 6vw, 4.5rem);
      letter-spacing: .12em;
      text-transform: uppercase;
      color: var(--cream);
      line-height: 1.1;
    }

    h2 {
      font-family: var(--ff-heading);
      font-weight: 400;
      font-size: clamp(1.7rem, 3.5vw, 2.6rem);
      color: var(--cream);
      line-height: 1.2;
    }

    h3 {
      font-family: var(--ff-heading);
      font-weight: 500;
      font-size: 1.25rem;
      color: var(--cream);
    }

    /* ══════════════════════════════════════════
       LANGUAGE TOGGLE
       ══════════════════════════════════════════ */
    body [lang-en] {
      display: none;
    }

    body.en [lang-pl] {
      display: none;
    }

    body.en [lang-en] {
      display: revert;
    }

    body.en .who-list[lang-en] {
      display: grid;
    }

    body.en .practical-grid[lang-en] {
      display: grid;
    }

    /* ══════════════════════════════════════════
       LAYOUT
       ══════════════════════════════════════════ */
    .wrap {
      max-width: 1000px;
      margin: 0 auto;
      padding: 0 32px;
    }

    section {
      padding: 88px 0;
      scroll-margin-top: 90px;
    }

    /* ══════════════════════════════════════════
       ORNAMENTAL DIVIDER
       ══════════════════════════════════════════ */
    .ornament {
      display: flex;
      justify-content: center;
      margin: 0 auto;
      color: var(--gold);
      opacity: .7;
    }

    .ornament svg {
      width: 160px;
      height: 18px;
    }

    .ornament-sm svg {
      width: 80px;
      height: 14px;
    }

    /* Section label */
    .s-label {
      display: block;
      font-family: var(--ff-display);
      font-size: .78rem;
      font-weight: 500;
      letter-spacing: .28em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 16px;
    }

    /* Gold hairline */
    .hairline {
      border: none;
      border-top: 1px solid var(--border-gold);
      margin: 0;
    }

    /* ══════════════════════════════════════════
       MOTION — scroll reveal system
       Gated behind .js (see head script) so a no-JS visitor sees every
       [data-reveal] element and every drawn line/icon already in place,
       never stuck invisible.
       ══════════════════════════════════════════ */
    .js [data-reveal] {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 650ms ease-out, transform 650ms ease-out;
      transition-delay: calc(var(--stagger, 0) * 70ms);
    }

    [data-reveal].is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* SVG draw-in (practical icons only; section ornaments are always static —
       see note where data-reveal was removed from them) relies on
       pathLength="100" on each path/circle so dash units are geometry-independent */
    .js .prac-icon svg path,
    .js .prac-icon svg circle {
      stroke-dasharray: 100;
      stroke-dashoffset: 100;
      transition: stroke-dashoffset 900ms ease-out;
      transition-delay: calc(var(--stagger, 0) * 70ms + 150ms);
    }

    .prac-card.is-visible .prac-icon svg path,
    .prac-card.is-visible .prac-icon svg circle {
      stroke-dashoffset: 0;
    }

    /* shared slow "breathing" glow, reused on the hero halo and contact spotlight */
    @keyframes haloBreathe {
      0%, 100% { opacity: .8; }
      50% { opacity: 1; }
    }

    /* one-shot bullet twinkle as each Who-I-help line reveals — no hover state added,
       this only ever plays once alongside the li's own fade-in */
    @keyframes twinkle {
      0%   { opacity: 0; transform: scale(.4) rotate(0deg); }
      60%  { opacity: 1; transform: scale(1.25) rotate(20deg); }
      100% { opacity: 1; transform: scale(1) rotate(0deg); }
    }

    .js .who-list li[data-reveal].is-visible .bullet {
      animation: twinkle 700ms ease-out calc(var(--stagger, 0) * 70ms);
    }

    /* ══════════════════════════════════════════
       NAVBAR
       ══════════════════════════════════════════ */
    /* sticky lives on <header>, not .nav: header's containing block is <body>
       (page-length), giving it room to stick. .nav's own containing block was
       <header> itself, which is auto-height == .nav's own height, so .nav had
       zero room to stick and just scrolled away like a static element. */
    header {
      position: sticky;
      top: 0;
      z-index: 200;
    }

    .nav {
      background: rgba(23, 17, 10, .92);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border);
      transition: background var(--tr);
    }

    .nav-inner {
      max-width: 1000px;
      margin: 0 auto;
      padding: 0 32px;
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      transition: height var(--tr);
    }

    /* once the hero has scrolled out of view, the bar tightens slightly */
    .nav.nav--compact {
      background: rgba(23, 17, 10, .97);
    }

    .nav.nav--compact .nav-inner {
      height: 48px;
    }

    .nav-logo {
      font-family: var(--ff-display);
      font-size: .8rem;
      font-weight: 500;
      letter-spacing: .2em;
      text-transform: uppercase;
      color: var(--gold-lt);
      white-space: nowrap;
      flex-shrink: 0;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 28px;
    }

    .nav-links a {
      font-family: var(--ff-display);
      font-size: .8rem;
      font-weight: 400;
      letter-spacing: .18em;
      text-transform: uppercase;
      color: var(--cream-dim);
      transition: color var(--tr);
      white-space: nowrap;
    }

    .nav-links a:hover {
      color: var(--gold);
    }

    .nav-right {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-shrink: 0;
    }

    /* Lang switcher */
    .lang-btn {
      display: flex;
      align-items: center;
      border: 1px solid var(--border-gold);
      border-radius: 2px;
      cursor: pointer;
      background: transparent;
      position: relative;
    }

    /* Invisible tap-target expansion — the pill stays visually compact
       (client's aesthetic) but the real hit area meets the 44x44px
       accessibility minimum, since the button's own box was only ~25px tall. */
    .lang-btn::before {
      content: '';
      position: absolute;
      z-index: 1;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: max(100%, 44px);
      height: 44px;
    }

    .lang-btn span {
      display: block;
      padding: 5px 10px;
      font-family: var(--ff-display);
      font-size: .63rem;
      font-weight: 500;
      letter-spacing: .14em;
      color: var(--cream-dim);
      transition: background var(--tr), color var(--tr);
    }

    .lang-btn .sep {
      width: 1px;
      background: var(--border-gold);
      align-self: stretch;
    }

    /* Corner rounding moved here (off the removed parent overflow:hidden) so
       the ::before tap-target expansion above isn't clipped along with it. */
    .lang-btn .len {
      border-radius: 0 1px 1px 0;
    }

    .lang-btn .lpl {
      border-radius: 1px 0 0 1px;
      background: var(--gold-faint);
      color: var(--gold);
    }

    body.en .lang-btn .lpl {
      background: transparent;
      color: var(--cream-dim);
    }

    body.en .lang-btn .len {
      background: var(--gold-faint);
      color: var(--gold);
    }

    /* Navbar CTA */
    .nav-cta {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 7px 16px;
      border: 1px solid var(--gold-dk);
      border-radius: 2px;
      font-family: var(--ff-display);
      font-size: .78rem;
      font-weight: 500;
      letter-spacing: .18em;
      text-transform: uppercase;
      color: var(--gold);
      transition: background var(--tr), border-color var(--tr), color var(--tr);
      white-space: nowrap;
    }

    .nav-cta:hover {
      background: var(--gold-faint);
      border-color: var(--gold);
    }

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

    .nav-cta svg {
      width: 12px;
      height: 12px;
    }

    /* Hamburger */
    .hamburger {
      display: none;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 5px;
      cursor: pointer;
      background: none;
      border: none;
      padding: 4px;
      min-width: 44px;
      min-height: 44px;
    }

    .hamburger span {
      display: block;
      width: 20px;
      height: 1px;
      background: var(--gold);
    }

    /* Mobile drawer */
    .nav-drawer {
      display: none;
      flex-direction: column;
      background: rgba(23, 17, 10, .97);
      border-bottom: 1px solid var(--border);
    }

    .nav-drawer.open {
      display: flex;
    }

    .nav-drawer a {
      padding: 14px 32px;
      font-family: var(--ff-display);
      font-size: .82rem;
      letter-spacing: .2em;
      text-transform: uppercase;
      color: var(--cream-dim);
      border-bottom: 1px solid var(--border);
      transition: color var(--tr), background var(--tr);
    }

    .nav-drawer a:hover {
      color: var(--gold);
      background: var(--gold-faint);
    }

    /* ══════════════════════════════════════════
       HERO
       ══════════════════════════════════════════ */
    #hero {
      background: var(--bg);
      padding: 100px 0 90px;
      position: relative;
      overflow: hidden;
      text-align: center;
    }

    /* warm lamp glow from top center */
    #hero::before {
      content: '';
      position: absolute;
      top: -80px;
      left: 50%;
      transform: translateX(-50%);
      width: 1000px;
      height: 700px;
      background: radial-gradient(ellipse at 50% 0%, rgba(201, 164, 85, .22) 0%, transparent 68%);
      pointer-events: none;
    }

    /* left vignette warmth */
    #hero::after {
      content: '';
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 50% 80% at 0% 60%, rgba(120, 60, 10, .18) 0%, transparent 70%),
        radial-gradient(ellipse 50% 80% at 100% 40%, rgba(60, 20, 0, .15) 0%, transparent 70%);
      pointer-events: none;
    }

    .hero-inner {
      position: relative;
      z-index: 3;
    }

    /* Entrance choreography — pure CSS, no JS required. Each direct child
       carries an inline --stagger index (see markup) and fades/rises in on load. */
    .hero-inner > * {
      opacity: 0;
      transform: translateY(18px);
      animation: heroFadeUp 700ms ease-out forwards;
      animation-delay: calc(var(--stagger, 0) * 90ms + 150ms);
    }

    @keyframes heroFadeUp {
      to { opacity: 1; transform: translateY(0); }
    }

    /* hero's own ornament draws itself in alongside the entrance —
       kept separate from the .js-gated system since the hero must work with no JS at all */
    .hero-inner .ornament svg line,
    .hero-inner .ornament svg path {
      stroke-dasharray: 100;
      stroke-dashoffset: 100;
      animation: svgDraw 900ms ease-out forwards;
      animation-delay: 200ms;
    }

    @keyframes svgDraw {
      to { stroke-dashoffset: 0; }
    }

    /* Top ornament */
    .hero-pretitle {
      font-family: var(--ff-display);
      font-size: .65rem;
      font-weight: 400;
      letter-spacing: .38em;
      text-transform: uppercase;
      color: var(--gold-dk);
      margin-bottom: 24px;
    }

    /* Academic-title caption above the hero name — cream like the name,
       Cinzel + uppercase, sized to match the client-approved screenshot. */
    .hero-credential {
      font-family: var(--ff-display);
      font-weight: 400;
      font-size: clamp(1.4rem, 3.5vw, 2.2rem);
      text-transform: uppercase;
      color: var(--cream);
      letter-spacing: .06em;
      margin-bottom: 8px;
    }

    /* EN page says "PhD" — the lowercase h must survive (uppercase would give
       the incorrect "PHD"); Cinzel draws it as a small cap, which is the look
       we want. */
    body.en .hero-credential {
      text-transform: none;
    }

    /* The name */
    .hero-name {
      font-family: var(--ff-display);
      font-weight: 400;
      font-size: clamp(2.6rem, 7vw, 5.5rem);
      letter-spacing: .18em;
      text-transform: uppercase;
      color: var(--cream);
      line-height: 1;
      margin-bottom: 0;
    }

    /* Gold rule under name */
    .hero-rule {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
      margin: 22px auto;
      max-width: 400px;
    }

    .hero-rule::before,
    .hero-rule::after {
      content: '';
      flex: 1;
      height: 1px;
      background: linear-gradient(to right, transparent, var(--gold-dk));
    }

    .hero-rule::after {
      background: linear-gradient(to left, transparent, var(--gold-dk));
    }

    .hero-rule-diamond {
      width: 6px;
      height: 6px;
      background: var(--gold);
      transform: rotate(45deg);
      flex-shrink: 0;
    }

    /* Role subtitle */
    .hero-role {
      font-family: var(--ff-heading);
      font-style: italic;
      font-weight: 300;
      font-size: clamp(1.2rem, 2.5vw, 1.65rem);
      color: var(--gold-lt);
      letter-spacing: .04em;
      margin-bottom: 28px;
      max-width: none;
    }

    /* Hero description */
    .hero-desc {
      font-size: 1.1rem;
      color: var(--cream-dim);
      line-height: 1.75;
      max-width: 52ch;
      margin: 0 auto 40px;
    }

    /* Hero CTA */
    .hero-cta {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 14px 32px;
      border: 1px solid var(--gold);
      border-radius: 2px;
      font-family: var(--ff-display);
      font-size: .72rem;
      font-weight: 500;
      letter-spacing: .22em;
      text-transform: uppercase;
      color: var(--gold);
      background: transparent;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      transition: color var(--tr), box-shadow var(--tr);
    }

    .hero-cta::before {
      content: '';
      position: absolute;
      inset: 0;
      background: var(--gold);
      transform: translateX(-101%);
      transition: transform 300ms ease-out;
    }

    .hero-cta:hover {
      color: var(--ink);
      box-shadow: var(--glow-gold);
    }

    .hero-cta:hover::before {
      transform: translateX(0);
    }

    .hero-cta span,
    .hero-cta svg {
      position: relative;
      z-index: 1;
    }

    .hero-cta svg {
      width: 14px;
      height: 14px;
    }

    .hero-cta:focus-visible {
      outline: 2px solid var(--gold);
      outline-offset: 4px;
    }

    /* Candle halo — ambient warm glow in hero center, now with a slow breathing pulse */
    .hero-candle {
      position: absolute;
      inset: 0;
      z-index: 2;
      pointer-events: none;
      background:
        radial-gradient(ellipse 70% 60% at 50% 44%,
          rgba(201, 164, 85, .17) 0%,
          rgba(201, 164, 85, .07) 38%,
          transparent 70%),
        radial-gradient(ellipse 38% 30% at 50% 36%,
          rgba(230, 190, 110, .13) 0%,
          transparent 55%);
      animation: haloBreathe 9s ease-in-out infinite;
    }

    /* Scroll hint */
    .hero-scroll {
      margin-top: 64px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      font-family: var(--ff-display);
      font-size: .6rem;
      letter-spacing: .3em;
      text-transform: uppercase;
      color: var(--cream-faint);
    }

    .hero-scroll-line {
      position: relative;
      width: 1px;
      height: 40px;
      overflow: hidden;
      background: linear-gradient(to bottom, var(--gold-dk), transparent);
    }

    /* soft glint traveling down the scroll-hint line, inviting the scroll */
    .hero-scroll-line::after {
      content: '';
      position: absolute;
      left: -2px;
      right: -2px;
      top: -50%;
      height: 50%;
      background: linear-gradient(to bottom, transparent, var(--gold-lt), transparent);
      animation: glintTravel 2.8s ease-in-out infinite;
    }

    @keyframes glintTravel {
      0%   { top: -50%; opacity: 0; }
      20%  { opacity: 1; }
      80%  { opacity: 1; }
      100% { top: 100%; opacity: 0; }
    }

    /* ══════════════════════════════════════════
       ABOUT
       ══════════════════════════════════════════ */
    #about {
      background: var(--surface);
    }

    .about-inner {
      display: grid;
      grid-template-columns: 340px 1fr;
      gap: 72px;
      align-items: start;
    }

    /* Aged photo frame */
    .photo-frame {
      position: relative;
      flex-shrink: 0;
    }

    .photo-outer {
      border: 1px solid var(--border-lt);
      padding: 10px;
      position: relative;
    }

    .photo-outer::before {
      content: '';
      position: absolute;
      inset: 4px;
      border: 1px solid var(--border-gold);
      pointer-events: none;
    }

    .photo-inner {
      width: 100%;
      aspect-ratio: 3/4;
      background:
        radial-gradient(ellipse at 30% 20%, rgba(201, 164, 85, .07), transparent 60%),
        linear-gradient(160deg, var(--surface-2), var(--surface-3));
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--cream-faint);
      overflow: hidden;
      position: relative;
    }

    .photo-inner img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center 20%;
      filter: sepia(.24) saturate(.8) contrast(1.05) brightness(.93);
    }

    .photo-inner::after {
      content: '';
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: radial-gradient(ellipse at 50% 35%, transparent 45%, rgba(13, 9, 5, .4) 100%);
    }

    /* Corner ornaments on photo frame */
    .photo-corner {
      position: absolute;
      width: 14px;
      height: 14px;
    }

    .photo-corner svg {
      width: 14px;
      height: 14px;
      color: var(--gold-dk);
    }

    .photo-corner.tl {
      top: 2px;
      left: 2px;
    }

    .photo-corner.tr {
      top: 2px;
      right: 2px;
      transform: scaleX(-1);
    }

    .photo-corner.bl {
      bottom: 2px;
      left: 2px;
      transform: scaleY(-1);
    }

    .photo-corner.br {
      bottom: 2px;
      right: 2px;
      transform: scale(-1);
    }

    /* About text */
    .about-body {
      padding-top: 4px;
    }

    .about-body p {
      color: var(--cream-dim);
      font-size: 1.05rem;
      line-height: 1.85;
      max-width: 58ch;
    }

    .about-body p+p {
      margin-top: 18px;
    }

    /* Drop cap on first paragraph */
    .about-body p:first-of-type::first-letter {
      font-family: var(--ff-display);
      font-size: 4rem;
      font-weight: 400;
      color: var(--gold);
      float: left;
      line-height: .8;
      margin-right: 8px;
      margin-top: 4px;
    }

    /* ══════════════════════════════════════════
       HOW I WORK
       ══════════════════════════════════════════ */
    #how {
      background: var(--bg);
    }

    #how .s-label {
      font-size: clamp(1rem, 2.2vw, 1.4rem);
      letter-spacing: .22em;
      margin-bottom: 48px;
    }

    /* Services list */
    .services {
      max-width: 780px;
      margin: 0 auto;
      background: var(--surface-2);
      border: 1px solid var(--border-gold);
      box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
      padding: 22px 44px;
    }

    .service-item {
      display: flex;
      align-items: flex-start;
      gap: 48px;
      padding: 40px 0;
      border-bottom: 1px solid var(--border-lt);
      position: relative;
      transition: background var(--tr);
    }

    .service-item:last-child {
      border-bottom: none;
    }

    .service-item::before {
      content: '';
      position: absolute;
      left: 0; right: 0;
      top: -1px;
      height: 1px;
      background: var(--gold);
      transform: scaleX(0);
      transform-origin: left center;
      transition: transform 420ms ease-out;
    }

    .service-item:hover::before,
    .service-item[data-reveal].is-visible::before { transform: scaleX(1); }

    /* first item's top line would sit redundantly close to the panel's own border */
    .service-item:first-child::before {
      display: none;
    }

    .service-num {
      font-family: var(--ff-display);
      font-size: clamp(2.4rem, 4vw, 3.6rem);
      font-weight: 400;
      line-height: 1;
      color: var(--gold-dk);
      opacity: .7;
      min-width: 56px;
      text-align: center;
      padding-top: 6px;
      transition: color var(--tr), opacity var(--tr);
      flex-shrink: 0;
    }

    .service-item:hover .service-num {
      color: var(--gold);
      opacity: 1;
    }

    .service-body { flex: 1; }

    .service-title {
      font-family: var(--ff-heading);
      font-size: clamp(1.2rem, 2vw, 1.45rem);
      font-weight: 500;
      color: var(--cream);
      margin-bottom: 14px;
      letter-spacing: .01em;
      text-align: left;
    }

    .service-desc {
      color: var(--cream-dim);
      font-size: 1.05rem;
      line-height: 1.82;
      max-width: 58ch;
      text-align: left;
    }

    @media (max-width: 560px) {
      .services { padding: 16px 20px; }
      .service-item { gap: 24px; }
      .service-num { min-width: 36px; font-size: 2rem; }
    }

    /* ══════════════════════════════════════════
       WHO I HELP
       ══════════════════════════════════════════ */
    #who {
      background: var(--surface-2);
    }

    .who-inner {
      max-width: 900px;
    }

    .who-list {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px 40px;
      margin-top: 32px;
    }

    .who-list li {
      display: flex;
      align-items: flex-start;
      gap: 18px;
      padding: 18px 0;
      font-size: 1.05rem;
      color: var(--cream-dim);
      line-height: 1.6;
    }

    .who-list li .bullet {
      display: inline-block;
      width: 13px;
      height: 13px;
      flex-shrink: 0;
      margin-top: 7px;
      background: var(--gold);
      clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
      font-size: 0;
    }

    /* ══════════════════════════════════════════
       PRACTICAL
       ══════════════════════════════════════════ */
    #practical {
      background: var(--bg);
    }

    .practical-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      margin-top: 40px;
    }

    .prac-card {
      padding: 32px 36px;
      background: var(--surface-3);
      border: 1px solid var(--border-gold);
      box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
      position: relative;
      transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
    }

    .prac-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 2px;
      height: 0;
      background: var(--gold);
      transition: height 350ms ease-out;
    }

    .prac-card:hover {
      transform: translateY(-3px);
      border-color: var(--gold);
      box-shadow: 0 22px 50px rgba(0, 0, 0, .38);
    }

    .prac-card:hover::before {
      height: 100%;
    }

    .prac-icon {
      width: 26px;
      height: 26px;
      color: var(--gold);
      opacity: .9;
      margin-bottom: 16px;
    }

    .prac-icon svg {
      width: 100%;
      height: 100%;
    }

    .prac-label {
      font-family: var(--ff-display);
      font-size: .82rem;
      letter-spacing: .24em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 12px;
    }

    .prac-value {
      font-family: var(--ff-heading);
      font-size: 1.35rem;
      font-weight: 400;
      color: var(--cream);
      line-height: 1.45;
    }

    .prac-value .prac-sub {
      display: block;
      font-size: .95rem;
      color: var(--cream-dim);
      margin-top: 4px;
    }

    /* ══════════════════════════════════════════
       CONTACT
       ══════════════════════════════════════════ */
    #contact {
      background: var(--surface);
      position: relative;
      overflow: hidden;
    }

    /* warm spotlight glow over the whole section, echoes the hero lamp glow */
    #contact::before {
      content: '';
      position: absolute;
      top: -140px;
      right: -160px;
      width: 980px;
      height: 980px;
      background: radial-gradient(ellipse at 65% 20%, rgba(201, 164, 85, .20) 0%, transparent 65%);
      pointer-events: none;
      z-index: 0;
      animation: haloBreathe 10s ease-in-out infinite;
    }

    #contact .wrap {
      position: relative;
      z-index: 1;
    }

    .contact-inner {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 72px;
      align-items: start;
    }

    .contact-info,
    .contact-form {
      position: relative;
      z-index: 1;
    }

    .contact-info p {
      font-size: 1rem;
      color: var(--cream-dim);
      line-height: 1.8;
      margin-top: 16px;
    }

    .contact-details {
      margin-top: 32px;
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .c-item {
      display: flex;
      align-items: baseline;
      gap: 20px;
      padding: 16px 0;
      border-bottom: 1px solid var(--border);
    }

    .c-item:first-child {
      border-top: 1px solid var(--border);
    }

    .c-key {
      font-family: var(--ff-display);
      font-size: .82rem;
      letter-spacing: .2em;
      text-transform: uppercase;
      color: var(--gold-label);
      flex-shrink: 0;
      width: 92px;
    }

    .c-val {
      font-size: 1.05rem;
      color: var(--cream-dim);
    }

    .c-val a {
      color: var(--cream-dim);
      transition: color var(--tr);
    }

    .c-val a:hover {
      color: var(--gold);
    }

    /* Znany Lekarz notice — sits under the address, needs to read as clearly
       visible, not just another info row. Background is a deliberate step
       between --surface-3 (the form panel) and --gold (the submit button),
       so it's brighter than everything around it but doesn't compete with
       the button as the page's one solid-gold element. */
    .contact-notice {
      margin-top: 24px;
      padding: 16px 18px;
      background: var(--surface-notice);
      border: 1px solid var(--gold-dk);
      display: flex;
      align-items: flex-start;
      gap: 12px;
    }

    .contact-notice svg {
      width: 18px;
      height: 18px;
      flex-shrink: 0;
      margin-top: 2px;
      color: var(--gold-lt);
    }

    .contact-notice p {
      margin: 0;
      font-size: .92rem;
      line-height: 1.6;
      color: var(--cream);
    }

    .notice-emphasis {
      text-decoration: underline;
      text-decoration-color: var(--gold);
      text-underline-offset: 3px;
      font-weight: 600;
    }

    /* FORM */
    .contact-form {
      background: var(--surface-3);
      border: 1px solid var(--border-lt);
      padding: 40px 36px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
      display: flex;
      flex-direction: column;
    }

    /* Lets the success message center itself in whatever space the form
       used to occupy, instead of sitting pinned to the top with dead space
       below it — the panel's min-height is set inline by JS at submit time
       so swapping in this shorter content doesn't shrink the panel. */
    .contact-form form {
      flex: 1;
    }

    /* corner accents on form */
    .contact-form::before,
    .contact-form::after {
      content: '';
      position: absolute;
      width: 24px;
      height: 24px;
      border-color: var(--gold-dk);
      border-style: solid;
    }

    .contact-form::before {
      top: -1px;
      left: -1px;
      border-width: 1px 0 0 1px;
    }

    .contact-form::after {
      bottom: -1px;
      right: -1px;
      border-width: 0 1px 1px 0;
    }

    .contact-form h3 {
      font-family: var(--ff-display);
      font-weight: 400;
      font-size: .85rem;
      letter-spacing: .28em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 28px;
    }

    .fg {
      margin-bottom: 20px;
    }

    .fg label {
      display: block;
      font-family: var(--ff-display);
      font-size: .8rem;
      font-weight: 500;
      letter-spacing: .2em;
      text-transform: uppercase;
      color: var(--cream-dim);
      margin-bottom: 7px;
    }

    .fg label .req {
      color: var(--gold-label);
      margin-left: 2px;
    }

    .fg input,
    .fg textarea {
      width: 100%;
      padding: 11px 14px;
      background: var(--surface);
      border: 1px solid var(--border-lt);
      border-radius: 0;
      font-family: var(--ff-body);
      font-size: 1rem;
      color: var(--cream);
      transition: border-color var(--tr), box-shadow var(--tr);
      appearance: none;
    }

    .fg input::placeholder,
    .fg textarea::placeholder {
      color: var(--cream-faint);
      font-style: italic;
    }

    .fg input:focus,
    .fg textarea:focus {
      outline: none;
      border-color: var(--gold-dk);
      box-shadow: 0 0 0 3px rgba(201, 164, 85, .35);
    }

    .fg textarea {
      resize: vertical;
      min-height: 100px;
      line-height: 1.6;
    }

    .form-submit {
      width: 100%;
      padding: 13px;
      background: var(--gold);
      border: 1px solid var(--gold);
      color: var(--ink);
      font-family: var(--ff-display);
      font-size: .8rem;
      font-weight: 500;
      letter-spacing: .24em;
      text-transform: uppercase;
      cursor: pointer;
      margin-top: 8px;
      position: relative;
      transition: background var(--tr), box-shadow var(--tr);
    }

    .form-submit span {
      position: relative;
      z-index: 1;
    }

    .form-submit:hover {
      background: var(--gold-lt);
      border-color: var(--gold-lt);
      box-shadow: var(--glow-gold);
    }

    .form-submit:focus-visible {
      outline: 2px solid var(--gold-lt);
      outline-offset: 3px;
    }

    .form-note {
      margin-top: 12px;
      font-size: .78rem;
      color: var(--cream-dim);
      text-align: center;
      font-style: italic;
    }

    /* Honeypot spam trap — present for bots, off-screen for everyone else */
    .hp-field {
      position: absolute;
      left: -9999px;
      width: 1px;
      height: 1px;
      overflow: hidden;
    }

    .fg.has-error input,
    .fg.has-error textarea {
      border-color: var(--gold-lt);
      box-shadow: 0 0 0 3px rgba(226, 194, 126, .3);
    }

    /* [hidden] must win over the display below, or the field-error/status text
       would show even while hidden — see the display:revert gotcha noted
       elsewhere in this file for why author CSS can silently beat [hidden]. */
    .field-error:not([hidden]) {
      display: block;
      margin-top: 6px;
      font-size: .82rem;
      line-height: 1.4;
      color: var(--gold-lt);
    }

    .form-submit[disabled] {
      opacity: .6;
      cursor: not-allowed;
    }

    .form-submit[disabled]:hover {
      background: var(--gold);
      border-color: var(--gold);
      box-shadow: none;
    }

    .form-status:not([hidden]) {
      display: block;
      margin-top: 14px;
      font-size: .85rem;
      line-height: 1.5;
      color: var(--gold-lt);
      text-align: center;
    }

    /* :not([hidden]) guard — otherwise this display:flex beats the browser's
       default [hidden]{display:none}, same class of bug as the display:revert
       gotcha noted elsewhere in this file: author CSS always wins over the
       UA stylesheet, so the hidden attribute alone isn't enough here. */
    .form-success:not([hidden]) {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 12px 4px 8px;
    }

    .form-success svg {
      width: 42px;
      height: 42px;
      color: var(--gold-lt);
      margin: 0 auto 18px;
      display: block;
    }

    .form-success p {
      color: var(--cream);
      font-size: 1.05rem;
      line-height: 1.75;
    }

    /* ══════════════════════════════════════════
       FOOTER
       ══════════════════════════════════════════ */
    footer {
      background: var(--bg);
      border-top: 1px solid var(--border);
      padding: 40px 32px;
      text-align: center;
    }

    .foot-name {
      font-family: var(--ff-display);
      font-size: .78rem;
      letter-spacing: .22em;
      text-transform: uppercase;
      color: var(--gold-label);
      margin-bottom: 8px;
      text-align: left;
    }

    .foot-copy {
      font-size: .82rem;
      color: var(--cream-dim);
      text-align: left;
    }

    /* ══════════════════════════════════════════
       SECTION TRANSITIONS (between sections)
       ══════════════════════════════════════════ */
    .section-divider {
      height: 1px;
      background: var(--border);
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .section-divider .ornament {
      position: absolute;
      background: inherit;
    }

    /* ══════════════════════════════════════════
       RESPONSIVE
       ══════════════════════════════════════════ */
    @media (max-width: 1340px) {
      .nav-links {
        display: none;
      }

      .hamburger {
        display: flex;
      }

      .nav-cta {
        display: none;
      }
    }

    @media (max-width: 768px) {
      section {
        padding: 64px 0;
      }

      #hero {
        padding: 72px 0 64px;
      }

      .wrap {
        padding: 0 24px;
      }

      .about-inner {
        grid-template-columns: 1fr;
        gap: 40px;
      }

      .who-list {
        grid-template-columns: 1fr;
        gap: 0;
      }

      .photo-frame {
        max-width: 260px;
        margin: 0 auto;
      }

      .about-body p:first-of-type::first-letter {
        font-size: 3rem;
      }

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

      .contact-inner {
        grid-template-columns: 1fr;
        gap: 48px;
      }

      .contact-form {
        padding: 28px 24px;
      }
    }

    @media (max-width: 480px) {
      h1 {
        letter-spacing: .08em;
      }

      .hero-pretitle {
        letter-spacing: .22em;
      }

      .hero-desc {
        font-size: 1rem;
      }
    }
