/* Wersja v3: osobne podstrony, sekcje zamówień, kategorii i stopka z danymi firmy */
.site-header { grid-template-columns: 220px 1fr auto; }
.main-nav { gap: 22px; }
.main-nav a { font-size: 13px; }

/* Sekcje ogólne */
.band { padding: 58px 66px 62px; background: var(--paper); border-top: 1px solid var(--line); }
.band--warm { background: var(--warm-white); }
.band--cream { background: var(--cream); }
.band .formats-footer { margin-top: 30px; }

/* Karty informacyjne (dla kogo, rodzaje płócien, kategorie, zamówienia) */
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 38px; }
.info-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.info-card { display: flex; flex-direction: column; padding: 28px 26px 26px; background: var(--paper); box-shadow: 0 7px 22px rgba(51,40,29,.06); }
.band--warm .info-card, .band--cream .info-card { background: var(--paper); }
.band:not(.band--warm):not(.band--cream) .info-card { background: var(--warm-white); }
.info-card h3 { margin: 0; font-size: 21px; line-height: 1.3; }
.info-card p { margin: 9px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.info-card .info-kicker { margin: 0 0 10px; color: var(--accent-text); font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.info-card a.info-link { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; color: var(--wine); font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.info-card a.info-link:hover, .info-card a.info-link:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.info-card--center { align-items: center; text-align: center; }

/* Kroki (technologia, jak zamówić) */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 38px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { position: relative; padding: 26px 24px 24px; background: var(--paper); box-shadow: 0 7px 22px rgba(51,40,29,.06); counter-increment: step; }
.band:not(.band--warm):not(.band--cream) .steps li { background: var(--warm-white); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 14px; color: var(--beige-dark); font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1; }
.steps h3 { margin: 0; font-size: 19px; line-height: 1.3; }
.steps p { margin: 8px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; }

/* Lista cech */
.fact-list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.fact-list li { position: relative; padding-left: 20px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.fact-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border: 1px solid var(--beige-dark); }
.fact-list strong { color: var(--ink); font-weight: 600; }

/* Mapa */
.map-frame { position: relative; min-height: 360px; margin-top: 30px; overflow: hidden; background: var(--cream); box-shadow: 0 7px 22px rgba(51,40,29,.06); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.75); }

/* Stopka z nawigacją i danymi firmy */
.site-footer { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding: 44px 66px 40px; background: var(--cream); border-top: 1px solid var(--line); }
.site-footer h2 { margin: 0 0 12px; color: var(--accent-text); font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.site-footer p, .site-footer address { margin: 0; color: var(--muted); font-size: 15px; font-style: normal; line-height: 1.75; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.site-footer a { color: var(--ink); font-size: 15px; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.site-footer .logo { margin-bottom: 14px; }
.footer-bottom { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgba(189,152,112,.35); color: var(--accent-text); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

@media (max-width: 1100px) {
  .band, .site-footer { padding-inline: 42px; }
  .info-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 840px) {
  .band { padding: 50px 28px 54px; }
  .info-grid, .info-grid--2, .info-grid--5, .steps, .steps--3 { grid-template-columns: 1fr; gap: 14px; }
  .site-footer { grid-template-columns: 1fr; gap: 28px; padding: 40px 28px 34px; }
  .map-frame { min-height: 300px; }
}
@media (max-width: 560px) {
  .band { padding: 46px 18px 50px; }
  .site-footer { padding-inline: 18px; }
}

/* Kontakt jako osobna strona: H1 w sekcji kontaktu */
.contact .breadcrumb { margin-bottom: 22px; }
.contact-h1 { margin: 0 0 18px; font-size: clamp(36px, 3.8vw, 50px); line-height: 1.15; }

/* Realizacje: galeria z zachowaniem proporcji zdjęć */
.works { columns: 3 240px; column-gap: 20px; margin-top: 36px; }
.work { break-inside: avoid; margin: 0 0 20px; background: var(--paper); box-shadow: 0 7px 22px rgba(51,40,29,.06); }
.band:not(.band--warm):not(.band--cream) .work { background: var(--warm-white); }
.work a { display: block; }
.work img { display: block; width: 100%; height: auto; }
.work figcaption { padding: 12px 16px 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.works--teaser { columns: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.works--teaser .work { margin: 0; }
.works--teaser .work img { aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 840px) { .works--teaser { grid-template-columns: 1fr 1fr; } .works--teaser .work:last-child { grid-column: 1 / -1; } .works--teaser .work:last-child img { aspect-ratio: 16 / 9; } }
@media (max-width: 560px) { .works { columns: 1; } }

/* 6 pozycji w menu: telefon w nagłówku dopiero od 1320 px, żeby nie dotykał menu */
@media (min-width: 1201px) and (max-width: 1320px) { .site-header .header-actions { display: none; } .site-header { grid-template-columns: 220px 1fr; } }

/* Krosna: 3 przekroje w pierwszym rzędzie, pod nimi Wykonanie (2 kolumny) i krosno 3D */
@media (min-width: 841px) { .spec-card--text:not(.spec-card--special) { grid-column: span 2; } }
.spec-card--special { border-top: 3px solid var(--beige-dark); }
.spec-card--special .eyebrow { margin-bottom: 10px; font-size: 12px; }

/* Dwa akapity w nagłówku podstrony */
.page-hero-text + .page-hero-text { margin-top: 14px; }
/* Zamówienia: numer konta w jednej linii, linki w kartach */
.account-number { display: inline-block; margin-top: 4px; color: var(--ink); font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.info-card .fact-list a { color: var(--wine); }
/* Realizacje: podobrazie 4 × 2 m na całą szerokość, pod nim dwa zdjęcia obok siebie */
.works--feature { columns: auto; margin-bottom: 0; }
.works--feature .work { margin-bottom: 20px; }
.works--2 { columns: 2 240px; margin-top: 0; }
/* Hamburger z trzech pasków, po otwarciu krzyżyk */
@media (max-width: 1200px) {
  .menu-toggle { gap: 6px; }
  .menu-toggle span:not(.sr-only) { height: 2px; border-radius: 1px; transition: transform .18s ease, opacity .18s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: none; opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(4) { transform: translateY(-8px) rotate(-45deg); }
}
/* Strona główna: 3 karty produktów (bez artykułów plastycznych) */
.product-grid.product-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .product-grid.product-grid--3 { grid-template-columns: 1fr; } }
/* Zamówienia: jedna karta wyśrodkowana */
.info-grid--single { grid-template-columns: minmax(0, 720px); justify-content: center; }
/* Kroki technologii: oznaczenie „Na specjalne zamówienie” */
.steps .step-badge { margin: 0 0 8px; color: var(--wine); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
/* Karty produktów na stronie głównej bez opisu: tytuł + link */
.product-grid--3 .product-body { min-height: 0; }
.product-grid--3 .product-body a { margin-top: 10px; }
/* Mobile: hamburger w prawym rogu (nadpisuje 3 kolumny z góry pliku) */
@media (max-width: 1200px) {
  .site-header { grid-template-columns: 1fr auto; }
  .menu-toggle { justify-self: end; }
}
/* Telefon: pieczątka 2x większa (44 -> 88 px) */
@media (max-width: 520px) {
  .site-header { height: 112px; }
  .site-header .logo-emblem { width: 88px; height: 88px; }
}
/* Telefon: bez paska wyróżników pod hero (od lat 90., na wymiar, 1-7 dni, dostawa) */
@media (max-width: 520px) { .benefits { display: none; } }
/* Menu mobilne: od góry, pod nagłówkiem, duże napisy (13px z góry pliku nadpisywało 29px) */
@media (max-width: 1200px) {
  .main-nav { justify-content: flex-start; gap: 0; padding: 120px 28px 40px; }
  .main-nav a { width: 100%; padding: 14px 0; font-size: 26px; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .main-nav a.is-active { color: var(--wine); }
}
@media (max-width: 520px) { .main-nav { padding-top: 132px; } }
@media (max-width: 1200px) { .site-header .logo { position: relative; z-index: 11; } }
/* Przycisk „Zadzwoń” na dole menu mobilnego (na komputerze ukryty) */
.main-nav a.nav-call { display: none; }
@media (max-width: 1200px) {
  .main-nav a.nav-call { display: flex; justify-content: center; width: 100%; margin-top: 28px; padding: 16px 20px; border: 0; background: var(--wine); color: #fff; font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
}
/* Otwarte menu po przewinięciu: nagłówek (logo + krzyżyk) przypięty u góry ekranu */
@media (max-width: 1200px) {
  body.menu-open .site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 20; }
}
/* Lightbox galerii realizacji */
body.lightbox-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; background: rgba(24, 19, 15, .94); }
.lightbox[hidden] { display: none; }
.lightbox-figure { grid-column: 2; margin: 0; display: grid; justify-items: center; gap: 12px; }
.lightbox-figure img { max-width: 100%; max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); object-fit: contain; display: block; }
.lightbox-figure figcaption { color: #f3ece3; font-size: 15px; text-align: center; }
.lightbox button { border: 0; background: transparent; color: #fff; cursor: pointer; line-height: 1; }
.lightbox-prev, .lightbox-next { height: 100%; font-size: 54px; opacity: .8; }
.lightbox-prev:hover, .lightbox-next:hover, .lightbox-close:hover { opacity: 1; }
.lightbox-prev { grid-column: 1; } .lightbox-next { grid-column: 3; }
.lightbox-close { position: absolute; top: 12px; right: 14px; width: 48px; height: 48px; font-size: 40px; opacity: .85; }
.lightbox-count { position: absolute; top: 24px; left: 0; right: 0; margin: 0; color: #cfc4b7; font-size: 13px; letter-spacing: .1em; text-align: center; pointer-events: none; }
@media (max-width: 640px) {
  .lightbox { grid-template-columns: 0 1fr 0; }
  .lightbox-figure { padding: 0 10px; }
  .lightbox-prev, .lightbox-next { position: absolute; bottom: 14px; height: 52px; width: 52px; font-size: 42px; }
  .lightbox-prev { left: 12px; } .lightbox-next { right: 12px; }
}
/* Lightbox: poprawki (ciemniejsze tło, okrągłe strzałki, na telefonie pasek na dole) */
.lightbox { background: #15110e; }
.lightbox:focus { outline: none; }
.lightbox button:focus { outline: none; }
.lightbox button:focus-visible { outline: 2px solid #f3ece3; outline-offset: 2px; }
.lightbox-prev, .lightbox-next { justify-self: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .12) !important; font-size: 34px; display: grid; place-items: center; padding: 0 0 4px; }
@media (max-width: 640px) {
  .lightbox { grid-template-columns: 1fr; padding: 64px 0 88px; align-items: center; }
  .lightbox-figure { grid-column: 1; }
  .lightbox-figure img { max-height: calc(100vh - 210px); max-height: calc(100dvh - 210px); }
  .lightbox-prev, .lightbox-next { position: absolute; bottom: 20px; }
  .lightbox-prev { left: 24px; } .lightbox-next { right: 24px; }
  .lightbox-count { top: auto; bottom: 36px; }
}
/* Telefon: większy napis przy logo; hamburger bez ramki po kliknięciu (ramka tylko z klawiatury) */
@media (max-width: 520px) {
  .site-header .logo-copy strong { font-size: 27px; }
  .site-header .logo-copy small { margin-top: 6px; font-size: 13.5px; }
}
@media (max-width: 370px) {
  .site-header .logo-copy strong { font-size: 24px; }
  .site-header .logo-copy small { font-size: 12px; }
}
.menu-toggle:focus:not(:focus-visible) { outline: none; }

/* Animacje: płynne przejście między podstronami (View Transitions; starsze przeglądarki bez zmian) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
/* Menu mobilne: pozycje wjeżdżają po kolei, dotknięta pozycja reaguje od razu */
@media (max-width: 1200px) {
  .main-nav a { opacity: 0; transform: translateY(10px); transition: opacity .3s ease, transform .3s ease, color .15s ease, padding-left .15s ease; }
  .main-nav.is-open a { opacity: 1; transform: none; }
  .main-nav.is-open a:nth-child(1) { transition-delay: 40ms; }
  .main-nav.is-open a:nth-child(2) { transition-delay: 80ms; }
  .main-nav.is-open a:nth-child(3) { transition-delay: 120ms; }
  .main-nav.is-open a:nth-child(4) { transition-delay: 160ms; }
  .main-nav.is-open a:nth-child(5) { transition-delay: 200ms; }
  .main-nav.is-open a:nth-child(6) { transition-delay: 240ms; }
  .main-nav.is-open a:nth-child(7) { transition-delay: 280ms; }
  .main-nav a:active { color: var(--wine); padding-left: 8px; }
  .main-nav a.nav-call:active { color: #fff; padding-left: 20px; opacity: .85; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .main-nav a, .main-nav.is-open a { transition: none; transform: none; }
}
/* Opinie klientów (strona główna) */
.review { margin: 0; }
.info-card.review .review-stars { margin: 0 0 12px; color: #c08a3e; font-size: 18px; letter-spacing: .12em; }
.review blockquote { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 19px; line-height: 1.5; }
.review figcaption { margin-top: auto; padding-top: 18px; color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: .04em; }

/* Krótki pasek kontaktu przed stopką (pełne dane kontaktowe są w stopce i na /kontakt) */
.cta-band .cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band h2 { margin: 6px 0 10px; font-size: clamp(28px, 2.8vw, 38px); line-height: 1.15; }
.cta-band .cta-inner p:not(.eyebrow) { margin: 0; max-width: 560px; color: var(--muted, #6b625a); }
.cta-band .contact-buttons { flex-shrink: 0; margin: 0; }
@media (max-width: 860px) { .cta-band .cta-inner { flex-direction: column; align-items: flex-start; gap: 22px; } }

/* Karty oferty: cała karta jest linkiem */
a.product-card { display: block; color: inherit; text-decoration: none; }
a.product-card:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.product-card h3 span { display: inline-block; margin-left: 6px; color: var(--wine); transition: transform .2s ease; }
a.product-card:hover h3 span { transform: translateX(4px); }
.formats-footer--center { justify-content: center; }

/* Przyciski: po najechaniu tylko zmiana koloru, bez podnoszenia */
.button:hover, .button:focus-visible { transform: none; }

/* Karty informacyjne na wszystkich stronach: najechanie jak na kartach oferty */
.info-card { transition: transform .2s ease, box-shadow .2s ease; }
.info-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(51,40,29,.11); }

/* Opinie: 4 karty w rzędzie, 2 na tablecie, 1 na telefonie */
.info-grid.reviews { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .info-grid.reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .info-grid.reviews { grid-template-columns: 1fr; } }

/* Zdjęcia realizacji: najechanie jak na kartach oferty, bez bordowej ramki fokusu */
.work { transition: transform .2s ease, box-shadow .2s ease; }
.work:hover, .work:has(a:focus-visible) { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(51,40,29,.11); }
.work a:focus, .work a:focus-visible { outline: none; }
.formats-footer--center .contact-buttons { justify-content: center; }

/* Karta informacyjna klikalna w całości (Podobrazia: wymiary i formaty) */
a.info-card--link { color: inherit; text-decoration: none; }
.info-card--link .info-link { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; color: var(--wine); font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.info-card--link .info-link span { transition: transform .2s ease; }
.info-card--link:hover .info-link span { transform: translateX(4px); }
a.info-card--link:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.steps li { transition: transform .2s ease, box-shadow .2s ease; }
.steps li:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(51,40,29,.11); }
.spec-card .spec-size + .section-diagram { margin: 22px 0 12px; }
.spec-card .spec-size { text-align: center; }

/* Krosno 3D: szeroka karta na początku drugiego rzędu, bardziej widoczna */
@media (min-width: 841px) {
  .spec-card--text:not(.spec-card--special) { grid-column: auto; }
  .spec-card--special { grid-column: span 2; }
}
.spec-card--special { justify-content: center; border: 2px solid var(--wine); background: var(--paper); }
.spec-card--special .eyebrow { color: var(--wine); }
.spec-card--special h3 { font-size: clamp(26px, 2.4vw, 32px); }

/* Krosna: karta Wykonanie na pełną szerokość, cechy w czterech kolumnach */
@media (min-width: 841px) { .spec-card--text.spec-card--build { grid-column: 1 / -1; } }
.spec-list--row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 16px; }
.spec-list--row li { padding: 2px 22px 2px 0; margin-right: 22px; border-right: 1px solid var(--line); font-size: 15px; line-height: 1.55; }
.spec-list--row li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.spec-list--row li::before { content: none; }
.spec-list--row li { padding-left: 0; }
@media (max-width: 900px) {
  .spec-list--row { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .spec-list--row li:nth-child(2n) { border-right: 0; margin-right: 0; padding-right: 0; }
}
@media (max-width: 520px) { .spec-list--row { grid-template-columns: 1fr; } .spec-list--row li { border-right: 0; margin-right: 0; } }
@media (min-width: 841px) { .spec-card--special { grid-column: 1 / -1; } }

/* Nagłówki podstron: dwa przyciski ze strzałkami mieszczą się w jednym rzędzie */
@media (min-width: 841px) {
  .page-hero .hero-buttons { gap: 12px; }
  .page-hero .hero-buttons .button { min-width: 0; padding: 13px 18px; gap: 12px; font-size: 13px; letter-spacing: .06em; }
}

/* Akapity pod nagłówkami sekcji: równe linie, bez wiszących spójników */
.formats-intro { line-height: 1.75; text-wrap: balance; }

/* Formaty francuskie jako bloczki, tak jak wymiary standardowe */
.size-groups--french { margin-top: 28px; }
.size-list--french li { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.size-list--french .size-nr { color: var(--wine); font-size: 12px; font-weight: 600; letter-spacing: .02em; }

/* Facebook: nagłówek, menu mobilne, stopka, sekcja Promocje (15.10.2026) */
.fb-icon, .header-actions .fb-icon, .main-nav .fb-icon { width: 16px; height: 16px; fill: currentColor; flex: none; }
.site-header .header-actions { flex-direction: column; align-items: flex-end; gap: 4px; }
.header-fb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .03em; }
.header-fb:hover, .header-fb:focus-visible { color: var(--wine); text-decoration: underline; text-underline-offset: 4px; }
.main-nav a.nav-fb { display: none; }
@media (max-width: 1200px) {
  .main-nav a.nav-fb { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; margin-top: 10px; padding: 14px 20px; border: 1px solid var(--wine); color: var(--wine); font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
}
.footer-fb { display: inline-flex; align-items: center; gap: 6px; }
.promo { text-align: center; }
.promo .promo-text { max-width: 560px; margin: 0 auto 28px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.promo .button { display: inline-flex; align-items: center; gap: 10px; }
.promo .button .fb-icon { width: 18px; height: 18px; }
