.sdh-public-equipment,
.sdh-pe-detail-page {
    --sdh-red: #d71920;
    --sdh-red-dark: #b9151b;
    --sdh-text: #202124;
    --sdh-muted: #687079;
    --sdh-line: #e6e6e6;
    --sdh-surface: #ffffff;
    box-sizing: border-box;
}

.sdh-public-equipment *,
.sdh-pe-detail-page * {
    box-sizing: border-box;
}

/* =========================================================
   PŘEHLED TECHNIKY
   ========================================================= */
.sdh-public-equipment {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
}

.sdh-pe-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    width: 100%;
    align-items: stretch;
}

.sdh-pe-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e9e9e9;
    border-left: 4px solid var(--sdh-red);
    border-radius: 12px;
    box-shadow: 0 9px 26px rgba(0, 0, 0, 0.08);
    transition: transform .22s ease, box-shadow .22s ease;
}

.sdh-pe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.13);
}

.sdh-pe-photo-link {
    display: block;
    text-decoration: none !important;
}

.sdh-pe-photo-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #ededed;
}

.sdh-pe-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.sdh-pe-card:hover .sdh-pe-photo {
    transform: scale(1.035);
}

.sdh-pe-photo-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eeeeee, #d9d9d9);
    color: #8d8d8d;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .18em;
}

.sdh-pe-org {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(30, 30, 30, .88);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .04em;
}

.sdh-pe-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px 24px 24px;
}

.sdh-pe-category {
    margin-bottom: 7px;
    color: var(--sdh-red);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.sdh-pe-title {
    margin: 0 0 16px !important;
    color: var(--sdh-text);
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1.16 !important;
}

.sdh-pe-meta {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
    color: #44494e;
    font-size: 14px;
    line-height: 1.5;
}

.sdh-pe-meta > div {
    position: relative;
    padding-left: 16px;
}

.sdh-pe-meta > div::before {
    content: "";
    position: absolute;
    top: .7em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sdh-red);
    transform: translateY(-50%);
}

.sdh-pe-actions {
    margin-top: auto;
    padding-top: 4px;
}

.sdh-pe-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 24px;
    border: 2px solid var(--sdh-red);
    border-radius: 8px;
    background: var(--sdh-red);
    color: #fff !important;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.sdh-pe-button:hover,
.sdh-pe-button:focus {
    background: var(--sdh-red-dark);
    border-color: var(--sdh-red-dark);
    color: #fff !important;
    transform: translateY(-1px);
}

.sdh-pe-message {
    padding: 24px 28px;
    border-left: 4px solid var(--sdh-red);
    border-radius: 8px;
    background: #f3f3f3;
    color: var(--sdh-text);
}

/* =========================================================
   DETAIL VOZIDLA
   ========================================================= */
.sdh-pe-detail-page {
    width: 100%;
    padding: 44px 24px 64px;
    background: #fff;
}

.sdh-pe-detail-shell {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.sdh-pe-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    color: #4d5359 !important;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
}

.sdh-pe-back:hover {
    color: var(--sdh-red) !important;
}

.sdh-pe-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px;
    align-items: stretch;
}

.sdh-pe-detail-photo-wrap {
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    background: #ededed;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .09);
}

.sdh-pe-detail-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sdh-pe-detail-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 34px 34px;
    border: 1px solid #e8e8e8;
    border-left: 5px solid var(--sdh-red);
    border-radius: 12px;
    background: #f7f7f7;
}

.sdh-pe-detail-title {
    margin: 0 0 14px !important;
    color: var(--sdh-text);
    font-size: 30px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
}

.sdh-pe-detail-org {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #242424;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.sdh-pe-detail-meta {
    display: grid;
    gap: 0;
    margin: 0;
}

.sdh-pe-detail-meta > div {
    display: grid;
    grid-template-columns: minmax(120px, .8fr) minmax(0, 1.2fr);
    gap: 18px;
    padding: 14px 0;
    border-top: 1px solid #dedede;
}

.sdh-pe-detail-meta dt {
    margin: 0;
    color: #6b7075;
    font-size: 13px;
    font-weight: 700;
}

.sdh-pe-detail-meta dd {
    margin: 0;
    color: var(--sdh-text);
    font-size: 15px;
    font-weight: 700;
}


.sdh-pe-detail-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    margin-top: 38px;
    align-items: stretch;
}

.sdh-pe-detail-columns-single {
    grid-template-columns: 1fr;
}

.sdh-pe-detail-columns .sdh-pe-detail-section {
    height: 100%;
    margin-top: 0;
}

.sdh-pe-detail-section {
    margin-top: 38px;
    padding: 30px 34px;
    border-left: 4px solid var(--sdh-red);
    border-radius: 9px;
    background: #f3f3f3;
}

.sdh-pe-detail-section h2,
.sdh-pe-detail-gallery-link h2 {
    margin: 0 0 16px !important;
    color: var(--sdh-text);
    font-size: 25px !important;
    font-weight: 800 !important;
}

.sdh-pe-detail-text {
    color: #40454a;
    font-size: 16px;
    line-height: 1.75;
}

.sdh-pe-detail-text p {
    margin: 0 0 14px;
}

.sdh-pe-detail-text p:last-child {
    margin-bottom: 0;
}

.sdh-pe-detail-parameters {
    white-space: normal;
}

.sdh-pe-detail-gallery-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 38px;
    padding: 28px 32px;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.sdh-pe-detail-gallery-link h2 {
    margin-bottom: 5px !important;
}

.sdh-pe-detail-gallery-link p {
    margin: 0;
    color: var(--sdh-muted);
    line-height: 1.6;
}

@media (max-width: 1100px) {
    .sdh-pe-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sdh-pe-detail-hero {
        grid-template-columns: 1fr;
    }

    .sdh-pe-detail-photo-wrap {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 680px) {
    .sdh-pe-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sdh-pe-content {
        padding: 20px;
    }

    .sdh-pe-title {
        font-size: 22px !important;
    }

    .sdh-pe-detail-page {
        padding: 28px 16px 48px;
    }

    .sdh-pe-detail-photo-wrap {
        aspect-ratio: 4 / 3;
    }

    .sdh-pe-detail-card,
    .sdh-pe-detail-section {
        padding: 24px 22px;
    }

    .sdh-pe-detail-title {
        font-size: 26px !important;
    }

    .sdh-pe-detail-meta > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .sdh-pe-detail-gallery-link {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px 22px;
    }
}

/* =========================================================
   OSTATNÍ TECHNIKA – SPOLEČNÝ BLOK A PŘEHLED
   ========================================================= */
.sdh-pe-other-card {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
    width: 100%;
    margin-top: 30px;
    padding: 24px 28px;
    border: 1px solid #e9e9e9;
    border-left: 4px solid var(--sdh-red);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 9px 26px rgba(0, 0, 0, .08);
    transition: transform .22s ease, box-shadow .22s ease;
}

.sdh-pe-other-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .13);
}

.sdh-pe-other-card-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 10px;
    background: #ffffff;
}

.sdh-pe-other-card-image {
    display: block;
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
    background: #ffffff;
    transition: opacity .7s ease, transform .35s ease;
}

.sdh-pe-other-card-slideshow .sdh-pe-other-card-image {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 0;
}

.sdh-pe-other-card-slideshow .sdh-pe-other-card-image.is-active {
    opacity: 1;
    z-index: 1;
}

.sdh-pe-other-card:hover .sdh-pe-other-card-image.is-active,
.sdh-pe-other-card:hover .sdh-pe-other-card-image:only-child {
    transform: scale(1.035);
}

.sdh-pe-other-card-text h2 {
    margin: 0 0 7px !important;
    color: var(--sdh-text);
    font-size: 27px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

.sdh-pe-other-card-text p {
    margin: 0;
    color: var(--sdh-muted);
    font-size: 15px;
    line-height: 1.6;
}

.sdh-pe-other-card-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.sdh-pe-other-page {
    width: 100%;
    padding: 44px 24px 64px;
    background: #fff;
}

.sdh-pe-other-shell {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.sdh-pe-other-heading {
    margin-bottom: 36px;
    padding: 28px 32px;
    border-left: 4px solid var(--sdh-red);
    border-radius: 10px;
    background: #f3f3f3;
}

.sdh-pe-other-heading h1 {
    margin: 0 0 8px !important;
    color: var(--sdh-text);
    font-size: 32px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

.sdh-pe-other-heading p {
    margin: 0;
    color: var(--sdh-muted);
    font-size: 15px;
    line-height: 1.6;
}

.sdh-pe-other-category {
    margin-top: 38px;
}

.sdh-pe-other-category:first-of-type {
    margin-top: 0;
}

.sdh-pe-other-category > h2 {
    margin: 0 0 18px !important;
    padding-bottom: 10px;
    border-bottom: 2px solid #ededed;
    color: var(--sdh-text);
    font-size: 25px !important;
    font-weight: 800 !important;
}

.sdh-pe-other-category > h2::after {
    content: "";
    display: block;
    width: 58px;
    height: 3px;
    margin-top: 10px;
    background: var(--sdh-red);
}

.sdh-pe-other-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.sdh-pe-other-item {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    border-left: 4px solid var(--sdh-red);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(0, 0, 0, .06);
}

.sdh-pe-other-photo-wrap {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    background: #ffffff;
}

.sdh-pe-other-photo {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    padding: 10px;
    object-fit: contain;
    background: #ffffff;
}

.sdh-pe-other-content {
    min-width: 0;
    padding: 22px 24px;
}

.sdh-pe-other-content h3 {
    margin: 0 0 14px !important;
    color: var(--sdh-text);
    font-size: 21px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

.sdh-pe-other-meta {
    display: grid;
    gap: 7px;
    margin: 0;
}

.sdh-pe-other-meta > div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
}

.sdh-pe-other-meta dt {
    margin: 0;
    color: #777d83;
    font-size: 13px;
    font-weight: 700;
}

.sdh-pe-other-meta dd {
    margin: 0;
    color: #383d42;
    font-size: 14px;
    font-weight: 700;
}

.sdh-pe-other-parameters,
.sdh-pe-other-description {
    margin-top: 15px;
    padding-top: 14px;
    border-top: 1px solid #ededed;
    color: #4d5359;
    font-size: 14px;
    line-height: 1.65;
}

.sdh-pe-other-description p {
    margin: 0 0 10px;
}

.sdh-pe-other-description p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1200px) {
    .sdh-pe-other-card {
        grid-template-columns: 300px minmax(0, 1fr);
    }

    .sdh-pe-other-card-action {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .sdh-pe-other-item {
        grid-template-columns: 230px minmax(0, 1fr);
    }
}

@media (max-width: 1100px) {
    .sdh-pe-other-grid {
        grid-template-columns: 1fr;
    }

    .sdh-pe-other-item {
        grid-template-columns: 320px minmax(0, 1fr);
    }
}

@media (max-width: 680px) {
    .sdh-pe-other-card {
        grid-template-columns: 1fr;
        align-items: flex-start;
        padding: 24px 22px;
    }

    .sdh-pe-other-card-preview {
        width: 100%;
        max-width: 420px;
    }

    .sdh-pe-other-card-action {
        width: 100%;
        justify-content: flex-start;
    }

    .sdh-pe-other-page {
        padding: 28px 16px 48px;
    }

    .sdh-pe-other-heading {
        padding: 24px 22px;
    }

    .sdh-pe-other-heading h1 {
        font-size: 27px !important;
    }

    .sdh-pe-other-item {
        grid-template-columns: 1fr;
    }

    .sdh-pe-other-photo-wrap,
    .sdh-pe-other-photo {
        min-height: 260px;
    }

    .sdh-pe-other-meta > div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}


@media (max-width: 900px) {
    .sdh-pe-detail-columns {
        grid-template-columns: 1fr;
    }
}
