.portal-detail {
    padding-bottom: 76px;
    background: #f7f9fb;
}

.portal-product-main {
    display: grid;
    grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.42fr);
    gap: 48px;
    padding: 34px 0 44px;
}

.portal-product-gallery__main {
    min-height: 430px;
    display: grid;
    place-items: center;
    padding: 34px;
    border: 1px solid #dfe6ec;
    border-radius: 18px;
    background: #ffffff;
}

.portal-product-gallery__main img {
    width: 100%;
    max-width: 420px;
    max-height: 420px;
    object-fit: contain;
}

.portal-product-gallery > p {
    margin: 12px 0 0;
    color: #718092;
    font-size: 12px;
    text-align: center;
}

.portal-product-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
    margin-top: 12px;
}

.portal-product-gallery__thumbs button {
    aspect-ratio: 1;
    overflow: hidden;
    padding: 6px;
    border: 1px solid #dfe6ec;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.portal-product-gallery__thumbs button[aria-pressed="true"] {
    border-color: #1769aa;
    box-shadow: 0 0 0 2px rgba(23,105,170,.14);
}

.portal-product-gallery__thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portal-product-summary h1 {
    margin: 8px 0 18px;
    color: #102033;
    font-size: clamp(30px, 3vw, 46px);
    font-weight: 850;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.portal-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    color: #506176;
    font-size: 14px;
}

.portal-product-meta b { color: #102033; }

.portal-product-meta button {
    padding: 2px 7px;
    border: 0;
    color: #1769aa;
    background: transparent;
    font-size: 12px;
    cursor: pointer;
}

.portal-data-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 22px 0;
    border: 1px solid #dfe6ec;
    border-radius: 14px;
    background: #ffffff;
}

.portal-data-trust > div {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
}

.portal-data-trust > div + div { border-left: 1px solid #dfe6ec; }
.portal-data-trust span { color: #718092; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.portal-data-trust strong { color: #102033; font-size: 13px; }

.portal-order-panel {
    padding: 24px;
    border: 1px solid #cfe0ee;
    border-radius: 16px;
    background: linear-gradient(135deg, #eef6fc, #ffffff);
}

.portal-order-panel h2 { margin: 4px 0 8px; color: #102033; font-size: 24px; }
.portal-order-panel > p:not(.portal-eyebrow) { margin: 0; color: #53677a; }
.portal-order-panel__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.portal-order-panel small { display: block; margin-top: 15px; color: #718092; }

.portal-key-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.portal-key-features > div {
    min-height: 88px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 13px;
    border: 1px solid #dfe6ec;
    border-radius: 12px;
    background: #ffffff;
}

.portal-key-features span { color: #718092; font-size: 11px; line-height: 1.3; }
.portal-key-features strong { color: #102033; font-size: 15px; line-height: 1.3; }

.portal-detail-tabs {
    position: sticky;
    z-index: 12;
    top: 74px;
    display: flex;
    gap: 8px;
    padding: 10px;
    border: 1px solid #dfe6ec;
    border-radius: 14px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 10px 28px rgba(16,32,51,.06);
}

.portal-detail-tabs button {
    min-height: 42px;
    padding: 9px 16px;
    border: 0;
    border-radius: 9px;
    color: #405368;
    background: transparent;
    font-weight: 750;
    cursor: pointer;
}

.portal-detail-tabs button[aria-selected="true"] { color: #ffffff; background: #1769aa; }

.portal-tab-panel {
    margin-top: 24px;
    padding: 30px;
    border: 1px solid #dfe6ec;
    border-radius: 18px;
    background: #ffffff;
}

.portal-tab-panel[hidden] { display: none; }
.portal-detail-tabs button span { margin-left: 5px; opacity: .75; }
.portal-detail-heading { margin-bottom: 20px; }
.portal-detail-heading h2 { margin: 4px 0 8px; color: #102033; font-size: 30px; }
.portal-detail-heading > p:last-child { margin: 0; color: #607185; }

.portal-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 30px;
}

.portal-spec-table-wrap { overflow: hidden; border: 1px solid #dfe6ec; border-radius: 14px; }
.portal-spec-table { width: 100%; border-collapse: collapse; }
.portal-spec-table th, .portal-spec-table td { padding: 13px 16px; border-bottom: 1px solid #e8edf1; text-align: left; vertical-align: top; }
.portal-spec-table tr:last-child th, .portal-spec-table tr:last-child td { border-bottom: 0; }
.portal-spec-table th { width: 54%; color: #304258; background: #f8fafb; font-weight: 700; }
.portal-spec-table th small { display: block; margin-top: 3px; color: #8491a0; font-size: 10px; font-weight: 500; }
.portal-spec-table td { color: #102033; }

.portal-expert-card {
    position: sticky;
    top: 150px;
    padding: 24px;
    border-radius: 16px;
    color: #ffffff;
    background: #123b66;
}
.portal-expert-card .portal-eyebrow { color: #8ed7eb; }
.portal-expert-card h3 { margin: 7px 0 10px; color: #ffffff; font-size: 23px; }
.portal-expert-card p:not(.portal-eyebrow) { color: #d8e5f0; }

.portal-relation-section + .portal-relation-section { margin-top: 34px; padding-top: 30px; border-top: 1px solid #e4e9ee; }
.portal-relation-section > header h3 { margin: 4px 0 8px; color: #102033; font-size: 25px; }
.portal-relation-section > header > p:last-child { max-width: 850px; color: #607185; }
.portal-relation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.portal-relation-card { padding: 20px; border: 1px solid #dfe6ec; border-radius: 14px; background: #fbfcfd; }
.portal-relation-card > span { color: #1769aa; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.portal-relation-card h4 { margin: 8px 0; font-size: 18px; line-height: 1.35; }
.portal-relation-card h4 a { color: #102033; }
.portal-relation-card > p, .portal-relation-card > small { color: #5e6d7e; line-height: 1.5; }
.portal-relation-card > small { display: block; margin-top: 10px; }
.portal-relation-card > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.portal-document-list { display: grid; gap: 12px; }
.portal-document-card { display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 18px 20px; border: 1px solid #dfe6ec; border-radius: 14px; background: #fbfcfd; }
.portal-document-card__type { color: #1769aa; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.portal-document-card h3 { margin: 0 0 5px; color: #102033; font-size: 17px; }
.portal-document-card p { margin: 0; color: #6b7a8b; font-size: 13px; }
.portal-document-card > a { padding: 9px 14px; border: 1px solid #1769aa; border-radius: 8px; color: #1769aa; font-weight: 750; text-decoration: none; white-space: nowrap; }
.portal-document-card > a:hover { color: #fff; background: #1769aa; }
.portal-document-note { margin: 18px 0 0; color: #6b7a8b; font-size: 13px; line-height: 1.55; }
.portal-diagram-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.portal-diagram-card { margin: 0; overflow: hidden; border: 1px solid #dfe6ec; border-radius: 14px; background: #fbfcfd; }
.portal-diagram-card a { display: grid; min-height: 260px; place-items: center; padding: 18px; background: #fff; }
.portal-diagram-card img { display: block; max-width: 100%; max-height: 520px; object-fit: contain; }
.portal-diagram-card figcaption { padding: 13px 16px; border-top: 1px solid #e8edf1; color: #304258; font-weight: 700; }
.portal-document-list--after-diagrams { margin-top: 22px; }

@media (max-width: 980px) {
    .portal-product-main, .portal-detail-grid { grid-template-columns: 1fr; }
    .portal-product-gallery { max-width: 600px; }
    .portal-expert-card { position: static; }
    .portal-detail-tabs { top: 64px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
    .portal-detail-tabs::-webkit-scrollbar { display: none; }
}

@media (max-width: 620px) {
    .portal-product-main { gap: 28px; padding-top: 22px; }
    .portal-product-gallery__main { min-height: 290px; padding: 20px; }
    .portal-product-gallery__thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .portal-product-summary h1 { font-size: 30px; }
    .portal-data-trust, .portal-key-features { grid-template-columns: 1fr; }
    .portal-data-trust > div + div { border-top: 1px solid #dfe6ec; border-left: 0; }
    .portal-key-features > div { min-height: 72px; }
    .portal-tab-panel { padding: 20px 14px; }
    .portal-relation-grid { grid-template-columns: 1fr; }
    .portal-order-panel__actions .portal-button, .portal-expert-card .portal-button { width: 100%; }
    .portal-spec-table th, .portal-spec-table td { display: block; width: 100%; }
    .portal-spec-table td { padding-top: 9px; }
    .portal-document-card { grid-template-columns: 1fr; gap: 9px; }
    .portal-document-card > a { width: 100%; text-align: center; }
    .portal-diagram-grid { grid-template-columns: 1fr; }
}
