.di-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(245, 240, 235, 0.98) 0%, rgba(236, 229, 220, 0.95) 58%, rgba(224, 214, 203, 0.92) 100%);
}

.spec-range-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 3px solid #000;
    background: rgba(255, 255, 255, 0.76);
}

.spec-range-summary div {
    padding: 1rem;
}

.spec-range-summary div + div {
    border-left: 2px solid #000;
}

.spec-range-summary strong,
.spec-range-summary span {
    display: block;
}

.spec-range-summary strong {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.spec-range-summary span {
    margin-top: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.46);
}

.spec-technical-panel {
    position: relative;
    display: flex;
    min-height: 430px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    border: 3px solid #000;
    background: #153b72;
    color: rgba(255, 255, 255, 0.88);
}

.spec-technical-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 28px 28px;
}

.spec-technical-panel svg {
    position: relative;
    width: min(88%, 560px);
    color: rgba(255, 255, 255, 0.72);
}

.spec-panel-label,
.spec-dimension,
.spec-panel-footer {
    position: absolute;
    z-index: 1;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
}

.spec-panel-label {
    top: 1.25rem;
    left: 1.25rem;
    font-size: 9px;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.44);
}

.spec-dimension {
    padding: 0.42rem 0.58rem;
    background: #f5f0eb;
    color: #000;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.spec-diameter {
    left: 8%;
    top: 29%;
}

.spec-height {
    right: 6%;
    top: 52%;
    transform: rotate(90deg);
    transform-origin: center;
}

.spec-panel-footer {
    right: 1.25rem;
    bottom: 1.25rem;
    text-align: right;
}

.spec-panel-footer span,
.spec-panel-footer strong {
    display: block;
}

.spec-panel-footer span {
    font-size: 8px;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.4);
}

.spec-panel-footer strong {
    margin-top: 0.3rem;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #fff;
}

.di-hero-graphic {
    position: absolute;
    top: -178px;
    right: -168px;
    width: 420px;
    height: 420px;
    color: rgba(26, 74, 140, 0.92);
    pointer-events: none;
    z-index: 0;
}

.di-kicker {
    letter-spacing: 0.28em;
}

.di-metric-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
}

.di-image-frame {
    position: relative;
    overflow: hidden;
    border: 3px solid #000;
    background: #000;
}

.di-image-frame img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.specs-hero-image {
    height: 100%;
}

.specs-hero-image img {
    min-height: 320px;
    object-position: center center;
}

@media (min-width: 768px) {
    .specs-hero-image img {
        min-height: 430px;
    }
}

.di-image-frame:hover img {
    transform: scale(1.04);
}

.di-panel {
    position: relative;
    background: #153B72;
}

.di-dark-card {
    background: #1A4A8C;
}

.di-specs-grid {
    display: grid;
    gap: 1.5rem;
}

.di-spec-group {
    border: 3px solid #000;
    background: #fff;
    padding: clamp(1.1rem, 3vw, 2rem);
    box-shadow: 7px 7px 0 rgba(21, 59, 114, 0.12);
}

.di-spec-cards {
    display: grid;
    gap: 0.9rem;
    margin-top: 1rem;
}

.di-spec-card {
    border: 2px solid rgba(0, 0, 0, 0.12);
    background: #f7f4ef;
    padding: 1rem;
}

.di-feature-grid {
    max-width: 100%;
}

.di-feature-grid .di-dark-card {
    height: 100%;
}

.di-spec-note {
    border: 2px solid rgba(0, 0, 0, 0.12);
    background: #f7f4ef;
    padding: 1rem 1.1rem;
    margin-top: 1rem;
}

/* Spec tables */
.di-table-wrap {
    overflow-x: auto;
    margin-top: 0.5rem;
    border: 2px solid rgba(0, 0, 0, 0.12);
}

.di-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.4;
}

.di-spec-table thead tr {
    background: #153B72;
    color: #fff;
}

.di-spec-table thead th {
    padding: 0.82rem 0.9rem;
    text-align: left;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
}

.di-spec-table tbody tr:nth-child(even) {
    background: #f7f4ef;
}

.di-spec-table tbody tr:nth-child(odd) {
    background: #fff;
}

.di-spec-table tbody tr:hover {
    background: #e8f0fb;
}

.di-spec-table tbody td {
    padding: 0.72rem 0.9rem;
    color: rgba(0, 0, 0, 0.7);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    white-space: nowrap;
}

.di-spec-table tbody td:first-child {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: #153B72;
}

.di-cta {
    background: #153B72;
}

@media (min-width: 768px) {
    .di-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .di-spec-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .di-feature-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .di-spec-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .di-hero {
        background:
            linear-gradient(180deg, rgba(245, 240, 235, 0.98) 0%, rgba(236, 229, 220, 0.94) 100%);
    }

    .di-hero .detail-hero-links {
        gap: 8px;
    }

    .di-hero-graphic {
        top: -110px;
        right: -102px;
        width: 240px;
        height: 240px;
        color: rgba(26, 74, 140, 0.72);
    }

    .di-spec-group {
        padding: 1.1rem;
        box-shadow: 4px 4px 0 rgba(21, 59, 114, 0.12);
    }

    .spec-range-summary {
        grid-template-columns: 1fr;
    }

    .spec-range-summary div + div {
        border-top: 2px solid #000;
        border-left: 0;
    }

    .spec-technical-panel {
        min-height: 330px;
    }

    .di-table-wrap {
        overflow: visible;
        border: 0;
    }

    .di-spec-table,
    .di-spec-table tbody,
    .di-spec-table tr,
    .di-spec-table td {
        display: block;
        width: 100%;
    }

    .di-spec-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .di-spec-table tbody {
        display: grid;
        gap: 0.8rem;
    }

    .di-spec-table tbody tr {
        padding: 0.3rem 0.85rem;
        border: 2px solid rgba(0, 0, 0, 0.14);
        background: #fff;
    }

    .di-spec-table tbody td {
        display: grid;
        grid-template-columns: minmax(108px, 0.85fr) minmax(0, 1fr);
        gap: 0.75rem;
        align-items: baseline;
        padding: 0.6rem 0;
        white-space: normal;
    }

    .di-spec-table tbody td::before {
        font-family: 'JetBrains Mono', monospace;
        font-size: 8px;
        font-weight: 500;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: rgba(0, 0, 0, 0.42);
    }

    .reservoir-table td:nth-child(1)::before { content: 'Series'; }
    .reservoir-table td:nth-child(2)::before { content: 'Diameter'; }
    .reservoir-table td:nth-child(3)::before { content: 'Barrel height'; }
    .reservoir-table td:nth-child(4)::before { content: 'Water depth'; }
    .reservoir-table td:nth-child(5)::before { content: 'Overall height'; }
    .reservoir-table td:nth-child(6)::before { content: 'Capacity'; }
    .tank-table td:nth-child(1)::before { content: 'Model'; }
    .tank-table td:nth-child(2)::before { content: 'Nominal capacity'; }
    .tank-table td:nth-child(3)::before { content: 'Diameter'; }
    .tank-table td:nth-child(4)::before { content: 'Barrel height'; }
    .tank-table td:nth-child(5)::before { content: 'Water depth'; }
    .tank-table td:nth-child(6)::before { content: 'Overall height'; }
    .tank-table td:nth-child(7)::before { content: 'Actual capacity'; }

    .di-spec-table tbody td:first-child {
        font-size: 13px;
        border-bottom: 2px solid #153b72;
    }
}
