/* ==========================================================================
   Wspólny arkusz stylów dla prostych podstron (nie dotyczy index.html z kołem)
   Te same tokeny marki: kolory, fonty, odstępy - żeby całość spójnie wyglądała
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #0b0e14;
    background-image: radial-gradient(circle at 65% 0%, #171d28 0%, #080a0e 60%);
    background-attachment: fixed;
    color: #e5e5e5;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
}

/* ---------- Nagłówek ---------- */
.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px clamp(20px, 5vw, 60px);
    border-bottom: 1px solid rgba(197, 160, 89, 0.25);
}

.site-logo {
    font-family: 'Cinzel', serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 4px;
    color: #ffffff;
    text-decoration: none;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(14px, 2.5vw, 32px);
}

.site-nav a {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.65);
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
    color: #dfb552;
    border-color: #c5a059;
    outline: none;
}

/* ---------- Treść główna ---------- */
main {
    flex: 1;
    width: min(880px, 92vw);
    margin: 0 auto;
    padding: clamp(48px, 8vw, 96px) 0 clamp(60px, 10vw, 100px);
}

.eyebrow {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #d9aa43;
    margin-bottom: 18px;
}

h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.1rem, 5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 22px;
}

.lede {
    font-size: 1.2rem;
    font-weight: 300;
    color: #b0b8c4;
    line-height: 1.8;
    max-width: 62ch;
    margin-bottom: 44px;
}

.gold-rule {
    width: 90px;
    height: 3px;
    background: linear-gradient(90deg, #c5a059, transparent);
    margin-bottom: 36px;
}

main h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #e0b65a;
    margin: 44px 0 16px;
}

main h2:first-of-type {
    margin-top: 0;
}

main p {
    color: #b9c0cb;
    font-size: 1.02rem;
    letter-spacing: 0.3px;
    margin-bottom: 16px;
    max-width: 68ch;
}

main ul {
    margin: 8px 0 20px 22px;
}

main li {
    color: #b9c0cb;
    font-size: 1.02rem;
    line-height: 1.75;
    margin-bottom: 10px;
    max-width: 66ch;
}

main li strong {
    color: #e5e5e5;
}

/* ---------- Karty obszarów usług ---------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 28px 0 40px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(197, 160, 89, 0.25);
    border-radius: 14px;
    padding: 26px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

a.service-card:hover,
a.service-card:focus-visible {
    border-color: #c5a059;
    background: rgba(197, 160, 89, 0.06);
    transform: translateY(-3px);
    outline: none;
}

.service-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.service-card p {
    font-size: 0.94rem;
    color: #aeb4bd;
    margin-bottom: 0;
}

/* ---------- Wezwanie do działania ---------- */
.cta-box {
    margin-top: 48px;
    padding: 32px clamp(24px, 5vw, 44px);
    border: 1px solid rgba(197, 160, 89, 0.35);
    border-radius: 16px;
    background: rgba(197, 160, 89, 0.05);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cta-box p {
    margin: 0;
    color: #d7dbe1;
    font-size: 1.05rem;
    max-width: 46ch;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 14px 30px;
    border-radius: 999px;
    border: 1px solid #dfb552;
    background: rgba(197, 160, 89, 0.18);
    color: #ffe39a;
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.btn-gold:hover,
.btn-gold:focus-visible {
    background: rgba(197, 160, 89, 0.32);
    box-shadow: 0 0 22px rgba(197, 160, 89, 0.28);
    outline: none;
}

/* ---------- Dane kontaktowe ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    margin: 8px 0 40px;
}

.contact-grid dt {
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #d9aa43;
    margin-bottom: 6px;
}

.contact-grid dd {
    color: #e5e5e5;
    font-size: 1.05rem;
}

.contact-grid a {
    color: #dfb552;
    text-decoration: none;
    border-bottom: 1px solid rgba(223, 181, 82, 0.4);
}

.contact-grid a:hover,
.contact-grid a:focus-visible {
    color: #ffe39a;
    border-color: #ffe39a;
}

/* ---------- Notka informacyjna (szkic treści) ---------- */
.draft-note {
    margin: 0 0 40px;
    padding: 16px 20px;
    border-left: 3px solid #c5a059;
    background: rgba(197, 160, 89, 0.06);
    border-radius: 0 10px 10px 0;
    font-size: 0.92rem;
    color: #cbb98a;
    max-width: 68ch;
}

/* ---------- Stopka ---------- */
.site-footer {
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    padding: 28px clamp(20px, 5vw, 60px) 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.footer-note {
    font-size: 0.82rem;
    color: #7d838d;
    max-width: 62ch;
    line-height: 1.6;
}

.footer-note a {
    color: #a9895a;
    text-decoration: underline;
}

.footer-copy {
    font-size: 0.8rem;
    color: #5f646c;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   DODANE: style dla rozbudowanych podstron (O nas, Zakres usług, Polityka)
   ========================================================================== */

/* Kotwice - żeby nagłówek nie zasłaniał celu po kliknięciu w spisie treści */
[id] {
    scroll-margin-top: 24px;
}

main h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #ffffff;
    margin: 28px 0 10px;
}

main ol {
    margin: 8px 0 20px 24px;
}

main ol > li {
    color: #b9c0cb;
    font-size: 1.02rem;
    line-height: 1.75;
    margin-bottom: 10px;
    max-width: 66ch;
}

main ol ol,
main ul ul {
    margin-top: 10px;
    margin-bottom: 4px;
}

main ol ol {
    list-style-type: lower-latin;
}

main a:not(.btn-gold):not(.service-card):not(.site-logo) {
    color: #dfb552;
    text-decoration-color: rgba(223, 181, 82, 0.45);
    text-underline-offset: 3px;
}

main a:not(.btn-gold):not(.service-card):hover {
    color: #ffe39a;
}

/* ---------- Spis treści ---------- */
.toc {
    margin: 0 0 48px;
    padding: 24px clamp(20px, 3vw, 30px);
    border: 1px solid rgba(197, 160, 89, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.toc-title {
    font-family: 'Cinzel', serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: #d9aa43;
    margin-bottom: 14px;
}

.toc ol {
    list-style: none;
    margin: 0;
    columns: 2;
    column-gap: 34px;
}

.toc li {
    break-inside: avoid;
    margin-bottom: 9px;
    max-width: none;
    font-size: 0.96rem;
}

.toc a {
    color: #c3cad4;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.toc a:hover,
.toc a:focus-visible {
    color: #dfb552;
    border-color: rgba(223, 181, 82, 0.5);
    outline: none;
}

@media (max-width: 640px) {
    .toc ol {
        columns: 1;
    }
}

/* ---------- Maksyma / cytat ---------- */
.maxim {
    margin: 44px 0;
    padding: 28px clamp(22px, 4vw, 38px);
    border-top: 1px solid rgba(197, 160, 89, 0.3);
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
    background: linear-gradient(180deg, rgba(197, 160, 89, 0.05), transparent);
}

.maxim-latin {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.05rem, 2.3vw, 1.45rem);
    font-weight: 500;
    font-style: italic;
    line-height: 1.5;
    color: #e6c274;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    max-width: none;
}

.maxim-pl {
    font-size: 0.98rem;
    color: #9aa2ae;
    margin-bottom: 0;
}

/* ---------- Sylwetka / osoba ---------- */
.person {
    margin: 8px 0 36px;
    padding: 26px clamp(20px, 3vw, 32px);
    border-left: 3px solid #c5a059;
    border-radius: 0 14px 14px 0;
    background: rgba(255, 255, 255, 0.03);
}

.person-name {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #ffffff;
    margin-bottom: 4px;
}

.person-role {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #d9aa43;
    margin-bottom: 18px;
}

.person p:last-child {
    margin-bottom: 0;
}

/* ---------- Miejsca do uzupełnienia przez Kancelarię ---------- */
.todo {
    padding: 1px 7px;
    border-radius: 4px;
    border: 1px dashed rgba(223, 181, 82, 0.7);
    background: rgba(223, 181, 82, 0.12);
    color: #ffe39a;
    font-size: 0.94em;
    font-weight: 600;
    white-space: nowrap;
}

/* ---------- Dokument prawny (polityka prywatności) ---------- */
.legal-part {
    margin-top: 52px;
}

.legal-part:first-of-type {
    margin-top: 0;
}

.legal-num {
    font-family: 'Cinzel', serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #8c7442;
    margin-bottom: 6px;
}

.legal-part h2 {
    margin-top: 0;
}

.legal-meta {
    margin-top: 56px;
    padding-top: 22px;
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    font-size: 0.86rem;
    color: #7d838d;
}

.legal-meta p {
    font-size: 0.86rem;
    color: #7d838d;
}

/* ---------- Lista dokumentów PDF ---------- */
.doc-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    margin: 18px 0 32px;
    padding: 0;
    list-style: none;
}

.doc-list li {
    margin: 0;
    max-width: none;
}

.doc-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    border: 1px solid rgba(197, 160, 89, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: #e5e5e5;
    text-decoration: none;
    font-size: 0.95rem;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.doc-list a:hover,
.doc-list a:focus-visible {
    border-color: #c5a059;
    background: rgba(197, 160, 89, 0.07);
    outline: none;
}

.doc-badge {
    flex: none;
    padding: 4px 8px;
    border-radius: 5px;
    border: 1px solid rgba(197, 160, 89, 0.45);
    background: rgba(197, 160, 89, 0.14);
    color: #dfb552;
    font-family: 'Cinzel', serif;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 1.2px;
}

/* ==========================================================================
   DODANE: telefony, tablety, ekran dotykowy
   Reguły celowo na końcu pliku - nadpisują wcześniejsze ustawienia.
   ========================================================================== */

html {
    -webkit-text-size-adjust: 100%;   /* Safari nie powiększa tekstu po obrocie */
    text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;               /* realna wysokość okna na telefonie */
    overflow-x: hidden;               /* nic nie wystaje w bok */
    -webkit-tap-highlight-color: transparent;
}

img,
svg,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* Widoczne zaznaczenie przy nawigacji klawiaturą */
:focus-visible {
    outline: 2px solid #dfb552;
    outline-offset: 3px;
}

/* ---------- Nagłówek: cele dotykowe minimum 44 px ---------- */
.site-header {
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 10px;
}

.site-nav {
    gap: clamp(10px, 2.2vw, 32px);
    row-gap: 0;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 2px 3px;
    touch-action: manipulation;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    touch-action: manipulation;
}

/* ---------- Długie adresy i e-maile nie rozpychają układu ---------- */
.contact-grid dd,
.contact-grid a,
main p,
main li {
    overflow-wrap: break-word;
}

.contact-grid a {
    display: inline-block;
    padding: 4px 0;
    overflow-wrap: anywhere;
    touch-action: manipulation;
}

/* ---------- Przyciski i karty ---------- */
.btn-gold,
.doc-list a,
.service-card {
    touch-action: manipulation;
}

.btn-gold {
    min-height: 46px;
}

.doc-list a {
    min-height: 52px;
}

/* Na dotyku nie ma kursora - efekty najechania potrafią „przykleić się"
   po dotknięciu, więc je wyłączamy i zostawiamy sam stan aktywny. */
@media (hover: none) {
    a.service-card:hover,
    .btn-gold:hover,
    .doc-list a:hover {
        transform: none;
    }

    a.service-card:active {
        border-color: #c5a059;
        background: rgba(197, 160, 89, 0.06);
    }

    .btn-gold:active {
        background: rgba(197, 160, 89, 0.32);
    }
}

/* ---------- Telefon ---------- */
@media (max-width: 560px) {
    main {
        width: min(880px, 100%);
        padding-left: 18px;
        padding-right: 18px;
    }

    .site-header {
        padding-left: 18px;
        padding-right: 18px;
    }

    .site-footer {
        padding-left: 18px;
        padding-right: 18px;
        flex-direction: column;
        align-items: flex-start;
    }

    .lede {
        font-size: 1.06rem;
    }

    .cta-box {
        padding: 22px 18px;
    }

    .btn-gold {
        width: 100%;
    }

    .maxim {
        padding: 22px 18px;
    }

    .person {
        padding: 20px 16px;
    }

    .doc-list,
    .service-grid {
        grid-template-columns: 1fr;
    }

    /* Zagnieżdżone listy w polityce prywatności nie uciekają poza ekran */
    main ul,
    main ol {
        margin-left: 18px;
    }
}

/* ---------- Bardzo wąskie ekrany ---------- */
@media (max-width: 380px) {
    .site-nav a {
        font-size: 0.72rem;
        letter-spacing: 1.2px;
    }

    main h2 {
        font-size: 1.18rem;
    }
}

/* ---------- Telefon w poziomie / niskie okno ---------- */
@media (max-height: 480px) and (orientation: landscape) {
    main {
        padding-top: 32px;
        padding-bottom: 40px;
    }

    .lede {
        margin-bottom: 28px;
    }

    .gold-rule {
        margin-bottom: 24px;
    }
}

/* ---------- Ograniczenie ruchu (ustawienie systemowe) ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ---------- Wydruk ---------- */
@media print {
    body {
        background: #ffffff;
        color: #000000;
    }

    .site-header,
    .site-footer,
    .cta-box {
        display: none;
    }

    main a {
        color: #000000;
    }
}
