.spec-modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.spec-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.spec-modal__dialog {
    background: #fff;
    /*width: min(1200px, 96vw);*/
    width: 100%;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
    position: relative;
}
.modal-header{
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}
.modal-header .logo-site{
    width: 124px;
}
.modal-header .return-btn {
    background-color: #FFF;
    border: 1px solid #000000;
    padding: 6px 20px;
    gap: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .3s ease all;
}
.modal-header .return-btn:hover{
    background-color: #000;
    color: #FFF;
}
.modal-header .return-btn:hover img{
    filter: invert(1);
}
.modal-header .return-btn img{
    width: 13px;
}

.spec-modal__content {
    padding: 0;
    overflow: auto;
}

.spec-modal__loading {
    padding: 32px;
    text-align: center;
    font-weight: 600;
    color: #111827;
}

.spec-modal__overlay {
    position: absolute;
    inset: 0;
}

.spec-modal__close {
    border: none;
    background: #f3f4f6;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    color: #111827;
    transition: background 0.2s ease;
}

.spec-modal__close:hover {
    background: #e5e7eb;
}

body.spec-modal--open {
    overflow: hidden;
}

.spec-sheet {
    display: flex;
    flex-direction: column;
    position: relative;
}

.spec-sheet__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.spec-sheet__eyebrow {
    margin: 0;
    color: #6b7280;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 12px;
    display: block;
    margin-bottom: -5px;
}

.spec-sheet__title {
    margin: 0;
    font-size: 24px;
    letter-spacing: -0.02em;
}
.product-name-fam{
    padding: 15px 30px;
}
.spec-sheet__tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    border-radius: 0;
}

.spec-tab {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 0;
    padding: 10px 12px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    color: #5D5E62;
    transition: all 0.2s ease;
}

.spec-tab.is-active {
    border-color: #eeeeee;
    color: #000;
    background: #eeeeee;
}

.spec-sheet__panels {
    display: flex;
    flex-direction: column;
}
.spec-panel__media{
}
.spec-panel {
    display: none;
    height: calc(100vh - 270px);
    overflow: auto;
}
.modal-footer {
    background-color: #fafafa;
    border-top: 1px solid #e4e4e4;
}

.spec-panel.is-active {
    display: block;
}

.spec-panel__grid {
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: 40px;
    padding: 0 30px;
    overflow: auto;
}

.spec-panel__text p,
.spec-panel__text ul li{
    margin: 0;
    color: #5D5E62;
    font-size: 14px;
    line-height: 1.3;
}
.spec-panel__text ul li{
    list-style: none;
}
ul li::marker {
  color: blue;
  font-size: 1.2em;
}
.spec-panel__text ul{
    padding: 0;
    margin: 0;
}
.spec-panel__text p:empty {
  display: none;
}
.spec-panel__text p > strong:first-of-type{
    color: #171A20;
    display: block;
    margin-bottom: 5px;
}
.spec-panel__text  br{
    display: none;
}

.spec-panel__media img,
.spec-panel__media video {
    display: block;
    margin: auto;
    height: calc(100vh - 325px);
    object-fit: contain;
    object-position: center center;
    width: 95%;
}

.spec-panel__placeholder {
    width: 100%;
    min-height: 240px;
    border-radius: 12px;
    background: repeating-linear-gradient(45deg, #f3f4f6, #f3f4f6 10px, #e5e7eb 10px, #e5e7eb 20px);
}

.spec-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: calc(100vh - 270px);
    align-items: center;
    justify-content: center;
    width: 100%;
}

.spec-gallery__summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-gallery__eyebrow {
    margin: 0;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.05em;
}

.spec-gallery__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.spec-gallery__viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
}
.spec-panel__text{
    overflow: auto;
    padding-bottom: 30px;
}

.spec-gallery__track {
    display: flex;
    transition: transform 0.25s ease;
}

.spec-gallery__item {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
}

.spec-gallery__item img,
.spec-gallery__item video {
    width: 90%;
    margin: auto;
    height: 50vh;
    object-fit: contain;
    object-position: center center;
    padding: 45px 0;
}

.spec-gallery__controls {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    pointer-events: none;
}

.spec-gallery__nav {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #FFF;
    color: #000;
    font-size: 28px;
    cursor: pointer;
    pointer-events: auto;
    transition: .3s ease all;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e6ea;
    margin-right: 25px;
}

.spec-gallery__nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}
.spec-gallery__controls > button:first-of-type{
    margin-left: 25px;
}
.spec-gallery__controls > button:last-of-type{
    margin-right: 25px;
}
.spec-gallery__empty {
    margin: 8px 0 0;
    color: #6b7280;
}

.spec-sheet__cta {
    position: sticky;
    bottom: 16px;
    align-self: flex-end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.spec-sheet__cta .primary-btn {
    display: inline-block;
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.22);
}

.spec-sheet__cta .primary-btn:hover {
    transform: translateY(-1px);
}

.spec-sheet__cta-note {
    color: #6b7280;
    font-style: italic;
    font-size: 75%;
}

.spec-sheet--error {
    padding: 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
}
.cta-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 15px 0 10px 0;
}
.cta-view .primary-btn{
    color: #FFF;
    background-color: #3F6AE1;
    text-align: center;
    font-size: 14px;
    margin: auto;
    display: inline-block;
    padding: 10px 20px;
    width: 200px !important;
    border: none;
    cursor: pointer;
}
.cta-view .primary-btn:hover{
    background-color: #2b54c3;
}
.spec-sheet__downloads {
    margin-bottom: 1rem;
    background-color: #f5f5f5;
    padding: 10px 15px;
    border: 1px dashed #d4d4d4;
}
.spec-sheet__downloads h4{
    margin: 0;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #4c4c4c;
}
.spec-sheet__downloads a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 400 !important;
    color: #3f6ae1;
    text-decoration: underline;
    display: inline-block;
    padding-left: 18px;
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
}
.spec-sheet__downloads a::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    width: 15px;
    height: 15px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(/img/icons/file-download.svg);
}
@media (max-width: 768px) {
    .spec-panel__grid{
        display: flex;
        grid-template-columns: unset;
        gap: 0;
        flex-direction: column-reverse;
    }
    .spec-panel__media img, .spec-panel__media video {
        height: 40vh;
        min-height: 300px;
    }
    .cta-view .primary-btn {
        font-size: 13px;
        padding: 8px 20px;
    }
}
/*
@media (max-width: 640px) {
    .spec-modal__content {
        padding: 20px 18px 32px;
    }

    .spec-sheet__header {
        flex-direction: column;
    }

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

    .spec-sheet__cta {
        align-self: stretch;
    }
}
*/