/* Fundacja Charity Network – midnight navy and champagne gold from the foundation's logo */
:root {
  --navy: #17213A;
  --navy-2: #252E4B;
  --gold: #A27C3C;        /* large text and decoration */
  --gold-text: #80612C;   /* small text on light backgrounds (AA) */
  --gold-soft: #E3D2B0;
  --gold-line: #C9B58F;
  --ink: #252A35;
  --muted: #5E626B;
  --bg: #FFFFFF;
  --bg-alt: #F5F1E9;
  --cream: #FBF9F5;
  --line: #E6DFD3;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 16px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.65 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -0.035em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.12rem; }
p { margin: 0 0 1em; color: var(--muted); }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.nowrap { white-space: nowrap; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 8px; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }

.eyebrow { font-size: .76rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-text); margin-bottom: .8em; }
.lead { font-size: 1.1rem; max-width: 36em; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; font-size: .95rem; text-decoration: none; border: 1px solid var(--navy); transition: background .2s, color .2s; text-align: center; }
.btn:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--gold-line); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-small { min-height: 44px; padding: 9px 16px; font-size: .88rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.more { display: inline-block; padding: 6px 0; font-weight: 800; font-size: .9rem; color: var(--gold-text); text-decoration: none; }
.more:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-symbol { width: 46px; height: auto; }
.brand-name { font-size: 1.12rem; letter-spacing: .02em; line-height: 1.1; }
.brand-name b { font-weight: 700; }
.brand-name em { font-style: normal; color: var(--gold-text); }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .92rem; }
.main-nav a { text-decoration: none; color: var(--ink); padding: 6px 0; }
.main-nav a:hover { color: var(--gold-text); }
.main-nav a:first-child { font-weight: 700; color: var(--navy); }
.header-end { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }

/* Social profile icon (Instagram) in the header, contact and footer */
.dot-fill { fill: currentColor; stroke: none; }
.social-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--gold-line); color: var(--navy); transition: background .2s, color .2s; }
.social-icon:hover { background: var(--bg-alt); color: var(--gold-text); }
.social-icon svg { width: 22px; height: 22px; }
.social-icon-light { border-color: rgba(255, 255, 255, .3); color: #E9CF97; }
.social-icon-light:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(circle at 78% 40%, #FFFFFF 0 18%, #F7F0E2 38%, var(--cream) 70%); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; right: -120px; top: 50%; width: 640px; height: 640px; transform: translateY(-50%); border-radius: 50%; border: 1px solid var(--gold-soft); box-shadow: 0 0 0 60px rgba(227, 210, 176, .18), 0 0 0 140px rgba(227, 210, 176, .1); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-block: clamp(48px, 8vw, 96px); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); letter-spacing: -0.05em; line-height: 1.04; margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-logo { justify-self: center; background: rgba(255, 255, 255, .85); border-radius: 50%; width: min(400px, 100%); aspect-ratio: 1; display: grid; place-items: center; box-shadow: 0 24px 60px rgba(23, 33, 58, .08); }
.hero-logo img { width: 78%; }
.hero-foot { display: flex; align-items: center; gap: 12px; margin: 28px 0 0; font-size: .9rem; }
.hero-foot::before { content: ""; width: 38px; height: 1px; background: var(--gold); }

/* Trust row */
.trust { border-bottom: 1px solid var(--line); }
.trust-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 18px; }
.trust-row li { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.trust-row svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 92px); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 36px; }

/* Calendar of actions */
.calendar { background: linear-gradient(180deg, var(--cream), #fff 60%); }
.calendar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.col-title { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .1em; padding-bottom: 12px; border-bottom: 2px solid var(--line); margin-bottom: 18px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-next { background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.dot-done { background: var(--navy); }
.event { display: grid; grid-template-columns: 74px 1fr; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: 0 10px 30px rgba(23, 33, 58, .05); }
.event-date { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 74px; border-radius: 12px; background: var(--navy); color: #fff; text-align: center; line-height: 1.1; }
.event-date .day { font-size: 1.15rem; font-weight: 800; }
.event-date .month { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #F1E4C8; }
.event-done .event-date { background: var(--bg-alt); color: var(--navy); }
.event-done .event-date .month { color: var(--gold-text); }
.event-body { min-width: 0; }
.event-meta { font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--gold-text); margin-bottom: .4em; }
.event-body > p:not(.event-meta) { font-size: .94rem; }
.needs { font-size: .88rem; }
.needs strong { color: var(--navy); }
.event-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.photos li { aspect-ratio: 4 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; border-radius: 10px; background: var(--bg-alt); border: 1px dashed var(--gold-line); color: var(--muted); font-size: .72rem; text-align: center; }
.photos svg { width: 26px; height: 26px; color: var(--gold); }
.photos li.has-photo { padding: 0; border: 0; background: none; overflow: hidden; }
.photos li.has-photo a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.photos img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.photos-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* A date that is not confirmed yet */
.event-tentative { border-style: dashed; border-color: var(--gold-line); box-shadow: none; background: var(--cream); }
.event-tentative .event-date { background: #fff; color: var(--navy); border: 1px dashed var(--gold-line); }
.event-tentative .event-date .month { color: var(--gold-text); }

/* The client's project above the calendar */
.project { margin-bottom: 32px; padding: 26px 28px; border-radius: var(--radius); background: var(--bg-alt); border-left: 4px solid var(--gold); }
.project h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: .5em; }
.project > p:not(.eyebrow) { color: var(--ink); max-width: 62rem; }
.project-steps { margin: 1em 0 0; padding-left: 1.3em; display: grid; gap: .5em; }
.project-steps a { font-weight: 700; color: var(--gold-text); white-space: nowrap; }

/* An action's story, folded under its photos */
.story { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.story summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: .92rem; }
.story blockquote { margin: 12px 0 0; padding-left: 14px; border-left: 3px solid var(--gold-soft); font-size: .94rem; color: var(--ink); }
.story footer { font-size: .85rem; color: var(--gold-text); font-weight: 700; }
.propose { border-radius: var(--radius); padding: 22px; background: var(--navy); }
.propose h4 { color: #fff; }
.propose p { color: #DCD6CB; font-size: .94rem; }
.propose .more { color: #E9CF97; }

/* About */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.bridge { margin: 0; padding: 24px; border-radius: 46% 46% var(--radius) var(--radius); background: var(--bg-alt); }
.bridge svg { width: 100%; height: auto; }
.bridge-line { stroke: var(--gold-line); stroke-width: 3; stroke-dasharray: 6 8; }
.node { stroke: none; }
.node-navy { fill: var(--navy); }
.node-gold { fill: var(--gold-text); }
.node-cream { fill: #fff; stroke: var(--gold-line); stroke-width: 2; }
.heart { fill: var(--gold-soft); stroke: var(--gold); stroke-width: 2; }
.bridge text { fill: #fff; stroke: none; font: 700 15px var(--font); text-anchor: middle; }
.bridge text.dark { fill: var(--navy); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.pillars li { border-top: 2px solid var(--gold-soft); padding-top: 12px; font-size: .9rem; color: var(--muted); }
.pillars strong { display: block; color: var(--navy); font-size: 1rem; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.card p:not(.num) { font-size: .95rem; }
.card .more { margin-top: auto; }
.icon { width: 50px; height: 50px; border-radius: 50%; background: var(--bg-alt); display: grid; place-items: center; color: var(--gold-text); margin-bottom: 16px; }
.icon svg { width: 25px; height: 25px; }
.num { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); margin-bottom: .5em; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.steps li { border-top: 2px solid var(--line); padding-top: 18px; }
.steps p:not(.num) { font-size: .95rem; }

/* Support */
.support { background: var(--cream); }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.heartline { display: flex; align-items: center; gap: 10px; color: var(--gold-text); font-weight: 600; }
.heartline svg { width: 24px; height: 24px; flex-shrink: 0; }
.paybox { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: 0 14px 40px rgba(23, 33, 58, .06); min-width: 0; }
.paybox dl { margin: 0 0 20px; }
.paybox dt { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-text); margin-top: 12px; }
.paybox dd { margin: 2px 0 0; color: var(--ink); overflow-wrap: anywhere; }
.paybox .account { font-size: 1.1rem; font-weight: 700; letter-spacing: .04em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.details li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; color: var(--muted); }
.details svg { width: 22px; height: 22px; color: var(--navy); flex-shrink: 0; margin-top: 2px; }
.details strong { display: block; color: var(--navy); }
.details .registry { display: block; font-size: .86rem; border-bottom: 0; }

/* Footer */
.site-footer { background: var(--navy); color: #E6DFD3; padding-block: 32px 20px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 20px; }
.brand-light { color: #fff; }
.brand-light .brand-name em { color: #E9CF97; }
.brand-light .brand-symbol { background: #fff; border-radius: 50%; padding: 6px; width: 50px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; }
.footer-nav a { color: #E6DFD3; text-decoration: none; padding: 4px 0; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; }
.footer-bottom p { margin: 0; color: #D9D0C2; font-size: .82rem; }
.site-footer :focus-visible { outline-color: #E9CF97; }
.credit a { color: #E9CF97; }

/* Tablets */
@media (max-width: 960px) {
  .header-cta { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-logo { width: min(300px, 80%); order: -1; }
  .hero::before { right: -260px; top: 160px; }
  .calendar-grid, .about-grid, .support-grid, .contact-grid { grid-template-columns: 1fr; }
  .cards, .steps { grid-template-columns: 1fr; }
  .bridge { max-width: 440px; }
}

/* Phone menu (foundation standard, 28.11.2026): one sticky row, links folded under "Menu" when they do not fit.
   Only with JavaScript (html.js); without it the links stay visible and wrap. */
@media (max-width: 60rem) {
  html.js { scroll-padding-top: 5rem; }
  html.js .site-header { position: sticky; top: 0; z-index: 60; box-shadow: 0 6px 18px -12px rgb(0 0 0 / .35); }
  html.js .header-inner { flex-wrap: nowrap; }
  html.js .nav-toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 8px 14px; border: 1px solid var(--gold-line); border-radius: 999px; background: #fff; color: var(--navy); font: 700 .9rem var(--font); cursor: pointer; }
  .nav-toggle svg { width: 1.3rem; height: 1.3rem; stroke-width: 2; }
  html.js .nav-toggle[aria-expanded="true"] { background: var(--bg-alt); }
  html.js .site-nav { display: none; position: absolute; z-index: 50; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 5rem); overflow-y: auto; padding: .4rem var(--gutter) 1rem; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px -18px rgb(0 0 0 / .35); }
  html.js .site-header.is-open .site-nav { display: flex; flex-direction: column; gap: 0; }
  html.js .site-nav a { display: block; padding: .85rem .2rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
  html.js .site-nav a:last-child { border-bottom: 0; }
}

/* Phones */
@media (max-width: 600px) {
  html:not(.js) { scroll-padding-top: 12px; }
  html:not(.js) .site-header { position: static; }
  html:not(.js) .header-inner { justify-content: center; }
  .main-nav { justify-content: center; gap: 2px 14px; font-size: .88rem; }
  .header-end { gap: 8px; }
  .brand-name { font-size: 1rem; }
  .brand-symbol { width: 40px; }
  .hero-logo { width: min(240px, 72%); }
  .trust-row { flex-direction: column; }
  .event { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .event-date { flex-direction: row; gap: 8px; height: auto; padding: 8px 12px; justify-self: start; }
  .event-actions .btn { width: 100%; }
  .pillars { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .paybox { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
