/* OSBS — styl z makiety: papier, atrament, złoto; Georgia + Source Sans 3 */

:root {
    --ink: #132024;
    --ink-2: #253337;
    --paper: #f5f3ee;
    --paper-2: #ece9e1;
    --white: #fbfaf7;
    --gold: #a98751;
    --gold-dark: #82663c;
    --line: rgba(19, 32, 36, 0.16);
    --line-light: rgba(255, 255, 255, 0.18);
    --muted: #667174;
    --danger: #7a2a2a;
    --ok: #21553a;
    --max: 1240px;
    --header-h: 88px;
    --serif: Georgia, "Times New Roman", serif;
    --sans: "Source Sans 3", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --navy: var(--ink);
    --cream: var(--paper);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

::selection {
    background: var(--gold);
    color: var(--white);
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
    width: min(calc(100% - 48px), var(--max));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--ink);
    color: var(--white);
    padding: 0.6rem 1rem;
    z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.eyebrow,
.kicker,
.statute-label {
    margin: 0 0 18px;
    color: var(--gold-dark);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.17em;
}

h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--ink);
}
h1 { font-size: clamp(3.4rem, 7.4vw, 7.3rem); max-width: 12ch; margin-bottom: 30px; }
h2 { font-size: clamp(2.45rem, 4.4vw, 4.75rem); max-width: 12ch; margin-bottom: 24px; }
h3 { font-size: 1.55rem; margin-bottom: 12px; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.34rem); line-height: 1.65; color: var(--ink-2); max-width: 62ch; }
.lead a { text-decoration: underline; text-underline-offset: 3px; }
.muted { color: var(--muted); }
p { margin: 0 0 1rem; }

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    color: var(--ink);
}
.mark {
    width: 72px;
    height: 52px;
    position: relative;
    display: grid;
    place-items: center;
    font-family: var(--serif);
    font-size: 1.45rem;
    letter-spacing: 0.04em;
    color: var(--ink);
    flex: 0 0 auto;
}
.mark::before {
    content: "";
    position: absolute;
    inset: 0 13px 0 0;
    border: 1.5px solid var(--gold);
    border-right: 0;
}
.mark::after {
    content: "";
    position: absolute;
    right: 0;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: var(--gold);
}
.brand-copy { line-height: 1.1; }
.brand-name,
.brand__name {
    display: block;
    font-family: var(--serif);
    font-size: 0.98rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: var(--ink);
}
.brand-sub {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(140%) blur(14px);
    background: rgba(245, 243, 238, 0.88);
    border-bottom: 1px solid var(--line);
}
.nav {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 0.85rem;
    font-weight: 600;
}
.nav-links a:not(.btn) {
    position: relative;
    padding: 10px 0;
    border: 0;
}
.nav-links a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 4px;
    height: 1px;
    background: var(--gold);
    transition: right 0.22s ease;
}
.nav-links a:not(.btn):hover::after,
.nav-links a.is-active:not(.btn)::after { right: 0; }

.btn,
.btn--gold,
.btn--navy,
.btn--line,
.btn--ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink) !important;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: 0.2s ease;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
}
.btn:hover,
.btn--line:hover { background: var(--ink); color: var(--white) !important; }
.btn-dark,
.btn--gold,
.btn--navy {
    background: var(--ink);
    color: var(--white) !important;
    border-color: var(--ink);
}
.btn-dark:hover,
.btn--gold:hover,
.btn--navy:hover { background: #26363a; }
.btn-light,
.btn--ghost {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white) !important;
    background: transparent;
}
.btn-light:hover,
.btn--ghost:hover { background: var(--white); color: var(--ink) !important; }

.nav-toggle,
.menu-toggle {
    display: none;
    border: 0;
    background: none;
    font-size: 1.5rem;
    color: var(--ink);
    cursor: pointer;
    padding: 0;
}

.hero {
    min-height: calc(100vh - var(--header-h));
    display: grid;
    align-items: center;
    padding: 92px 0 70px;
    position: relative;
    overflow: hidden;
    color: var(--ink);
    background: var(--paper);
}
.hero::after {
    content: "";
    position: absolute;
    width: 52vw;
    height: 52vw;
    border: 1px solid rgba(169, 135, 81, 0.25);
    border-radius: 50%;
    right: -29vw;
    top: 4vw;
    pointer-events: none;
}
.hero h1 { color: var(--ink); font-weight: 400; }
.hero .lead { color: var(--ink-2); }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.55fr);
    gap: 9vw;
    align-items: end;
    position: relative;
    z-index: 1;
}
.hero-copy .lead { max-width: 52ch; margin-bottom: 38px; }
.hero-actions,
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-aside {
    border-left: 1px solid var(--gold);
    padding: 4px 0 4px 34px;
    margin-bottom: 4px;
}
.hero-aside p { margin: 0 0 24px; font-size: 0.92rem; color: var(--muted); }
.hero-aside p:last-child { margin-bottom: 0; }
.hero-aside strong {
    display: block;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 3px;
}

section,
.section { padding: 126px 0; border-top: 1px solid var(--line); }
.section--paper { background: transparent; }
.section-head {
    display: grid;
    grid-template-columns: 0.42fr 1fr;
    gap: 7vw;
    align-items: start;
    margin-bottom: 72px;
}
.section-head h2 { max-width: 12ch; margin-bottom: 0; }
.section-intro { padding-top: 7px; max-width: 650px; }
.section-head p { margin: 0; color: var(--muted); }

.principles,
.goals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    gap: 0;
}
.principle,
.goal {
    min-height: 252px;
    padding: 32px 34px 36px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: transparent;
}
.principle .num,
.goal__num {
    display: block;
    margin-bottom: 50px;
    color: var(--gold-dark);
    font-family: var(--serif);
    font-size: 0.95rem;
}
.principle p,
.goal p { margin: 0; color: var(--muted); font-size: 0.94rem; max-width: 34ch; }
.goal h3,
.principle h3 { margin: 0 0 12px; }

.dark,
.section--navy {
    background: var(--ink);
    color: var(--white);
    border-top: 0;
}
.dark .eyebrow,
.section--navy .eyebrow,
.section--navy .kicker { color: #c6aa7b; }
.dark h2,
.dark h3,
.section--navy h2,
.section--navy h3 { color: var(--white); }
.dark .lead,
.dark .muted,
.section--navy .lead,
.section--navy p { color: rgba(255, 255, 255, 0.67); }
.dark .section-head { margin-bottom: 64px; }

.value-list,
.why { border-top: 1px solid var(--line-light); display: block; }
.value-row,
.why article {
    display: grid;
    grid-template-columns: 90px 0.8fr 1.2fr;
    gap: 28px;
    align-items: baseline;
    padding: 27px 0;
    border-bottom: 1px solid var(--line-light);
    border-top: 0;
}
.value-row .num,
.why article h3 { font-family: var(--serif); }
.value-row .num { color: #c6aa7b; }
.value-row h3,
.why article h3 { font-size: 1.45rem; margin: 0; color: var(--white); }
.value-row p,
.why article p { margin: 0; color: rgba(255, 255, 255, 0.61); font-size: 0.93rem; max-width: 55ch; }

.structure-grid { display: grid; grid-template-columns: 1fr 0.55fr; gap: 7vw; align-items: start; }
.org-block { border-top: 2px solid var(--ink); }
.org-title {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: baseline;
    padding: 24px 0 30px;
    border-bottom: 1px solid var(--line);
}
.org-title h3 { font-size: 2rem; margin: 0; }
.org-title span { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.11em; }
.people { list-style: none; padding: 0; margin: 0; display: block; }
.person {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    text-align: left;
}
.person strong { font-family: var(--serif); font-size: 1.07rem; font-weight: 400; }
.person span { color: var(--muted); font-size: 0.8rem; text-align: right; }

.membership-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 9vw; align-items: start; }
.membership-grid h2 { max-width: 10ch; }
.steps { counter-reset: step; border-top: 1px solid var(--line); display: block; }
.step {
    counter-increment: step;
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 25px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    border-left: 0;
    border-right: 0;
    border-top: 0;
}
.step::before {
    content: "0" counter(step);
    font-family: var(--serif);
    color: var(--gold-dark);
}
.step h3 { margin: 0 0 6px; font-size: 1.32rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.membership-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.faq-grid { display: grid; grid-template-columns: 0.5fr 1fr; gap: 9vw; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
    list-style: none;
    cursor: pointer;
    padding: 24px 42px 24px 0;
    font-family: var(--serif);
    font-size: 1.25rem;
    position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 22px;
    font-family: var(--sans);
    font-weight: 300;
    font-size: 1.45rem;
    color: var(--gold-dark);
}
details[open] summary::after { content: "−"; }
details p { margin: -4px 50px 26px 0; color: var(--muted); font-size: 0.94rem; }

.contact { padding-bottom: 96px; }
.contact-card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 8vw;
    padding: 66px;
    background: var(--paper-2);
}
.contact-card h2 { max-width: 12ch; }
.contact-card--form {
    grid-template-columns: 1.15fr 0.85fr;
}
.contact-card--form .form {
    grid-column: 1 / -1;
    background: var(--white);
    border: 1px solid var(--line);
    margin-top: 8px;
    scroll-margin-top: calc(var(--header-h) + 16px);
}
.contact-card--form .form h2 { max-width: none; }
.contact-card--form .form .muted { margin-bottom: 1.1rem; }
.contact-card--form .form .muted a { text-decoration: underline; text-underline-offset: 3px; }
.contact-meta {
    display: grid;
    gap: 26px;
    border-left: 1px solid var(--line);
    padding-left: 44px;
    align-content: center;
}
.meta-item span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-weight: 700;
}
.meta-item strong,
.meta-item a { font-family: var(--serif); font-size: 1.18rem; font-weight: 400; }

.page-hero {
    padding: 88px 0 48px;
    background: var(--paper);
    color: var(--ink);
    border-top: 0;
}
.page-hero h1 {
    color: var(--ink);
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    margin: 0 0 18px;
    max-width: 14ch;
}
.page-hero p { color: var(--ink-2); max-width: 46rem; margin: 0; }

.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(2rem, 3vw, 2.8rem); max-width: none; margin: 2rem 0 0.8rem; }
.prose h3 { font-size: 1.4rem; margin: 1.4rem 0 0.5rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }

.form-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.3fr;
    gap: 2.4rem;
    align-items: start;
}
.instruction {
    position: sticky;
    top: calc(var(--header-h) + 1.2rem);
    background: var(--white);
    border: 1px solid var(--line);
    padding: 1.6rem 1.5rem;
}
.instruction h2 { margin: 0 0 0.8rem; font-size: 2rem; max-width: none; }
.instruction ol { margin: 0 0 1.2rem; padding-left: 1.15rem; }
.instruction li { margin: 0.45rem 0; }
.instruction a { text-decoration: underline; text-underline-offset: 3px; }
.instruction-note {
    margin: 0 0 1.1rem;
    padding: 0.75rem 0.85rem;
    background: var(--paper-2);
    border-left: 2px solid var(--gold);
    font-size: 0.95rem;
}
.pdf-box {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--paper-2);
    border: 1px solid var(--line);
    margin: 1rem 0;
}
.pdf-box img { display: none; }
.check a { text-decoration: underline; text-underline-offset: 3px; }

.form {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 1.7rem;
}
.form h2 { margin: 0 0 0.4rem; max-width: none; font-size: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1rem; }
.field { display: flex; flex-direction: column; gap: 0.28rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field .hint { font-size: 0.82rem; color: var(--muted); font-weight: 400; }
.field input,
.field select,
.field textarea {
    font: inherit;
    padding: 0.62rem 0.7rem;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 2px solid var(--gold);
    border-color: var(--gold);
}
.checks { display: grid; gap: 0.55rem; }
.check {
    display: grid;
    grid-template-columns: 1.1rem 1fr;
    gap: 0.6rem;
    align-items: start;
    font-size: 0.95rem;
}
.honeypot { position: absolute; left: -9999px; }

.alert {
    padding: 0.9rem 1rem;
    margin: 0 0 1rem;
    border-left: 2px solid var(--gold);
    background: var(--paper-2);
}
.alert--error { border-color: var(--danger); }
.alert--ok { border-color: var(--ok); }

.gold-rule { display: none; }

.site-footer,
footer.site-footer {
    background: #0e181b;
    color: rgba(255, 255, 255, 0.78);
    padding: 54px 0 38px;
    margin-top: 0;
}
.footer-top,
.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-start;
    padding-bottom: 42px;
    border-bottom: 1px solid var(--line-light);
}
.site-footer .mark { color: var(--white); }
.site-footer .brand-name,
.site-footer .brand__name { color: var(--white); }
.site-footer .brand-sub { color: rgba(255, 255, 255, 0.55); }
.footer-note { max-width: 600px; font-size: 0.83rem; color: rgba(255, 255, 255, 0.52); margin: 0; }
.footer-heading {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    margin: 0 0 0.8rem;
    font-family: var(--sans);
    font-weight: 700;
}
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list a,
.footer-address a { color: rgba(255, 255, 255, 0.78); }
.footer-list a:hover,
.footer-address a:hover { color: #c6aa7b; }
.footer-list li { margin: 0.35rem 0; }
.footer-address { font-style: normal; line-height: 1.7; font-size: 0.92rem; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-top: 24px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.47);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.47); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

.cta-band {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 2rem;
    align-items: center;
    padding: 2.4rem;
    background: var(--ink);
    color: rgba(255, 255, 255, 0.67);
}
.cta-band h2 { color: var(--white); margin: 0 0 0.5rem; font-size: 2.4rem; max-width: none; }
.cta-band p { margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: flex-end; }

.mark-specimen {
    background: var(--ink);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    padding: 2.4rem 1.4rem;
}
.mark-specimen .mark {
    width: 160px;
    height: 110px;
    font-size: 2.6rem;
    color: var(--white);
}
.mark-specimen p {
    margin: 0;
    color: #c6aa7b;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    text-transform: uppercase;
    text-align: center;
}

.thanks {
    min-height: 50vh;
    display: grid;
    place-items: center;
    padding: 4rem 0;
    text-align: center;
}
.thanks h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 0.6rem; max-width: none; }

.topbar { display: none; }

@media (max-width: 980px) {
    .nav-toggle,
    .menu-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: var(--header-h);
        background: var(--paper);
        padding: 24px;
        flex-direction: column;
        align-items: flex-start;
        border-bottom: 1px solid var(--line);
        gap: 8px;
    }
    .nav-links.open { display: flex; }
    .brand-copy,
    .brand__name { display: none; }
    .hero { min-height: auto; padding-top: 88px; }
    .hero-grid,
    .section-head,
    .membership-grid,
    .faq-grid,
    .contact-card,
    .form-layout,
    .two-col,
    .cta-band,
    .footer-grid,
    .structure-grid { grid-template-columns: 1fr; }
    .hero-grid { gap: 58px; }
    .hero-aside { max-width: 500px; }
    .section-head { gap: 24px; margin-bottom: 48px; }
    .principles,
    .goals { grid-template-columns: 1fr 1fr; }
    .value-row,
    .why article { grid-template-columns: 55px 1fr; gap: 14px 24px; }
    .value-row p,
    .why article p { grid-column: 2; }
    .contact-meta { border-left: 0; border-top: 1px solid var(--line); padding: 32px 0 0; }
    .instruction { position: static; }
}

@media (max-width: 640px) {
    .wrap { width: min(calc(100% - 30px), var(--max)); }
    .nav { height: 76px; }
    .mark { width: 60px; height: 46px; font-size: 1.2rem; }
    h1 { font-size: clamp(3rem, 17vw, 4.7rem); }
    h2 { font-size: clamp(2.25rem, 12vw, 3.45rem); }
    section, .section { padding: 88px 0; }
    .hero { padding: 74px 0 58px; }
    .principles, .goals { grid-template-columns: 1fr; }
    .principle, .goal { min-height: auto; }
    .principle .num, .goal__num { margin-bottom: 32px; }
    .value-row, .why article { grid-template-columns: 42px 1fr; }
    .person { grid-template-columns: 1fr; }
    .person span { text-align: left; margin-top: -14px; }
    .contact-card { padding: 34px 24px; }
    .form-grid { grid-template-columns: 1fr; }
    .footer-top, .footer-bottom, .footer-grid { flex-direction: column; display: flex; }
}

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

@media print {
    .site-header, .site-footer, .nav-toggle, .hero-actions, .btn { display: none !important; }
    body { background: #fff; }
}
