/* Outfit (licencja SIL OFL) hostowany lokalnie: bez łączenia z serwerami Google */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/outfit-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/outfit-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* stronydlagabinetow.pl: wspólny styl podstron (Outfit, grafit, kolor branży) */
:root {
  --bg: #f3f3f4; --card: #ffffff; --ink: #15181b; --muted: #5b6066; --line: #dfe1e4;
  --red: #0E8F9E; --red-ink: #0c7b88; --logo-k: 1.329; --dark: #1b1e22; --ok: #1f7a46;
  --font: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --radius: 18px; --max: 74rem;
  --gl: max(16px, env(safe-area-inset-left, 0px)); --gr: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--bg); }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }

.wrap { max-width: calc(var(--max) + 32px); margin-inline: auto; padding-left: var(--gl); padding-right: var(--gr); }
.narrow { max-width: calc(44rem + 32px); }
.section { padding-block: var(--sp-60-80); }
.card { background: var(--card); border-radius: var(--radius); }
.muted { color: var(--muted); }
.h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); line-height: 1.02; font-weight: 400; letter-spacing: -0.05em; text-wrap: balance; }
.h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.06; font-weight: 400; letter-spacing: -0.045em; text-wrap: balance; }
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 38rem; }

/* Przycisk */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 3.25rem; padding: 10px 10px 10px 20px; border-radius: 999px; background: var(--red); color: #fff; font: inherit; font-size: 1rem; font-weight: 500; text-decoration: none; white-space: nowrap; box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--red) 70%, transparent); }
.btn:hover { background: color-mix(in srgb, var(--red) 82%, #000); }
.btn .dot { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #fff; color: var(--red-ink); transition: transform .2s; }
.btn.secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.secondary:hover { background: var(--ink); color: #fff; }
.btn.secondary .dot { background: var(--ink); color: #fff; }
.btn.secondary:hover .dot { background: #fff; color: var(--ink); }
.btn .dot svg { width: 16px; height: 16px; }
.btn:hover .dot { transform: translateX(3px); }
.btn.sm { min-height: 2.75rem; font-size: 0.9375rem; padding-left: 20px; }
.btn.sm .dot { width: 2.1rem; height: 2.1rem; }
.textlink { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.textlink:hover { color: var(--red-ink); }

/* Nawigacja */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .dom { color: var(--muted); }
.nav { display: none; gap: 30px; font-size: 0.9375rem; }
.nav a { text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.35em; }
@media (min-width: 900px) { .nav { display: flex; gap: clamp(16px, 2.2vw, 30px); } }
@media (max-width: 520px) { .brand .txt { display: none; } }
/* Logo i menu mobilne */
.brand img { display: block; height: calc(20px * var(--logo-k, 1)); width: auto; }
@media (max-width: 520px) { .brand img { height: calc(17px * var(--logo-k, 1)); } }
.top-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.mobile-menu { background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(21, 24, 27, 0.25); }
.mobile-menu[hidden] { display: none; }
.top .mobile-menu .wrap { display: grid; justify-content: stretch; padding-block: 0px 20px; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { padding-block: 20px; font-size: 1.25rem; letter-spacing: -0.02em; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu nav a[aria-current="page"] { color: var(--red-ink); }
.mobile-menu .btn { margin-top: 20px; }
@media (min-width: 900px) { .menu-btn, .mobile-menu { display: none !important; } }
@media (max-width: 599px) { .top-cta { display: none; } }
.foot .brandname img { display: block; height: calc(22px * var(--logo-k, 1)); width: auto; }


/* Nagłówek podstrony */
.page-head { padding-top: var(--sp-30-60); padding-bottom: var(--sp-30-60); display: grid; gap: 20px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.875rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 10px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 20px; margin-top: 10px; }
.meta { font-size: 0.9375rem; color: var(--muted); }

/* Treść artykułu i podstron */
.prose { font-size: 1.125rem; line-height: 1.7; }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; font-weight: 400; letter-spacing: -0.035em; margin-top: 40px; }
.prose h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.015em; margin-top: 30px; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li + li { margin-top: 10px; }
.prose li::marker { color: var(--red-ink); }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.prose a:hover { color: var(--red-ink); }
.prose strong { font-weight: 600; }
.callout { background: var(--card); border-radius: var(--radius); padding: 20px 20px; border-left: 3px solid var(--red); }
.tip { background: color-mix(in srgb, var(--red) 6%, var(--card)); border-radius: var(--radius); padding: 20px 20px; }
.tip strong { color: var(--red-ink); }

/* Bloki podstron */
.grid-3 { display: grid; gap: 20px; }
@media (min-width: 860px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid-2 { display: grid; gap: 20px; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.box { padding: 30px; display: grid; gap: 10px; align-content: start; }
.box h3 { font-size: 1.4rem; font-weight: 400; letter-spacing: -0.03em; line-height: 1.15; }
.box p { color: var(--muted); }
.box .mark { width: 28px; height: 3px; border-radius: 2px; background: var(--red); }
.checklist { display: grid; gap: 10px; list-style: none; padding: 0; }
.checklist li { display: grid; grid-template-columns: 0.9rem minmax(0, 1fr); gap: 10px; }
.checklist li::before { content: ""; width: 6px; height: 6px; margin-top: 0.65em; border-radius: 50%; background: var(--red); }
.shot { border-radius: 14px; overflow: hidden; background: var(--dark); }
.shot img { width: 100%; }
.shot.wide img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.phones { display: flex; justify-content: center; gap: 6%; padding: 5% 8% 0; background: var(--dark); border-radius: 14px; overflow: hidden; }
.phones img { width: 34%; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; border: 6px solid #0f1113; border-bottom: 0; border-radius: 20px 20px 0 0; }
figcaption { margin-top: 10px; font-size: 0.9375rem; color: var(--muted); }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 20px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; text-align: right; }

/* Cennik */
.prices { display: grid; gap: 20px; }
@media (min-width: 900px) { .prices { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.price { display: grid; grid-template-rows: auto auto 1fr auto; gap: 20px; padding: 30px; }
.price h3 { font-size: 1.75rem; font-weight: 400; letter-spacing: -0.03em; }
.price .sub { color: var(--muted); font-size: 0.9875rem; }
.price-title { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.amount { font-size: clamp(2.6rem, 4.2vw, 3.4rem); line-height: 1; font-weight: 400; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.amount sup { font-size: 0.36em; color: var(--red-ink); letter-spacing: 0; font-weight: 500; vertical-align: top; position: relative; top: 0.2em; margin-left: 0.1em; }
.price ul { display: grid; gap: 10px; align-content: start; list-style: none; padding: 0; font-size: 0.9875rem; }
.price li { display: grid; grid-template-columns: 0.9rem minmax(0, 1fr); gap: 10px; }
.price li::before { content: ""; width: 6px; height: 6px; margin-top: 0.55em; border-radius: 50%; background: var(--red); }
.price.featured { box-shadow: inset 0 0 0 2px var(--red), 0 20px 40px -24px color-mix(in srgb, var(--red) 45%, transparent); }
.badge { flex: none; font-size: 0.8125rem; font-weight: 500; padding: 0px 10px; border-radius: 999px; background: var(--red); color: #fff; }
@media (max-width: 899px) { .price.featured { order: -1; } }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 1rem; }
th, td { text-align: left; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-weight: 400; color: var(--muted); font-size: 0.9375rem; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Lista artykułów */
.posts { display: grid; gap: 20px; }
@media (min-width: 760px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post { display: grid; grid-template-rows: auto 1fr; overflow: hidden; text-decoration: none; transition: transform .2s; }
.post .cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--line); }
/* Okładka poradnika bez zdjęcia: ikona marki na tle w kolorze branży */
.post .cover-blank { display: grid; place-items: center; background: color-mix(in srgb, var(--red) 9%, var(--card)); }
.post .cover-blank svg { width: 18%; height: auto; fill: var(--red); }
.post-body { display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 20px 20px 20px; }
.post-hero { margin-bottom: var(--sp-30-40); }
.post-hero img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 22px; background: var(--line); }
@media (max-width: 640px) { .post-hero img { aspect-ratio: 4 / 3; border-radius: 16px; } }
.post:hover { transform: translateY(-2px); }
.post h3 { font-size: 1.35rem; font-weight: 400; letter-spacing: -0.025em; line-height: 1.2; }
.post p { color: var(--muted); font-size: 0.9875rem; }
.post .more { display: flex; justify-content: space-between; font-size: 0.9375rem; color: var(--muted); }
.post .more b { color: var(--red-ink); font-weight: 500; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 20px; cursor: pointer; list-style: none; font-size: 1.125rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--red-ink); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 20px; color: var(--muted); }

/* Pas CTA */
.cta-band { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 22px; padding: var(--sp-30-40); display: grid; gap: 20px; align-items: center; }
@media (min-width: 860px) { .cta-band { grid-template-columns: minmax(0, 1fr) auto; } }
.cta-band .lead { color: var(--muted); margin-top: 10px; }

/* Stopka z mapą strony */
.foot { background: #e7e8ea; color: var(--muted); padding-top: var(--sp-40-80); overflow: hidden; font-size: 0.9375rem; margin-top: 0; }
.foot-grid { display: grid; gap: 30px; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .foot-grid { grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); } }
.foot h2 { font-size: 0.9375rem; font-weight: 500; color: var(--ink); margin-bottom: 10px; }
.foot ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { color: var(--red-ink); text-decoration: underline; text-underline-offset: 0.3em; }
.foot .about-col p { max-width: 20rem; margin-top: 10px; }
.foot .about-col .brandname { color: var(--ink); font-size: 1.25rem; letter-spacing: -0.02em; }
.foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; margin-top: 40px; padding-block: 20px; border-top: 1px solid #d3d5d9; color: var(--muted); font-size: 0.875rem; }
.foot .wordmark { padding-top: var(--sp-40-60, 60px); overflow: hidden; }
.foot .wordmark img { display: block; width: 100%; height: auto; margin-bottom: -3.4%; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

/* Realizacje: przykłady */
.slide-shot { position: relative; border-radius: 14px; overflow: hidden; background: var(--dark); aspect-ratio: 16 / 10; }
.slide-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.slide-shot img.m { position: absolute; right: 4%; bottom: 7%; width: 17%; height: auto; aspect-ratio: 9 / 19.5; border: 5px solid #0f1113; border-radius: 16px; box-shadow: 0 12px 30px -10px rgb(0 0 0 / .5); }
.ex-badge { position: absolute; left: 10px; top: 10px; z-index: 2; padding: 0px 10px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 0.8125rem; font-weight: 500; box-shadow: 0 2px 8px rgb(0 0 0 / .15); }
.work-list { display: grid; gap: 40px; }
@media (min-width: 860px) { .work-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 30px; } }
.work-item { display: grid; gap: 10px; align-content: start; }
.work-item h2 { font-size: 1.5rem; font-weight: 400; letter-spacing: -0.03em; }
.work-item p { color: var(--muted); }

/* Zdjęcie Piotra na tle */
.person { position: relative; height: 22rem; margin-top: 60px; border-radius: 16px; background: linear-gradient(180deg, #eceef0 0%, #d9dce0 100%); }
.person img { position: absolute; left: 50%; bottom: 0; width: min(88%, 20rem); transform: translateX(-50%); filter: drop-shadow(0 6px 18px rgba(21, 24, 27, 0.12)); }

/* Branding i audyt w cenniku */
.prices-sub { margin: var(--sp-40-60) 0 20px; font-size: 1.375rem; font-weight: 500; letter-spacing: -0.02em; }
/* Case study: mockup + zrzut */
.case-hero { display: grid; gap: 20px; }
.case-hero > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 62%; border-radius: 14px; background: #e4e5e7; }
@media (min-width: 860px) { .case-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: stretch; } .case-hero > img { aspect-ratio: auto; height: 100%; } .case-hero .shot { align-self: center; } }

/* CTA ze zdjęciem: Piotr wskazuje na przycisk */
.cta-person { display: none; }
@media (min-width: 900px) {
  .cta-band.has-person { grid-template-columns: minmax(0, 1fr) auto 15rem; column-gap: 20px; }
  .cta-person { display: block; align-self: end; margin-top: -80px; margin-bottom: calc(-1 * var(--sp-30-40)); }
  .cta-person img { display: block; width: 15rem; height: auto; filter: drop-shadow(0 -4px 18px rgba(21, 24, 27, 0.12)); }
}

/* O mnie */
.about-top { display: grid; gap: 20px; padding-top: 0; }
.about-hero { position: relative; display: grid; gap: 20px; margin-top: var(--sp-60-80); padding: var(--sp-30-60) var(--sp-20-60) 0; border-radius: 28px; background: #e6e7e9; }
.about-copy { display: grid; gap: 20px; align-content: center; }
.about-title { font-size: clamp(2.5rem, 4.6vw, 4rem); line-height: 1; font-weight: 400; letter-spacing: -0.05em; text-wrap: balance; }
.about-title span { display: block; color: #9a9ea4; }
.about-hero .lead { color: var(--muted); max-width: 30rem; }
.about-photo { position: relative; display: flex; justify-content: center; margin-top: 20px; }
.about-photo img { width: min(100%, 22rem); height: auto; margin-top: 0; filter: drop-shadow(0 -2px 18px rgba(21, 24, 27, 0.13)); }
.avail { position: relative; z-index: 2; display: grid; gap: 10px; justify-items: start; margin: 0 0 -40px; padding: 30px; border-radius: 20px; background: rgba(21, 24, 27, 0.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; box-shadow: 0 30px 50px -30px rgba(21, 24, 27, 0.6); }
.avail b { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; }
.avail > span { font-size: 0.9375rem; color: rgba(255, 255, 255, 0.75); max-width: 18rem; }
.avail .btn { margin-top: 10px; }
@media (min-width: 900px) {
  .about-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; padding-top: 0; }
  .about-copy { align-self: center; padding-block: 80px; }
  .about-photo { align-self: stretch; margin-top: 0; }
  .about-photo img { position: absolute; left: 40%; bottom: 0; width: min(100%, 27rem); margin-top: 0; transform: translateX(-50%); }
  .avail { position: absolute; right: 40px; bottom: -60px; width: 20rem; margin: 0; }
}
.about-top + section .clients { margin-top: var(--sp-60-120); }
/* Pasek logotypów */
.clients { margin-top: var(--sp-30-40); }
.clients h2 { font-size: 0.9375rem; font-weight: 500; color: var(--muted); text-align: center; margin-bottom: 20px; letter-spacing: 0; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; gap: var(--sp-40-60); padding: 0 var(--sp-40-60) 0 0; margin: 0; list-style: none; }
.logo { font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 600; letter-spacing: -0.02em; color: #a6aab0; white-space: nowrap; }
.logo img { display: block; height: 28px; width: auto; max-width: none; filter: grayscale(1) brightness(0); opacity: .36; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { width: auto; animation: none; justify-content: center; }
  .marquee ul { flex-wrap: wrap; justify-content: center; padding: 0; gap: 20px 40px; }
  .marquee ul[aria-hidden] { display: none; }
}

.about-intro { display: grid; gap: 20px; }
@media (min-width: 900px) { .about-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: start; } }
.icon-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
@media (min-width: 640px) { .icon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .icon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.icon-grid li { padding: 30px; display: grid; gap: 10px; align-content: start; }
.icon-grid .ico { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; background: color-mix(in srgb, var(--red) 9%, var(--card)); color: var(--red-ink); margin-bottom: 10px; }
.icon-grid .ico svg { width: 1.5rem; height: 1.5rem; }
.icon-grid h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; }
.icon-grid p { color: var(--muted); }
.num-list { list-style: none; counter-reset: n; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.num-list li { counter-increment: n; display: grid; grid-template-columns: 3rem minmax(0, 1fr); padding-block: 20px; border-bottom: 1px solid var(--line); font-size: 1.125rem; }
.num-list li::before { content: "0" counter(n); color: var(--red-ink); font-weight: 500; }

/* Siatka 10 px: odstępy responsywne (telefon / od 760 px) */
:root { --sp-20-40: 20px; --sp-20-60: 20px; --sp-30-40: 30px; --sp-30-60: 30px; --sp-40-60: 40px; --sp-40-80: 40px; --sp-60-80: 60px; --sp-60-120: 60px; }
@media (min-width: 760px) { :root { --sp-20-40: 40px; --sp-20-60: 60px; --sp-30-40: 40px; --sp-30-60: 60px; --sp-40-60: 60px; --sp-40-80: 80px; --sp-60-80: 80px; --sp-60-120: 120px; } }

/* Siatka 10 px: przyciski 50 px, odstępy między kartami 30 px, marginesy boczne 20/30 px */
:root { --gl: max(20px, env(safe-area-inset-left, 0px)); --gr: max(20px, env(safe-area-inset-right, 0px)); --max: 1180px; }
@media (min-width: 760px) { :root { --gl: max(30px, env(safe-area-inset-left, 0px)); --gr: max(30px, env(safe-area-inset-right, 0px)); } }
.wrap { max-width: calc(var(--max) + 60px); }
.btn, .btn.sm { min-height: 50px; padding: 0 10px 0 20px; gap: 10px; }
.btn .dot, .btn.sm .dot { width: 30px; height: 30px; }
.btn .dot svg { width: 14px; height: 14px; }
.menu-btn { width: 50px; height: 50px; }
.works-nav button, .q-nav button, .car-btns button { width: 40px; height: 40px; }
.avail i { width: 40px; height: 40px; }
.field input { min-height: 50px; }
.chips span { min-height: 60px; }
.prices, .grid-2, .grid-3, .why, .icon-grid, .posts, .steps, .quotes, .talk, .work-list { gap: 30px; }
.section { padding-block: 60px; }
@media (min-width: 760px) { .section { padding-block: 120px; } }

/* Case study w układzie Z: tekst / obraz na zmianę, nieregularnie */
.z { display: grid; gap: var(--sp-60-120); }
.z-row { display: grid; gap: 30px; align-items: start; }
.z-text { display: grid; gap: 20px; align-content: start; }
.z-lead { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.4; letter-spacing: -0.02em; text-wrap: pretty; }
.z-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 30px; }
.z-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 20px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 1.125rem; }
.z-n { color: var(--red-ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.z-media { margin: 0; }
.z-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 62%; border-radius: 14px; background: #e4e5e7; }
.z-copy { display: grid; gap: 20px; font-size: 1.125rem; line-height: 1.65; color: var(--muted); }
.z-copy b { color: var(--ink); font-weight: 500; }
.z-phone { margin: 0; display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: 14px; background: #e6e7e9; overflow: hidden; }
.z-phone img { width: min(46%, 16rem); margin-top: 18%; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; border: 8px solid #15181b; border-radius: 30px; background: #15181b; }
@media (min-width: 900px) {
  .z-row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 60px; }
  .z-row.z-rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .z-row .z-side { margin-top: 80px; }
  .z-rev .z-text { padding-top: 40px; }
  .z-row.z-rev { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; }
  .z-row.z-last { grid-template-columns: minmax(0, 5fr) minmax(0, 5fr); padding-left: 8%; align-items: center; }
}

/* Detal w case study (kwadrat) */
.z-detail { margin: 0; }
.z-detail img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top; border-radius: 14px; background: #e6e7e9; }

/* Realizacje: nieregularny układ Z z dużymi odstępami */
.rz-list { display: grid; gap: 80px; }
.rz { display: grid; gap: 30px; align-items: center; }
.rz-img { display: block; overflow: hidden; border-radius: 20px; background: #e4e5e7; }
.rz-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.rz-img:hover img { transform: scale(1.03); }
.rz-text { display: grid; gap: 10px; justify-items: start; }
.rz-n { font-size: clamp(3rem, 6vw, 5rem); line-height: 1; font-weight: 300; letter-spacing: -0.05em; color: #c9ccd0; }
.rz-type { font-size: 0.875rem; font-weight: 500; color: var(--red-ink); }
.rz-text h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; font-weight: 400; letter-spacing: -0.04em; }
.rz-br { color: var(--muted); }
.rz-text > p:not(.rz-type):not(.rz-br) { max-width: 30rem; color: var(--muted); }
.rz-text .btn { margin-top: 20px; }
@media (min-width: 900px) {
  .rz-list { gap: 120px; }
  .rz-0 { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 60px; }
  .rz-0 .rz-text { padding-top: 120px; align-self: start; }
  .rz-1 { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: 80px; padding-left: 10%; }
  .rz-1 .rz-img { order: 2; }
  .rz-1 .rz-img img { aspect-ratio: 1 / 1; }
  .rz-2 { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); gap: 80px; padding-right: 8%; }
  .rz-2 .rz-img img { aspect-ratio: 4 / 5; }
  .rz-2 .rz-text { align-self: end; padding-bottom: 60px; }
  .rz-3 { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 60px; }
  .rz-3 .rz-img { order: 2; margin-top: 60px; }
  .rz-3 .rz-img img { aspect-ratio: 16 / 10; }
}

/* Wpis realizacji: opis po lewej (przyklejony), makiety po prawej */
.case { display: grid; gap: 40px; padding-top: var(--sp-30-60); padding-bottom: var(--sp-60-120); }
.case-side { display: grid; gap: 20px; align-content: start; }
.case-type { font-size: 0.875rem; font-weight: 500; color: var(--red-ink); margin-top: 20px; }
.case-side .h1 { font-size: clamp(2.4rem, 4.4vw, 3.8rem); }
.case-copy { display: grid; gap: 10px; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.case-copy b { color: var(--ink); font-weight: 500; }
.case-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.case-gallery { display: grid; gap: 20px; }
.case-gallery img { width: 100%; height: auto; border-radius: 20px; background: #e4e5e7; }
.case-gallery img.tall { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 55%; }
.case-gallery .shot { display: block; border-radius: 20px; cursor: zoom-in; position: relative; }
.case-gallery .shot::after { content: ""; position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315181b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M20 20l-4.5-4.5M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E") center / 20px no-repeat; box-shadow: 0 4px 14px rgba(0,0,0,.15); opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s; }
.case-gallery .shot:hover::after, .case-gallery .shot:focus-visible::after { opacity: 1; transform: none; }
@media (hover: none) { .case-gallery .shot::after { opacity: 1; transform: none; } }
/* Galeria pełnoekranowa */
.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0c0e10; color: #fff; }
.lb::backdrop { background: transparent; }
.lb[open] { display: grid; place-items: center; animation: lbIn .2s ease-out; }
@keyframes lbIn { from { opacity: 0; } }
.lb figure { display: grid; place-items: center; gap: 14px; width: 100%; height: 100%; padding: 70px 80px 30px; box-sizing: border-box; }
.lb img { max-width: 100%; max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 14px; }
.lb figcaption { font-size: .875rem; color: rgba(255,255,255,.7); }
.lb button { position: absolute; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; transition: background .2s; }
.lb button:hover { background: var(--red); }
.lb button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-x { top: 14px; right: 14px; }
.lb-p { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-n { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 759px) {
  .lb figure { padding: 70px 10px 90px; }
  .lb img { max-height: calc(100dvh - 180px); border-radius: 10px; }
  .lb-p, .lb-n { top: auto; bottom: 20px; transform: none; }
  .lb-p { left: calc(50% - 60px); } .lb-n { right: calc(50% - 60px); }
  .lb figcaption { position: absolute; top: 28px; left: 20px; }
}
@media (min-width: 960px) {
  .case { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 60px; align-items: start; }
  .case-side { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow: auto; scrollbar-width: none; }
  .case-side::-webkit-scrollbar { display: none; }
}

/* Delikatne wjazdy sekcji przy przewijaniu */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* Stopka: kontakt */
@media (min-width: 1000px) { .foot-grid { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); } }
.foot .about-col { display: grid; gap: 20px; align-content: start; }
.foot .about-col p { margin-top: 0; }
.foot-contact { display: grid; gap: 10px; font-style: normal; }
.foot-contact a, .foot-contact span { display: inline-flex; align-items: center; gap: 10px; min-height: 30px; color: var(--ink); }
.foot-contact svg { width: 18px; height: 18px; flex: none; color: var(--red-ink); }
.foot-contact a[href^="tel"] { font-size: 1.25rem; letter-spacing: -0.01em; }
.foot .about-col .btn { justify-self: start; color: #fff; }
.foot .about-col .btn:hover { color: #fff; text-decoration: none; }
.foot-bar nav { display: flex; flex-wrap: wrap; gap: 10px 30px; }
.foot ul a, .foot-bar a { display: inline-block; padding-block: 4px; }

.brand { min-height: 44px; }
.foot .brandname a { display: inline-flex; align-items: center; min-height: 44px; }

/* Telefon: wpis realizacji = tytuł, przewijana galeria, opis */
@media (max-width: 959px) {
  .case { display: flex; flex-direction: column; gap: 20px; }
  .case-side { display: contents; }
  .case-side > * { order: 3; }
  .case-side > .crumbs, .case-side > .case-type, .case-side > .h1 { order: 1; }
  .case-type { margin-top: 0; }
  .case-gallery { order: 2; display: grid; grid-auto-flow: column; grid-auto-columns: 85%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gl)) calc(-1 * var(--gr)); padding-inline: var(--gl) var(--gr); scroll-padding-inline: var(--gl); }
  .case-gallery::-webkit-scrollbar { display: none; }
  .case-gallery .shot { scroll-snap-align: start; border-radius: 16px; }
  .case-gallery img, .case-gallery img.tall { aspect-ratio: 4 / 5; object-fit: cover; object-position: center; border-radius: 16px; }
  .case-gallery img.reveal { opacity: 1 !important; transform: none !important; }
}
/* Telefon: zdjęcie w O mnie przylega do karty „Przyjmuję nowe projekty” */
@media (max-width: 899px) {
  .about-photo { margin-bottom: -20px; }
  .avail { margin: 0 calc(-1 * var(--sp-20-60)) 0; border-radius: 0 0 28px 28px; }
}

.top { z-index: 40; }
.menu-btn { position: relative; z-index: 2; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.mobile-menu a, .mobile-menu .btn { touch-action: manipulation; }

/* Podstrony oferty: wizualizacje i listy z ikonami */
.offer-visual { margin: 0; }
.offer-visual img { width: 100%; height: auto; border-radius: 20px; background: #e4e5e7; }
.wrap > .offer-visual img { aspect-ratio: 16 / 8; object-fit: cover; object-position: center 55%; }
@media (max-width: 700px) { .wrap > .offer-visual img { aspect-ratio: 4 / 3; } }
.grid-2 .offer-visual img { aspect-ratio: 4 / 5; object-fit: cover; }
.offer-visual figcaption { margin-top: 10px; }
.ilist { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.ilist li { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 20px; align-items: center; font-size: 1.0625rem; color: var(--muted); }
.ilist b { color: var(--ink); font-weight: 500; }
.ilist .ico, .icon-grid .ico, .box .ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: color-mix(in srgb, var(--red) 9%, var(--card)); color: var(--red-ink); }
.ilist .ico svg, .box .ico svg { width: 24px; height: 24px; }
.icon-grid p a { color: var(--ink); }
