/* Siltech Brand Guidelines 2024 — warstwa marki.
   Kolory: Blue #005CA9 i Dark Blue #1A2B3C (podstawowe), White, Black #1D1D1C; Gold #BE9451 (uzupełniający, tytuły i wyróżnienia).
   Krój: Effra (Light jako standard). Do czasu wgrania licencjonowanych plików Effra stroną rysuje Figtree. */
:root {
  --navy: #1a2b3c;
  --navy-2: #22374d;
  --black: #1d1d1c;
  --blue: #005ca9;
  --blue-deep: #004a88;
  --blue-hi: #5b9bd5;
  --gold: #be9451;
  --gold-hi: #d4b37f;
  --paper: #f4f5f6;
  --steel: #556273;
  --silver: #c3cad3;
  --silver-hi: #e7eaee;
  --line: rgba(26, 43, 60, 0.14);
  --line-dark: rgba(231, 234, 238, 0.16);
  --display: "Effra", "Figtree", "Helvetica Neue", Arial, sans-serif;
  --text: "Effra", "Figtree", "Helvetica Neue", Arial, sans-serif;
}

body { font-weight: 400; color: var(--black); }
h1, h2, h3, h4 { font-variation-settings: normal; letter-spacing: -0.01em; color: inherit; }
h1, h2 { font-weight: 300; }
h3, h4 { font-weight: 500; }
.lead { font-weight: 300; }

/* Ciemne sekcje jak w brandbooku: granat przechodzący w czerń */
.on-dark, .feature, .page-hero { background: linear-gradient(180deg, var(--navy) 0%, var(--black) 100%); }
.site-header { background: rgba(26, 43, 60, 0.97); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(26, 43, 60, 0.9); } }
.site-footer { background: var(--black); }
.feature-media::after { background: linear-gradient(90deg, rgba(26,43,60,.94) 0%, rgba(26,43,60,.55) 45%, rgba(26,43,60,0) 75%); }
.page-hero .copy { background: linear-gradient(0deg, rgba(29,29,28,.92), rgba(26,43,60,0)); }
@media (max-width: 720px) {
  .feature-media::after { background: linear-gradient(0deg, rgba(26,43,60,1) 0%, rgba(26,43,60,.2) 70%); }
}

/* Logo (wersja odwrócona na granatowym nagłówku) */
.site-header .wrap { height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--silver); }
.logo img { height: 46px; width: auto; display: block; }
.logo span { font-size: 0.9rem; letter-spacing: 0.02em; border-left: 1px solid var(--line-dark); padding-left: 12px; line-height: 1.2; }
@media (max-width: 880px) { .nav { top: 76px; } }

/* Przyciski: główne CTA w kolorze Siltech Blue, złoto zostaje do wyróżnień */
.btn { font-weight: 500; border-color: var(--silver); }
.btn:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn.solid, .header-cta { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn.solid:hover, .header-cta:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn.ink { border-color: var(--navy); color: var(--navy); }
.btn.ink:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.mobile-cta { background: var(--navy); }
.mobile-cta a + a { background: var(--blue); }
.tech-tabs button[aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--blue-hi); }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--blue-hi); }
@media (max-width: 880px) { .nav a[aria-current="page"] { color: var(--blue-hi); } }
:focus-visible { outline-color: var(--blue-hi); }

/* Linki i wyróżnienia */
.text-link, .ask, .rung .go { border-bottom-color: var(--blue); }
.text-link:hover, .ask:hover, .rung:hover h3 { color: var(--blue); }
.note { border-left-color: var(--blue); }

/* Liczby z brandbooka */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 36px; border-top: 1px solid var(--line); }
.stats div { padding: 18px 16px 0 0; }
.stats strong { display: block; font-family: var(--display); font-weight: 300; font-size: clamp(1.8rem, 3.2vw, 2.4rem); line-height: 1.1; color: var(--blue); }
.stats span { font-size: 0.92rem; color: var(--steel); }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } .stats div { padding-bottom: 12px; } }

.brand-line { color: var(--silver); font-size: 0.85rem; }
.footer-logo { height: 34px; width: auto; display: inline-block; vertical-align: middle; margin-right: 12px; }

/* Galeria (kolekcja CMS "galeria") */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.shot { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.shot img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; transition: transform 0.4s ease; }
.shot:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .shot img { transition: none; } .shot:hover img { transform: none; } }
@media (max-width: 720px) { .shots { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* Dealerzy */
.dealer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 28px; }
.dealer { background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.dealer-top { display: flex; align-items: center; gap: 14px; }
.dealer-top img { height: 38px; width: auto; max-width: 110px; object-fit: contain; }
.dealer-city { display: block; font-size: 0.85rem; color: var(--steel); }
.dealer-name { margin: 2px 0 0; font-size: 1.15rem; font-weight: 500; }
.dealer-line { margin: 0; font-size: 0.95rem; }
.dealer-line a { text-decoration: none; border-bottom: 1px solid var(--line); }
.dealer-line a:hover { border-bottom-color: var(--blue); color: var(--blue); }
.dealer-hours { color: var(--steel); }
.dealer .chips { margin-top: 2px; }
.dealer-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.dealer-cta .btn { padding: 9px 14px; font-size: 0.92rem; }
.dealer-note, .dealer-more { margin-top: 20px; font-size: 0.95rem; color: var(--steel); }
.dealer-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dealer-filter button { font: inherit; font-size: 0.92rem; padding: 8px 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--white); color: var(--navy); cursor: pointer; }
.dealer-filter button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.dealers-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.dealers-hero .crumbs { margin-bottom: 14px; }
@media (max-width: 880px) {
  .mobile-cta { grid-template-columns: repeat(3, 1fr); }
  .mobile-cta a + a { background: var(--navy-2); }
  .mobile-cta a:last-child { background: var(--blue); }
}
.dealers-hero + section { padding-top: clamp(28px, 4vw, 48px); }
@media (max-width: 400px) { .dealer-grid { grid-template-columns: 1fr; } }

/* Master Crown */
.shots.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) { .shots.four { grid-template-columns: repeat(2, 1fr); } }
.mc .wrap + .wrap { margin-top: clamp(32px, 5vw, 56px); }
.mc-box h3 { font-size: 1.5rem; font-weight: 300; }

/* Karty wersji (słuchawkowe, Octopus) */
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 28px; }
.spec-card { background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.spec-card h3 { margin: 0; font-size: 1.35rem; font-weight: 400; }
.spec-card p { margin: 0; color: var(--steel); }
.spec-level { color: var(--gold); font-size: 0.92rem; font-weight: 500; }
.spec-card .ask { margin-top: auto; padding-top: 8px; }
.shots.duo { grid-template-columns: repeat(2, 1fr); }
.shots.duo .shot img { aspect-ratio: 3 / 2; }
@media (max-width: 720px) { .shots.duo { grid-template-columns: 1fr; } }
.hp-feature .wrap + .wrap { margin-top: clamp(28px, 4vw, 48px); }

/* Menu zwija się poniżej 1100 px (8 pozycji) */
@media (max-width: 1100px) {
  .nav-toggle { display: inline-block; margin-left: auto; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); border-bottom: 1px solid var(--line-dark); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px var(--gutter); border-bottom: 1px solid var(--line-dark); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line-dark); color: var(--blue-hi); }
}
.hp-wide { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; margin-top: 24px; border-radius: 4px; display: block; }

/* Galerie: więcej zdjęć, układ poziomy, zdjęcia w kartach wersji */
.shots-more { margin-top: 20px; }
.on-dark .shots-more { color: var(--white); border-color: var(--silver); }
.shot[hidden] { display: none; }
.shots.wide .shot img { aspect-ratio: 3 / 2; }
@media (max-width: 720px) { .shots.wide { grid-template-columns: 1fr; } }
.spec-pic { margin: -24px -24px 6px; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; border-radius: 4px 4px 0 0; }
.spec-pic img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }

/* Strona główna: spokojniejszy, elegancki nagłówek powitalny */
.hero { padding: clamp(44px, 6vw, 84px) 0 clamp(48px, 6.5vw, 88px); }
.hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(32px, 6vw, 96px); }
.hero .since { display: inline-block; color: var(--gold); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid rgba(190, 148, 81, 0.45); }
.hero h1 { font-size: clamp(1.9rem, 3.2vw, 2.85rem); font-weight: 300; line-height: 1.14; letter-spacing: -0.005em; max-width: 19ch; margin-bottom: 0.55em; }
.hero .lead { font-size: clamp(1.02rem, 1.25vw, 1.15rem); max-width: 36em; color: var(--silver-hi); opacity: 0.9; }
.xsec-wrap { display: flex; justify-content: center; }
.hero .xsec { width: 100%; max-width: 320px; height: auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35)); }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .xsec { max-width: 170px; }
  .hero h1 { max-width: none; }
}

/* Ceny przy produktach */
.price { margin: 8px 0 0; font-size: 0.95rem; line-height: 1.35; color: var(--navy); }
.price strong { font-weight: 600; }
.price span { color: var(--steel); font-size: 0.85rem; }
.on-dark .price { color: var(--white); }
.on-dark .price span { color: var(--silver); }
.price-note { margin-top: 18px; font-size: 0.85rem; color: var(--steel); }
.on-dark .price-note { color: var(--silver); }
.price-note a { color: inherit; }

/* Działy w seriach: karty produktów z opisem i parametrami */
.dzial-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 4px; }
.dzial-nav a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 20px; text-decoration: none; font-size: 0.92rem; color: var(--navy); background: var(--white); }
.dzial-nav a span { color: var(--steel); font-size: 0.82rem; margin-left: 2px; }
.dzial-nav a:hover { border-color: var(--blue); color: var(--blue); }
.dzial { margin-top: clamp(32px, 4vw, 52px); scroll-margin-top: 96px; }
.dzial-h { font-size: 1.4rem; font-weight: 400; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin: 0 0 18px; }
.on-dark .dzial-h { border-bottom-color: var(--line-dark); }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.prod { background: var(--white); color: var(--black); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.prod-pic { padding: 0; border: 0; background: #0f1722; cursor: zoom-in; display: block; width: 100%; }
.prod-pic img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.prod-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod-type { font-size: 0.85rem; color: var(--gold); font-weight: 500; }
.prod h4 { margin: 0; font-size: 1.15rem; font-weight: 500; color: var(--navy); }
.prod p { margin: 0; color: var(--steel); font-size: 0.95rem; }
.prod-specs summary { cursor: pointer; font-size: 0.9rem; color: var(--blue); }
.prod-specs ul { margin: 8px 0 0; padding-left: 18px; font-size: 0.88rem; color: var(--steel); }
.prod-specs li + li { margin-top: 3px; }
.prod .price { margin-top: auto; padding-top: 6px; color: var(--navy); }
.prod .price span { color: var(--steel); }
.prod .ask { align-self: flex-start; }
@media (max-width: 400px) { .prod-grid { grid-template-columns: 1fr; } }

/* Crown: pełne opisy, rozwijane akapity, nawigacja rodzin */
details.more { margin-top: 6px; }
details.more summary { cursor: pointer; color: var(--blue); font-size: 0.92rem; margin: 4px 0; }
.on-dark details.more summary { color: var(--blue-hi); }
details.more[open] summary { margin-bottom: 8px; }
.prod details.more p { margin-top: 8px; }
.series-intro { max-width: 76ch; }
.series-intro p { margin: 0 0 14px; }
.series-intro p:first-child { font-size: 1.12rem; font-weight: 300; }
.dzial-intro { max-width: 76ch; margin: -6px 0 18px; color: var(--steel); }
.dzial-intro p { margin: 0 0 10px; }
.sub-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 28px; }
.sub-nav a { padding: 9px 16px; border-radius: 20px; text-decoration: none; font-size: 0.95rem; background: var(--navy); color: var(--white); }
.sub-nav a:hover { background: var(--blue); }
.family .text-link { display: inline-block; margin: 6px 0 10px; }

/* Śródtytuły w długich opisach */
.more-h { margin: 16px 0 6px; font-size: 1rem; font-weight: 500; color: var(--navy); }
.on-dark .more-h { color: var(--white); }
.series-intro .more-h { font-size: 1.1rem; }

/* O Siltech */
.tech-sec .split { align-items: start; }
.tech-sec .series-intro { max-width: none; }
.tech-sec .photo { position: sticky; top: 96px; }
.tech-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tech-toc a { padding: 9px 16px; border-radius: 20px; text-decoration: none; font-size: 0.95rem; border: 1px solid var(--line-dark); color: var(--white); }
.tech-toc a:hover { background: var(--blue); border-color: var(--blue); }
@media (max-width: 880px) { .tech-sec .photo { position: static; } }

/* Karty: małe rodziny w jednym rzędzie, samotna karta szeroka */
.prod-grid { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.prod-grid > .prod:only-child { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.prod-grid > .prod:only-child:not(:has(.prod-pic)) { display: flex; }
.prod-grid > .prod:only-child .prod-pic img { height: 100%; aspect-ratio: auto; min-height: 320px; }
.prod-grid > .prod:only-child .prod-body { padding: 26px 30px 28px; max-width: 78ch; }
@media (max-width: 760px) { .prod-grid > .prod:only-child { display: flex; } .prod-grid > .prod:only-child .prod-pic img { aspect-ratio: 3 / 2; min-height: 0; height: auto; } }

/* Karta bez zdjęcia: granatowe pole z logo */
.prod:not(:has(.prod-pic))::before { content: ""; display: block; aspect-ratio: 3 / 2; background: url(siltech-logo-reverse.svg) center / 84px auto no-repeat, linear-gradient(160deg, var(--navy) 0%, var(--black) 100%); }
.prod-grid > .prod:only-child:not(:has(.prod-pic))::before { display: none; }

/* Przejrzystość: przyklejony pasek kategorii, równe karty, okno szczegółów */
.dzial-nav { position: sticky; top: 76px; z-index: 20; background: var(--sticky-bg, var(--paper)); padding: 12px 0; margin: 20px 0 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.dzial-nav::-webkit-scrollbar { display: none; }
.dzial-nav a { white-space: nowrap; flex: 0 0 auto; }
.dzial-nav a.on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.dzial-nav a.on span { color: var(--silver); }
.on-white { --sticky-bg: var(--white); }
.dzial { scroll-margin-top: 150px; }
.prod { transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.prod:hover { border-color: rgba(0, 92, 169, 0.35); box-shadow: 0 10px 30px rgba(26, 43, 60, 0.08); }
.prod h4 { cursor: pointer; }
.prod h4:hover { color: var(--blue); }
.prod-excerpt { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.prod-body { gap: 10px; }
.prod .price { margin-top: auto; padding-top: 4px; }
.prod-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.prod-actions .btn { padding: 9px 18px; font-size: 0.92rem; }
.prod-ph { aspect-ratio: 3 / 2; background: url(siltech-logo-reverse.svg) center / 84px auto no-repeat, linear-gradient(160deg, var(--navy) 0%, var(--black) 100%); }
.prod:not(:has(.prod-pic))::before { content: none; display: none; }
.prod-grid > .prod:only-child .prod-ph { height: 100%; min-height: 320px; aspect-ratio: auto; }
.prod-grid > .prod:only-child .prod-excerpt { -webkit-line-clamp: 8; }
dialog.prod-dialog { width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 6px; overflow: auto; background: var(--white); color: var(--black); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
dialog.prod-dialog::backdrop { background: rgba(13, 20, 30, 0.72); }
.prod-dlg-inner { position: relative; }
.prod-dlg-img { width: 100%; max-height: 440px; object-fit: cover; display: block; background: #0f1722; }
.prod-dlg-ph { height: 180px; background: url(siltech-logo-reverse.svg) center / 96px auto no-repeat, linear-gradient(160deg, var(--navy) 0%, var(--black) 100%); }
.prod-dlg-body { padding: 26px clamp(20px, 4vw, 48px) 40px; }
.prod-dlg-body h3 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); font-weight: 300; margin: 4px 0 6px; color: var(--navy); }
.prod-dlg-body .btn-row { margin: 18px 0 8px; }
.prod-dlg-body p { color: var(--steel); max-width: 72ch; }
.prod-dlg-body .more-h { margin-top: 22px; }
.prod-close { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.94); color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 2; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); }
.prod-spec-list { list-style: none; padding: 0; margin: 22px 0 18px; border-top: 1px solid var(--line); max-width: 72ch; }
.prod-spec-list li { display: grid; grid-template-columns: 190px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.prod-spec-list li span { color: var(--steel); }
@media (max-width: 600px) { .prod-spec-list li { grid-template-columns: 1fr; gap: 2px; } dialog.prod-dialog { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; } }
@media (max-width: 880px) { .dzial-nav { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); } }

/* Przyciski działów pod opisem serii */
.cat-bar { padding: 26px 0 30px; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cat-bar h2 { font-size: 1.25rem; font-weight: 400; margin: 0 0 14px; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cat-nav .cat-label { display: none; }
.cat-nav a { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 4px; background: var(--navy); color: var(--white); text-decoration: none; font-weight: 500; font-size: 0.98rem; transition: background 0.2s ease; }
.cat-nav a span { color: var(--silver); font-weight: 400; font-size: 0.85rem; }
.cat-nav a:hover, .cat-nav a:focus-visible { background: var(--blue); }
.cat-nav a::after { content: "↓"; font-weight: 400; opacity: 0.7; }
@media (max-width: 720px) { .cat-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); } .cat-nav::-webkit-scrollbar { display: none; } .cat-nav a { white-space: nowrap; flex: 0 0 auto; } }

/* Fakty serii w kolumnie opisu */
.specs.inline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 26px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); border-bottom: 0; }
.specs.inline > div { padding: 0; border: 0; margin: 0; }
.specs.inline dt { font-size: 0.82rem; color: var(--steel); margin: 0; }
.specs.inline dd { margin: 4px 0 0; font-size: 1rem; line-height: 1.35; color: var(--navy); }
@media (max-width: 520px) { .specs.inline { grid-template-columns: 1fr; gap: 12px; } }

/* Crown: karty wyboru rodziny */
.fam-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 26px; }
.fam-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.fam-card:hover { border-color: rgba(0, 92, 169, 0.4); box-shadow: 0 12px 32px rgba(26, 43, 60, 0.1); transform: translateY(-2px); }
.fam-card img, .fam-card .prod-ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.fam-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fam-body h3 { margin: 0; font-size: 1.2rem; font-weight: 500; color: var(--navy); }
.fam-body p { margin: 0; color: var(--steel); font-size: 0.92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fam-body .price { margin-top: auto; }
.fam-go { color: var(--blue); font-weight: 500; font-size: 0.95rem; }
.fam-go::after { content: " ↓"; }
@media (prefers-reduced-motion: reduce) { .fam-card, .fam-card:hover { transition: none; transform: none; } }
/* fam-grid 5 */
@media (min-width: 1100px) { .fam-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 700px) and (max-width: 1099px) { .fam-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 699px) { .fam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .fam-body { padding: 12px 12px 14px; } .fam-body p { -webkit-line-clamp: 2; } }

/* Przeglądarka galerii */
img.photo { cursor: zoom-in; }
dialog.gal-viewer { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: rgba(8, 12, 20, 0.96); color: var(--white); display: none; }
dialog.gal-viewer[open] { display: grid; grid-template-rows: auto 1fr auto auto; }
dialog.gal-viewer::backdrop { background: rgba(8, 12, 20, 0.9); }
.gal-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.gal-count { font-size: 0.95rem; color: var(--silver); letter-spacing: 0.04em; }
.gal-x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.06); color: var(--white); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.gal-x:hover { background: var(--blue); border-color: var(--blue); }
.gal-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 72px; }
.gal-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 3px; transition: opacity 0.25s ease; user-select: none; }
.gal-img.loading { opacity: 0.35; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.08); color: var(--white); font-size: 2rem; line-height: 1; cursor: pointer; }
.gal-nav:hover { background: var(--blue); border-color: var(--blue); }
.gal-prev { left: 14px; } .gal-next { right: 14px; }
.gal-viewer.single .gal-nav, .gal-viewer.single .gal-thumbs { display: none; }
.gal-cap { text-align: center; margin: 12px 18px 6px; color: var(--silver-hi); font-size: 0.98rem; min-height: 1.4em; }
.gal-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 8px 18px 18px; justify-content: safe center; scrollbar-width: thin; }
.gal-thumbs button { flex: 0 0 auto; width: 84px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 3px; background: none; cursor: pointer; opacity: 0.55; overflow: hidden; }
.gal-thumbs button.on, .gal-thumbs button:hover { opacity: 1; border-color: var(--gold); }
.gal-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 720px) { .gal-stage { padding: 0 8px; } .gal-nav { width: 42px; height: 42px; font-size: 1.6rem; background: rgba(8, 12, 20, 0.55); } .gal-prev { left: 6px; } .gal-next { right: 6px; } .gal-thumbs button { width: 64px; height: 46px; } }
@media (prefers-reduced-motion: reduce) { .gal-img { transition: none; } }

/* Kable słuchawkowe: trzy poziomy */
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.level { background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.level::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--steel); }
.level.l2::before { background: var(--blue); } .level.l3::before { background: var(--gold); }
.level .lv { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.level h3 { margin: 0; font-size: 1.35rem; font-weight: 400; color: var(--navy); }
.level dl { margin: 6px 0 0; display: grid; gap: 8px; }
.level dt { font-size: 0.8rem; color: var(--steel); }
.level dd { margin: 2px 0 0; font-size: 0.98rem; }
.level .bars { display: flex; gap: 4px; margin-top: 4px; }
.level .bars i { width: 26px; height: 4px; border-radius: 2px; background: var(--line); }
.level .bars i.on { background: var(--navy); }
.level .row { display: flex; gap: 16px; align-items: center; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
@media (max-width: 880px) { .levels { grid-template-columns: 1fr; } }


/* Karta produktu: przyciski akcji */
.prod-dlg-body .dlg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; padding: 12px; background: #f2f4f7; border-radius: 8px; }
.pa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 6px; font-size: 0.98rem; font-weight: 500; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.pa-btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pa-primary { background: var(--blue); color: var(--white); box-shadow: 0 6px 16px rgba(30, 80, 160, 0.22); }
.pa-primary:hover { background: var(--blue-deep, var(--navy)); color: var(--white); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(30, 80, 160, 0.28); }
.pa-ghost { background: var(--white); color: var(--navy); border: 1px solid rgba(22, 34, 52, 0.12); }
.pa-ghost svg { color: var(--blue); }
.pa-ghost:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(22, 34, 52, 0.10); }
.pa-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (min-width: 720px) { .pa-primary { flex: 1 1 auto; max-width: 300px; } }
@media (max-width: 719px) {
  .prod-dlg-body .dlg-actions { padding: 10px; }
  .pa-btn { flex: 1 1 calc(50% - 5px); padding: 0 14px; font-size: 0.94rem; }
  .pa-primary { flex-basis: 100%; }
}


/* Menu: Cennik (PDF) */
.nav a.nav-pdf { display: inline-flex; align-items: center; gap: 7px; }
.nav .pdf-tag { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em; line-height: 1; padding: 3px 5px 2px; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 3px; color: rgba(255, 255, 255, 0.85); transition: border-color .18s ease, color .18s ease; }
.nav a.nav-pdf:hover .pdf-tag { border-color: var(--blue-hi); color: var(--white); }

@media (min-width: 1101px) { .nav a { white-space: nowrap; } .nav { gap: clamp(12px, 1.25vw, 26px); } }
@media (min-width: 1101px) and (max-width: 1300px) { .nav a { font-size: 0.9rem; } .site-header .wrap { gap: 16px; } }

/* Archiwum, stopka, wąska kolumna */
[data-archiwum] .price, [data-archiwum] .price-note { display: none; }
.archive-note { display: inline-block; margin: 0 0 18px; padding: 8px 14px; border-left: 3px solid var(--blue); background: #f2f4f7; color: var(--steel); font-size: 0.95rem; }
.narrow-wrap { max-width: 820px; }
.site-footer .footer-links { display: inline-flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer .footer-links a { color: inherit; opacity: 0.85; }
.site-footer .footer-links a:hover { opacity: 1; }

/* Crown: wybór poziomu (3 karty) */
.fam-grid.levels { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 34px; }
.fam-grid.levels .fam-card { border-radius: 8px; border-color: rgba(22, 34, 52, 0.10); }
.fam-grid.levels .fam-card img, .fam-grid.levels .fam-card .prod-ph { aspect-ratio: 16 / 10; }
.fam-grid.levels .fam-body { padding: 22px 26px 26px; gap: 10px; }
.fam-grid.levels .fam-body h3 { font-size: 1.5rem; font-weight: 400; letter-spacing: -0.005em; }
.fam-grid.levels .fam-body p { font-size: 0.98rem; line-height: 1.6; -webkit-line-clamp: 4; }
.fam-grid.levels .price { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 1.02rem; }
.lvl-tag { display: flex; align-items: center; gap: 10px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.lvl-bars { display: inline-flex; align-items: flex-end; gap: 3px; }
.lvl-bars i { display: block; width: 5px; border-radius: 1px; background: #d4dae2; }
.lvl-bars i:nth-child(1) { height: 7px; } .lvl-bars i:nth-child(2) { height: 11px; } .lvl-bars i:nth-child(3) { height: 15px; }
.lvl-bars i.on { background: var(--blue); }
.fam-grid.levels .fam-go { align-self: flex-start; margin-top: 4px; padding: 10px 18px; border: 1px solid var(--navy); border-radius: 6px; color: var(--navy); transition: background-color .18s ease, color .18s ease; }
.fam-grid.levels .fam-card:hover .fam-go { background: var(--navy); color: var(--white); }
.lead-sm { font-size: 1.08rem; color: var(--steel); max-width: 62ch; }
@media (max-width: 899px) {
  .fam-grid.levels { grid-template-columns: 1fr; gap: 18px; }
  .fam-grid.levels .fam-card img, .fam-grid.levels .fam-card .prod-ph { aspect-ratio: 16 / 9; }
  .fam-grid.levels .fam-body { padding: 18px 20px 22px; }
  .fam-grid.levels .fam-body p { -webkit-line-clamp: 3; }
}
/* Logo nie nachodzi na menu */
.site-header .logo { flex: none; }
@media (min-width: 1101px) and (max-width: 1380px) { .site-header .logo span { display: none; } }

/* Strona główna: hero ze zdjęciem */
.hero-photo { position: relative; overflow: hidden; display: flex; align-items: center; min-height: clamp(540px, 80vh, 780px); padding: 0; }
.hero-photo .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(12, 18, 28, 0.94) 0%, rgba(12, 18, 28, 0.82) 34%, rgba(12, 18, 28, 0.35) 62%, rgba(12, 18, 28, 0.05) 100%); }
.hero-photo .hero-copy { position: relative; z-index: 2; width: 100%; padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }
.hero-photo h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); font-weight: 300; line-height: 1.1; max-width: 18ch; margin-bottom: 0.5em; }
.hero-photo .lead { max-width: 33em; }
.hero-photo .btn-row { margin-top: 28px; }
.hero-photo .btn:not(.solid) { border-color: rgba(255, 255, 255, 0.55); color: var(--white); background: transparent; }
.hero-photo .btn:not(.solid):hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.tech-home h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 300; margin: 0 0 0.5em; }
@media (max-width: 880px) {
  .hero-photo { align-items: flex-end; min-height: 640px; }
  .hero-photo .hero-bg { object-position: 72% 30%; height: 62%; }
  .hero-photo::before { background: linear-gradient(180deg, rgba(12, 18, 28, 0) 0%, rgba(12, 18, 28, 0.2) 34%, rgba(12, 18, 28, 0.96) 60%, rgba(12, 18, 28, 1) 100%); }
  .hero-photo .hero-copy { padding-top: 260px; padding-bottom: 44px; }
  .hero-photo .btn-row .btn { flex: 1 1 100%; text-align: center; }
}

/* Dealerzy: karty v2 */
.dealer-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.dealer { position: relative; overflow: hidden; padding: 26px 26px 24px; gap: 12px; border: 1px solid rgba(22, 34, 52, 0.09); border-radius: 10px; background: var(--white); box-shadow: 0 1px 2px rgba(22, 34, 52, 0.04), 0 10px 28px rgba(22, 34, 52, 0.05); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.dealer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--gold, #be9451), rgba(190, 148, 81, 0.25)); opacity: 0.85; }
.dealer:hover { transform: translateY(-2px); border-color: rgba(0, 92, 169, 0.22); box-shadow: 0 2px 4px rgba(22, 34, 52, 0.05), 0 18px 40px rgba(22, 34, 52, 0.10); }
.dealer-top { flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.dealer-top img { height: 46px; max-width: 170px; object-fit: contain; object-position: left center; }
.dealer .dealer-city { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold, #be9451); }
.dealer .dealer-name { margin: 4px 0 0; font-size: 1.32rem; font-weight: 400; color: var(--navy); line-height: 1.2; }
.dealer .dealer-line { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; line-height: 1.5; }
.dealer .dealer-line::before { content: ""; flex: none; width: 17px; height: 17px; margin-top: 3px; background: var(--blue); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/><circle cx='12' cy='9.5' r='2.5'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/><circle cx='12' cy='9.5' r='2.5'/></svg>") center / contain no-repeat; }
.dealer .dealer-hours::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'><circle cx='12' cy='12' r='8.5'/><path d='M12 7.5V12l3 2'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'><circle cx='12' cy='12' r='8.5'/><path d='M12 7.5V12l3 2'/></svg>"); background: var(--steel); }
.dealer .dealer-line a { border-bottom: 0; color: var(--navy); }
.dealer .dealer-line a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.dealer .chips { gap: 6px; margin-top: 4px; }
.dealer .chips li { font-size: 0.78rem; padding: 4px 10px; border: 0; border-radius: 999px; background: #eef1f5; color: var(--navy); }
.dealer .dealer-cta { gap: 8px; margin-top: auto; padding-top: 18px; }
.dealer .dealer-cta .btn { flex: 1 1 0; min-width: 0; text-align: center; justify-content: center; padding: 11px 12px; border-radius: 6px; font-size: 0.92rem; }
@media (prefers-reduced-motion: reduce) { .dealer, .dealer:hover { transition: none; transform: none; } }

/* Wideo */
.vid { margin: 0; }
.vid-frame { position: relative; border-radius: 10px; overflow: hidden; background: #0c121c; box-shadow: 0 18px 44px rgba(12, 18, 28, 0.22); }
.vid video { display: block; width: 100%; height: auto; object-fit: cover; background: #0c121c; }
.vid-portrait video { aspect-ratio: 4 / 5; }
.vid-amb video { aspect-ratio: 16 / 9; }
.vid-portrait { max-width: 460px; }
.vid-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border: 0; padding: 0; cursor: pointer; color: #fff; background: linear-gradient(180deg, rgba(12, 18, 28, 0) 45%, rgba(12, 18, 28, 0.6) 100%); }
.vid-play { position: relative; width: 78px; height: 78px; border-radius: 50%; background: rgba(255, 255, 255, 0.94); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); transition: transform .2s ease, background-color .2s ease; }
.vid-play::after { content: ""; position: absolute; left: 31px; top: 25px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent var(--navy); }
.vid-btn:hover .vid-play { transform: scale(1.06); background: #fff; }
.vid-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.vid-meta { position: absolute; left: 18px; bottom: 16px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.vid.on .vid-btn, .vid.on .vid-sound { display: none; }
.vid-sound { position: absolute; right: 14px; bottom: 14px; padding: 9px 15px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(12, 18, 28, 0.66); color: #fff; font: inherit; font-size: 0.85rem; cursor: pointer; backdrop-filter: blur(6px); }
.vid-sound:hover { background: rgba(12, 18, 28, 0.85); }
.vid figcaption { margin-top: 12px; font-size: 0.92rem; line-height: 1.55; color: var(--steel); max-width: 52ch; }
.on-dark .vid figcaption { color: var(--silver-hi); opacity: 0.85; }
.vid-band .eyebrow, .eyebrow { display: inline-block; margin-bottom: 14px; padding-bottom: 8px; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold, #be9451); border-bottom: 1px solid rgba(190, 148, 81, 0.45); }
.vid-band .split { align-items: center; }
@media (max-width: 880px) { .vid-portrait { max-width: none; } }

/* Bez stałego paska kontaktu na telefonie */
.mobile-cta { display: none !important; }
body { padding-bottom: 0 !important; }
.nav a.nav-mobile-only { display: none; }
@media (max-width: 1100px) {
  .nav a.nav-mobile-only { display: block; margin: 12px var(--gutter) 16px; padding: 14px 18px; border: 0; border-radius: 6px; background: var(--blue); color: var(--white); text-align: center; font-weight: 500; }
  .nav a.nav-mobile-only[aria-current="page"] { color: var(--white); }
}
