/* Fundacja Przebudzenie
   Motyw: świt. Ciemny błękit nocy przechodzi w ciepłe światło wschodu – jak w logo. */

@font-face {
  font-family: "Fraunces"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/fraunces-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-display: swap; font-weight: 100 900;
  src: url("fonts/fraunces-latin-ext-wght-italic.woff2") format("woff2-variations");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-display: swap; font-weight: 100 900;
  src: url("fonts/fraunces-latin-wght-italic.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --night: #0f2a40;
  --night-2: #17384f;
  --blue: #4381aa;
  --blue-deep: #2c5f84;
  --sky: #a9cbe0;
  --mist: #edf3f7;
  --sun: #feeca2;
  --sun-deep: #f5c94c;
  --glow: #ffd98a;
  --paper: #fffdf8;
  --ink: #132634;
  --muted: #546572;
  --line: #dde6ec;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 22px;
  --wrap: 1180px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--night); }
:focus-visible { outline: 3px solid var(--sun-deep); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sun); color: var(--night); }

h1, h2, h3 { margin: 0; color: var(--night); text-wrap: balance; }
h2 {
  font-family: var(--display); font-weight: 400; font-variation-settings: "opsz" 96;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.06; letter-spacing: -0.02em;
}
h2 em { font-style: italic; color: var(--blue); }
h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.3; }
p { margin: 0; }

.wrap {
  width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (max-width: 520px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--night); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 12px; color: #fff; }

.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--blue);
}
.label::before { content: ""; width: 28px; height: 1.5px; background: currentColor; opacity: .7; }

/* ---------- Header ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60;
  background: var(--night);
}
.site-header {
  position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0px); z-index: 50;
  color: #fff;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.site-header.scrolled, .site-header.solid {
  background: rgba(255, 253, 248, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--night);
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand:hover { color: inherit; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%; background: var(--blue);
  display: grid; place-items: center; flex: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset;
}
.brand-mark img { width: 27px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-weight: 500; letter-spacing: 0.16em; font-size: 0.98rem; }
.brand-text span { font-size: 0.6rem; letter-spacing: 0.46em; opacity: .7; margin-top: 4px; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; color: inherit; font-weight: 500; font-size: 0.93rem;
  transition: background .2s;
}
.nav a:hover { background: rgba(127, 176, 207, 0.18); color: inherit; }
.nav .nav-cta {
  background: var(--sun); color: var(--night); padding: 10px 20px; margin-left: 8px; font-weight: 600;
}
.nav .nav-cta:hover { background: #fff; color: var(--night); }
.scrolled .nav .nav-cta, .solid .nav .nav-cta { background: var(--night); color: #fff; }
.scrolled .nav .nav-cta:hover, .solid .nav .nav-cta:hover { background: var(--blue-deep); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; margin-right: -10px;
  cursor: pointer; color: inherit;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 76px;
    background: var(--paper); color: var(--night);
    box-shadow: 0 20px 40px rgba(15, 42, 64, .12);
    display: none;
  }
  .nav.open { display: block; }
  .site-header.menu-open { background: var(--paper); color: var(--night); }
  .nav ul { flex-direction: column; align-items: stretch; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px)); }
  .nav a { padding: 14px; border-radius: 12px; font-size: 1.05rem; }
  .nav .nav-cta, .scrolled .nav .nav-cta { margin: 10px 0 0; text-align: center; background: var(--night); color: #fff; }
}

/* ---------- Hero: świt ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: #fff;
  background:
    radial-gradient(120% 70% at 72% 100%, rgba(255, 217, 138, .55) 0%, rgba(255, 217, 138, 0) 55%),
    linear-gradient(180deg, var(--night) 0%, #1d4a6d 30%, var(--blue) 62%, #8fb9d5 88%, #d9e3d6 100%);
  padding: calc(76px + env(safe-area-inset-top, 0px) + clamp(48px, 9vw, 110px)) 0 0;
}
.hero::after {
  /* gwiazdy, które gasną ku horyzontowi */
  content: ""; position: absolute; inset: 0 0 45% 0; z-index: -1; opacity: .55;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 32%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 24%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 81% 9%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 44%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 40%, #fff 50%, transparent 51%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent);
          mask-image: linear-gradient(180deg, #000 30%, transparent);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(24px, 5vw, 72px);
  align-items: end;
}
.hero-copy { padding-bottom: clamp(56px, 8vw, 120px); min-width: 0; }
.hero .label { color: var(--sun); }
.hero h1 {
  color: #fff; margin: 22px 0 26px;
  font-family: var(--display); font-weight: 350; font-variation-settings: "opsz" 144;
  font-size: clamp(2.7rem, 7.4vw, 6rem); line-height: 0.98; letter-spacing: -0.035em;
}
.hero h1 em { font-style: italic; font-weight: 300; color: var(--sun); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(255, 255, 255, .88); max-width: 33em; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 0.98rem/1.2 var(--body); text-decoration: none;
  transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-sun { background: var(--sun); color: var(--night); box-shadow: 0 10px 30px rgba(254, 236, 162, .25); }
.btn-sun:hover { background: #fff; color: var(--night); }
.btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-night { background: var(--night); color: #fff; }
.btn-night:hover { background: var(--blue-deep); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); color: #fff; }

.hero-sun { position: relative; align-self: end; justify-self: center; width: min(100%, 440px); }
.hero-sun::before {
  content: ""; position: absolute; left: 50%; bottom: 18%; width: 150%; aspect-ratio: 1; max-width: none;
  transform: translateX(-50%); border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(255, 236, 170, .75) 0%, rgba(255, 217, 138, .25) 35%, transparent 65%);
  animation: glow 7s ease-in-out infinite alternate;
}
.hero-sun img { width: 100%; animation: rise 1.6s var(--ease) both; filter: drop-shadow(0 20px 40px rgba(15, 42, 64, .18)); }
@keyframes rise { from { transform: translateY(14%); } to { transform: none; } }
@keyframes glow { from { opacity: .75; transform: translateX(-50%) scale(.96); } to { opacity: 1; transform: translateX(-50%) scale(1.04); } }

.horizon { display: block; width: 100%; height: clamp(40px, 6vw, 90px); margin-top: -1px; color: var(--paper); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-sun { order: -1; width: min(62%, 260px); justify-self: start; margin-bottom: -8px; }
  .hero-copy { padding-bottom: 40px; }
}

/* ---------- Pasek haseł ---------- */
.ticker {
  background: var(--paper); border-block: 1px solid var(--line);
  overflow: hidden; padding: 22px 0;
}
.ticker-track {
  display: flex; width: max-content; gap: 0;
  animation: ticker 60s linear infinite;
}
.ticker ul {
  list-style: none; margin: 0; padding: 0; display: flex; flex: none;
  font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(1.5rem, 3vw, 2.3rem);
  color: var(--night); line-height: 1;
}
.ticker li { display: flex; align-items: center; white-space: nowrap; }
.ticker li::after {
  content: ""; width: 12px; height: 12px; margin: 0 clamp(20px, 3vw, 40px); border-radius: 50%;
  background: var(--sun-deep); box-shadow: 0 0 0 6px var(--sun);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sekcje ---------- */
.section { padding-block: clamp(80px, 11vw, 150px); }
.section-head { display: grid; gap: 22px; max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head p { color: var(--muted); font-size: 1.12rem; max-width: 40em; }

/* Manifest */
.manifest-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
.manifest-big {
  font-family: var(--display); font-weight: 350; font-variation-settings: "opsz" 72;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.22; letter-spacing: -0.015em; color: var(--night);
}
.manifest-big mark { background: linear-gradient(transparent 62%, var(--sun) 62%); color: inherit; padding: 0 .08em; }
.manifest-body { display: grid; gap: 20px; color: var(--muted); align-content: start; padding-top: 10px; }
.manifest-body p:first-child { color: var(--ink); font-weight: 500; }
.sign {
  display: flex; align-items: center; gap: 16px; margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--ink); font-size: .92rem;
}
.sign img { width: 52px; border-radius: 50%; }
.sign strong { display: block; }
@media (max-width: 860px) { .manifest-grid { grid-template-columns: minmax(0, 1fr); } }

/* Obszary */
.areas { background: var(--mist); }
.area-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #cfdce5;
}
.area {
  padding: 36px 32px 40px 0; border-bottom: 1px solid #cfdce5;
  display: grid; gap: 14px; align-content: start;
}
.area + .area { padding-left: 32px; }
.area:nth-child(3n + 1) { padding-left: 0; }
.area:not(:nth-child(3n)) { border-right: 1px solid #cfdce5; }
.area p { color: var(--muted); font-size: .98rem; }
.area-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--paper); color: var(--blue-deep);
  display: grid; place-items: center; margin-bottom: 8px;
  box-shadow: 0 8px 24px rgba(15, 42, 64, .06);
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.area:hover .area-icon { background: var(--sun); color: var(--night); transform: rotate(-8deg); }
.area-icon svg { width: 26px; height: 26px; }
@media (max-width: 960px) {
  .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area, .area + .area, .area:nth-child(3n + 1) { padding: 32px 24px 36px; border-right: 0; }
  .area:nth-child(odd) { padding-left: 0; border-right: 1px solid #cfdce5; }
  .area:nth-child(even) { padding-right: 0; }
}
@media (max-width: 600px) {
  .area-grid { grid-template-columns: minmax(0, 1fr); }
  .area, .area + .area, .area:nth-child(odd), .area:nth-child(even) { padding: 28px 0 32px; border-right: 0; }
}

/* Dla kogo */
.audience { background: var(--night); color: #fff; position: relative; overflow: hidden; }
.audience::before {
  content: ""; position: absolute; right: -15%; top: -40%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(67, 129, 170, .45), transparent 65%); pointer-events: none;
}
.audience .wrap { position: relative; }
.audience h2 { color: #fff; }
.audience h2 em { color: var(--sun); }
.audience .label { color: var(--sun); }
.audience .section-head p { color: rgba(255, 255, 255, .75); }
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.who article {
  border-radius: var(--radius); padding: 34px 30px 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  display: grid; gap: 14px; align-content: start;
}
.who h3 { color: #fff; font-family: var(--display); font-weight: 400; font-size: 1.55rem; letter-spacing: -0.01em; }
.who p { color: rgba(255, 255, 255, .75); font-size: .98rem; }
.who .ray {
  width: 44px; height: 44px; color: var(--sun);
}
@media (max-width: 900px) { .who { grid-template-columns: minmax(0, 1fr); } }

/* Wartości */
.values-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.values { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.values li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-weight: 350; font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.2;
  color: var(--night); letter-spacing: -0.01em;
  transition: padding .3s var(--ease), color .3s;
}
.values li span {
  font-family: var(--body); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.values li:hover { padding-left: 12px; color: var(--blue-deep); }
.values-aside { display: grid; gap: 22px; position: sticky; top: 110px; }
.values-aside p { color: var(--muted); }
@media (max-width: 860px) {
  .values-grid { grid-template-columns: minmax(0, 1fr); }
  .values-aside { position: static; }
  .values li span { display: none; }
}

/* Plany – horyzont */
.future { background: linear-gradient(180deg, var(--paper) 0%, #fff6dc 100%); }
.future-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(44px, 6vw, 72px); }
.future-head p { color: var(--muted); font-size: 1.1rem; }
.plans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; position: relative; }
.plans li {
  background: var(--paper); border-radius: var(--radius); padding: 36px 30px 34px;
  box-shadow: 0 24px 50px -24px rgba(15, 42, 64, .22), 0 0 0 1px rgba(15, 42, 64, .05);
  display: grid; gap: 12px; align-content: start;
}
.plans .sunrise {
  width: 64px; height: 34px; margin-bottom: 10px; color: var(--sun-deep);
}
.plans p { color: var(--muted); font-size: .98rem; }
@media (max-width: 900px) { .future-head, .plans { grid-template-columns: minmax(0, 1fr); } }

/* Jak pomóc */
.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.help {
  position: relative; overflow: hidden;
  border-radius: var(--radius); padding: 36px 30px 32px;
  display: flex; flex-direction: column; gap: 14px; min-height: 100%;
  background: var(--mist); color: var(--ink); text-decoration: none;
  transition: transform .3s var(--ease), background .3s, color .3s;
}
.help:hover { transform: translateY(-4px); color: var(--ink); }
.help h3 { font-family: var(--display); font-weight: 400; font-size: 1.7rem; letter-spacing: -0.01em; }
.help p { color: var(--muted); font-size: .98rem; flex: 1; }
.help .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue-deep); margin-top: 8px; }
.help .go svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.help:hover .go svg { transform: translateX(4px); }
.help.feature { background: var(--blue); color: #fff; }
.help.feature:hover { color: #fff; }
.help.feature h3 { color: #fff; }
.help.feature p { color: rgba(255, 255, 255, .85); }
.help.feature .go { color: var(--sun); }
@media (max-width: 900px) { .help-grid { grid-template-columns: minmax(0, 1fr); } }

/* Motto */
.motto { background: var(--blue); color: #fff; text-align: left; position: relative; overflow: hidden; }
.motto::before {
  content: ""; position: absolute; left: 50%; bottom: -70%; width: 120%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(254, 236, 162, .35), transparent 60%);
}
.motto .wrap { position: relative; }
.motto blockquote { margin: 0; max-width: 980px; }
.motto blockquote p {
  font-family: var(--display); font-weight: 300; font-variation-settings: "opsz" 144;
  font-size: clamp(2rem, 5.2vw, 4.2rem); line-height: 1.08; letter-spacing: -0.025em;
}
.motto blockquote em { color: var(--sun); }
.motto footer { margin-top: 28px; }
.motto .label { color: var(--sun); }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 20px; }
.contact-main {
  background: var(--night); color: #fff; border-radius: 28px;
  padding: clamp(32px, 5vw, 64px); display: grid; gap: 22px; align-content: start;
  position: relative; overflow: hidden;
}
.contact-main::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 236, 162, .28), transparent 65%); pointer-events: none;
}
.contact-main h2 { color: #fff; }
.contact-main h2 em { color: var(--sun); }
.contact-main .label { color: var(--sun); }
.contact-main p { color: rgba(255, 255, 255, .8); max-width: 34em; }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; position: relative; z-index: 1; }
.mail {
  font-family: var(--display); font-size: clamp(1.25rem, 2.6vw, 1.85rem); font-weight: 400;
  color: var(--sun); text-decoration: none; overflow-wrap: anywhere;
}
.mail:hover { color: #fff; text-decoration: underline; }
.copy {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: #fff; border: 0; font: 600 .85rem/1 var(--body);
  transition: background .2s;
}
.copy:hover { background: rgba(255, 255, 255, .2); }
.copy svg { width: 16px; height: 16px; }

.org {
  border-radius: 28px; padding: clamp(32px, 4vw, 48px);
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
  display: grid; gap: 22px; align-content: start;
}
.org h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; }
.org dl { margin: 0; display: grid; gap: 0; }
.org dl div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.org dl div:last-child { border-bottom: 0; }
.org dt { color: var(--muted); font-size: .85rem; letter-spacing: .04em; padding-top: 2px; }
.org dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

.todo { background: #fff1bf; color: #7a5a00; border-radius: 4px; padding: 0 6px; font-weight: 500; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--night); color: rgba(255, 255, 255, .7); padding-block: 72px 36px; font-size: .92rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-top {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px;
  padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-brand { display: grid; gap: 18px; max-width: 360px; }
.footer-brand img { width: 150px; }
.footer-brand p { font-family: var(--display); font-style: italic; font-size: 1.2rem; color: rgba(255, 255, 255, .85); line-height: 1.4; }
.footer-col h4 { margin: 0 0 14px; color: var(--sun); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; font-size: .84rem; }
@media (max-width: 760px) { .footer-top { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Strona prawna ---------- */
.legal { padding-block: calc(76px + 64px) 110px; }
.legal .wrap { max-width: calc(820px + 2 * var(--gutter)); }
.legal h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.02em; margin-bottom: 10px; }
.legal h2 { font-family: var(--body); font-weight: 700; font-size: 1.2rem; letter-spacing: 0; margin: 2.2em 0 .7em; line-height: 1.3; }
.legal p { margin: 0 0 1em; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .5em; }
.legal .meta { color: var(--muted); margin-bottom: 2em; }

.ig {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 10px; position: relative; z-index: 1;
  padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .85); text-decoration: none; font-size: .95rem;
}
.ig:hover { color: #fff; }
.ig svg { width: 28px; height: 28px; color: var(--sun); flex: none; }
.ig strong { display: block; color: #fff; }
.org dd.board { display: grid; gap: 2px; }
.org dd.board span { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.org dd.board span:last-child { margin-bottom: 0; }

.hero h1 .label { display: flex; font-family: var(--body); font-weight: 600; font-size: .74rem; line-height: 1.4; letter-spacing: .24em; margin-bottom: 26px; }
.hero-sun picture { display: block; }

/* =========================================================
   Serwis wielostronicowy
   ========================================================= */
.stack-sm { display: grid; gap: 22px; align-content: start; }
.stack-md { display: grid; gap: 24px; align-content: start; }
.stack-lg { display: grid; gap: 32px; align-content: start; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--ink); max-width: 38em; }

.split-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px);
  align-items: end; max-width: none;
}
@media (max-width: 860px) { .split-head { grid-template-columns: minmax(0, 1fr); } }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--blue-deep); text-decoration: none; margin-top: 6px; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.center-cta { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }

.btn-outline { color: var(--night); box-shadow: inset 0 0 0 1.5px var(--night); }
.btn-outline:hover { background: var(--night); color: #fff; }

/* Nawigacja: aktywna podstrona */
.nav a[aria-current="page"] { background: rgba(127, 176, 207, 0.2); }
.nav .nav-cta[aria-current="page"] { background: #fff; color: var(--night); }

/* Obszary jako linki */
a.area { color: inherit; text-decoration: none; transition: background .3s; }
a.area h3 { transition: color .2s; }
a.area:hover h3 { color: var(--blue-deep); }

/* Kroki */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.steps li {
  position: relative; padding: 34px 30px 36px; border-radius: var(--radius);
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
  display: grid; gap: 12px; align-content: start;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 58px; right: -20px; width: 20px; height: 1.5px; background: var(--sun-deep);
}
.step-no {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px;
  font-family: var(--display); font-size: 1.5rem; font-weight: 400; color: var(--night);
  background: var(--sun); box-shadow: 0 0 0 6px rgba(254, 236, 162, .4);
}
.steps h3 { font-family: var(--display); font-weight: 400; font-size: 1.55rem; letter-spacing: -0.01em; }
.steps p { color: var(--muted); }
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li:not(:last-child)::after { top: auto; bottom: -20px; left: 54px; right: auto; width: 1.5px; height: 20px; }
}

/* Nagłówek podstron */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background:
    radial-gradient(90% 90% at 85% 110%, rgba(255, 217, 138, .5) 0%, rgba(255, 217, 138, 0) 55%),
    linear-gradient(180deg, var(--night) 0%, #1d4a6d 45%, var(--blue) 85%, #7fb0cf 100%);
  padding-top: calc(76px + env(safe-area-inset-top, 0px) + clamp(40px, 6vw, 80px));
}
.page-hero::after {
  content: ""; position: absolute; right: clamp(-40px, 4vw, 80px); bottom: 40px; z-index: -1;
  width: clamp(220px, 32vw, 460px); aspect-ratio: 352 / 390;
  background: url("logo-mark.png") center bottom / contain no-repeat; opacity: .14;
}
.page-hero .wrap { display: grid; gap: 22px; padding-bottom: clamp(56px, 7vw, 96px); }
.page-hero h1 {
  color: #fff; max-width: 15em;
  font-family: var(--display); font-weight: 350; font-variation-settings: "opsz" 144;
  font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.03em;
}
.page-hero h1 em { font-style: italic; font-weight: 300; color: var(--sun); }
.page-hero h1 .label { display: flex; color: var(--sun); font-family: var(--body); font-weight: 600; font-size: .74rem; line-height: 1.4; letter-spacing: .24em; margin-bottom: 22px; }
.page-hero .hero-lead { max-width: 38em; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: rgba(255, 255, 255, .65); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* Spis obszarów */
.section-nav {
  position: sticky; top: calc(76px + env(safe-area-inset-top, 0px)); z-index: 20;
  background: rgba(255, 253, 248, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.section-nav ul {
  list-style: none; margin: 0; padding: 14px 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
}
.section-nav ul::-webkit-scrollbar { display: none; }
.section-nav a {
  display: block; white-space: nowrap; padding: 8px 16px; border-radius: 999px; text-decoration: none;
  font-size: .9rem; font-weight: 500; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  transition: background .2s, box-shadow .2s;
}
.section-nav a:hover { background: var(--sun); box-shadow: none; color: var(--night); }

/* Szczegóły obszarów */
.detail { padding-block: clamp(64px, 8vw, 110px); border-bottom: 1px solid var(--line); scroll-margin-top: 150px; }
.detail:nth-child(even) { background: var(--mist); border-bottom-color: transparent; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.detail-icon {
  width: clamp(120px, 16vw, 200px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; color: var(--night);
  background: radial-gradient(circle at 50% 60%, var(--sun) 0%, #fff4c9 60%, rgba(255, 244, 201, 0) 72%);
}
.detail-icon svg { width: 42%; height: 42%; }
.detail h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2a40' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
@media (max-width: 760px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-icon { width: 96px; }
  .ticks { grid-template-columns: minmax(0, 1fr); }
}

/* Zarząd */
.board-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.board-list li {
  display: flex; align-items: center; gap: 20px; padding: 28px; border-radius: var(--radius);
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
}
.initials {
  flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-size: 1.35rem; color: var(--night);
  background: linear-gradient(160deg, var(--sun), var(--glow));
}
.board-list h3 { font-family: var(--display); font-weight: 400; font-size: 1.35rem; }
.board-list p { color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) { .board-list { grid-template-columns: minmax(0, 1fr); } }

.transparency { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .transparency { grid-template-columns: minmax(0, 1fr); } }

/* Pilne */
.urgent-wrap { padding-block: clamp(48px, 6vw, 80px) 0; }
.urgent {
  border-radius: 28px; padding: clamp(28px, 4vw, 48px);
  background: #fff6dc; box-shadow: inset 0 0 0 1px #f3dfa0;
  display: grid; gap: 28px;
}
.urgent-head { display: flex; gap: 20px; align-items: flex-start; }
.urgent-icon { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: var(--sun); }
.urgent-icon svg { width: 26px; height: 26px; }
.urgent h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 6px; }
.urgent p { color: #5c4d1d; max-width: 46em; }
.hotlines { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hotlines a {
  display: grid; gap: 4px; height: 100%; padding: 18px 20px; border-radius: 16px; text-decoration: none;
  background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 #f3dfa0;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.hotlines a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(15, 42, 64, .3); color: var(--ink); }
.hotlines strong { font-family: var(--display); font-weight: 500; font-size: 1.6rem; color: var(--night); font-variant-numeric: tabular-nums; }
.hotlines span { font-size: .88rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 960px) { .hotlines { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .hotlines { grid-template-columns: minmax(0, 1fr); } .urgent-head { flex-direction: column; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font-family: var(--display); font-weight: 400; font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.3; color: var(--night);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2a40' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .3s var(--ease), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--sun); }
.faq details p { padding: 0 48px 26px 0; color: var(--muted); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }

/* Kontakt – tematy i mapa */
.topics { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.topics a {
  padding: 8px 16px; border-radius: 999px; font-size: .88rem; font-weight: 500; text-decoration: none;
  color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); transition: background .2s;
}
.topics a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.map-link {
  display: flex; align-items: center; gap: 16px; padding: 22px 26px; border-radius: 22px; text-decoration: none;
  background: var(--mist); color: var(--ink); transition: background .2s;
}
.map-link:hover { background: var(--sun); color: var(--night); }
.map-link svg { width: 28px; height: 28px; flex: none; color: var(--blue-deep); }
.map-link strong { display: block; }
.map-link span { font-size: .9rem; color: var(--muted); }

/* Pasek wezwania */
.cta-section { padding-top: 0; }
.cta-band {
  position: relative; overflow: hidden; border-radius: 32px;
  padding: clamp(36px, 6vw, 72px);
  background:
    radial-gradient(80% 120% at 90% 120%, rgba(255, 217, 138, .55), transparent 60%),
    linear-gradient(135deg, var(--night), var(--blue-deep));
  color: #fff; display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px; align-items: end;
}
.cta-band h2 { color: #fff; }
.cta-band h2 em { color: var(--sun); }
.cta-band .label { color: var(--sun); }
.cta-band .actions { margin-top: 0; }
@media (max-width: 860px) { .cta-band { grid-template-columns: minmax(0, 1fr); } }

/* Stopka */
.footer-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-cta p {
  font-family: var(--display); font-weight: 300; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.15;
  letter-spacing: -0.02em; color: #fff; max-width: 18em;
}
.footer-cta em { color: var(--sun); }
.footer-top { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); }
.footer-brand address { font-style: normal; line-height: 1.7; }
.footer-col h2 { margin: 0 0 14px; color: var(--sun); font-family: var(--body); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; line-height: 1.4; }
.footer-col a { overflow-wrap: anywhere; }
@media (max-width: 960px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-top { grid-template-columns: minmax(0, 1fr); } }

/* Strona prawna jako podstrona */
.section.legal { padding-block: clamp(56px, 7vw, 96px); }
.section.legal .wrap { max-width: calc(820px + 2 * var(--gutter)); }

/* 404 */
.hero-404 { min-height: 100vh; display: grid; place-items: center; text-align: center; padding-bottom: 64px; }
.hero-404 .wrap { display: grid; justify-items: center; gap: 0; }
.nf-mark { width: 140px; margin-bottom: 24px; }
.hero-404 h1 { margin-bottom: 18px; }
.hero-404 h1 .label { justify-content: center; }
.hero-404 .actions { justify-content: center; }

/* Pojawianie się przy przewijaniu */
.js .reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-hidden { opacity: 0; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) { .js .reveal.is-hidden { opacity: 1; transform: none; } }

/* Poprawki */
.site-footer .btn-sun, .site-footer .btn-sun:hover { color: var(--night); text-decoration: none; }
.footer-top { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.3fr); }
@media (max-width: 960px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-top { grid-template-columns: minmax(0, 1fr); } }
.footer-col a { overflow-wrap: normal; word-break: normal; }
.mail { font-size: clamp(1rem, 4.4vw, 1.85rem); }
.urgent-wrap { padding-block: clamp(48px, 6vw, 80px); }
