/* Tiny World — arkusz stylów */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300 600; font-display: swap; src: url(../fonts/newsreader-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: "Newsreader"; font-style: normal; font-weight: 300 600; font-display: swap; src: url(../fonts/newsreader-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; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 300 500; font-display: swap; src: url(../fonts/newsreader-italic-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: "Newsreader"; font-style: italic; font-weight: 300 500; font-display: swap; src: url(../fonts/newsreader-italic-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; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/instrument-sans-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: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/instrument-sans-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; }

:root {
  --bg: #ecebe8;
  --bg-2: #e2e0dc;
  --paper: #f6f5f3;
  --ink: #1d1c1b;
  --ink-2: #454340;
  --mute: #75726c;
  --line: #c9c6c0;
  --line-soft: #d8d6d1;
  --dark: #232221;
  --dark-2: #2c2b29;
  --on-dark: #e8e6e2;
  --on-dark-mute: #9d9a94;
  --line-dark: #45433f;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gut: clamp(20px, 4.2vw, 64px);
  --max: 1440px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 var(--sans); font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible, .site-footer :focus-visible { outline-color: var(--on-dark); }
::selection { background: var(--ink); color: var(--bg); }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }

/* ——— Typografia ——— */
.display { font-family: var(--serif); font-weight: 350; font-size: clamp(2.7rem, 7.4vw, 7rem); line-height: .96; letter-spacing: -.025em; font-optical-sizing: auto; }
.display em, .h1 em, .h2 em { font-style: italic; font-weight: 300; }
.h1 { font-family: var(--serif); font-weight: 350; font-size: clamp(2.3rem, 5.2vw, 4.8rem); line-height: 1; letter-spacing: -.02em; }
.h2 { font-family: var(--serif); font-weight: 350; font-size: clamp(1.9rem, 3.6vw, 3.3rem); line-height: 1.04; letter-spacing: -.018em; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.15; letter-spacing: -.01em; }
.lede { font-family: var(--serif); font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.4; font-weight: 350; color: var(--ink-2); }
.label { font: 500 .75rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.small { font-size: .875rem; color: var(--mute); }
.prose { max-width: 66ch; }
.prose p { color: var(--ink-2); }
.prose p + p { margin-top: -.15em; }

/* nagłówki-linki: po najechaniu płynnie pojawia się cienkie podkreślenie */
.index__name, .posts h3, .post-list h2, .cta__tel, .model-card__name, .mnav strong, .contact__big {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em;
  text-decoration-color: transparent; transition: text-decoration-color .3s var(--ease), transform .35s var(--ease);
}

/* linki-strzałki */
.arrow { display: inline-flex; align-items: baseline; gap: .5em; text-decoration: none; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: gap .3s var(--ease); }
.arrow::after { content: "→"; font-family: var(--sans); transition: transform .3s var(--ease); }
.arrow:hover::after { transform: translateX(4px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 22px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  font-weight: 500; text-decoration: none; cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.dark .btn { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }
.dark .btn:hover { background: transparent; color: var(--on-dark); }

/* ——— Nagłówek ——— */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.logo { display: block; color: var(--ink); width: clamp(132px, 13vw, 168px); flex: none; }
.logo svg { width: 100%; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.nav a { text-decoration: none; font-size: .95rem; position: relative; padding-block: 6px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav__tel { font-variant-numeric: tabular-nums; padding-left: clamp(18px, 2.4vw, 40px); border-left: 1px solid var(--line); }
.menu-btn { display: none; background: none; border: 0; padding: 10px 0; cursor: pointer; font-weight: 500; letter-spacing: .02em; }
.menu-btn span { display: inline-block; width: 18px; height: 7px; border-block: 1px solid currentColor; margin-left: 10px; vertical-align: middle; transition: transform .3s; }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gut) 32px; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility 0s .25s; overflow-y: auto;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s; }
  .nav a { font-family: var(--serif); font-size: 2rem; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav__tel { border-left: 0; padding-left: 0; font-family: var(--sans) !important; font-size: 1.1rem !important; margin-top: 24px; border-bottom: 0 !important; }
  body.menu-open { overflow: hidden; }
}

/* ——— Sekcje ——— */
.section { padding-block: clamp(72px, 10vw, 152px); }
.section--tight { padding-block: clamp(56px, 7vw, 104px); }
.section--alt { background: var(--bg-2); }
.dark { background: var(--dark); color: var(--on-dark); }
.dark .label, .dark .small { color: var(--on-dark-mute); }
.dark .lede, .dark .prose p { color: var(--on-dark-mute); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: clamp(28px, 3.5vw, 48px); margin-bottom: clamp(28px, 3.5vw, 48px); border-bottom: 1px solid var(--line); }
.dark .sec-head { border-color: var(--line-dark); }
.sec-head .label { display: block; margin-bottom: 18px; }

/* ——— Hero (start) ——— */
.hero { padding-top: clamp(32px, 6vw, 88px); }
.hero__top { align-items: end; padding-bottom: clamp(28px, 4vw, 56px); }
.hero__title { grid-column: 1 / span 8; }
.hero__aside { grid-column: 9 / span 4; padding-bottom: .6em; }
.hero__aside p { color: var(--ink-2); max-width: 36ch; }
.hero__links { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 22px; }
.hero__fig { position: relative; margin-inline: calc(var(--gut) * -1); }
@media (min-width: 1441px) { .hero__fig { margin-inline: 0; } }
.hero__fig img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: 50% 30%; background: var(--bg-2); }
.hero__cap { display: flex; justify-content: space-between; gap: 16px; padding: 12px var(--gut) 0; }
@media (min-width: 1441px) { .hero__cap { padding-inline: 0; } }
.hero__cap a { text-decoration: none; }
.hero__cap a:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .hero__title, .hero__aside { grid-column: 1 / -1; }
  .hero__aside { margin-top: 24px; }
  .hero__fig img { aspect-ratio: 4 / 3.4; }
}

/* specyfikacja pod hero */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); margin-top: clamp(40px, 6vw, 88px); }
.specs li { padding: 18px clamp(12px, 2vw, 28px) 0 0; }
.specs li + li { padding-left: clamp(12px, 2vw, 28px); border-left: 1px solid var(--line); }
.specs strong { display: block; font: 400 1.35rem/1.2 var(--serif); margin-bottom: 8px; }
.specs p { margin: 0; font-size: .925rem; color: var(--ink-2); }
@media (max-width: 900px) {
  .specs { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .specs li:nth-child(3) { padding-left: 0; border-left: 0; }
  .specs li:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 18px; }
}
@media (max-width: 480px) {
  .specs { grid-template-columns: 1fr; row-gap: 0; }
  .specs li, .specs li + li { padding: 16px 0; border-left: 0; }
  .specs li + li { border-top: 1px solid var(--line); }
}

/* ——— O nas ——— */
.about__label { grid-column: 1 / span 3; }
.about__quote { grid-column: 4 / span 9; margin-bottom: clamp(40px, 5vw, 72px); }
.about__img { grid-column: 1 / span 5; }
.about__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__img figcaption { margin-top: 10px; }
.about__txt { grid-column: 7 / span 6; align-self: end; }
.about__txt .prose { max-width: 58ch; }
.principles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 clamp(16px, 2vw, 32px); margin-top: clamp(56px, 7vw, 104px); counter-reset: p; }
.principles li { border-top: 1px solid var(--ink); padding-top: 16px; counter-increment: p; }
.principles li::before { content: counter(p, decimal-leading-zero); display: block; font: 500 .75rem/1 var(--sans); letter-spacing: .1em; color: var(--mute); margin-bottom: 28px; }
.principles h3 { font: 400 1.4rem/1.15 var(--serif); margin-bottom: 10px; }
.principles p { font-size: .925rem; color: var(--ink-2); margin: 0; }
@media (max-width: 900px) {
  .about__label, .about__quote, .about__img, .about__txt { grid-column: 1 / -1; }
  .about__label { margin-bottom: 16px; }
  .about__txt { margin-top: 32px; }
  .principles { grid-template-columns: 1fr 1fr; row-gap: 36px; }
}
@media (max-width: 480px) { .principles { grid-template-columns: 1fr; } }

/* ——— Indeks modeli ——— */
.index { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 30vw, 420px); gap: clamp(24px, 4vw, 64px); align-items: start; }
.index__list { border-top: 1px solid var(--ink); }
.index__list a {
  display: grid; grid-template-columns: 3.2em minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: baseline; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .35s var(--ease), color .2s;
}
.index__num { font: 500 .75rem/1 var(--sans); letter-spacing: .1em; color: var(--mute); }
.index__name { font: 400 clamp(1.5rem, 2.4vw, 2.1rem)/1.05 var(--serif); letter-spacing: -.01em; }
.index__desc { color: var(--ink-2); font-size: .95rem; }
.index__go { font-size: 1.1rem; opacity: 0; transform: translateX(-8px); transition: opacity .25s, transform .35s var(--ease); }
.index__thumb { display: none; }
.index__list a:hover, .index__list a:focus-visible, .index__list a.is-active { padding-left: 12px; }
.index__list a:hover .index__go, .index__list a.is-active .index__go { opacity: 1; transform: none; }
.index__list a:hover .index__name, .index__list a.is-active .index__name { text-decoration-color: currentColor; }
.index__preview { position: sticky; top: calc(var(--header-h) + 24px); }
.index__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); }
.index__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s var(--ease), transform 1.2s var(--ease); transform: scale(1.04); }
.index__frame img.is-on { opacity: 1; transform: none; }
.index__caption { display: flex; justify-content: space-between; margin-top: 10px; }
@media (max-width: 900px) {
  .index { grid-template-columns: 1fr; }
  .index__preview { display: none; }
  .index__list a { grid-template-columns: 88px minmax(0, 1fr); grid-template-rows: auto auto; gap: 4px 16px; align-items: center; padding: 14px 0; }
  .index__thumb { display: block; grid-row: 1 / span 2; width: 88px; aspect-ratio: 1; object-fit: cover; }
  .index__num, .index__go { display: none; }
  .index__name { align-self: end; }
  .index__desc { align-self: start; font-size: .875rem; }
  .index__list a:hover, .index__list a.is-active { padding-left: 0; }
  .index__list a.is-active .index__name { text-decoration-color: transparent; }
}

/* ——— Dlaczego dom mobilny ——— */
.why { align-items: start; }
.why__head { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 32px); }
.why__head .lede { margin-top: 24px; max-width: 30ch; }
.why__list { grid-column: 7 / span 6; counter-reset: w; }
.why__list li { counter-increment: w; display: grid; grid-template-columns: 3.2rem 1fr; gap: 0 12px; padding: 28px 0; border-top: 1px solid var(--line); }
.why__list li:last-child { border-bottom: 1px solid var(--line); }
.why__list li::before { content: counter(w, decimal-leading-zero); font: 400 1.25rem/1.3 var(--serif); color: var(--mute); font-style: italic; }
.why__list h3 { font: 400 1.45rem/1.2 var(--serif); margin-bottom: 10px; }
.why__list p { margin: 0; color: var(--ink-2); }
@media (max-width: 900px) {
  .why__head, .why__list { grid-column: 1 / -1; }
  .why__head { position: static; margin-bottom: 32px; }
}

/* ——— Pas ze zdjęciem i cytatem ——— */
.band { position: relative; min-height: clamp(440px, 70vh, 760px); display: flex; align-items: flex-end; color: #f2f0ec; overflow: hidden; background: var(--dark); }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 19, 18, .72), rgba(20, 19, 18, .08) 60%); }
.band__in { position: relative; z-index: 1; padding-block: clamp(32px, 5vw, 72px); }
.band blockquote { margin: 0; max-width: 22ch; font: 300 clamp(1.8rem, 3.8vw, 3.4rem)/1.08 var(--serif); letter-spacing: -.015em; }
.band blockquote em { font-style: italic; }
.band figcaption { margin-top: 20px; font-size: .875rem; color: rgba(242, 240, 236, .72); }

/* ——— Proces ——— */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 32px); }
.steps li { border-top: 1px solid var(--ink); padding-top: 20px; }
.steps__n { display: block; font: 300 clamp(3rem, 5vw, 4.6rem)/1 var(--serif); font-style: italic; color: var(--mute); margin-bottom: 24px; }
.steps h3 { font: 400 1.5rem/1.15 var(--serif); margin-bottom: 10px; }
.steps p { color: var(--ink-2); margin: 0; max-width: 40ch; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; row-gap: 40px; } }

/* ——— Lista wpisów ——— */
.posts { border-top: 1px solid var(--line); }
.dark .posts { border-color: var(--line-dark); }
.posts a { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.posts h3 { font: 400 clamp(1.3rem, 2vw, 1.7rem)/1.2 var(--serif); transition: transform .35s var(--ease); }
.posts p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.posts span { font-size: .85rem; color: var(--mute); white-space: nowrap; }
.posts a:hover h3 { transform: translateX(8px); text-decoration-color: currentColor; }
@media (max-width: 760px) { .posts a { grid-template-columns: 1fr; gap: 8px; } }

/* lista wpisów ze zdjęciem (strona poradnika) */
.post-list { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.post-list a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 56px); padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); text-decoration: none; align-items: center; }
.post-list img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-list h2 { font: 400 clamp(1.5rem, 2.6vw, 2.3rem)/1.1 var(--serif); letter-spacing: -.01em; margin-bottom: 14px; }
.post-list p { color: var(--ink-2); max-width: 52ch; }
.post-list a:hover h2 { text-decoration-color: currentColor; }
@media (max-width: 760px) { .post-list a { grid-template-columns: 1fr; } }

/* ——— CTA / kontakt (ciemny) ——— */
.cta__in { align-items: end; }
.cta__head { grid-column: 1 / span 7; }
.cta__head .lede { margin-top: 20px; max-width: 34ch; }
.cta__data { grid-column: 8 / span 5; }
.cta__tel { display: block; font: 300 clamp(2rem, 4.4vw, 3.8rem)/1 var(--serif); letter-spacing: -.01em; text-decoration: none; font-variant-numeric: lining-nums; margin-bottom: 18px; }
.cta__tel:hover { text-decoration-color: currentColor; }
.cta__data dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; padding-top: 20px; border-top: 1px solid var(--line-dark); margin-bottom: 28px; }
.cta__data dt { color: var(--on-dark-mute); font-size: .875rem; padding-top: 2px; }
.cta__data dd a { text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.cta__data dd a:hover { border-color: currentColor; }
@media (max-width: 900px) { .cta__head, .cta__data { grid-column: 1 / -1; } .cta__data { margin-top: 40px; } }

/* ——— Stopka ——— */
.site-footer { background: var(--dark-2); color: var(--on-dark); padding-block: clamp(56px, 7vw, 96px) 28px; font-size: .925rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer__top { row-gap: 40px; }
.footer__brand { grid-column: 1 / span 4; color: var(--on-dark); }
.footer__brand svg { width: min(240px, 100%); }
.footer__col { grid-column: span 2; }
.footer__col--wide { grid-column: span 3; }
.footer__col h2 { font: 500 .75rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-mute); margin-bottom: 16px; }
.footer__col li + li { margin-top: 8px; }
.footer__col address { font-style: normal; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: clamp(48px, 6vw, 88px); padding-top: 20px; border-top: 1px solid var(--line-dark); color: var(--on-dark-mute); font-size: .85rem; }
.footer__bottom ul { display: flex; gap: 20px; flex-wrap: wrap; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; color: inherit; font-size: inherit; }
.linklike:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .footer__brand { grid-column: 1 / -1; }
  .footer__col, .footer__col--wide { grid-column: span 6; }
}
@media (max-width: 480px) { .footer__col, .footer__col--wide { grid-column: 1 / -1; } }

/* ——— Nagłówek podstrony ——— */
.page-head { padding-block: clamp(40px, 6vw, 96px) clamp(32px, 4vw, 56px); }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .85rem; color: var(--mute); margin-bottom: clamp(24px, 3vw, 40px); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.page-head__in { align-items: end; }
.page-head__title { grid-column: 1 / span 7; }
.page-head__side { grid-column: 8 / span 5; color: var(--ink-2); }
.page-head__side p:last-child { margin: 0; }
.page-head__title--wide { grid-column: 1 / span 10; }
@media (max-width: 900px) { .page-head__title, .page-head__title--wide, .page-head__side { grid-column: 1 / -1; } .page-head__side { margin-top: 24px; } }

/* ——— Siatka modeli ——— */
.models { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(48px, 6vw, 88px) clamp(16px, 2.4vw, 40px); }
.model-card { text-decoration: none; display: block; }
.model-card:nth-child(4n+2), .model-card:nth-child(4n+3) { }
.model-card__img { overflow: hidden; background: var(--bg-2); }
.model-card__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.1s var(--ease); }
.model-card:hover .model-card__img img { transform: scale(1.03); }
.model-card__meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding-top: 16px; border-top: 1px solid var(--ink); margin-top: 16px; }
.model-card__name { font: 400 clamp(1.5rem, 2.4vw, 2rem)/1.1 var(--serif); letter-spacing: -.01em; }
.model-card:hover .model-card__name { text-decoration-color: currentColor; }
.model-card__n { font: 500 .75rem/2.4 var(--sans); letter-spacing: .1em; color: var(--mute); }
.model-card__desc { grid-column: 1 / -1; color: var(--ink-2); margin: 0; }
.model-card__tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.model-card__tags li { font-size: .8rem; padding: 3px 9px; border: 1px solid var(--line); color: var(--ink-2); }
@media (min-width: 761px) {
  .models .model-card:nth-child(even) { margin-top: clamp(48px, 8vw, 128px); }
}
@media (max-width: 760px) { .models { grid-template-columns: 1fr; } }

/* inne realizacje */
.others { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.others button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
.others img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: filter .3s; }
.others button:hover img { filter: brightness(.88); }
.others strong { display: block; font: 400 1.25rem/1.2 var(--serif); margin-top: 12px; }
.others span { font-size: .85rem; color: var(--mute); }
@media (max-width: 900px) { .others { grid-template-columns: 1fr 1fr; } }

/* ——— Strona modelu ——— */
.mhead { padding-block: clamp(32px, 5vw, 72px) clamp(28px, 3.5vw, 48px); }
.mhead__in { align-items: end; }
.mhead__title { grid-column: 1 / span 7; }
.mhead__title .lede { margin-top: 18px; font-style: italic; }
.mhead__facts { grid-column: 8 / span 5; }
.facts { border-top: 1px solid var(--ink); }
.facts div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.facts dt { color: var(--mute); }
.facts dd { color: var(--ink); }
@media (max-width: 900px) { .mhead__title, .mhead__facts { grid-column: 1 / -1; } .mhead__facts { margin-top: 32px; } }
.mhero { margin-inline: calc(var(--gut) * -1); }
@media (min-width: 1441px) { .mhero { margin-inline: 0; } }
.mhero img { width: 100%; max-height: 86vh; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 760px) { .mhero img { aspect-ratio: 4 / 3.2; } }
.mdesc__label { grid-column: 1 / span 3; }
.mdesc__txt { grid-column: 4 / span 7; }
.mdesc__txt p:first-child { font: 350 clamp(1.3rem, 2vw, 1.7rem)/1.4 var(--serif); color: var(--ink); margin-bottom: 1.2em; }
.mdesc__txt p { color: var(--ink-2); max-width: 62ch; }
.mdesc__txt--wide { grid-column: 4 / span 9; }
@media (max-width: 900px) { .mdesc__label, .mdesc__txt, .mdesc__txt--wide { grid-column: 1 / -1; } .mdesc__label { margin-bottom: 20px; } }

/* galeria — justowane wiersze: każde zdjęcie rośnie proporcjonalnie do swoich proporcji (--r = szer./wys.) */
.gallery { --h: clamp(150px, 22vw, 300px); display: flex; flex-wrap: wrap; gap: clamp(8px, 1vw, 14px); }
.gallery::after { content: ""; flex: 999 1 0; }
.gallery a { flex: var(--r) 1 calc(var(--r) * var(--h)); aspect-ratio: var(--r); overflow: hidden; background: var(--bg-2); cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery a:hover img { transform: scale(1.025); }
@media (max-width: 600px) { .gallery { --h: 120px; } }

/* film (fasada YouTube) */
.yt { position: relative; aspect-ratio: 16 / 9; background: var(--dark); overflow: hidden; }
.yt img, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.yt img { opacity: .82; }
.yt__btn { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: none; border: 0; color: #f2f0ec; cursor: pointer; }
.yt__btn::before { content: ""; width: 76px; height: 76px; border-radius: 50%; border: 1px solid rgba(242, 240, 236, .8); background: rgba(20, 19, 18, .35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f2f0ec' d='M8 5v14l11-7z'/%3E%3C/svg%3E") 56% 50% / 26px no-repeat; transition: transform .3s var(--ease), background-color .3s; }
.yt__btn:hover::before { transform: scale(1.06); background-color: rgba(20, 19, 18, .6); }
.yt__btn span { font-weight: 500; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.yt__note { margin-top: 10px; font-size: .8rem; color: var(--mute); }

.mnav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.mnav a { padding: 24px 0; text-decoration: none; }
.mnav a + a { text-align: right; border-left: 1px solid var(--line); padding-left: 24px; }
.mnav strong { display: block; font: 400 clamp(1.3rem, 2.4vw, 2rem)/1.15 var(--serif); margin-top: 6px; }
.mnav a:hover strong { text-decoration-color: currentColor; }

/* ——— Artykuł ——— */
.article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 68ch) minmax(0, 1fr); }
.article > * { grid-column: 2; }
.article__cover { grid-column: 1 / -1; margin-bottom: clamp(40px, 5vw, 72px); }
.article__cover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 760px) { .article__cover img { aspect-ratio: 4 / 3; } }
.article h2 { font: 400 clamp(1.5rem, 2.6vw, 2.1rem)/1.15 var(--serif); letter-spacing: -.01em; margin: 1.8em 0 .6em; }
.article p { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.7; }
.article > p:first-of-type { font: 350 clamp(1.25rem, 1.9vw, 1.5rem)/1.45 var(--serif); color: var(--ink); }
.article dl { margin: 1.2em 0 1.6em; border-top: 1px solid var(--line); }
.article dl div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 8px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.article dt { font: 400 1.15rem/1.3 var(--serif); }
.article dd { color: var(--ink-2); }
@media (max-width: 600px) { .article dl div { grid-template-columns: 1fr; } }
.article ul { margin: 0 0 1.4em; }
.article ul li { position: relative; padding-left: 1.4em; color: var(--ink-2); margin-bottom: .5em; }
.article ul li::before { content: "—"; position: absolute; left: 0; color: var(--mute); }
.note { margin-top: 2em; padding: 18px 20px; border-left: 2px solid var(--ink); background: var(--paper); font-size: .925rem; color: var(--ink-2); }
.article figure { grid-column: 1 / -1; margin: clamp(32px, 4vw, 56px) 0; }
.article figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article figure.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.2vw, 18px); }
.article figure.split img { aspect-ratio: 4 / 5; }
.article figcaption { grid-column: 1 / -1; font-size: .85rem; color: var(--mute); margin-top: 8px; }

/* ——— Kontakt ——— */
.contact { align-items: start; row-gap: 56px; }
.contact__info { grid-column: 1 / span 5; }
.contact__form { grid-column: 7 / span 6; }
@media (max-width: 900px) { .contact__info, .contact__form { grid-column: 1 / -1; } }
.contact__big { display: block; font: 300 clamp(1.9rem, 3.6vw, 3rem)/1.1 var(--serif); text-decoration: none; letter-spacing: -.01em; word-break: break-word; }
.contact__big:hover { text-decoration-color: currentColor; }
.contact__block { padding: 22px 0; border-top: 1px solid var(--line); }
.contact__block:first-child { border-top-color: var(--ink); }
.contact__block .label { display: block; margin-bottom: 10px; }
.contact__block address { font-style: normal; font-size: 1.1rem; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .85rem; color: var(--ink-2); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 10px 0; border-radius: 0; font-size: 1.05rem; outline: none; appearance: none; -webkit-appearance: none;
}
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%231d1c1b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") right 2px center / 12px no-repeat; padding-right: 24px; cursor: pointer; }
.field textarea { min-height: 140px; resize: vertical; border: 1px solid var(--ink); padding: 12px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.field textarea:focus { box-shadow: inset 0 0 0 1px var(--ink); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #8f2d1f; }
.field .err { color: #8f2d1f; font-size: .8rem; min-height: 0; }
.check { grid-column: 1 / -1; display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: .85rem; color: var(--ink-2); align-items: start; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__status { font-size: .925rem; }
.form__status.is-ok { color: #2f5130; }
.form__status.is-err { color: #8f2d1f; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__rodo { grid-column: 1 / -1; font-size: .78rem; color: var(--mute); line-height: 1.5; margin: 0; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ——— Polityka / tekst prawny ——— */
.legal h2 { font: 400 1.6rem/1.2 var(--serif); margin: 2em 0 .6em; }
.legal h3 { font: 500 1rem/1.3 var(--sans); margin: 1.6em 0 .5em; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { margin: 0 0 1.2em; }
.legal ul li { padding-left: 1.2em; position: relative; margin-bottom: .35em; }
.legal ul li::before { content: "–"; position: absolute; left: 0; color: var(--mute); }
.legal ol { list-style: decimal; padding-left: 1.4em; margin-bottom: 1.2em; }
.legal ol li { margin-bottom: .35em; }
.table-wrap { overflow-x: auto; margin: 1.2em 0 2em; border-top: 1px solid var(--ink); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { font-weight: 500; color: var(--mute); font-size: .8rem; letter-spacing: .04em; }
.table-wrap code { font-size: .85em; background: var(--paper); padding: 1px 5px; }

/* ——— Lightbox ——— */
.lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(22, 21, 20, .96); color: #f2f0ec; }
.lb::backdrop { background: transparent; }
.lb[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb__bar { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gut); font-size: .9rem; gap: 16px; }
.lb__bar strong { font: 400 1.15rem/1.2 var(--serif); }
.lb__stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 clamp(8px, 6vw, 96px); touch-action: pan-y; }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity .25s; }
.lb__stage img.is-loading { opacity: .25; }
.lb button { background: none; border: 0; color: inherit; cursor: pointer; }
.lb__close { font-size: .9rem; padding: 8px 0; text-decoration: underline; text-underline-offset: .25em; }
.lb__prev, .lb__next { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; font-size: 1.6rem; display: grid; place-items: center; opacity: .8; }
.lb__prev:hover, .lb__next:hover { opacity: 1; }
.lb__prev { left: clamp(0px, 1vw, 24px); }
.lb__next { right: clamp(0px, 1vw, 24px); }
.lb__foot { padding: 12px var(--gut) 18px; text-align: center; font-size: .85rem; color: rgba(242, 240, 236, .6); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .lb__prev, .lb__next { top: auto; bottom: -6px; transform: none; } }

/* ——— Baner cookies ——— */
.cc {
  position: fixed; z-index: 90; left: var(--gut); bottom: clamp(12px, 2vw, 24px); width: min(460px, calc(100% - 2 * var(--gut)));
  background: var(--paper); color: var(--ink); border: 1px solid var(--ink); box-shadow: 0 18px 50px -20px rgba(20, 19, 18, .35);
  padding: 22px 22px 20px; font-size: .9rem; max-height: calc(100vh - 32px); overflow-y: auto;
  animation: cc-in .45s var(--ease) both;
}
@keyframes cc-in { from { opacity: 0; transform: translateY(14px); } }
.cc[hidden] { display: none; }
.cc:focus { outline: none; }
.cc:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cc h2 { font: 400 1.45rem/1.2 var(--serif); margin-bottom: 10px; }
.cc p { color: var(--ink-2); margin-bottom: 16px; }
.cc a { color: var(--ink); }
.cc__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cc__actions .btn { min-height: 44px; padding: 0 12px; font-size: .9rem; }
.cc__more { grid-column: 1 / -1; justify-self: start; margin-top: 6px; font-size: .875rem; text-decoration: underline; text-underline-offset: .2em; }
.cc__cats { border-top: 1px solid var(--line); margin-bottom: 16px; }
.cc__cat { padding: 12px 0; border-bottom: 1px solid var(--line); }
.cc__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cc__row label, .cc__row strong { font-weight: 500; cursor: pointer; }
.cc__cat p { margin: 6px 0 0; font-size: .82rem; color: var(--mute); }
.cc__always { font-size: .78rem; color: var(--mute); }
.switch { position: relative; width: 40px; height: 22px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border: 1px solid var(--ink); border-radius: 22px; background: transparent; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); transition: transform .2s var(--ease), background .2s; }
.switch input:checked + span { background: var(--ink); }
.switch input:checked + span::after { transform: translateX(18px); background: var(--paper); }
.switch input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 480px) {
  .cc { left: 0; right: 0; bottom: 0; width: 100%; border-inline: 0; border-bottom: 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}

/* ——— Animacje wejścia ——— */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ——— 404 ——— */
.e404 { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }

@media print {
  .site-header, .site-footer, .cc, .yt, .gallery { display: none !important; }
}
