/* ============================================================
   PGD Modele — Specs section
   ============================================================ */

.pgd-specs,
.pgd-specs * {
    box-sizing: border-box !important;
}

.pgd-specs {
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 32px 24px !important;
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif !important;
    color: #0B447F !important;
}

.pgd-specs__grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 48px !important;
    align-items: start !important;
}

/* ============================================================
   LEFT: stage + swatches
   ============================================================ */
.pgd-specs__visual {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    align-items: center !important;
    min-width: 0 !important;
    width: 100% !important;
}

/* Wrapper na stage + samochód (żeby samochód mógł wystawać) */
.pgd-specs__stage-wrap {
    position: relative !important;
    width: 100% !important;
    /* Daje przestrzeń u góry żeby auto miało gdzie "wyjść" */
    padding-top: 60px !important;
}

.pgd-specs__stage {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 18 / 7 !important;
    border-radius: 20px !important;
    background: linear-gradient(
        to bottom,
        var(--pgd-specs-color, #5b9bd5) 0%,
        var(--pgd-specs-color-light, #f5f8fb) 100%
    ) !important;
    overflow: hidden !important;
    transition: background .4s ease !important;
}

/* Samochód - absolutnie wewnątrz wrappera, wystaje powyżej stage */
.pgd-specs__car {
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) scale(1.2) !important;
    width: 90% !important;
    max-width: 600px !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    opacity: 1 !important;
    z-index: 2 !important;
    pointer-events: none !important;
    transition: opacity .2s ease, transform .2s ease !important;
}

.pgd-specs__car.is-changing {
    opacity: 0 !important;
    transform: translateX(-50%) scale(1.25) !important;
}

.pgd-specs__color-label {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 32px !important;
    text-align: center !important;
    color: #000000 !important;
    z-index: 3 !important;
    pointer-events: none !important;
}

.pgd-specs__color-prefix {
    margin: 0 0 6px !important;
    font-family: "Termina", "Montserrat", sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    color: #000000 !important;
    opacity: .85 !important;
}

.pgd-specs__color-name {
    margin: 0 !important;
    font-family: "Termina", "Montserrat", sans-serif !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    color: #000000 !important;
    line-height: 1 !important;
    transition: opacity .2s ease !important;
}

.pgd-specs__color-name.is-changing {
    opacity: 0 !important;
}

/* SWATCHES */
.pgd-specs__swatches {
    display: flex !important;
    gap: 14px !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.pgd-specs__swatch {
    appearance: none !important;
    background: transparent !important;
    border: 0 !important;
    padding: 4px !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    transition: box-shadow .2s ease !important;
}

.pgd-specs__swatch span {
    display: block !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background: var(--swatch, #cccccc) !important;
    border: 1px solid rgba(0, 0, 0, .08) !important;
    transition: transform .2s ease !important;
}

.pgd-specs__swatch:hover span {
    transform: scale(1.08) !important;
}

.pgd-specs__swatch.is-active {
    box-shadow: 0 0 0 2px #0B447F !important;
}

/* ============================================================
   RIGHT: specs list + buttons
   ============================================================ */
.pgd-specs__info {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
    min-width: 0 !important;
}

.pgd-specs__list-title {
    margin: 0 0 12px !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    color: #9ca3af !important;
    line-height: 1 !important;
}

.pgd-specs__list {
    list-style: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.pgd-specs__list-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid rgba(11, 68, 127, .12) !important;
}

.pgd-specs__list-row:last-child {
    border-bottom: 0 !important;
}

.pgd-specs__list-label {
    font-family: "Montserrat", sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #0B447F !important;
    letter-spacing: .02em !important;
}

.pgd-specs__list-value {
    font-family: "Montserrat", sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0B447F !important;
    text-align: right !important;
    letter-spacing: .02em !important;
}

/* BUTTONS */
.pgd-specs__buttons {
    display: flex !important;
    gap: 12px !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
}

.pgd-specs__btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px 32px !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    border-radius: 100px !important;
    line-height: 1 !important;
    transition: background .2s ease, color .2s ease, border-color .2s ease !important;
    white-space: nowrap !important;
    cursor: pointer !important;
}

.pgd-specs__btn--outline {
    background: transparent !important;
    color: #0B447F !important;
    border: 1.5px solid #0B447F !important;
}

.pgd-specs__btn--outline:hover {
    background: #0B447F !important;
    color: #ffffff !important;
}

.pgd-specs__btn--solid {
    background: #0B447F !important;
    color: #ffffff !important;
    border: 1.5px solid #0B447F !important;
}

.pgd-specs__btn--solid:hover {
    background: #093764 !important;
    border-color: #093764 !important;
}

/* ============================================================
   MOBILE — left top, right bottom
   ============================================================ */
@media (max-width: 1023px) {
    .pgd-specs__grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    .pgd-specs__visual {
        order: 1 !important;
    }

    .pgd-specs__info {
        order: 2 !important;
    }

    .pgd-specs__buttons {
        justify-content: stretch !important;
    }

    .pgd-specs__btn {
        flex: 1 1 auto !important;
    }
}

@media (max-width: 767px) {
    .pgd-specs {
        padding: 24px 16px !important;
    }

    .pgd-specs__color-name {
        font-size: 20px !important;
    }

    .pgd-specs__color-prefix {
        font-size: 14px !important;
    }

    .pgd-specs__buttons {
        flex-direction: column !important;
    }

    .pgd-specs__btn {
        width: 100% !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pgd-specs__car,
    .pgd-specs__stage,
    .pgd-specs__color-name,
    .pgd-specs__swatch,
    .pgd-specs__btn {
        transition: none !important;
    }
}
