:root {
    --ink: #1c1a17;
    --terracotta: #a8543a;
    --terracotta-dark: #7a3d29;
    --stucco: #e4d9c4;
    --grey-bg: #dcdad5;
    --white: #ffffff;
    --line: rgba(28,26,23,0.16);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

.banner img {
    display: block;
    width: 100%;
    height: auto;
}

main {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

.notices {
    margin: 40px 0 8px;
    border-top: 2px solid var(--ink);
}

.notice {
    border-bottom: 1px solid var(--line);
}

.notice summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 34px 16px 4px;
    cursor: pointer;
    list-style: none;
    font-size: 18px;
    font-weight: 700;
    position: relative;
}

.notice summary::-webkit-details-marker { display: none; }

.notice summary::after {
    content: "+";
    position: absolute;
    right: 6px;
    top: 16px;
    font-size: 24px;
    font-weight: 300;
    color: var(--terracotta);
}

.notice[open] summary::after {
    content: "\2212"; /* minus */
}

/* Rząd prawdziwych znaków/tabliczek — każdy na białym tle, żeby krawędzie
   obrazków (często białe/przezroczyste) nie ginęły na szarym/kremowym tle. */
.notice-icons {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
    flex-wrap: wrap;
    width: 100%;
}

.notice-icons img {
    height: 99px;
    width: auto;
    max-width: 135px;
    object-fit: contain;
    background: var(--white);
    padding: 6px;
}

.notice-icon-svg {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    color: var(--ink);
}
.notice-icon-svg svg { width: 100%; height: 100%; }

.notice-body {
    padding: 0 4px 24px 4px;
    max-width: 62ch;
}

.notice-body p {
    margin: 0 0 12px;
    font-size: 16px;
}
.notice-body p:last-child { margin-bottom: 0; }

.notice-body a {
    color: var(--terracotta);
}

.notice-legend {
    font-style: italic;
    font-size: 13px;
    color: var(--ink);
    opacity: 0.7;
    margin-top: 18px !important;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
}

.contact-list {
    margin: 0 0 16px;
    padding-left: 20px;
    font-size: 16px;
}
.contact-list li { margin-bottom: 8px; }

.links {
    display: flex;
    margin: 32px 0 48px;
}

.link-card {
    flex: 1;
    background: var(--stucco);
    padding: 20px;
    text-decoration: none;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-radius: 4px;
    margin-right: 40px;
}

.link-card:last-child { margin-right: 0; }

.link-card:hover { background: var(--grey-bg); }

.link-card-dark {
    background: var(--terracotta-dark);
    color: var(--white);
    padding: 24px 20px;
}

.link-card-dark:hover { background: var(--ink); }

.link-card-dark .link-sub { color: rgba(255,255,255,0.75); }

.link-title {
    font-size: 16px;
    font-weight: 700;
}

.link-sub {
    font-size: 13px;
    color: rgba(28,26,23,0.65);
}

footer {
    text-align: center;
    font-size: 13px;
    color: rgba(28,26,23,0.55);
    padding: 24px 20px 40px;
}

@media (max-width: 520px) {
    .notice summary { font-size: 16px; }
    .notice-icons img { height: 66px; max-width: 92px; }
    .links { flex-direction: column; }
    .link-card { margin-right: 0; margin-bottom: 44px; }
    .link-card:last-child { margin-bottom: 0; }
}

@media (max-width: 360px) {
    .notice-icons img { height: 56px; max-width: 78px; }
}

/* Dostępność: wyraźny fokus klawiaturowy */
.notice summary:focus-visible,
.link-card:focus-visible {
    outline: 2px solid var(--terracotta);
    outline-offset: 2px;
}