/* Zmiana modelu ma od razu pokazać galerię, bez animacji od góry strony. */
html:has(#wybor-modelu:target) { scroll-behavior: auto; }
.model-header { background: linear-gradient(135deg,var(--forest-deep),var(--forest)); padding-bottom: 24px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 22px; color: var(--muted); font-size: .78rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb span[aria-hidden] { opacity: .55; }
.model-route { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 24px; padding-top: 22px; scroll-margin-top: 16px; }
.model-route .breadcrumb { padding-top: 0; }
.model-tabs { display: flex; gap: 5px; }
.model-tabs a { display: block; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--forest); font-size: .7rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.model-tabs a[aria-current="page"], .model-tabs a:hover { color: #fff; border-color: var(--forest-deep); background: var(--forest-deep); }
.model-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px,4vw,64px); align-items: start; padding-top: 28px; padding-bottom: 76px; }
.model-gallery { min-width: 0; }
.model-photo { position: relative; display: block; overflow: hidden; border-radius: 20px; background: #e4daca; aspect-ratio: 5 / 7; cursor: zoom-in; }
.model-photo, .model-page .image-dialog img { touch-action: pan-y pinch-zoom; }
.model-photo picture, .model-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-zoom { position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--forest-deep); background: rgba(255,255,255,.9); font-size: 1.4rem; }
.gallery-thumbnails { display: flex; gap: 10px; margin-top: 14px; }
.gallery-thumbnail { display: block; width: 72px; padding: 3px; border: 1px solid transparent; border-radius: 11px; background: transparent; cursor: pointer; }
.gallery-thumbnail[aria-current="true"] { border-color: var(--forest); }
.gallery-thumbnail:hover { border-color: var(--muted); }
.gallery-thumbnail img { display: block; width: 100%; height: 80px; object-fit: cover; border-radius: 7px; }
.gallery-caption { margin: 12px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.6; }
.gallery-caption strong { color: var(--ink); font-weight: 600; }
.model-intro { padding-top: 14px; }
.model-intro .eyebrow { color: var(--forest); font-size: .7rem; }
.model-intro h1 { margin: 0; font-size: clamp(3.2rem,5.9vw,5rem); line-height: .94; letter-spacing: -.065em; }
.model-intro h1 span { display: block; color: var(--forest); }
.model-headline { margin: 22px 0 12px; font-size: 1.18rem; font-weight: 750; letter-spacing: -.025em; }
.model-description { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.75; }
.model-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 23px 0 26px; list-style: none; }
.model-tags li { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--forest-deep); font-size: .72rem; font-weight: 650; }
.model-offer { padding-top: 24px; border-top: 1px solid var(--line); }
.model-price { margin: 0; color: var(--forest-deep); font-size: 2.4rem; line-height: 1.15; font-weight: 800; letter-spacing: -.045em; }
.model-price small { font-size: .9rem; font-weight: 600; letter-spacing: 0; }
.model-price-note { margin: 8px 0 20px; color: var(--muted); font-size: .78rem; line-height: 1.6; }
.model-price-note a { text-underline-offset: 3px; }
.model-actions { display: grid; gap: 12px; }
.model-actions .button { width: 100%; min-height: 54px; }
.model-catalog { display: block; width: fit-content; margin: 0 auto; font-size: .82rem; text-underline-offset: 4px; }
.model-delivery { margin: 26px 0 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.model-delivery p { margin: 0; font-size: .83rem; line-height: 1.65; }
.model-delivery p + p { margin-top: 6px; color: var(--muted); font-size: .77rem; }
.model-details { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; padding: 0 0 76px; }
.model-details h2, .model-pricing h2, .more-models h2 { margin: 0 0 22px; font-size: clamp(2rem,3.4vw,3rem); line-height: 1; letter-spacing: -.05em; }
.model-details p { margin: 0 0 22px; color: var(--muted); line-height: 1.75; font-size: .93rem; }
.model-specs { margin: 0; }
.model-specs > div { display: grid; grid-template-columns: .7fr 1fr; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); font-size: .83rem; line-height: 1.5; }
.model-specs dt { color: var(--muted); }
.model-specs dd { margin: 0; font-weight: 650; }
.model-details h3 { margin: 28px 0 12px; font-size: 1.15rem; letter-spacing: -.025em; }
.model-included { margin: 0; padding: 0; list-style: none; }
.model-included li { position: relative; padding: 15px 0 15px 28px; border-top: 1px solid var(--line); line-height: 1.6; font-size: .9rem; }
.model-included li::before { content: '✓'; position: absolute; left: 0; color: var(--forest); font-weight: 800; }
.model-details .included-note { margin-top: 17px; font-size: .8rem; }
.model-pricing { padding: 44px clamp(24px,4vw,52px); color: #fff; background: linear-gradient(135deg,var(--forest),var(--forest-deep)); border-radius: 24px; scroll-margin-top: 24px; }
.model-pricing .eyebrow { color: var(--accent); }
.model-pricing > p:not(.eyebrow) { max-width: 770px; margin: 18px 0 0; color: #d9ddd6; font-size: .83rem; line-height: 1.7; }
.tier-table { width: 100%; margin-top: 28px; border-collapse: collapse; table-layout: fixed; }
.tier-table th { padding: 15px 8px 8px; font-size: .8rem; font-weight: 500; color: #cbd8d0; }
.tier-table td { padding: 0 8px 18px; text-align: center; font-size: clamp(1.35rem,2.7vw,2rem); font-weight: 750; letter-spacing: -.035em; }
.tier-table th, .tier-table td { border-bottom: 1px solid rgba(255,255,255,.18); }
.tier-table th { border-bottom: 0; }
.tier-table th:last-child, .tier-table td:last-child { color: var(--accent); background: rgba(255,255,255,.06); }
.tier-table td small { font-size: .75rem; letter-spacing: 0; font-weight: 500; }
.more-models { padding: 80px 0; }
.model-switcher { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; }
.model-switch { display: block; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; }
.model-switch[aria-current="page"] { border-color: var(--forest); background: #e8ebe4; }
.model-switch:hover { border-color: var(--forest); }
.model-switch picture { display: block; overflow: hidden; border-radius: 9px; background: #e4daca; }
.model-switch img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 7; object-fit: cover; }
.model-switch span { display: flex; justify-content: space-between; padding: 12px 3px 4px; font-size: .8rem; font-weight: 700; }
.model-switch b { font-weight: 400; }
.model-page .contact { padding-top: 0; }
.model-page .contact h2 { font-size: clamp(2.1rem,4.5vw,4rem); }
.model-page .image-dialog img { max-width: min(92vw,1200px); max-height: 88vh; background: #e4daca; }
.gallery-counter { position: absolute; bottom: 14px; left: 50%; translate: -50% 0; margin: 0; padding: 6px 12px; color: #fff; background: rgba(8,41,31,.8); border-radius: 999px; font-size: .78rem; pointer-events: none; }
@media (min-width: 1050px) { .model-intro { position: sticky; top: 28px; } }
@media (max-width: 820px) {
  .model-header { padding-bottom: 16px; }
  .model-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 20px; padding-bottom: 54px; }
  .model-intro { padding-top: 0; }
  .model-photo { max-height: 72vh; aspect-ratio: 5 / 7; }
  .model-photo picture, .model-photo img { object-fit: contain; }
  .model-intro h1 { font-size: clamp(3rem,12vw,4.4rem); }
  .model-intro h1 span { display: inline; }
  .model-details { grid-template-columns: 1fr; gap: 36px; padding-bottom: 44px; }
  .model-switcher { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
  .more-models { padding-block: 54px; }
  .tier-table { table-layout: auto; }
  .tier-table th { padding-inline: 3px; font-size: .63rem; }
  .tier-table td { padding-inline: 3px; font-size: 1.1rem; }
  .tier-table td small { display: block; font-size: .65rem; margin-top: 4px; }
  .model-pricing { padding: 28px 18px; }
  .model-page footer { padding-bottom: 30px; }
}
@media (max-width: 520px) {
  .model-tabs { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); width: 100%; gap: 4px; }
  .model-tabs a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 2px; font-size: .67rem; }
}
