/* PRODUCT AND MODAL VARIANTS: PROTECTIVE COATINGS */

.product-visual {
    position: relative;
    aspect-ratio: 1.28 / 1;
    overflow: visible;
    background: #eee;
}

.product-application, .product-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 270px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a9198;
    background: #f0f2f4;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .08em;
}

.product-content h3 {
    font-size: 17px;
    line-height: 1.15;
    margin-bottom: 10px;
}

@media (max-width: 560px) {
    .product-visual {
        aspect-ratio: 1.35 / 1;
    }

}

.modal-window {
    position: relative;
    z-index: 2;
    width: min(1180px, 100%);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    overflow-x: hidden;
    background: #092238;
    color: #fff;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 12px;
    box-shadow: 0 28px 80px rgba(0,0,0,.45);
    padding: 34px;
}

.modal-top {
    display: grid;
    grid-template-columns: minmax(300px, .92fr) minmax(0, 1.35fr);
    gap: 30px;
    align-items: stretch;
}

.modal-product-visual {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    border-radius: 7px;
    background: #edf0f2;
}

.modal-product-background, .modal-product-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.modal-product-background {
    background-size: cover;
    background-position: center;
    opacity: 1;
}

.modal-product-image {
    position: absolute;
    z-index: 2;
    right: 4%;
    bottom: 2%;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    padding: 0;
    object-fit: contain;
    filter: drop-shadow(0 18px 12px rgba(0,0,0,.3));
}

.modal-intro {
    padding: 12px 5px 0 0;
}

.modal-code {
    color: #b8c8d7;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .05em;
    margin-bottom: 8px;
}

.modal-intro h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(29px, 4vw, 48px);
    line-height: .98;
    font-weight: 800;
}

.modal-intro > p {
    color: #e8edf1;
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 24px;
}

.modal-summary-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid #d8dfe5;
    background: #fff;
    color: #172536;
    border-radius: 4px;
    overflow: hidden;
}

.summary-cell {
    min-height: 72px;
    padding: 11px 12px;
    border-right: 1px solid #d8dfe5;
    text-align: center;
}

.summary-cell:nth-child(3n) {
    border-right: 0;
}

.summary-cell:nth-child(n+4) {
    border-top: 1px solid #d8dfe5;
}

.summary-label {
    display: block;
    margin-bottom: 7px;
    color: #fff;
    background: #4f679c;
    margin: -11px -12px 9px;
    padding: 9px 5px;
    font-size: 13px;
    font-weight: 800;
}

.summary-value {
    font-size: 13px;
    line-height: 1.3;
}

.modal-middle {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 24px;
    margin-top: 28px;
    align-items: stretch;
}

.modal-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    background: #f4f6f7;
    color: #15283a;
    border-radius: 7px;
    overflow: hidden;
}

.modal-feature {
    min-height: 155px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px;
    text-align: center;
}

.modal-feature + .modal-feature {
    border-left: 1px solid #d4dce3;
}

.feature-icon {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.feature-icon-placeholder {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #7b8791;
    color: #6b7884;
    font-size: 9px;
    font-weight: 800;
    text-align: center;
}

.feature-title {
    display: block;
    margin-bottom: 7px;
    color: #315c91;
    font-size: 18px;
    line-height: 1.05;
    font-weight: 800;
}

.feature-text {
    display: block;
    color: #263747;
    font-size: 13px;
    line-height: 1.4;
}

.modal-detail-photo-wrap {
    position: relative;
    min-height: 250px;
    border-radius: 7px;
    overflow: hidden;
    background: #e7ebee;
}

.modal-detail-photo {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
}

.detail-photo-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-around;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,.93);
    color: #315c91;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.modal-specs {
    margin-top: 26px;
    overflow-x: auto;
    border-radius: 5px;
}

.spec-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
    color: #172536;
    font-size: 11px;
}

.spec-table th {
    padding: 10px 7px;
    border-right: 1px solid rgba(255,255,255,.7);
    background: #4f679c;
    color: #fff;
    font-size: 11px;
    line-height: 1.15;
    font-weight: 800;
}

.spec-table td {
    padding: 10px 7px;
    border: 1px solid #d8dfe5;
    text-align: center;
    vertical-align: middle;
    line-height: 1.3;
}

.spec-table tbody tr:nth-child(2) td {
    background: #edf1f4;
}

.modal-special {
    display: none;
}

.modal-special.is-visible {
    display: block;
}

.special-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 28px;
    align-items: start;
}

.special-intro h2 {
    margin: 0 0 15px;
    color: #fff;
    font-size: clamp(30px, 4vw, 50px);
    line-height: .98;
}

.special-description {
    color: #e8edf1;
    font-size: 15px;
    line-height: 1.55;
}

.special-info-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    color: #172536;
    font-size: 12px;
}

.special-info-table th {
    padding: 9px;
    background: #4f679c;
    color: #fff;
}

.special-info-table td {
    padding: 10px;
    border: 1px solid #d8dfe5;
    text-align: center;
}

.special-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 28px;
    background: #f4f6f7;
    color: #172536;
    border-radius: 7px;
    overflow: hidden;
}

.special-feature {
    min-height: 145px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.special-feature + .special-feature {
    border-left: 1px solid #d4dce3;
}

.special-feature strong {
    display: block;
    margin-bottom: 6px;
    color: #315c91;
    font-size: 18px;
}

.special-feature span {
    font-size: 13px;
    line-height: 1.4;
}

.special-additional {
    margin-top: 26px;
    padding: 20px;
    background: #f4f6f7;
    color: #172536;
    border-radius: 7px;
}

.special-additional h3 {
    margin-bottom: 13px;
    color: #315c91;
    font-size: 18px;
}

.additional-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.additional-table th {
    background: #4f679c;
    color: #fff;
    padding: 9px;
}

.additional-table td {
    padding: 9px;
    border: 1px solid #d8dfe5;
}

.modal-action {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.modal-product-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-width: 245px;
    padding: 15px 27px;
    background: #1685f7;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .02em;
    transition: transform .2s ease, filter .2s ease;
}

.modal-product-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

@media (max-width: 900px) {
    .modal-window {
        padding: 27px 22px;
    }

    .modal-top, .modal-middle, .special-intro {
        grid-template-columns: 1fr;
    }

    .modal-product-visual {
        min-height: 330px;
    }

}

@media (max-width: 620px) {
    .modal-window {
        max-height: calc(100vh - 20px);
        padding: 24px 14px 20px;
        border-radius: 8px;
    }

    .modal-intro h2 {
        padding-right: 25px;
    }

    .modal-summary-table {
        grid-template-columns: 1fr 1fr 1fr;
        font-size: 10px;
    }

    .summary-cell {
        min-height: 65px;
        padding: 9px 5px;
    }

    .summary-label {
        margin: -9px -5px 7px;
        padding: 7px 2px;
        font-size: 10px;
    }

    .summary-value {
        font-size: 10px;
    }

    .modal-features, .special-features {
        grid-template-columns: 1fr;
    }

    .modal-feature + .modal-feature, .special-feature + .special-feature {
        border-left: 0;
        border-top: 1px solid #d4dce3;
    }

    .modal-feature {
        min-height: 125px;
    }

}

.product-application {
    object-fit: cover;
}

.product-can {
    position: absolute;
    z-index: 5;
    left: 50%;
    top: 50%;
    width: 58%;
    height: 90%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    filter: drop-shadow(0 15px 10px rgba(0,0,0,.35));
    pointer-events: none;
}

.modal-product-background {
    background-repeat: no-repeat;
}

.special-photo-wrap {
    position: relative;
    margin-top: 28px;
    min-height: 260px;
    border-radius: 7px;
    overflow: hidden;
    background: #e7ebee;
}

.special-photo {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

@media (max-width: 620px) {
    .product-can {
        width: 52%;
        height: 82%;
    }

}
