/* ==========================================================================
   Biuro Rachunkowe MARBA — strona frontowa (biuromarba.pl)
   Paleta i układ inspirowane hejne.pl: kremy, ciemny brąz, złoty akcent.
   Zasada: brak ikon (SVG / emoji) — wyłącznie typografia i proste znaki.
   ========================================================================== */

/* Paleta odwzorowana na hejne.pl — warianty tekstowe dobrane pod kontrast WCAG 2.2 AA */
:root {
    --cream:        #FBF6EE;   /* tło główne */
    --cream-2:      #F4EDE1;   /* sekcje naprzemienne */
    --cream-3:      #EDE3D3;   /* pasma / stopka */
    --ink:          #2C2421;   /* ciemny brąz */
    --ink-soft:     #4A3D38;
    --ink-mute:     #6F5E57;   /* kontrast 5.72:1 na kremowym */
    --gold:         #DAAF72;   /* akcent tła (przyciski) */
    --gold-light:   #E6C79A;   /* akcent tekstowy na ciemnym tle */
    --gold-deep:    #BA946B;   /* akcent dekoracyjny (linie, obramowania) */
    --gold-text:    #7F5C36;   /* akcent tekstowy na jasnym tle (5.60:1) */
    --taupe:        #6F5E57;   /* dawny jasny taupe nie spełniał kontrastu */
    --white:        #FFFFFF;
    --line:         rgba(44, 36, 33, 0.18);
    /* Obramowania elementów sterujących muszą mieć min. 3:1 (WCAG 1.4.11) */
    --line-strong:  rgba(44, 36, 33, 0.55);
    --shadow:       0 24px 60px -30px rgba(44, 36, 33, 0.35);
    /* Typografia hejne: nagłówki Cormorant Garamond, treść Inter */
    --serif:        "Cormorant Garamond", "Times New Roman", Georgia, serif;
    --sans:         "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --radius:       2px;
    --radius-lg:    6px;
    --wrap:         1220px;
    --header-h:     130px;     /* wysokość paska + nagłówka (dla scroll-padding) */
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

/* Wyraźny wskaźnik fokusu (WCAG 2.2 — 2.4.7, 2.4.11) */
:focus-visible {
    outline: 3px solid var(--gold-text);
    outline-offset: 3px;
    border-radius: 2px;
}
.hero :focus-visible,
.page-hero :focus-visible,
.section--ink :focus-visible,
.project-banner :focus-visible {
    outline-color: var(--gold-light);
}

/* Skip link (WCAG 2.2 — 2.4.1) */
.skip-link {
    position: fixed;
    left: 12px;
    top: -100px;
    z-index: 200;
    padding: 12px 22px;
    background: var(--ink);
    color: var(--cream);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: var(--cream); }

main { display: block; }

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink-mute);
    font-family: var(--sans);
    font-size: 16.5px;
    line-height: 1.78;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
    font-family: var(--serif);
    color: var(--ink);
    font-weight: 500;
    line-height: 1.06;
    margin: 0 0 0.6em;
    letter-spacing: 0.002em;
}

h1 { font-size: clamp(3rem, 6.8vw, 5.4rem); font-weight: 500; }
h2 { font-size: clamp(2.2rem, 4.2vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }

p { margin: 0 0 1.1em; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 28px;
}

.section { padding: 118px 0; }
.section--tight { padding: 82px 0; }
.section--cream2 { background: var(--cream-2); }
.section--ink { background: var(--ink); color: var(--cream); }
.section--ink h2, .section--ink h3 { color: var(--white); }

.eyebrow {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: var(--gold-text);
    margin-bottom: 20px;
}

.eyebrow--ink { color: var(--gold-text); }

.lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--ink-mute);
    max-width: 62ch;
}

.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 38px;
    font-family: var(--sans);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
    background: var(--ink);
    color: var(--cream);
}
.btn:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }

.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--ink); color: var(--cream); }

.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.btn--ghost-light {
    background: transparent;
    color: var(--cream);
    border-color: rgba(251, 246, 238, 0.42);
}
.btn--ghost-light:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ---------- Top bar ---------- */
.topbar {
    background: var(--cream-3);
    color: var(--ink-mute);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--line);
}
.topbar .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 40px;
    flex-wrap: wrap;
}
.topbar__group { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.topbar a {
    display: inline-block;
    padding: 8px 2px;
    color: var(--ink-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s ease;
}
.topbar a:hover { color: var(--gold-text); }
.topbar__label { color: var(--gold-text); letter-spacing: 0.24em; text-transform: uppercase; font-size: 0.63rem; }

/* ---------- Header ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(251, 246, 238, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s ease, background-color .25s ease;
}
.header.is-stuck { box-shadow: 0 14px 34px -26px rgba(44, 36, 33, 0.5); background: rgba(251, 246, 238, 0.98); }
.header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 90px;
    gap: 24px;
}
.brand { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.brand img { height: 56px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
    font-family: var(--serif);
    font-size: 1.42rem;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.brand__sub {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--taupe);
    margin-top: 3px;
    white-space: nowrap;
}

/* Pozycje menu zawsze w jednej linii (bez zawijania nagłówków) */
.nav { display: flex; align-items: center; gap: 32px; flex-wrap: nowrap; }
.nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    font-weight: 500;
    white-space: nowrap;
    color: var(--ink-soft);
    padding: 8px 0;
    transition: color .2s ease;
}
.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--gold-text);
    transition: width .28s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.header__login {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 0;
    font-size: 0.76rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--ink-soft);
    transition: color .2s ease;
}
.header__login:hover { color: var(--gold-text); }

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 9px 16px;
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
    cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    /* Bez sztywnego max-height: przy powiększeniu tekstu do 200% treść nie może
       zostać obcięta przez overflow: hidden (WCAG 1.4.4, 1.4.10). */
    min-height: min(88vh, 940px);
    display: flex;
    align-items: center;
    background: var(--ink);
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.04);
    animation: heroZoom 18s ease-in-out infinite alternate;
}
.hero__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(96deg, rgba(28, 22, 20, 0.95) 0%, rgba(28, 22, 20, 0.87) 52%, rgba(28, 22, 20, 0.62) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 110px; padding-bottom: 110px; }
.hero__inner { max-width: 900px; }
.hero h1 { color: var(--white); margin-bottom: 0.42em; }
.hero p {
    color: rgba(251, 246, 238, 0.86);
    font-size: 1.28rem;
    line-height: 1.75;
    max-width: 56ch;
    margin-bottom: 2.1em;
}
.hero .eyebrow { color: var(--gold-light); }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

@keyframes heroZoom {
    from { transform: scale(1.04); }
    to   { transform: scale(1.12); }
}

/* ---------- Section head ---------- */
.section-head { max-width: 820px; margin-bottom: 66px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }
.rule {
    width: 74px;
    height: 1px;
    background: var(--gold-deep);
    margin: 30px 0;
}
.section-head--center .rule { margin-left: auto; margin-right: auto; }

/* ---------- Offer grid ---------- */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.offer-card {
    background: var(--white);
    padding: 52px 46px;
    display: flex;
    flex-direction: column;
    transition: background-color .3s ease, transform .3s ease;
}
.offer-card:hover { background: var(--cream); }
.offer-card__num {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--gold-text);
    margin-bottom: 22px;
    letter-spacing: 0.08em;
}
.offer-card h3 { margin-bottom: 14px; }
.offer-card p { color: var(--ink-mute); font-size: 1rem; margin-bottom: 24px; }
.offer-card__more {
    margin-top: auto;
    font-size: 0.76rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
    border-bottom: 1px solid var(--gold-deep);
    align-self: flex-start;
    padding-bottom: 4px;
    transition: color .2s ease, border-color .2s ease;
}
.offer-card__more:hover { color: var(--gold-text); }

/* ---------- About ---------- */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 76px;
    align-items: center;
}
.about__media { position: relative; }
.about__media img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.about__media::before {
    content: "";
    position: absolute;
    inset: -22px -22px auto auto;
    width: 60%;
    height: 60%;
    border: 1px solid var(--gold);
    border-radius: var(--radius-lg);
    z-index: -1;
}
.about__body p:last-child { margin-bottom: 0; }

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 44px;
    padding-top: 38px;
    border-top: 1px solid var(--line);
}
.stat__num {
    font-family: var(--serif);
    font-size: 3.1rem;
    color: var(--ink);
    line-height: 1;
    font-weight: 500;
}
.stat__num small { font-size: 1.2rem; color: var(--gold-text); margin-left: 4px; }
.stat__label {
    margin-top: 12px;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--taupe);
}

/* ---------- Features ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 64px;
}
.feature {
    border-left: 1px solid var(--gold-deep);
    padding: 4px 0 4px 26px;
}
.feature h3,
.feature h4 {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin: 0 0 7px;
    color: var(--ink);
}
.feature p { margin: 0; font-size: 0.98rem; color: var(--ink-mute); }

/* ---------- Certificates ---------- */
.certs {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
    align-items: start;
}
.certs a {
    display: block;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .3s ease;
}
.certs a:hover { transform: translateY(-4px); }
.certs img { width: 100%; }

/* ---------- Quote ---------- */
.quote {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.quote p {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    line-height: 1.35;
    color: var(--white);
    margin-bottom: 26px;
}
.quote__author {
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-light);
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}
.contact-list { display: grid; gap: 30px; }
.contact-item { border-top: 1px solid rgba(251, 246, 238, 0.16); padding-top: 20px; }
.contact-item__label {
    font-size: 0.7rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}
.contact-item__value { font-size: 1.12rem; color: var(--cream); line-height: 1.5; }
.contact-item__value a { transition: color .2s ease; }
.contact-item__value a:hover { color: var(--gold-light); }

/* ---------- Footer ---------- */
.footer {
    background: var(--cream-3);
    padding: 68px 0 30px;
    font-size: 0.86rem;
    color: var(--ink-mute);
}
.footer .wrap { display: block; }
.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 38px;
    border-bottom: 1px solid var(--line);
}
.footer__brand {
    font-family: var(--serif);
    font-size: 1.35rem;
    color: var(--ink);
    margin-bottom: 16px;
    line-height: 1.2;
}
.footer__heading {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-text);
    margin-bottom: 16px;
}
.footer__muted { color: var(--ink-mute); line-height: 1.95; margin: 0; }
.footer__muted a { transition: color .2s ease; }
.footer__muted a:hover { color: var(--gold-text); }
.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px 28px;
    flex-wrap: wrap;
    padding-top: 24px;
    font-size: 0.78rem;
    color: var(--taupe);
}
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__links a {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 6px 0;
    transition: color .2s ease;
}
.footer__links a:hover { color: var(--gold-text); }

/* Oznaczenie dostępności WCAG 2.2 (znak tekstowy, bez ikon SVG/emoji) */
.wcag-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: var(--white);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    color: var(--ink-soft);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    line-height: 1.35;
    white-space: nowrap;
}
.wcag-badge__mark {
    font-weight: 600;
    font-size: 0.86rem;
    color: var(--gold-text);
}
.wcag-badge__level { color: var(--ink); font-weight: 600; }
a.wcag-badge { text-decoration: none; transition: border-color .2s ease, background-color .2s ease; }
a.wcag-badge:hover,
a.wcag-badge:focus-visible { border-color: var(--gold-text); background: var(--cream-2); color: var(--ink); }

/* ---------- Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero__bg { animation: none; transform: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */

/* Węższe ekrany: zwalniamy miejsce w nagłówku, żeby menu zostało w jednej linii */
@media (max-width: 1180px) {
    .header .wrap { gap: 16px; }
    .nav { gap: 24px; }
    .brand__name { font-size: 1.26rem; }
    .brand img { height: 48px; }
    .header__login { display: none; }
    .btn { padding: 14px 26px; }
    .meta-grid--four { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1000px) {
    .nav { display: none; }
    .nav-toggle { display: inline-block; }
    .header__actions .btn { display: none; }

    .nav.is-open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 18px 28px 26px;
        background: var(--cream);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }
    .nav.is-open a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }

    .about { grid-template-columns: 1fr; gap: 46px; }
    .contact-grid { grid-template-columns: 1fr; gap: 46px; }
    .certs { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .section { padding: 68px 0; }
    .wrap { padding: 0 20px; }
    .offer-grid { grid-template-columns: 1fr; }
    .offer-card { padding: 40px 30px; }
    .features { grid-template-columns: 1fr; gap: 22px; }
    .stats { grid-template-columns: 1fr 1fr; gap: 24px; }
    .brand img { height: 42px; }
    .brand__name { font-size: 1.1rem; }
    .hero { min-height: 560px; }
    .topbar__group--contact { gap: 16px; }
}

/* ==========================================================================
   Wspólne elementy podstron (hejne.pl-like)
   ========================================================================== */

/* Wyróżnienia w nagłówkach — kursywa + złoto (hejne) */
mark {
    background: none;
    color: var(--gold-text);
    font-style: italic;
    padding: 0;
}
.section--ink mark, .hero mark, .page-hero mark { color: var(--gold-light); }
.section--ink .eyebrow { color: var(--gold-light); }

/* ---------- Nawigacja: rozwijane menu Oferta ---------- */
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item--has-menu > a { padding-right: 14px; }
.nav__item--has-menu > a::before {
    content: "\25BE";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.72rem;
    color: var(--gold-text);
    line-height: 1;
}
.nav__dropdown {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 268px;
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    z-index: 40;
}
.nav__item--has-menu:hover .nav__dropdown,
.nav__item--has-menu:focus-within .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav__dropdown a {
    padding: 11px 26px;
    font-size: 0.86rem;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--ink-soft);
}
.nav__dropdown a::after { display: none; }
.nav__dropdown a:hover { background: var(--cream); color: var(--ink); }
/* Mostek nad przerwą 16 px — menu nie zamyka się przy przejściu kursora
   z pozycji nawigacji do rozwiniętej listy (WCAG 1.4.13 „Hoverable"). */
.nav__dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -16px;
    height: 16px;
    visibility: visible;
}
/* Zamknięcie klawiszem Esc bez przenoszenia fokusu (WCAG 1.4.13 „Dismissible") */
.nav__item--has-menu.is-dismissed .nav__dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
}
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after { width: 100%; }

/* ---------- Hero podstron ---------- */
.page-hero {
    position: relative;
    padding: 128px 0 108px;
    background: var(--ink);
    overflow: hidden;
}
.page-hero--sm { padding: 88px 0 78px; }
.page-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.page-hero__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(28, 22, 20, 0.95) 0%, rgba(28, 22, 20, 0.88) 46%, rgba(28, 22, 20, 0.72) 100%);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero__inner { max-width: 880px; }
.page-hero h1 { color: var(--white); margin-bottom: 0.32em; }
.page-hero p { color: rgba(251, 246, 238, 0.84); font-size: 1.2rem; line-height: 1.75; max-width: 62ch; margin-bottom: 0; }
.page-hero .eyebrow { color: var(--gold-light); }

.crumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    /* min. 4.5:1 na ciemnym tle hero (WCAG 1.4.3) */
    color: rgba(251, 246, 238, 0.68);
}
.crumbs a { color: rgba(251, 246, 238, 0.9); transition: color .2s ease; }
.crumbs a:hover { color: var(--gold-light); }

/* ---------- Karty usług ---------- */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 34px;
}
.svc-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-text); }
.svc-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.svc-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .9s ease;
}
.svc-card:hover .svc-card__media img { transform: scale(1.05); }
.svc-card__body { display: flex; flex-direction: column; flex: 1; padding: 38px 38px 40px; }
.svc-card__num {
    margin-bottom: 14px;
    font-family: var(--serif);
    font-size: 1rem;
    letter-spacing: 0.3em;
    color: var(--gold-text);
}
.svc-card__body h3 { margin-bottom: 12px; }
.svc-card__body p { margin-bottom: 24px; color: var(--ink-mute); font-size: 1rem; }
.svc-card__more {
    margin-top: auto;
    align-self: flex-start;
    padding-bottom: 4px;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink);
    border-bottom: 1px solid var(--gold-deep);
    transition: color .2s ease;
}
.svc-card:hover .svc-card__more { color: var(--gold-text); }

/* ---------- Pas liczb ---------- */
.stats-band { background: var(--cream-3); }
.stats--band {
    grid-template-columns: repeat(4, 1fr);
    gap: 34px;
    margin: 0;
    padding-top: 0;
    border-top: none;
    text-align: center;
}
.stats--band .stat__label { letter-spacing: 0.12em; }
.stat__num--text { font-size: 2.1rem; letter-spacing: 0.06em; }

.quote__role {
    margin-top: 12px;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    line-height: 1.7;
    color: rgba(251, 246, 238, 0.72);
}

/* ---------- Prose / dokumenty prawne ---------- */
.prose { max-width: 840px; margin: 0 auto; }
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 500; }

.legal { max-width: 880px; margin: 0 auto; }
.legal__lead { font-size: 1.14rem; color: var(--ink); margin-bottom: 1.6em; }
.legal h2 {
    margin: 2.2em 0 0.7em;
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
}
.legal h3 {
    margin: 1.9em 0 0.6em;
    font-family: var(--sans);
    font-size: 1.02rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--ink);
}
.legal p { color: var(--ink-mute); }
.legal strong { color: var(--ink); font-weight: 500; }
.legal ol, .legal ul { margin: 0 0 1.3em; padding-left: 22px; }
.legal li { margin-bottom: 0.55em; color: var(--ink-mute); }
.legal li::marker { color: var(--gold-text); }
.legal a { color: var(--ink); border-bottom: 1px solid var(--gold-deep); }
.legal a:hover { color: var(--gold-text); }
.legal__updated {
    margin-top: 3em;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--taupe);
}

/* ---------- Widok pojedynczej oferty ---------- */
.offer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 64px;
    align-items: start;
}
.lead-block p { font-size: 1.14rem; color: var(--ink-soft); }
.offer-section { margin-top: 48px; }
.offer-section h2 { font-size: clamp(1.6rem, 2.8vw, 2.35rem); }
.offer-section .rule { margin: 18px 0 20px; }
.offer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 58px;
    padding: 38px 40px;
    background: var(--cream-2);
    border-radius: var(--radius-lg);
}
.offer-cta h3 { margin: 0 0 6px; }
.offer-cta p { margin: 0; color: var(--ink-mute); }

.offer-aside { position: sticky; top: 112px; display: grid; gap: 26px; }
.aside-card {
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
.aside-card__title {
    margin-bottom: 18px;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-text);
}
.aside-nav { display: flex; flex-direction: column; }
.aside-nav a {
    padding: 12px 0;
    font-size: 0.95rem;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line);
    transition: color .2s ease, padding-left .2s ease;
}
.aside-nav a:last-child { border-bottom: none; }
.aside-nav a:hover { color: var(--gold-text); padding-left: 6px; }
.aside-nav a.is-current { color: var(--ink); font-weight: 500; border-bottom-color: var(--gold-text); }
.aside-card--dark { background: var(--ink); border-color: var(--ink); }
.aside-card--dark .aside-card__title { color: var(--gold-light); }
.aside-card__muted { margin: 0 0 12px; font-size: 0.95rem; line-height: 1.75; color: rgba(251, 246, 238, 0.78); }
.aside-card__muted:last-child { margin-bottom: 0; }
.aside-card__muted a { transition: color .2s ease; }
.aside-card__muted a:hover { color: var(--gold-light); }

/* ---------- Metryki projektu ---------- */
.meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.meta-item { padding: 28px 30px; background: var(--white); }
.meta-item__label {
    margin-bottom: 10px;
    font-size: 0.66rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-text);
}
.meta-item__value { font-size: 1rem; line-height: 1.55; color: var(--ink); }
/* Wariant z czterema metrykami (np. deklaracja dostępności) */
.meta-grid--four { grid-template-columns: repeat(4, 1fr); }

/* ---------- Lista działań ---------- */
.action-list { border-top: 1px solid var(--line); }
.action-item {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 26px;
    padding: 34px 0;
    border-bottom: 1px solid var(--line);
}
.action-item__num { font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--gold-text); }
.action-item__body h4 {
    margin: 0 0 8px;
    font-family: var(--sans);
    font-size: 1.06rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--ink);
}
.action-item__body p { margin: 0; color: var(--ink-mute); }

/* ---------- Finansowanie projektu ---------- */
.fund-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 860px;
    margin: 0 auto;
}
.fund-card {
    padding: 42px 44px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
.fund-card__label {
    margin-bottom: 16px;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-text);
}
.fund-card__value { font-family: var(--serif); font-size: clamp(2.1rem, 3.6vw, 3rem); line-height: 1; color: var(--ink); }
.fund-card__value span { margin-left: 6px; font-size: 1.2rem; color: var(--taupe); }
.fund-card--gold { background: var(--ink); border-color: var(--ink); }
.fund-card--gold .fund-card__value { color: var(--white); }
.fund-card--gold .fund-card__value span { color: var(--gold-light); }

/* ---------- Karty kontaktowe ---------- */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.contact-card {
    padding: 36px 38px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
.contact-card__label {
    margin-bottom: 16px;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-text);
}
.contact-card__value { line-height: 1.9; color: var(--ink-soft); }
.contact-card__value--lg { font-size: 1.2rem; }
.contact-card__value a { transition: color .2s ease; }
.contact-card__value a:hover { color: var(--gold-text); }

/* ---------- Responsive podstron ---------- */
@media (max-width: 1000px) {
    .nav__item--has-menu > a::before { display: none; }
    .nav.is-open .nav__item { display: block; width: 100%; }
    .nav.is-open .nav__dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        min-width: 0;
        padding: 0 0 6px 14px;
        background: transparent;
        border: none;
        box-shadow: none;
    }
    .nav.is-open .nav__dropdown a { border-bottom: none; }

    .offer-layout { grid-template-columns: 1fr; gap: 46px; }
    .offer-aside { position: static; }
    .meta-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .page-hero { padding: 78px 0 68px; }
    .page-hero--sm { padding: 62px 0 56px; }
    .svc-grid { grid-template-columns: 1fr; }
    .stats--band { grid-template-columns: 1fr 1fr; gap: 26px; }
    .meta-grid { grid-template-columns: 1fr; }
    .action-item { grid-template-columns: 60px 1fr; gap: 18px; }
    .action-item__num { font-size: 1.6rem; }
    .fund-grid { grid-template-columns: 1fr; }
    .contact-cards { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; gap: 30px; }
    .offer-cta { padding: 30px 26px; }
}

/* ==========================================================================
   Strona projektu (FELD.09.01) — baner i układ treści
   ========================================================================== */

/* Pełnowymiarowy baner graficzny (bez przycinania obrazu) */
.project-banner {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}
.project-banner img {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    display: block;
}

/* Wprowadzenie projektu */
.project-intro { max-width: 900px; margin: 0 auto; text-align: center; }
.project-intro .crumbs { justify-content: center; color: var(--taupe); }
.project-intro .crumbs a { color: var(--ink-soft); }
.project-intro .crumbs a:hover { color: var(--gold-text); }
.project-intro h1 { margin-bottom: 0.4em; }
.project-intro p { font-size: 1.16rem; line-height: 1.8; color: var(--ink-mute); }

/* Lista akapitów dokumentu projektowego */
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li {
    position: relative;
    padding: 20px 0 20px 34px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-mute);
}
.doc-list li:last-child { border-bottom: none; }
.doc-list li::before {
    content: "\2014";
    position: absolute;
    left: 0;
    top: 20px;
    color: var(--gold-text);
}
.doc-list strong { color: var(--ink); font-weight: 600; }

/* Dłuższy tekst na ciemnym tle */
.prose-dark { max-width: 900px; }
.prose-dark p { color: rgba(251, 246, 238, 0.82); font-size: 1.1rem; line-height: 1.85; }
.prose-dark p:last-child { margin-bottom: 0; }
