:root {
    --navy: #0f1e36;
    --navy-light: #1a3154;
    --gold: #b89552;
    --gold-hover: #9f7d3e;
    --bg: #ffffff;
    --bg-alt: #f5f7fa;
    --text: #1e293b;
    --text-muted: #475569;
    --border: #e2e8f0;
    --radius: 8px;
    --shadow: 0 10px 30px rgba(15, 30, 54, 0.08);
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.7;
    font-size: 16px;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--gold);
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Nawigacja */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 30, 54, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.brand {
    display: flex;
    flex-direction: column;
    color: #fff;
}

.brand:hover {
    color: #fff;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.brand-sub {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--gold);
}

.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--gold);
}

.main-nav .nav-cta {
    padding: 8px 18px;
    border: 1px solid var(--gold);
    border-radius: 4px;
    color: #fff;
}

.main-nav .nav-cta:hover {
    background: var(--gold);
    color: var(--navy);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #0b1628 0%, #162c4e 100%);
    color: #fff;
    padding: 96px 0 88px;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.hero-content {
    max-width: 760px;
}

.hero-eyebrow {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    line-height: 1.15;
    font-weight: 600;
    margin-bottom: 22px;
}

.hero-lead {
    font-size: 1.12rem;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 34px;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
}

.btn-primary:hover {
    background: var(--gold-hover);
    color: #fff;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Sekcje */
.section {
    padding: 84px 0;
}

.section-alt {
    background-color: var(--bg-alt);
}

.section-header {
    margin-bottom: 42px;
}

.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 8px;
}

h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    color: var(--navy);
    font-weight: 600;
    line-height: 1.25;
}

/* O Kancelarii */
.about-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 48px;
    align-items: start;
}

.about-image-wrap {
    position: relative;
}

.about-image {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-bottom: 4px solid var(--gold);
}

.about-text p {
    margin-bottom: 18px;
    color: var(--text-muted);
    text-align: justify;
}

.about-bio {
    margin-top: 26px;
    padding: 22px 24px;
    background: var(--bg-alt);
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.about-bio p {
    margin-bottom: 0;
    color: var(--text);
    font-size: 0.95rem;
}

/* Akordeon Specjalizacji */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.accordion-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.accordion-item[open] {
    box-shadow: var(--shadow);
    border-color: rgba(184, 149, 82, 0.45);
}

.accordion-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 24px;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding-right: 52px;
}

.accordion-item summary h3 {
    font: inherit;
    margin: 0;
}

.accordion-item summary::-webkit-details-marker {
    display: none;
}

.accordion-item summary span {
    color: var(--gold);
}

.accordion-item summary::after {
    content: "+";
    position: absolute;
    right: 24px;
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--gold);
    transition: transform 0.2s ease;
}

.accordion-item[open] summary::after {
    content: "\2212";
}

.accordion-body {
    padding: 18px 24px 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

.accordion-body p {
    margin-bottom: 14px;
}

.accordion-body ul {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.accordion-body li::marker {
    color: var(--gold);
}

.accordion-note {
    margin-top: 16px;
    font-size: 0.93rem;
    font-style: italic;
    color: var(--text);
}

/* Współpraca i Linki */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 32px;
}

.info-card {
    background: var(--bg-alt);
    padding: 36px;
    border-radius: var(--radius);
    border-top: 3px solid var(--navy);
}

.info-card h2 {
    margin-bottom: 22px;
}

.partner-list, .external-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.partner-list li {
    padding-left: 16px;
    border-left: 2px solid var(--gold);
}

.partner-list span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.external-links a {
    display: inline-flex;
    align-items: center;
    color: var(--navy);
    font-weight: 500;
    font-size: 0.95rem;
}

.external-links a::before {
    content: "›";
    color: var(--gold);
    margin-right: 10px;
    font-weight: 700;
}

.external-links a:hover {
    color: var(--gold);
}

/* Aktualności */
.news-card {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.news-date {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 8px;
}

.news-card h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--navy);
    margin-bottom: 16px;
}

.news-expand summary {
    cursor: pointer;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.92rem;
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-alt);
    border-radius: 4px;
}

.news-expand summary:hover {
    color: var(--gold);
}

.news-content {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

.news-content p {
    margin-bottom: 12px;
}

.news-content p:last-child {
    margin-bottom: 0;
}

.news-author {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    color: var(--navy);
    line-height: 1.5;
}

.news-author em {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* Kontakt */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 40px;
    align-items: stretch;
}

.contact-details {
    background: var(--navy);
    color: #fff;
    padding: 38px;
    border-radius: var(--radius);
}

.contact-details h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    margin-bottom: 26px;
    color: var(--gold);
}

.contact-item {
    margin-bottom: 20px;
}

.contact-item strong {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.contact-item p, .contact-item a {
    color: #fff;
    font-size: 0.98rem;
}

.contact-item a:hover {
    color: var(--gold);
}

.contact-meta {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.contact-map {
    min-height: 380px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
    display: block;
}

/* Stopka i modal RODO */
.site-footer {
    background: #091324;
    color: rgba(255, 255, 255, 0.65);
    padding: 28px 0;
    font-size: 0.88rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.rodo-trigger {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.rodo-trigger:hover {
    color: var(--gold);
}

.back-to-top {
    color: var(--gold);
    font-weight: 500;
}

.rodo-modal {
    max-width: 620px;
    width: calc(100% - 32px);
    margin: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0;
    box-shadow: 0 24px 60px rgba(9, 19, 36, 0.35);
    color: var(--text);
}

.rodo-modal::backdrop {
    background: rgba(9, 19, 36, 0.65);
    backdrop-filter: blur(2px);
}

.rodo-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--navy);
    color: #fff;
}

.rodo-modal-header h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--gold);
}

.rodo-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.rodo-close:hover {
    color: var(--gold);
}

.rodo-modal-body {
    padding: 24px;
    font-size: 0.94rem;
    color: var(--text-muted);
}

.rodo-modal-body p {
    margin-bottom: 14px;
}

.rodo-modal-body p:last-child {
    margin-bottom: 0;
}

.rodo-modal-body strong {
    color: var(--navy);
}

/* Responsywność (RWD) */
@media (max-width: 900px) {
    .about-grid,
    .two-col-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-image-wrap {
        max-width: 360px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--navy);
        padding: 0 24px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .main-nav.is-open {
        max-height: 380px;
        padding: 20px 24px 28px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .about-text p {
        text-align: left;
    }

    .section {
        padding: 60px 0;
    }

    .hero {
        padding: 68px 0 64px;
    }
}