/* ---------- Kontener i sekcje ---------- */
.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 9vw, 112px); }
.section--tight { padding-block: clamp(48px, 6vw, 72px); }
.section--deep { background: var(--paper-deep); }
.section--rule { border-top: 1px solid var(--line); }

.section-head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lead { margin-top: 16px; }

/* ---------- Pasek ogłoszenia ---------- */
.topbar {
    background: var(--green-900);
    color: #dfe6d8;
    font-size: .88rem;
}
.topbar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 40px;
    padding-block: 8px;
    text-align: center;
}
.topbar__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--rape-500);
    flex-shrink: 0;
}
.topbar a { color: #fff; font-weight: 500; white-space: nowrap; }
.topbar a:hover { color: var(--rape-400); }

/* ---------- Nagłówek ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(245, 242, 234, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
}
.site-header__inner {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    font-family: var(--font-serif);
    font-size: 1.38rem;
    font-weight: 650;
    letter-spacing: -.015em;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 30px; height: 30px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    padding: 8px 12px;
    border-radius: var(--radius);
    color: var(--ink-soft);
    font-size: .97rem;
    font-weight: 500;
    text-decoration: none;
}
.main-nav a:hover { color: var(--ink); background: rgba(27, 35, 29, .05); }
.main-nav a[aria-current='page'] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--green-700); border-radius: 0; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-actions .link-login {
    padding: 8px 12px;
    color: var(--ink);
    font-weight: 500;
    font-size: .97rem;
    text-decoration: none;
}
.header-actions .link-login:hover { text-decoration: underline; }

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    margin-left: auto;
    padding: 0;
    background: none;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded='true'] .icon-open { display: none; }
.nav-toggle[aria-expanded='true'] .icon-close { display: block; }

.mobile-nav { display: none; }

@media (max-width: 960px) {
    .main-nav, .header-actions { display: none; }
    .nav-toggle { display: inline-flex; }
    .site-header__inner { height: 64px; }

    .mobile-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: calc(100vh - 64px);
        height: calc(100dvh - 64px);
        z-index: 39;
        overflow-y: auto;
        padding: 8px var(--gutter) 32px;
        background: var(--paper);
        border-top: 1px solid var(--line);
    }
    .mobile-nav.is-open { display: block; }
    .mobile-nav__links { border-bottom: 1px solid var(--line); }
    .mobile-nav__links a {
        display: block;
        padding: 16px 0;
        border-top: 1px solid var(--line);
        color: var(--ink);
        font-family: var(--font-serif);
        font-size: 1.4rem;
        font-weight: 600;
        text-decoration: none;
    }
    .mobile-nav__links li:first-child a { border-top: 0; }
    .mobile-nav__actions { display: grid; gap: 10px; margin-top: 24px; }
    .mobile-nav__locale { margin-top: 28px; }
    body.has-open-nav { overflow: hidden; }
}

/* ---------- Przełącznik języka ---------- */
.locale-switch {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
}
.locale-switch a, .locale-switch span {
    padding: 5px 9px;
    line-height: 1.2;
    text-decoration: none;
    color: var(--ink-muted);
}
.locale-switch a:hover { color: var(--ink); background: rgba(27, 35, 29, .05); }
.locale-switch [aria-current='true'] { background: var(--ink); color: var(--paper); }
.locale-switch > * + * { border-left: 1px solid var(--line-strong); }

/* ---------- Stopka ---------- */
.site-footer {
    background: var(--green-950);
    color: #b9c4b5;
    font-size: .95rem;
}
.site-footer a { color: #e7ece2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 40px;
    padding-block: 64px 48px;
}
.footer-grid .brand { color: #fff; }
.footer-about { max-width: 22rem; margin-top: 16px; line-height: 1.55; }
.footer-col h2 {
    margin-bottom: 14px;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.footer-col li + li { margin-top: 9px; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 22px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .86rem;
}
.footer-legal > * + * { margin-top: 4px; }
.footer-company { color: #b9c4b5; font-size: .8rem; line-height: 1.5; }
.footer-company a { color: inherit; }
.footer-bottom .locale-switch { border-color: rgba(255, 255, 255, .25); }
.footer-bottom .locale-switch > * + * { border-color: rgba(255, 255, 255, .25); }
.footer-bottom .locale-switch a { color: #b9c4b5; }
.footer-bottom .locale-switch a:hover { color: #fff; background: rgba(255, 255, 255, .06); text-decoration: none; }
.footer-bottom .locale-switch [aria-current='true'] { background: #e7ece2; color: var(--green-950); }

@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}
