/* Centrum Ekspertyz OLiOC: paleta z grafiki "Nowe warunki techniczne 2026" */
:root {
    --ink: #13202e;        /* granat, tło nagłówka i stopki */
    --ink-2: #1d2e40;
    --paper: #f2eee4;      /* papier, tło treści */
    --paper-2: #e7e1d1;
    --gold: #b08d4c;       /* złoto, akcenty i linie */
    --gold-deep: #8a6d33;  /* złoto do tekstu na jasnym tle (kontrast) */
    --stone: #4f5b66;      /* tekst pomocniczy */
    --line: #cfc7b5;

    --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
    --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --measure: 66ch;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
}

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

a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 0.2em; }
a:hover { color: var(--gold-deep); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(1120px, 92vw); margin-inline: auto; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--gold); color: var(--ink); padding: .5rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; }

/* Nagłówek */
.site-header { background: var(--ink); color: var(--paper); border-bottom: 1px solid var(--gold); }
.header-inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 1rem 2rem; padding: 1.1rem 0;
}
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--paper); }
.brand-name { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .02em; }
.brand-sub { font-size: .875rem; color: var(--gold); }
.brand:hover { color: var(--paper); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-nav a { color: var(--paper); text-decoration: none; padding: .25rem 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--gold); color: var(--paper); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }

/* Hero: główna strona */
.hero {
    background: var(--ink);
    color: var(--paper);
    padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem);
    position: relative;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}
.hero h1 {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(2.25rem, 5vw, 3.6rem);
    line-height: 1.08;
    margin: 0 0 1.25rem;
}
.hero .lead {
    font-size: 1.2rem;
    color: #d9d3c4;
    max-width: var(--measure);
    margin: 0 0 2rem;
}
.hero .question { color: var(--gold); font-family: var(--serif); font-style: italic; font-size: 1.35rem; margin: 0 0 2rem; }
.hero-art { color: var(--gold); }
.hero-art svg { width: 100%; height: auto; }

.btn {
    display: inline-block; padding: .85rem 1.5rem; border: 1px solid var(--gold);
    background: var(--gold); color: var(--ink); text-decoration: none; font-weight: 600;
}
.btn:hover { background: transparent; color: var(--paper); }
.btn-ghost { background: transparent; color: var(--paper); margin-left: .75rem; }
.btn-ghost:hover { background: var(--paper); color: var(--ink); }

/* Treść */
.section { padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid var(--line); }
.section h2 {
    font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.1rem);
    line-height: 1.2; margin: 0 0 1.25rem;
}
.section p { max-width: var(--measure); }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; margin-top: 2rem; }
.service {
    padding: 1.5rem 1.5rem 1.75rem 0;
    border-top: 2px solid var(--gold);
}
.service h3 { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 .5rem; }
.service p { margin: 0; color: var(--stone); font-size: 1rem; }
.service a { font-weight: 600; }

/* Strony podrzędne */
.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; border-bottom: 1px solid var(--line); }
.page-head h1 {
    font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.12; margin: 0 0 .75rem;
}
.page-head .summary { color: var(--stone); font-size: 1.15rem; max-width: var(--measure); margin: 0; }

.prose { padding: 2.5rem 0 4rem; }
.prose h2 { font-family: var(--serif); font-size: 1.6rem; margin: 2.25rem 0 .75rem; }
.prose p, .prose li { max-width: var(--measure); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.placeholder { background: var(--paper-2); border-left: 3px solid var(--gold); padding: .75rem 1rem; color: var(--stone); }

/* Formularz */
.form { max-width: 640px; padding: 2.5rem 0 4rem; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.25rem; }
.field label { font-weight: 600; }
.field .req { color: var(--gold-deep); font-weight: 400; }
.field input, .field select, .field textarea {
    font: inherit; padding: .7rem .8rem; border: 1px solid var(--line);
    background: #fff; color: var(--ink); border-radius: 0;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.consent { display: flex; gap: .75rem; align-items: flex-start; margin: 1.5rem 0; font-size: .95rem; color: var(--stone); }
.consent input { margin-top: .35rem; }
.hp { position: absolute; left: -9999px; }

.notice { padding: 1rem 1.25rem; border-left: 3px solid var(--gold); background: var(--paper-2); margin-bottom: 1.5rem; max-width: 640px; }
.notice.error { border-left-color: #9b2c2c; }
.notice ul { margin: .25rem 0 0; padding-left: 1.2rem; }

/* Stopka */
.site-footer { background: var(--ink); color: #cfc8b8; padding: 2.75rem 0; font-size: .95rem; border-top: 1px solid var(--gold); }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem 2rem; }
.footer-inner p { margin: 0 0 .35rem; }
.footer-name { font-family: var(--serif); font-size: 1.15rem; color: var(--paper); }
.site-footer a { color: var(--paper); }

@media (max-width: 820px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-art { max-width: 320px; }
}

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