/* Centrum Medyczne Św. Marcina – arkusz stylów strony */

:root {
    --bg: #faf6f0;
    --surface: #ffffff;
    --surface-tint: #fdf0e6;
    --text: #2b2420;
    --muted: #6d625a;
    --border: #ece2d6;
    --accent: #e8572a;
    --accent-strong: #c2410c;
    --accent-dark: #9a3412;
    --footer-bg: #2b2420;
    --footer-text: #e9e1d8;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 1px 2px rgba(43, 36, 32, .06), 0 8px 24px rgba(43, 36, 32, .06);
    --shadow-lg: 0 2px 4px rgba(43, 36, 32, .06), 0 18px 40px rgba(43, 36, 32, .10);
    --container: 1180px;
    --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-head: "Nunito", "Nunito Sans", system-ui, sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent-strong);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--accent-dark);
}

a[href^="tel:"] {
    white-space: nowrap;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    line-height: 1.25;
    margin: 0 0 .6em;
    color: var(--text);
}

h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.85rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 800; }

p { margin: 0 0 1em; }

ul { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
li::marker { color: var(--accent); }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    background: var(--accent-strong);
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    z-index: 100;
    font-weight: 700;
}

.skip-link:focus {
    top: 12px;
    color: #fff;
}

.hl {
    color: var(--accent-strong);
    font-weight: 700;
}

/* ---------- Pasek informacyjny ---------- */

.topbar {
    background: var(--accent-strong);
    color: #fff;
    font-size: .875rem;
}

.topbar .container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
    align-items: center;
    justify-content: flex-end;
    min-height: 40px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.topbar a {
    color: #fff;
    text-decoration: none;
}

.topbar a:hover {
    text-decoration: underline;
    color: #fff;
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.topbar-item svg {
    width: 16px;
    height: 16px;
    flex: none;
    opacity: .9;
}

/* ---------- Nagłówek i nawigacja ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 84px;
}

.brand {
    flex: none;
    display: block;
}

.brand img {
    height: 64px;
    width: auto;
}

.main-nav {
    margin-left: auto;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: block;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: .875rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: background-color .2s, color .2s;
}

.main-nav a:hover {
    background: var(--surface-tint);
    color: var(--accent-strong);
}

.main-nav a[aria-current="page"] {
    background: var(--accent-strong);
    color: #fff;
}

.nfz {
    flex: none;
    padding-left: 20px;
    border-left: 1px solid var(--border);
}

.nfz img {
    height: 44px;
    width: auto;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    align-items: center;
    gap: 8px;
    background: var(--surface-tint);
    color: var(--accent-dark);
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    font: 800 .875rem/1 var(--font-head);
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
}

.nav-toggle svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 1080px) {
    .nfz { display: none; }
}

@media (max-width: 900px) {
    .site-header .container { min-height: 72px; flex-wrap: wrap; }
    .brand img { height: 52px; }
    .js .nav-toggle { display: inline-flex; }
    .main-nav { width: 100%; margin: 0; }
    .main-nav ul { flex-wrap: wrap; padding-bottom: 12px; }
    .js .main-nav { display: none; }
    .js .main-nav.is-open { display: block; }
    .js .main-nav ul { flex-direction: column; gap: 2px; }
    .js .main-nav a { border-radius: var(--radius-sm); padding: 12px 16px; }
}

@media (max-width: 640px) {
    .topbar .container { justify-content: center; }
    .topbar-item.optional { display: none; }
}

/* ---------- Hero (strona główna) ---------- */

.hero {
    padding: 48px 0 32px;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: .8125rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent-strong);
    margin-bottom: 12px;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.hero-text {
    max-width: 760px;
}

.hero-text h1 {
    margin-bottom: .35em;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--muted);
    margin-bottom: 1.4em;
}

.hero-lead strong {
    color: var(--text);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 999px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform .15s, background-color .2s, border-color .2s, color .2s;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent-strong);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-dark);
    color: #fff;
}

.btn-ghost {
    border-color: var(--border);
    background: var(--surface);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent-strong);
}

.slideshow {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 21 / 9;
    background: var(--surface-tint);
}

.slideshow img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.slideshow img.is-active {
    opacity: 1;
}

.slide-dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(43, 36, 32, .35);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.slide-dots:empty {
    display: none;
}

.slide-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .6);
    cursor: pointer;
    transition: width .3s, background-color .3s;
}

.slide-dots button[aria-current="true"] {
    width: 26px;
    background: #fff;
}

@media (max-width: 640px) {
    .slideshow { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .slideshow img { transition: none; }
    .btn:hover { transform: none; }
}

/* ---------- Nagłówek podstrony ---------- */

.page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--surface-tint) 0%, var(--bg) 70%);
    border-bottom: 1px solid var(--border);
    padding: 44px 0 40px;
}

.page-hero h1 {
    margin: 0;
}

.page-hero p {
    margin: 10px 0 0;
    color: var(--muted);
    max-width: 720px;
}

.page-hero .pulse {
    position: absolute;
    right: -20px;
    bottom: 10px;
    width: min(520px, 60%);
    height: auto;
    color: var(--accent);
    opacity: .22;
    pointer-events: none;
}

/* ---------- Układ treści ---------- */

main {
    display: block;
}

.section {
    padding: 40px 0 64px;
}

.layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.layout > .content { order: 2; }
.layout > .sidebar { order: 1; }

@media (max-width: 960px) {
    .layout { grid-template-columns: minmax(0, 1fr); }
    .layout > .content { order: 1; }
    .layout > .sidebar { order: 2; }
}

.content > * + * {
    margin-top: 24px;
}

.narrow {
    max-width: 880px;
    margin: 0 auto;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(22px, 3vw, 36px);
}

.card > :last-child {
    margin-bottom: 0;
}

.card-notice {
    border-left: 5px solid var(--accent);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-badge {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--surface-tint);
    color: var(--accent-strong);
}

.icon-badge svg {
    width: 22px;
    height: 22px;
}

.callout {
    background: var(--surface-tint);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    margin: 0 0 1em;
}

.callout > :last-child {
    margin-bottom: 0;
}

.callout strong {
    color: var(--accent-dark);
}

.divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 28px 0;
}

.more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    text-decoration: none;
}

.more-link::after {
    content: "→";
    transition: transform .2s;
}

.more-link:hover::after {
    transform: translateX(3px);
}

/* Usługi */

.services {
    list-style: none;
    padding: 0;
    margin: 0 0 1em;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.services li {
    margin: 0;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    line-height: 1.45;
}

.services li strong {
    display: block;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 800;
}

.services small {
    display: block;
    color: var(--muted);
    font-size: .875rem;
    margin-top: 6px;
}

.services .icon-badge {
    width: 40px;
    height: 40px;
}

.services.paid li {
    background: var(--surface-tint);
    border-color: transparent;
}

/* Panel boczny */

.sidebar {
    display: grid;
    gap: 18px;
}

@media (min-width: 961px) {
    .sidebar { position: sticky; top: 108px; }
}

@media (min-width: 640px) and (max-width: 960px) {
    .sidebar { grid-template-columns: 1fr 1fr; }
}

.side-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
}

.side-card h2 {
    font-size: .8125rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.side-card p {
    margin-bottom: .5em;
}

.side-card ul {
    margin-bottom: .75em;
    color: var(--muted);
    font-size: .95rem;
}

.side-card .person {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.side-photo {
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin: 0 0 14px;
    aspect-ratio: 4 / 3;
}

.side-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 30%;
}

.side-card-accent {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: #fff;
}

.side-card-accent h2 {
    color: rgba(255, 255, 255, .8);
}

.side-card-accent .big-phone {
    color: #fff;
}

.big-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.5rem;
    text-decoration: none;
    white-space: nowrap;
}

.big-phone svg {
    width: 22px;
    height: 22px;
}

.big-phone:hover {
    color: #fff;
    text-decoration: underline;
}

.hours {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.35rem;
    margin: 0;
}

.hours span {
    color: var(--muted);
    font-weight: 700;
    font-size: 1rem;
    margin-right: 8px;
}

.address {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-weight: 700;
    line-height: 1.5;
}

.address svg {
    width: 22px;
    height: 22px;
    flex: none;
    color: var(--accent-strong);
    margin-top: 2px;
}

/* ---------- Lekarz / pielęgniarki ---------- */

.profile {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.profile-photo {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 0;
}

@media (max-width: 720px) {
    .profile { grid-template-columns: minmax(0, 1fr); }
    .profile-photo { max-width: 360px; }
}

.profile-name {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--accent-strong);
    margin-bottom: 4px;
}

.tag-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.2em;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list li {
    margin: 0;
    background: var(--surface-tint);
    color: var(--accent-dark);
    font-weight: 700;
    font-size: .9rem;
    border-radius: 999px;
    padding: 6px 14px;
}

.timeline {
    list-style: none;
    padding: 0;
    margin: 0 0 1.2em;
    border-left: 2px solid var(--border);
}

.timeline li {
    position: relative;
    padding: 0 0 14px 22px;
    margin: 0;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 9px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--surface);
    border: 3px solid var(--accent);
}

.timeline h3 {
    font-size: 1.05rem;
    margin-bottom: .3em;
}

/* ---------- ABC pacjenta ---------- */

.toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin: 0;
}

.toc a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
}

.toc a:hover {
    border-color: var(--accent);
    color: var(--accent-strong);
}

.toc b {
    color: var(--accent-strong);
}

.numbered-title {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.numbered-title .num {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--accent-strong);
    color: #fff;
    font-size: 1.1rem;
}

.anchor-target {
    scroll-margin-top: 110px;
}

/* ---------- Aktualności ---------- */

.news-date {
    display: inline-block;
    font-weight: 700;
    font-size: .85rem;
    color: var(--accent-dark);
    background: var(--surface-tint);
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 12px;
}

blockquote {
    margin: 0 0 1em;
    padding: 22px 26px;
    background: var(--bg);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
}

blockquote footer {
    margin-top: 12px;
    font-style: normal;
    font-weight: 800;
    font-family: var(--font-head);
    color: var(--accent-strong);
}

.lead {
    font-size: 1.125rem;
}

.news-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 0 1.4em;
}

.news-photos-wide {
    grid-template-columns: 2fr 1fr;
}

.news-photos a {
    display: block;
    height: 360px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-tint);
}

.news-photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.news-photos a:hover img {
    transform: scale(1.03);
}

.news-photos .pos-usg img { object-position: 50% 55%; }
.news-photos .pos-bottom img { object-position: 50% 70%; }

@media (max-width: 640px) {
    .news-photos a { height: 240px; }
    .news-photos-wide { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .news-photos a:hover img { transform: none; }
}

.equipment {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 8px 20px;
}

.equipment li {
    position: relative;
    padding-left: 30px;
    margin: 0;
}

.equipment li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-strong) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.equipment li:first-child {
    grid-column: 1 / -1;
}

/* Karty aktualności (strona główna) */

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 16px;
    margin-bottom: 16px;
}

.section-head h2 {
    margin: 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow .2s, transform .15s;
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.news-card-img {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--surface-tint);
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 22px 24px;
}

.news-card-body .news-date {
    align-self: flex-start;
}

.news-card h3 {
    font-size: 1.2rem;
}

.news-card h3 a {
    color: var(--text);
    text-decoration: none;
}

.news-card h3 a:hover {
    color: var(--accent-strong);
}

.news-card p {
    color: var(--muted);
    font-size: 1rem;
}

.news-card .more-link {
    margin-top: auto;
}

@media (prefers-reduced-motion: reduce) {
    .news-card:hover { transform: none; }
}

/* Atuty poradni */

.features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px 26px;
}

.features li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 0;
    line-height: 1.5;
    color: var(--muted);
    font-size: .975rem;
}

.features li strong {
    display: block;
    color: var(--text);
    font-family: var(--font-head);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.features li:first-child .icon-badge {
    background: var(--accent-strong);
    color: #fff;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding: 5px 14px 5px 5px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 700;
    font-size: .925rem;
    text-decoration: none;
    box-shadow: var(--shadow);
}

.hero-badge b {
    background: var(--accent-strong);
    color: #fff;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: .75rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hero-badge::after {
    content: "→";
    color: var(--accent-strong);
}

.hero-badge:hover {
    border-color: var(--accent);
    color: var(--accent-strong);
}

.hero-text .eyebrow {
    display: flex;
}

/* Baner deklaracji (strona główna) */

.cta-banner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: linear-gradient(135deg, var(--accent-strong), var(--accent-dark));
    color: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: clamp(22px, 3vw, 34px);
}

.cta-banner h2 {
    color: #fff;
    margin-bottom: .35em;
}

.cta-banner p {
    color: rgba(255, 255, 255, .9);
    margin-bottom: 1.1em;
}

.cta-icon {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .16);
}

.cta-icon svg {
    width: 26px;
    height: 26px;
}

@media (max-width: 560px) {
    .cta-banner { flex-direction: column; }
}

.btn-light {
    background: #fff;
    color: var(--accent-dark);
}

.btn-light:hover {
    background: var(--surface-tint);
    color: var(--accent-dark);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, .6);
    color: #fff;
}

.btn-outline-light:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.callout-row {
    display: flex;
    gap: 14px;
    align-items: center;
}

.callout-row .icon-badge {
    background: var(--surface);
}

/* Poradnik krok po kroku */

.steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: 0 0 1.4em;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding: 0 0 18px 58px;
    margin: 0;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--accent-strong);
    color: #fff;
    font: 800 1.05rem/1 var(--font-head);
}

.steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 19px;
    top: 46px;
    bottom: 6px;
    width: 2px;
    background: var(--border);
}

.steps h3 {
    font-size: 1.05rem;
    margin: 8px 0 .3em;
}

.steps p {
    margin: 0;
    color: var(--muted);
}

.muted-note {
    color: var(--muted);
    font-size: .9rem;
}

/* ---------- Do pobrania ---------- */

.downloads {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.downloads li {
    margin: 0;
}

.download {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--text);
    text-decoration: none;
    transition: border-color .2s, transform .15s, box-shadow .2s;
}

.download:hover {
    border-color: var(--accent);
    color: var(--text);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.download .file-type {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--surface-tint);
    color: var(--accent-strong);
    font: 800 .75rem/1 var(--font-head);
    letter-spacing: .05em;
}

.download .file-name {
    font-family: var(--font-head);
    font-weight: 800;
    line-height: 1.35;
    flex: 1;
}

.download .file-action {
    flex: none;
    color: var(--accent-strong);
}

.download .file-action svg {
    width: 22px;
    height: 22px;
}

@media (prefers-reduced-motion: reduce) {
    .download:hover { transform: none; }
}

/* ---------- Galeria ---------- */

.gallery-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.gallery-nav li {
    margin: 0;
}

.gallery-nav a {
    display: block;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 700;
    font-size: .925rem;
    text-decoration: none;
}

.gallery-nav a:hover {
    border-color: var(--accent);
    color: var(--accent-strong);
}

.gallery-nav a[aria-current="page"] {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: #fff;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.gallery a {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-tint);
    box-shadow: var(--shadow);
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.gallery a:hover img {
    transform: scale(1.05);
}

.gallery a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(43, 36, 32, .35), transparent 50%);
    opacity: 0;
    transition: opacity .3s;
}

.gallery a:hover::after {
    opacity: 1;
}

@media (max-width: 480px) {
    .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .gallery a:hover img { transform: none; }
}

/* Lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(20, 16, 14, .92);
    padding: 56px 16px;
}

.lightbox.is-open {
    display: flex;
}

.lightbox figure {
    margin: 0;
    max-width: min(1100px, 100%);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox img {
    max-width: 100%;
    max-height: calc(100vh - 150px);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.lightbox figcaption {
    color: #e9e1d8;
    font-size: .925rem;
    margin-top: 12px;
    text-align: center;
}

.lightbox button {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    transition: background-color .2s;
}

.lightbox button:hover {
    background: rgba(255, 255, 255, .24);
}

.lightbox button svg {
    width: 24px;
    height: 24px;
}

.lightbox .lb-close { top: 14px; right: 14px; }
.lightbox .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
    .lightbox .lb-prev,
    .lightbox .lb-next { top: auto; bottom: 10px; transform: none; }
}

/* ---------- Kontakt ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-item h2 {
    font-size: .8125rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.contact-item p {
    margin: 0;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.contact-item a {
    color: var(--text);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--accent-strong);
    text-decoration: underline;
}

.contact-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

@media (max-width: 960px) {
    .contact-main { grid-template-columns: minmax(0, 1fr); }
}

.contact-main > .card {
    margin-top: 0;
}

.map-card .address {
    margin-bottom: 16px;
}

.map-frame {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-tint);
    margin-bottom: 18px;
}

.map-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-form {
    display: grid;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.field {
    display: grid;
    gap: 6px;
}

.field label {
    font-weight: 700;
    font-size: .95rem;
}

.field label span {
    color: var(--accent-strong);
}

.field input,
.field textarea {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.field textarea {
    resize: vertical;
    min-height: 140px;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    background: var(--surface);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 87, 42, .18);
}

.field small {
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.5;
}

.field-check {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 12px;
}

.field-check input {
    width: 20px;
    height: 20px;
    margin: 3px 0 0;
    padding: 0;
    accent-color: var(--accent-strong);
}

.field-check label {
    font-weight: 400;
    font-size: .925rem;
    line-height: 1.5;
    color: var(--muted);
}

.contact-form .btn {
    justify-self: start;
    cursor: pointer;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* ---------- Stopka ---------- */

.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 56px 0 0;
    font-size: .95rem;
}

.site-footer a {
    color: #fff;
}

.site-footer a:hover {
    color: #ffd6c2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 32px;
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand {
    display: inline-block;
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 14px;
}

.footer-brand img {
    height: 56px;
    width: auto;
}

.site-footer h2 {
    color: #fff;
    font-size: .8125rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: 8px;
}

.site-footer ul a {
    text-decoration: none;
}

.site-footer ul a:hover {
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 44px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 18px 0 22px;
    font-size: .85rem;
    color: #b9ada2;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: #e9e1d8;
}
