/*
 * Static page templates: o nas (JAC and dealer), technologia, gwarancja, assistance,
 * części, instrukcje, cenniki, kontakt, jazda testowa, and the old model-single.php.
 * Loaded after main.css by jac_page_style() in inc/enqueue.php.
 */

/* === Model single (templates/model-single.php, the old page template; model pages use model.css) === */
.jac-model-hero {
    padding-block: var(--section-py);
    background: var(--gray-100);
}

.jac-model-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.jac-model-hero__title {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 700;
    letter-spacing: -.03em;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.jac-model-hero__price {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 700;
    border: 2px solid rgba(0,0,0,.15);
    border-radius: 12px;
    padding: 6px 18px;
    margin-bottom: 32px;
    color: #212121;
}

.jac-model-hero__price--promo {
    border-color: transparent;
    background: var(--accent-red);
    color: var(--white);
}

.jac-model-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.jac-model-hero__img-wrap {
    background: var(--white);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 4px 24px rgb(0 0 0 / .08);
}

.jac-model-hero__img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
    padding: 24px;
}

/* Gallery */
.jac-model-gallery {
    padding-block: 48px;
}

.jac-model-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.jac-model-gallery__item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: block;
}

.jac-model-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}

.jac-model-gallery__item:hover img { transform: scale(1.05); }

/* Description */
.jac-model-description {
    padding-block: var(--section-py);
}

.jac-model-description__content {
    max-width: 780px;
    margin-inline: auto;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #333;
}

.jac-model-description__content h2,
.jac-model-description__content h3 {
    font-weight: 700;
    letter-spacing: -.02em;
    margin-top: 32px;
    margin-bottom: 12px;
}

/* Specs table */
.jac-model-specs {
    padding-block: var(--section-py);
    background: var(--gray-100);
}

.jac-model-specs__table {
    max-width: 720px;
    margin-inline: auto;
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.08);
}

.jac-model-specs__row {
    display: flex;
    justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    background: var(--white);
}

.jac-model-specs__row:nth-child(even) { background: #fafafa; }
.jac-model-specs__row:last-child { border-bottom: none; }

.jac-model-specs__name {
    font-size: .875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.jac-model-specs__value {
    font-size: .875rem;
    font-weight: 700;
    color: var(--gray-900);
}

@media (max-width: 900px) {
    .jac-model-hero__inner { grid-template-columns: 1fr; gap: 32px; }
    .jac-model-gallery__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
    .jac-model-hero__actions { flex-direction: column; }
    .jac-model-gallery__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   STATIC PAGES — shared
   ============================================================ */

.jac-page-hero--dark {
    background: #0a1e2e;
    padding: 80px 0 72px;
}

.jac-page-hero__title {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -.025em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.jac-page-hero__sub {
    font-size: 1rem;
    color: rgba(255,255,255,.75);
    line-height: 1.7;
    max-width: 640px;
}

.jac-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.jac-split-body {
    font-size: .9375rem;
    line-height: 1.75;
    color: #555;
    margin-bottom: 16px;
}

.jac-section-lead {
    font-size: clamp(20px, 2.6vw, 28px);
    font-weight: 700;
    line-height: 1.45;
    color: #212121;
    max-width: 900px;
    margin-bottom: 24px;
}

.jac-situation-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 32px;
}

.jac-situation-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jac-situation-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--brand);
}

.jac-situation-item__icon svg { width: 18px; height: 18px; stroke: currentColor; }

.jac-situation-item__text {
    font-size: 14px;
    font-weight: 400;
    color: #212121;
    line-height: 1.4;
}

.jac-info-grid {
    display: grid;
    gap: 20px;
}

.jac-info-grid--4 { grid-template-columns: repeat(4, 1fr); }
.jac-info-grid--3 { grid-template-columns: repeat(3, 1fr); }

.jac-info-card {
    border: 1.5px solid rgba(0,0,0,.1);
    border-radius: 16px;
    padding: 20px;
    background: var(--white);
    transition: border-color .2s, box-shadow .2s;
}

.jac-info-card:hover {
    border-color: rgba(0,93,125,.25);
    box-shadow: 0 4px 16px rgb(0 0 0 / .06);
}

.jac-info-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,93,125,.08);
    color: var(--brand);
    border-radius: 10px;
    margin-bottom: 12px;
}

.jac-info-card__title {
    font-size: .9375rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.jac-info-card__desc {
    font-size: .8125rem;
    line-height: 1.6;
    color: #666;
}

.jac-info-card--full { display: flex; flex-direction: column; }

.jac-btn-outline-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1.5px solid var(--brand);
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 600;
    color: var(--brand);
    transition: background .2s, color .2s;
}

.jac-btn-outline-brand:hover { background: var(--brand); color: var(--white); }

.jac-link-brand {
    font-weight: 600;
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.jac-static-cta-bar {
    background: #fafafa;
    border-top: 1px solid rgba(0,0,0,.1);
    border-bottom: 1px solid rgba(0,0,0,.1);
    padding: 48px 0;
    font-size: .9375rem;
    color: #666;
}

.jac-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    background: rgba(0,93,125,.08);
    color: var(--brand);
    border-radius: 999px;
    font-size: .8125rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.jac-quote-block {
    background: var(--gray-100);
    border-left: 3px solid var(--brand);
    padding: 14px 20px;
    border-radius: 0 8px 8px 0;
    font-size: .9375rem;
    line-height: 1.6;
    color: #333;
    margin-block: 12px;
}

.jac-map-wrap {
    position: relative;
    min-height: 280px;
    border-radius: 12px;
    overflow: hidden;
}

/* Gwarancja */
.jac-warranty-card {
    border: 1.5px solid rgba(0,0,0,.1);
    border-radius: 16px;
    padding: 24px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    transition: border-color .2s, box-shadow .2s;
}

.jac-warranty-card:hover { border-color: rgba(0,93,125,.25); box-shadow: 0 4px 16px rgb(0 0 0 / .06); }

.jac-warranty-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,93,125,.08);
    color: var(--brand);
    border-radius: 10px;
    margin-bottom: 16px;
}

.jac-warranty-card__value {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -.03em;
    color: #1a1a1a;
    line-height: 1;
}

.jac-warranty-card__unit {
    font-size: .875rem;
    font-weight: 500;
    color: #999;
    margin-bottom: 16px;
}

.jac-warranty-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.jac-warranty-card__desc {
    font-size: .8125rem;
    line-height: 1.6;
    color: #666;
}

.jac-warranty-pdf-bar {
    background: #fafafa;
    border-top: 1px solid rgba(0,0,0,.1);
    border-bottom: 1px solid rgba(0,0,0,.1);
    padding: 20px 0;
}

.jac-warranty-pdf-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.jac-warranty-pdf-bar__note { font-size: .875rem; color: #666; }

.jac-warranty-assist-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.jac-assist-items { display: flex; flex-direction: column; gap: 12px; }

.jac-assist-item {
    display: flex;
    gap: 14px;
    border: 1.5px solid rgba(0,0,0,.1);
    border-radius: 12px;
    padding: 16px;
    transition: border-color .2s;
}

.jac-assist-item:hover { border-color: rgba(0,93,125,.3); }

.jac-assist-item__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,93,125,.08);
    color: var(--brand);
    border-radius: 8px;
}

.jac-assist-item__title { font-size: .875rem; font-weight: 600; color: #1a1a1a; }
.jac-assist-item__sub   { font-size: .75rem; color: #999; line-height: 1.5; margin-top: 2px; }

/* Assistance dur cards */
.jac-dur-cards { display: flex; flex-direction: column; gap: 12px; }

.jac-dur-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    border: 1.5px solid rgba(0,0,0,.1);
    border-radius: 12px;
    padding: 16px;
}

.jac-dur-card__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,93,125,.08);
    color: var(--brand);
    border-radius: 8px;
}

.jac-dur-card__value { font-size: 1.25rem; font-weight: 800; color: #1a1a1a; }
.jac-dur-card__label { font-size: .875rem; font-weight: 600; color: #333; }
.jac-dur-card__hint  { font-size: .75rem; color: #999; margin-top: 2px; }

.jac-dur-or {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .8125rem;
    font-weight: 700;
    color: #999;
    margin-block: 4px;
}

.jac-phone-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.jac-phone-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--brand);
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 12px;
    transition: background .2s;
    white-space: nowrap;
}

.jac-phone-cta:hover { background: #007aa3; }

/* O nas – KPI grid */
.jac-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.jac-kpi-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    background: #f6f6f6;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.1);
    border-left: 3px solid var(--brand);
}

.jac-kpi-card__value { font-size: 1.25rem; font-weight: 800; color: var(--brand); line-height: 1.1; }
.jac-kpi-card__label { font-size: .6875rem; font-weight: 600; color: #666; line-height: 1.3; }

/* O nas hero */
.jac-onas-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0a1a22;
}

.jac-onas-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .55;
}

.jac-onas-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.75) 0%, rgba(0,30,42,.6) 60%, rgba(0,0,0,.3) 100%);
}

.jac-onas-hero__content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 80px var(--section-px);
    width: 100%;
}

.jac-onas-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.6);
    margin-bottom: 20px;
}

.jac-onas-hero__title {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -.01em;
    margin-bottom: 24px;
}

.jac-onas-hero__title em { color: #4eb8d4; font-style: normal; }

.jac-onas-hero__sub {
    font-size: clamp(.95rem, 1.6vw, 1.1rem);
    color: rgba(255,255,255,.75);
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 36px;
}

.jac-onas-hero__scroll {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .75rem;
    font-weight: 600;
    color: rgba(255,255,255,.45);
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* Stats bar */
.jac-stats-bar { background: var(--brand); }

.jac-stats-bar__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.jac-stats-bar__item {
    padding: 32px 24px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,.18);
}

.jac-stats-bar__item:last-child { border-right: none; }

.jac-stats-bar__value {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 6px;
}

.jac-stats-bar__label {
    font-size: .75rem;
    font-weight: 500;
    color: rgba(255,255,255,.7);
    line-height: 1.3;
}

/* Awards */
.jac-awards-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.jac-award-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 16px;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.1);
    text-align: center;
    transition: box-shadow .2s, transform .2s;
}

.jac-award-card:hover { box-shadow: 0 8px 24px rgb(0 0 0 / .08); transform: translateY(-3px); }

.jac-award-card img { width: 72px; height: 72px; object-fit: contain; }

.jac-award-card__label { font-size: .6875rem; font-weight: 600; color: #777; line-height: 1.4; }

/* GB Distribution logo */
.jac-gbd-logo-wrap {
    background: #f0f0f0;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    min-height: 200px;
}

.jac-gbd-logo-wrap img { max-height: 180px; width: 100%; object-fit: contain; }

/* Technologia */
.jac-tech-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: #0a1a22;
    overflow: hidden;
}

.jac-tech-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .5;
}

.jac-tech-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.7) 0%, transparent 70%);
}

.jac-tech-hero__inner {
    position: relative;
    z-index: 2;
    padding: 80px 0;
}

.jac-tech-hero__line {
    display: inline-block;
    width: 28px;
    height: 2px;
    background: #4eb8d4;
    vertical-align: middle;
    margin-right: 8px;
}

.jac-tech-hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -.02em;
    margin-bottom: 20px;
}

.jac-tech-hero__title em { color: #4eb8d4; font-style: normal; }

.jac-tech-hero__sub {
    font-size: 1rem;
    color: rgba(255,255,255,.75);
    line-height: 1.7;
    max-width: 600px;
}

.jac-tech-intro-img {
    border-radius: 12px;
    overflow: hidden;
}

.jac-tech-intro-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }

/* R&D diagram */
.jac-rd-diagram-wrap { overflow-x: auto; }
.jac-rd-svg { width: 100%; max-width: 920px; display: block; margin-inline: auto; }

.jac-rd-mobile {
    display: none;
    flex-direction: column;
    gap: 10px;
}

.jac-rd-mobile__center {
    background: var(--brand);
    color: var(--white);
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
}

.jac-rd-mobile__box {
    background: var(--white);
    border: 1.5px solid rgba(78,184,212,.5);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: .875rem;
    color: #333;
    text-align: center;
}

/* Lab slider */
.jac-lab-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.jac-lab-tab {
    padding: 8px 20px;
    border-radius: 999px;
    border: 1.5px solid rgba(0,0,0,.12);
    background: var(--white);
    font-size: .875rem;
    font-weight: 500;
    color: #212121;
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
}

.jac-lab-tab:hover    { border-color: var(--brand); color: var(--brand); }
.jac-lab-tab.is-active { border-color: #1a1a1a; background: #1a1a1a; color: var(--white); }

.jac-lab-slides-wrap { overflow: hidden; border-radius: 16px; }

.jac-lab-slides {
    display: flex;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
}

.jac-lab-slide {
    flex: none;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 360px;
}

.jac-lab-slide__img { overflow: hidden; }
.jac-lab-slide__img img { width: 100%; height: 100%; object-fit: cover; }

.jac-lab-slide__body {
    background: #1a1a1a;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.jac-lab-slide__num   { font-size: 2.5rem; font-weight: 800; color: rgba(255,255,255,.15); line-height: 1; margin-bottom: 16px; }
.jac-lab-slide__title { font-size: 1.25rem; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.jac-lab-slide__text  { font-size: .9375rem; color: rgba(255,255,255,.65); line-height: 1.7; }

/* ============================================================
   STATIC PAGES — responsive
   ============================================================ */

@media (max-width: 1100px) {
    .jac-awards-grid { grid-template-columns: repeat(3, 1fr); }
}@media (max-width: 900px) {
    .jac-split-grid { grid-template-columns: 1fr; gap: 40px; }
    .jac-info-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .jac-info-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .jac-kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .jac-stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
    .jac-stats-bar__item { border-bottom: 1px solid rgba(255,255,255,.18); }
    .jac-awards-grid { grid-template-columns: repeat(2, 1fr); }
    .jac-lab-slide { grid-template-columns: 1fr; }
    .jac-lab-slide__img { height: 220px; }
    .jac-rd-svg { display: none; }
    .jac-rd-mobile { display: flex; }
    .jac-phone-row { flex-direction: column; }
    .jac-onas-hero__content { padding: 80px 24px; }
}

@media (max-width: 640px) {
    .jac-situation-list { grid-template-columns: 1fr; }
}@media (max-width: 540px) {
    .jac-info-grid--4 { grid-template-columns: 1fr; }
    .jac-info-grid--3 { grid-template-columns: 1fr; }
    .jac-awards-grid { grid-template-columns: repeat(2, 1fr); }
    .jac-onas-hero { min-height: 80vh; }
}

/* =========================================================
   O NAS DEALERA (/dealer layout)
   ========================================================= */

/* Hero */
.jda-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #0a1a22;
}
.jda-hero__picture {
    position: absolute;
    inset: 0;
    display: block;
}
.jda-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .6;
}
.jda-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.25) 55%, transparent 100%);
}
.jda-hero__content {
    position: relative;
    z-index: 2;
    padding-bottom: 56px;
}
.jda-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
    margin-bottom: 12px;
}
.jda-hero__eyebrow-line {
    display: inline-block;
    width: 24px;
    height: 2px;
    background: #4eb8d4;
}
.jda-hero__title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -.01em;
    margin: 0;
}

/* Intro */
.jda-intro { padding: 80px 0; background: #fff; }
.jda-intro__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    max-width: 760px;
}
.jda-intro__grid--with-img {
    grid-template-columns: 1fr 1fr;
    max-width: none;
}
.jda-intro__heading {
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    font-weight: 800;
    color: #212121;
    line-height: 1.2;
    margin-bottom: 20px;
}
.jda-intro__body {
    font-size: .9375rem;
    line-height: 1.75;
    color: #555;
    margin-bottom: 32px;
}
.jda-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.jda-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 14px;
    background: #f6f6f6;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.1);
    border-left: 3px solid var(--brand);
}
.jda-stat__value { font-size: 1.3rem; font-weight: 800; color: var(--brand); line-height: 1.1; }
.jda-stat__label { font-size: .6875rem; font-weight: 600; color: #666; line-height: 1.3; }
.jda-intro__img-wrap {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.jda-intro__img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Pillars */
.jda-pillars { padding: 80px 0; background: #f7f8fa; }
.jda-pillars__grid {
    display: grid;
    gap: 32px;
}
.jda-pillars__grid--1 { grid-template-columns: 1fr; max-width: 520px; }
.jda-pillars__grid--2 { grid-template-columns: repeat(2, 1fr); }
.jda-pillars__grid--3 { grid-template-columns: repeat(3, 1fr); }
.jda-pillar {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.jda-pillar__img-wrap { position: relative; aspect-ratio: 4 / 3; width: 100%; overflow: hidden; }
.jda-pillar__img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.jda-pillar__body { padding: 24px; }
.jda-pillar__heading { font-size: 1.0625rem; font-weight: 700; color: #212121; margin-bottom: 8px; }
.jda-pillar__text { font-size: .875rem; line-height: 1.7; color: #555; }

/* Kontakt */
.jda-contact { padding: 80px 0; background: #f7f8fa; }
.jda-contact__title {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 800;
    color: #212121;
    margin-bottom: 32px;
}
.jda-locations { display: flex; flex-direction: column; gap: 20px; }
.jda-loc {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.12);
    padding: 24px;
    transition: border-color .2s, box-shadow .2s;
}
.jda-loc:hover { border-color: rgba(0,93,125,.3); box-shadow: 0 0 0 3px rgba(0,93,125,.08); }
.jda-loc__name { font-size: 1rem; font-weight: 700; margin-bottom: 4px; color: #212121; }
.jda-loc__city { font-size: .75rem; color: #aaa; margin-bottom: 16px; }
.jda-loc__details { display: flex; flex-direction: column; gap: 16px; }
.jda-loc__row { display: flex; align-items: flex-start; gap: 12px; }
.jda-loc__icon { color: var(--brand); margin-top: 2px; flex-shrink: 0; width: 14px; height: 14px; }
.jda-loc__icon svg { width: 14px; height: 14px; }
.jda-loc__row-label {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 3px;
}
.jda-loc__row-value { font-size: .875rem; color: #1a1a1a; }
.jda-loc__row-value a { color: inherit; text-decoration: none; }
.jda-loc__row-value a:hover { color: var(--brand); }
.jda-loc__row-sub { font-size: .75rem; color: #888; }
.jda-loc__maps-link {
    display: inline-block;
    font-size: .8125rem;
    color: var(--brand);
    margin-top: 4px;
    text-decoration: none;
}
.jda-loc__maps-link:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
    .jda-hero { min-height: 320px; }
    .jda-intro__grid--with-img { grid-template-columns: 1fr; }
    .jda-stats { grid-template-columns: repeat(2, 1fr); }
    .jda-pillars__grid--3 { grid-template-columns: repeat(2, 1fr); }
    .jda-pillars__grid--2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .jda-stats { grid-template-columns: 1fr; }
    .jda-pillars__grid--3,
    .jda-pillars__grid--2 { grid-template-columns: 1fr; }
}

/* ── Mapa Leaflet (o-nas-dealer) ── */
.jda-contact__grid--with-map {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 32px;
    align-items: start;
}
.jda-map-wrap {
    position: sticky;
    top: 90px;
}
.jda-map {
    height: 520px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.1);
}
.jda-map-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.25));
}
@media (max-width: 1024px) {
    .jda-contact__grid--with-map {
        grid-template-columns: 1fr;
    }
    .jda-map-wrap { position: static; }
    .jda-map { height: 360px; }
}

/* Hero subtitle (o-nas-dealer) */
.jda-hero__subtitle {
    margin-top: 12px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
}

/* Pillar bez zdjęcia — wyrównanie */
.jda-pillar:not(:has(.jda-pillar__img-wrap)) .jda-pillar__body {
    padding: 28px 24px 32px;
}

/* =========================================================
   STRONA KONTAKT
   ========================================================= */
.jac-contact-locs {
    padding: 80px 0;
    background: #f7f8fa;
}
.jac-contact-locs__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
.jac-contact-locs__grid--map {
    grid-template-columns: 1fr 420px;
    align-items: start;
}

.jac-contact-form-section {
    padding: 80px 0;
    background: #fff;
}
.jac-contact-form-inner {
    max-width: 720px;
    margin-inline: auto;
}
.jac-contact-form-head {
    margin-bottom: 36px;
}
.jac-contact-form-sub {
    font-size: .9375rem;
    color: #666;
    line-height: 1.6;
    margin-top: 8px;
}

@media (max-width: 1024px) {
    .jac-contact-locs__grid--map {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   JAZDA TESTOWA
   ========================================================= */

/* Stepper */
.jt-stepper {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: var(--nav-h);
    z-index: 90;
}
.jt-stepper__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 18px 0;
}
.jt-step {
    display: flex;
    align-items: center;
    gap: 10px;
}
.jt-step__num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8e8e8;
    color: #aaa;
    font-size: .9375rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .25s, color .25s;
}
.jt-step__label {
    font-size: .8125rem;
    font-weight: 600;
    color: #aaa;
    white-space: nowrap;
    transition: color .25s;
}
.jt-step--active .jt-step__num,
.jt-step--done .jt-step__num  { background: var(--brand); color: #fff; }
.jt-step--active .jt-step__label,
.jt-step--done .jt-step__label { color: var(--brand); }
.jt-step__line {
    width: 48px;
    height: 2px;
    background: #e8e8e8;
    margin: 0 12px;
    flex-shrink: 0;
}

/* Body */
.jt-body {
    padding: 40px 0 80px;
    background: #f5f7f9;
    min-height: 60vh;
}
.jt-body .wrap { display: flex; flex-direction: column; gap: 28px; }

/* Cards */
.jt-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e8e8e8;
    padding: 36px;
}
.jt-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}
.jt-card__num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: .9375rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.jt-card__title { font-size: 1.25rem; font-weight: 700; color: #212121; margin: 0; }

/* Model grid */
.jt-models-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.jt-model-card {
    border: 2px solid #e8e8e8;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
    background: #fff;
    position: relative;
}
.jt-model-card:hover {
    border-color: rgba(0,93,125,.4);
    box-shadow: 0 4px 16px rgba(0,93,125,.1);
}
.jt-model-card--selected {
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 3px rgba(0,93,125,.15) !important;
}
.jt-model-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid #e8e8e8;
}
.jt-model-card__name {
    font-size: .875rem;
    font-weight: 700;
    color: #212121;
    letter-spacing: .02em;
}
.jt-model-card__price {
    font-size: .6875rem;
    font-weight: 600;
    color: #212121;
    border: 1.5px solid #e8e8e8;
    border-radius: 8px;
    padding: 3px 8px;
    white-space: nowrap;
    flex-shrink: 0;
}
.jt-model-card__price--promo {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}
.jt-model-card__img-wrap {
    position: relative;
    background: #f5f5f5;
}
.jt-model-card__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    display: block;
}
.jt-model-card__img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #eee;
}
.jt-model-card__catalog {
    position: absolute;
    bottom: 6px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: .6875rem;
    color: #aaa;
}

/* Selected badge */
.jt-selected-model {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(0,93,125,.07);
    border: 1px solid rgba(0,93,125,.2);
    border-radius: 10px;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 20px;
}
.jt-selected-model svg { flex-shrink: 0; stroke: var(--brand); }
.jt-selected-model__change {
    margin-left: auto;
    background: none;
    border: none;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--brand);
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .jt-models-grid { grid-template-columns: repeat(2, 1fr); }
    .jt-card { padding: 24px 20px; }
}
@media (max-width: 500px) {
    .jt-models-grid { grid-template-columns: 1fr; }
    .jt-step__label { display: none; }
}

/* =========================================================
   INSTRUKCJE / CENNIKI (docs pages — 1:1 multisite)
   ========================================================= */
.page-hero--dark {
    background: #0a1a22;
    padding: calc(var(--nav-h) + 60px) 0 60px;
}
.page-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin: 8px 0 12px;
}
.page-hero__sub {
    font-size: 1rem;
    color: rgba(255,255,255,.7);
    line-height: 1.65;
    max-width: 580px;
}

/* Category pills */
.cat-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.cat-pill {
    padding: 7px 18px;
    border-radius: 100px;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    font-size: .8125rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
}
.cat-pill:hover { border-color: var(--brand); color: var(--brand); }
.cat-pill.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Docs grid */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Docs card */
.docs-card {
    border: 1.5px solid #e8e8e8;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, border-color .2s;
}
.docs-card:hover {
    box-shadow: 0 8px 28px rgba(0,93,125,.1);
    border-color: rgba(0,93,125,.3);
}
.docs-card__img-wrap {
    background: #f7f7f7;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.docs-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform .3s;
}
.docs-card:hover .docs-card__img { transform: scale(1.04); }
.docs-card__body {
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 14px;
}
.docs-card__name {
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: #1a1a1a;
    line-height: 1.1;
}
.docs-card__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

/* Year select */
.year-select-wrap { position: relative; }
.year-select {
    width: 100%;
    padding: 9px 36px 9px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: .875rem;
    color: #212121;
    background: #fff;
    cursor: pointer;
    appearance: none;
}
.year-select-wrap::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    margin-top: -3px;
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #666;
    pointer-events: none;
}

/* Download buttons */
.docs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 8px;
    font-size: .8125rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, color .2s;
    box-sizing: border-box;
    width: 100%;
}
.docs-btn--primary {
    background: var(--brand);
    color: #fff;
}
.docs-btn--primary:hover { background: #004a64; }
.docs-btn--outline {
    background: #fff;
    color: var(--brand);
    border: 1.5px solid var(--brand);
}
.docs-btn--outline:hover { background: rgba(0,93,125,.06); }
.docs-btn--disabled {
    background: rgba(0,93,125,.08);
    color: rgba(0,93,125,.4);
    cursor: default;
    pointer-events: none;
}
.docs-btn--outline.docs-btn--disabled {
    background: #fff;
    border-color: rgba(0,93,125,.2);
}

@media (max-width: 1000px) { .docs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) { .docs-grid { grid-template-columns: 1fr; }
}
