/*
Theme Name: Izabela Markiewicz-Czapińska
Theme URI: https://izamarkiewicz.pl
Description: Lekki motyw one-page dla Izabeli Markiewicz-Czapińskiej. Treści edytuje się w Wygląd → Dostosuj → Treść strony. Formularz: wbudowany albo WPForms (shortcode w panelu).
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: izamarkiewicz
License: GNU General Public License v2 or later
*/

/* Izabela Markiewicz-Czapińska — one-pager
   Kierunek: chłodny, skandynawski. Białe tło, szare akcenty, niebieskie przyciski.
   Krój: Geist, Geist Mono do drobnych etykiet. Logo: stary znak „im”. */

/* fonty lokalnie (RODO — bez Google Fonts) */
@font-face { font-family: "Geist"; src: url("assets/fonts/Geist-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/Geist-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("assets/fonts/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --mist: #f2f4f6;
  --mist-2: #e6e9ed;
  --ink: #1a2638;
  --ink-2: #34425a;
  --muted: #667286;
  --line: #e1e4e8;
  --accent: #2b4f7e;
  --accent-dark: #1e3a5f;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(.2, .7, .15, 1);
  --header-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -.025em; line-height: 1.08; text-wrap: balance; }
::selection { background: var(--ink); color: var(--bg); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

/* ---------- przyciski ---------- */
.btn {
  --b: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--b);
  color: #fff;
  border: 1px solid var(--b);
  font: 500 .95rem/1 var(--sans);
  letter-spacing: .005em;
  text-decoration: none;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.btn.small { padding: 11px 18px; font-size: .88rem; }

/* ---------- nagłówek ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  --header-h: 64px;
}
.site-header .wrap { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--ink); display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand svg { height: 28px; width: auto; aspect-ratio: 1000 / 527; fill: currentColor; flex: none; transition: height .4s var(--ease); }
.scrolled .brand svg { height: 24px; }
.brand-name { font-size: .98rem; white-space: nowrap; letter-spacing: -.005em; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) {
  text-decoration: none;
  font-size: .92rem;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }

/* ---------- hero ---------- */
.hero {
  /* bez wysokości na cały ekran — treść zaczyna się zaraz pod menu */
  padding: calc(var(--header-h) + clamp(32px, 4vw, 64px)) 0 clamp(56px, 6vw, 88px);
  position: relative;
}
.hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 6vw, 96px); align-items: center; width: 100%; }
.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 5rem);
  font-weight: 300;
  margin: 28px 0 32px;
  letter-spacing: -.035em;
  line-height: 1.04;
}
.hero h1 em { font-style: normal; color: var(--muted); }
.hero .lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--ink-2); max-width: 36em; line-height: 1.65; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 44px; }

.arch {
  position: relative;
  background: none;
  aspect-ratio: 3 / 4.3;
  display: grid;
  place-items: end center;
  overflow: visible; /* rysunek po najechaniu może lekko wyjść poza ramkę — nigdy nie jest ucinany */
  isolation: isolate;
}
.arch svg { height: 88%; width: auto; max-width: 90%; margin-bottom: 4%; color: var(--ink); }
.fig { fill: currentColor; }


/* ---------- logotypy klientów: spokojny, wyszarzony pasek ---------- */
.clients { margin-top: clamp(72px, 9vw, 120px); }
.clients-in { border-top: 1px solid rgba(26, 38, 56, .1); padding-top: 40px; }
.marquee {
  margin-top: 30px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 80s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; align-items: center; gap: clamp(44px, 5vw, 76px); padding: 6px clamp(44px, 5vw, 76px) 6px 0; margin: 0; list-style: none; }
.client img { display: block; height: calc(var(--h) * 1px * var(--k, 1)); width: auto; max-width: none; filter: grayscale(1); opacity: .42; transition: opacity .5s var(--ease); }
.client:hover img { opacity: .75; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 640px) {
  .clients { --k: .78; }
  .marquee-track { animation-duration: 60s; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; width: auto; }
  .marquee-set { flex-wrap: wrap; justify-content: center; gap: 28px 44px; padding: 0; }
  .marquee-set[aria-hidden] { display: none; }
}

/* ---------- pasek wyróżników ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 34px 32px 34px 0; }
.fact + .fact { padding-left: 32px; border-left: 1px solid var(--line); }
.fact b { display: block; font-weight: 300; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.02em; line-height: 1.15; }
.fact span { display: block; margin-top: 8px; font-size: .9rem; color: var(--muted); line-height: 1.5; }

/* ---------- sekcje ---------- */
section { padding: clamp(88px, 12vw, 160px) 0; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(48px, 7vw, 88px); }
.sec-head h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); margin-top: 22px; }
.sec-head p { color: var(--muted); max-width: 32em; }

/* ---------- o mnie ---------- */
.about .wrap { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.portrait {
  position: sticky; top: calc(var(--header-h) + 32px);
  aspect-ratio: 4 / 5;
  background: var(--mist);
  display: grid; place-items: center;
  text-align: center;
  overflow: hidden;
}
/* wycięte zdjęcie (przezroczyste tło): postać stoi na dole szarego prostokąta, z powietrzem nad głową */
.portrait img {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto;
  height: 94%; width: auto; max-width: 100%;
  object-fit: contain; object-position: bottom center;
}
.portrait .ph { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 24px; }
.portrait .ph svg { width: 64px; height: auto; margin: 0 auto 16px; fill: #cdd2d9; }
.about h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); margin: 22px 0 14px; }
.role { font-size: 1.05rem; color: var(--ink-2); }
.creds { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; color: var(--muted); margin-top: 10px; line-height: 1.8; }
.creds span + span::before { content: "·"; margin: 0 10px; }
.pull {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 300;
  line-height: 1.38;
  letter-spacing: -.015em;
  margin: 48px 0 36px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  text-wrap: pretty;
}
.about .body p { color: var(--ink-2); max-width: 38em; }
.about .body p + p { margin-top: 20px; }
.about .hands { width: 150px; margin-top: 56px; color: var(--ink); opacity: .9; }
.areas { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line); }
.areas ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; max-width: 38em; }
.areas li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1.04rem; color: var(--ink); }
@media (max-width: 640px) { .areas ul { grid-template-columns: 1fr; } }

/* ---------- programy ---------- */
.programs { background: var(--surface); }
/* O mnie → Programy: mniejsza przerwa niż między innymi sekcjami (rączki już ją wypełniają) */
.about { padding-bottom: clamp(40px, 5vw, 72px); }
.programs { padding-top: clamp(48px, 6vw, 88px); }
.program {
  display: grid;
  grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
  grid-template-rows: auto auto auto 1fr;
  grid-template-areas:
    "fig num"
    "fig title"
    "fig sub"
    "fig dl";
  column-gap: clamp(32px, 6vw, 96px);
  padding: clamp(56px, 7vw, 96px) 0;
  border-top: 1px solid var(--line);
}
/* co drugi program: rysunek po prawej */
.program:nth-of-type(even) {
  grid-template-columns: minmax(0, 1fr) minmax(200px, 300px);
  grid-template-areas:
    "num fig"
    "title fig"
    "sub fig"
    "dl fig";
}
.program:last-child { border-bottom: 1px solid var(--line); }
/* elementy z obu kolumn trafiają bezpośrednio do siatki programu */
.program > .side, .program > .side + div { display: contents; }
.program .num { grid-area: num; font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; color: var(--muted); margin-bottom: 18px; }
.program .arch { grid-area: fig; aspect-ratio: auto; display: flex; justify-content: center; align-items: flex-start; align-self: start; }
.program .arch svg { height: clamp(280px, 28vw, 380px); width: auto; max-width: 100%; margin: 0; }
.program h3 { grid-area: title; }
.program .sub { grid-area: sub; }
.program dl { grid-area: dl; }

.program h3 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.program .sub { font-size: 1.08rem; color: var(--muted); margin-top: 10px; }
.program dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 44px 0 0; }
.program dl > div { padding-top: 20px; border-top: 1px solid var(--line); }
.program dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.program dd { margin: 0; font-size: .97rem; color: var(--ink-2); line-height: 1.65; }
.program dd.outcome { color: var(--ink); }
.program dl.single { grid-template-columns: minmax(0, 38em); }
.program dl.single dd { font-size: 1.05rem; }

/* ---------- kontakt ---------- */
.contact { background: var(--mist); padding-bottom: 0; }
.contact .grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.contact h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin: 22px 0 22px; }
.contact .lead { color: var(--ink-2); max-width: 26em; font-size: 1.08rem; }
.contact address { font-style: normal; margin-top: 44px; display: grid; gap: 4px; color: var(--ink-2); }
.contact address b { font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.contact address a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); }
.contact address a:hover { background-size: 100% 1px; }
.contact .pair { width: 190px; margin-top: 56px; color: var(--ink); }

form {
  background: var(--surface);
  border-radius: 2px;
  padding: clamp(28px, 4vw, 52px);
  display: grid;
  gap: 30px;
  box-shadow: 0 1px 0 rgba(26, 38, 56, .04), 0 30px 60px -40px rgba(26, 38, 56, .25);
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field label i { font-style: normal; text-transform: none; letter-spacing: .02em; opacity: .8; }
.field input, .field textarea, .field select {
  font: 400 1rem/1.5 var(--sans);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 0 12px;
  width: 100%;
  transition: border-color .3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23667286' stroke-width='1.3'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") right 2px center / 12px no-repeat;
  padding-right: 24px;
  cursor: pointer;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--muted); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field.invalid input, .field.invalid textarea { border-color: #a4443a; }
.field .err { font-size: .8rem; color: #a4443a; min-height: 0; }
.consent { display: flex; gap: 14px; align-items: flex-start; font-size: .84rem; color: var(--muted); line-height: 1.55; cursor: pointer; }
.consent input {
  -webkit-appearance: none; appearance: none; flex: none;
  width: 18px; height: 18px; margin: 2px 0 0; border: 1px solid var(--muted); border-radius: 3px;
  display: grid; place-content: center; cursor: pointer; transition: background .25s, border-color .25s;
}
.consent input::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.consent input:checked { background: var(--accent); border-color: var(--accent); }
.consent input:checked::after { opacity: 1; }
.consent.invalid input { border-color: #a4443a; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-msg { font-size: .88rem; color: var(--ink-2); }

.site-footer { margin-top: clamp(88px, 10vw, 140px); border-top: 1px solid rgba(26, 38, 56, .12); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 32px; font-size: .84rem; color: var(--muted); }
.site-footer svg { height: 22px; width: auto; aspect-ratio: 1000 / 527; fill: var(--ink); }
.site-footer a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
/* podpis autorów: mały i cichy */
.site-footer .credits { flex-basis: 100%; font-size: .72rem; letter-spacing: .01em; color: var(--muted); opacity: .85; }
.site-footer .credits a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); }
.site-footer .credits a:hover { background-size: 100% 1px; }

/* =========================================================
   Animacje — spokojne, krótkie przesunięcia, bez efektów „wow”.
   Stan ukryty tylko gdy JS działa (.js) i użytkownik nie prosi o ograniczenie ruchu.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
    transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
    transition-delay: var(--d, 0s);
  }
  .js [data-reveal].in { opacity: 1; transform: none; }

  /* rysunki: ukryte, dopóki main.js nie zacznie ich rysować grubą kreską */
  .js .sketch:not(.ready) { opacity: 0; }
  /* szary panel pod rysunkiem: delikatne pojawienie się */
  /* rysunki Poli pojawiają się samym rysowaniem; płynne pojawianie tylko dla zwykłych obrazków */
  .js [data-draw] img.custom-fig { opacity: 0; transition: opacity 1s var(--ease); }
  .js [data-draw].in img.custom-fig { opacity: 1; }

  /* linie podziału rysują się od lewej */
  .js [data-line] { position: relative; border-top-color: transparent !important; }
  .js [data-line]::before {
    content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--line);
    transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) var(--d, 0s);
  }
  .js [data-line].in::before { transform: scaleX(1); }

  /* nagłówek hero: słowa wysuwają się spod linii */
  .js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .16em 0 .2em; margin: -.16em 0 -.2em; }
  .js .split .w > span { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 55ms + .1s); }
  .js .split.in .w > span { transform: none; }

  .js .site-header { transform: translateY(-100%); transition: transform .9s var(--ease) .2s, background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease); }
  .js.loaded .site-header { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- responsywność ---------- */
@media (max-width: 1020px) {
  .program { grid-template-columns: minmax(160px, 220px) minmax(0, 1fr); }
  .program:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(160px, 220px); }
  .program .arch svg { height: 280px; }
  .program dl { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .nav a:not(.btn) { display: none; }
  .brand svg, .scrolled .brand svg { height: 24px; }
  .brand-name { font-size: .9rem; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 36px); padding-bottom: 80px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .arch { width: min(62%, 280px); justify-self: center; order: -1; }
  .hero h1 { margin-top: 22px; }
  .facts .wrap { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 24px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
  .sec-head { grid-template-columns: 1fr; }
  .about .wrap { grid-template-columns: 1fr; }
  .portrait { position: relative; top: 0; width: min(76%, 340px); }
  /* mniejsza przerwa między „O mnie” (rysunek dłoni) a „Programami” */
  .about { padding-bottom: 24px; }
  .about .hands { margin-top: 40px; }
  .programs { padding-top: 64px; }
  .contact .grid { grid-template-columns: 1fr; }
  .contact .pair { display: none; }
}
@media (max-width: 640px) {
  /* telefon: rysunek po prawej obok numeru, tytułu i podtytułu, opis pod spodem na całą szerokość */
  .program, .program:nth-of-type(even) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 36%);
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas:
      "num fig"
      "title fig"
      "sub fig"
      "dl dl";
    column-gap: 12px;
    padding: 56px 0;
  }
  /* rysunek zawsze po prawej, przy tekście, z oddechem od prawej krawędzi */
  .program .arch { align-self: end; justify-content: flex-start; }
  .program .arch svg { height: 210px; max-width: 86%; }
  .program h3 { font-size: 1.6rem; }
  .program .sub { font-size: 1rem; }
  .row2 { grid-template-columns: 1fr; }
  .cta .btn { flex: 1 1 auto; justify-content: center; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

/* ---------- hover: ludziki delikatnie rosną ---------- */
.fig { transform-origin: 50% 100%; transition: transform .9s var(--ease); }
@media (hover: hover) {
  .arch:hover .fig,
  .program:hover .arch .fig,
  .hands:hover .fig,
  .pair:hover .fig { transform: scale(1.06); }
}

@media (max-width: 560px) {
  .brand-name { display: none; }
}

/* ---------- przełącznik języka PL / EN ---------- */
.nav .lang { display: inline-flex; align-items: center; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; margin-right: -10px; }
.nav .lang a, .nav .lang a:not(.btn) { display: inline-block; font-size: inherit; padding: 6px 5px; color: var(--muted); transition: color .3s var(--ease); }
.nav .lang a + a::before { content: "/"; margin-right: 10px; color: rgba(26, 38, 56, .2); }
.nav .lang a::after { display: none; }
.nav .lang a[aria-current] { color: var(--ink); }
.nav .lang a:hover { color: var(--ink); }
@media (max-width: 860px) { .nav { gap: 18px; } .nav .lang { margin-right: 0; } }
.site-header .btn { white-space: nowrap; }
@media (max-width: 380px) { .nav { gap: 8px; } .nav .lang a + a::before { margin-right: 5px; } .site-header .btn.small { padding-left: 14px; padding-right: 14px; } }

/* ---------- certyfikat ICF w stopce ---------- */
.site-footer .cert { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.site-footer svg.icf { height: 26px; width: auto; aspect-ratio: 205 / 65; fill: currentColor; color: var(--ink); opacity: .7; transition: opacity .3s var(--ease); }
.site-footer .cert:hover svg.icf { opacity: 1; }

/* =========================================================
   Dodatki pod WordPressa
   ========================================================= */
/* pasek administratora (widoczny tylko po zalogowaniu) */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header.scrolled { top: 0; } }

/* stopka na stronie głównej leży w szarym tle sekcji kontaktu (jak na makiecie) */
.home .contact { padding-bottom: clamp(48px, 6vw, 80px); }
.site-footer { margin-top: 0; }
.home .site-footer { background: var(--mist); }

/* pole-pułapka na boty — niewidoczne dla ludzi */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
form { position: relative; }
.form-msg.ok { color: var(--accent); }
.form-msg.err { color: #a4443a; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* zwykłe podstrony (np. polityka prywatności) */
.page-wrap { padding: calc(var(--header-h) + 64px) 0 120px; }
.wrap.narrow { max-width: 820px; }
.entry-title { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-bottom: 40px; }
.entry-content { color: var(--ink-2); }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: 1.7rem; margin-top: 2em; color: var(--ink); }
.entry-content h3 { font-size: 1.3rem; margin-top: 1.6em; color: var(--ink); }
.entry-content a { color: var(--accent); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }

/* własny obrazek zamiast rysunku (Dostosuj → „Albo własny obrazek”) — te same wymiary co rysunki */
.arch img.custom-fig { height: 88%; width: auto; max-width: 90%; margin-bottom: 4%; object-fit: contain; }
.program .arch img.custom-fig { height: clamp(280px, 28vw, 380px); max-width: 100%; margin: 0; }
.hands img.custom-fig, .pair img.custom-fig { width: 100%; height: auto; display: block; }
@media (max-width: 860px) { .program .arch img.custom-fig { height: 280px; } }
@media (max-width: 640px) { .program .arch img.custom-fig { height: 210px; max-width: 86%; } }

/* reCAPTCHA: ukryta plakietka Google, zamiast niej notka pod formularzem (dozwolone przez Google) */
.grecaptcha-badge { visibility: hidden !important; }
.captcha-note { font-size: .74rem; line-height: 1.5; color: var(--muted); margin: 14px 0 0; }
.captcha-note a { color: inherit; text-underline-offset: 2px; }

/* przycisk „Ustawienia cookies” w stopce wygląda jak link */
.cookie-link { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* baner zgody na cookies — mała, spokojna karta w rogu */
.cookie-bar {
  position: fixed; z-index: 60; left: 24px; bottom: 24px; max-width: 400px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 18px 50px -20px rgba(26, 38, 56, .28);
  padding: 20px 22px; font-size: .86rem; line-height: 1.55; color: var(--ink-2);
  opacity: 0; transform: translateY(12px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.cookie-bar.on { opacity: 1; transform: none; }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; }
.cookie-bar a { color: var(--accent); text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 10px; margin-top: 16px; }
.cookie-actions .btn { flex: 1; justify-content: center; }
@media (max-width: 560px) {
  .cookie-bar { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .cookie-bar { transition: none; } }

/* =========================================================
   WPForms — ten sam wygląd co wbudowany formularz.
   W WPForms → Ustawienia → Ogólne: „Stylizacja formularzy” = „Tylko podstawowa” albo „Brak”.
   ========================================================= */
.form-panel {
  background: var(--surface);
  border-radius: 2px;
  padding: clamp(28px, 4vw, 52px);
  box-shadow: 0 1px 0 rgba(26, 38, 56, .04), 0 30px 60px -40px rgba(26, 38, 56, .25);
}
.form-panel .wpforms-container { margin: 0 !important; max-width: none !important; }
.form-panel .wpforms-form { background: none !important; padding: 0 !important; box-shadow: none !important; display: block !important; }
.form-panel .wpforms-head-container { display: none; }
.form-panel .wpforms-field-container { display: grid; gap: 30px; }
.form-panel .wpforms-field { padding: 0 !important; margin: 0 !important; }
.form-panel .wpforms-field-label,
.form-panel .wpforms-field-sublabel {
  font-family: var(--mono) !important;
  font-size: .7rem !important;
  font-weight: 400 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  color: var(--muted) !important;
  margin: 0 0 8px !important;
  line-height: 1.5 !important;
}
.form-panel .wpforms-required-label { color: var(--muted) !important; }
.form-panel .wpforms-field input[type=text],
.form-panel .wpforms-field input[type=email],
.form-panel .wpforms-field input[type=tel],
.form-panel .wpforms-field input[type=url],
.form-panel .wpforms-field input[type=number],
.form-panel .wpforms-field textarea,
.form-panel .wpforms-field select {
  font: 400 1rem/1.5 var(--sans) !important;
  color: var(--ink) !important;
  background-color: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 8px 0 12px !important;
  height: auto !important;
  width: 100% !important;
  max-width: none !important;
  transition: border-color .3s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.form-panel .wpforms-field select {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23667286' stroke-width='1.3'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") right 2px center / 12px no-repeat !important;
  padding-right: 24px !important;
}
.form-panel .wpforms-field textarea { min-height: 120px !important; resize: vertical; }
.form-panel .wpforms-field input:hover, .form-panel .wpforms-field textarea:hover, .form-panel .wpforms-field select:hover { border-color: var(--muted) !important; }
.form-panel .wpforms-field input:focus, .form-panel .wpforms-field textarea:focus, .form-panel .wpforms-field select:focus { outline: none !important; border-color: var(--ink) !important; }
.form-panel .wpforms-field input.wpforms-error, .form-panel .wpforms-field textarea.wpforms-error { border-color: #a4443a !important; }
.form-panel label.wpforms-error, .form-panel em.wpforms-error { color: #a4443a !important; font-size: .8rem !important; font-style: normal !important; margin-top: 6px !important; }

/* zgoda (RODO) i checkboxy */
.form-panel .wpforms-field-gdpr-checkbox ul, .form-panel .wpforms-field-checkbox ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.form-panel .wpforms-field-gdpr-checkbox li, .form-panel .wpforms-field-checkbox li { display: flex !important; gap: 14px; align-items: flex-start; margin: 0 !important; padding: 0 !important; }
.form-panel .wpforms-field-gdpr-checkbox input[type=checkbox], .form-panel .wpforms-field-checkbox input[type=checkbox] {
  -webkit-appearance: none !important; appearance: none !important; flex: none;
  width: 18px !important; height: 18px !important; margin: 2px 0 0 !important; border: 1px solid var(--muted) !important; border-radius: 3px !important;
  display: grid !important; place-content: center; cursor: pointer; background: #fff !important; position: static !important; opacity: 1 !important;
}
.form-panel .wpforms-field-gdpr-checkbox input[type=checkbox]::before, .form-panel .wpforms-field-checkbox input[type=checkbox]::before { display: none !important; }
.form-panel .wpforms-field-gdpr-checkbox input[type=checkbox]::after, .form-panel .wpforms-field-checkbox input[type=checkbox]::after {
  content: "" !important; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0;
  position: static !important; background: none !important;
}
.form-panel .wpforms-field-gdpr-checkbox input[type=checkbox]:checked, .form-panel .wpforms-field-checkbox input[type=checkbox]:checked { background: var(--accent) !important; border-color: var(--accent) !important; }
.form-panel .wpforms-field-gdpr-checkbox input[type=checkbox]:checked::after, .form-panel .wpforms-field-checkbox input[type=checkbox]:checked::after { opacity: 1; }
.form-panel .wpforms-field-label-inline {
  font: 400 .84rem/1.55 var(--sans) !important; color: var(--muted) !important; letter-spacing: 0 !important; text-transform: none !important; padding: 0 !important; margin: 0 !important;
}
.form-panel .wpforms-field-label-inline::before, .form-panel .wpforms-field-label-inline::after { display: none !important; }
.form-panel .wpforms-field-description { font-size: .84rem !important; color: var(--muted) !important; margin-top: 6px !important; }

/* przycisk */
.form-panel .wpforms-submit-container { padding: 30px 0 0 !important; margin: 0 !important; }
.form-panel button.wpforms-submit, .form-panel .wpforms-submit {
  display: inline-flex !important; align-items: center; gap: 12px;
  padding: 15px 26px !important; height: auto !important;
  border-radius: 999px !important;
  background: var(--accent) !important; color: #fff !important;
  border: 1px solid var(--accent) !important;
  font: 500 .95rem/1 var(--sans) !important; letter-spacing: .005em !important;
  box-shadow: none !important; cursor: pointer;
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.form-panel button.wpforms-submit::after { content: "→"; transition: transform .4s var(--ease); }
.form-panel button.wpforms-submit:hover { background: var(--accent-dark) !important; border-color: var(--accent-dark) !important; }
.form-panel button.wpforms-submit:hover::after { transform: translateX(4px); }

/* komunikat po wysłaniu */
.form-panel .wpforms-confirmation-container-full, .form-panel div[submit-success] > .wpforms-confirmation-container-full {
  background: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important;
  color: var(--ink) !important; font-size: 1.15rem !important; line-height: 1.6 !important;
}
.form-panel .wpforms-confirmation-container-full p { margin: 0 !important; }
