.p2p-products-page .content-block--split {
    align-items: center;
}

.p2p-products-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 36px;
    background: var(--secondary-background, #f4f4f4);
}

.p2p-products-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 320px;
}

.p2p-products-diagram__camera,
.p2p-products-diagram__agent,
.p2p-products-diagram__platform {
    width: 100%;
    padding: 20px;
    border: 2px solid currentColor;
    background: var(--content-background, #ffffff);
    text-align: center;
    font-weight: 600;
    box-sizing: border-box;
}

.p2p-products-diagram__connection {
    width: 2px;
    height: 34px;
    background: currentColor;
}

.p2p-products-diagram__agent {
    padding: 0;
    overflow: hidden;
}

.p2p-products-diagram__agent-title {
    padding: 20px;
}

.p2p-products-diagram__protocols {
    margin: 0 16px 16px;
    padding: 14px;
    border: 2px dashed currentColor;
    font-size: 0.9rem;
}

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

.p2p-product {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.p2p-product:hover {
    text-decoration: none;
}

.p2p-product .module-group__title {
    margin-bottom: 24px;
}

.p2p-product__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    margin-bottom: 24px;
    padding: 32px;
    background: var(--secondary-background, #f4f4f4);
    box-sizing: border-box;
}

.p2p-product__content {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.p2p-product__content p {
    margin-top: 0;
}

.p2p-product__link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-top: auto;
    padding-top: 12px;
    font-weight: 600;
}

.p2p-product__link::after {
    margin-left: 10px;
    content: "→";
}

.p2p-product:hover .p2p-product__link {
    text-decoration: underline;
}

/* MyVMS Bridge illustration */

.p2p-bridge-device {
    position: relative;
    width: 100%;
    max-width: 280px;
    padding: 20px;
    border: 3px solid currentColor;
    background: var(--content-background, #ffffff);
    box-sizing: border-box;
}

.p2p-bridge-device::after {
    position: absolute;
    right: 18px;
    bottom: -8px;
    left: 18px;
    height: 8px;
    background: currentColor;
    opacity: 0.2;
    content: "";
}

.p2p-bridge-device__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.p2p-bridge-device__brand {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.p2p-bridge-device__status {
    width: 10px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.p2p-bridge-device__title {
    margin-bottom: 18px;
    font-size: 1.45rem;
    font-weight: 700;
    text-align: center;
}

.p2p-bridge-device__agent {
    margin-bottom: 24px;
    padding: 14px;
    border: 2px dashed currentColor;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.p2p-bridge-device__ports {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.p2p-bridge-device__ports span {
    width: 28px;
    height: 12px;
    border: 2px solid currentColor;
    background: var(--secondary-background, #f4f4f4);
}

/* IP camera illustration */

.p2p-camera-device {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 280px;
}

.p2p-camera-device__body {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 120px;
    padding: 22px;
    border: 3px solid currentColor;
    background: var(--content-background, #ffffff);
    box-sizing: border-box;
}

.p2p-camera-device__body::after {
    position: absolute;
    right: -28px;
    width: 28px;
    height: 60px;
    border: 3px solid currentColor;
    border-left: 0;
    background: var(--content-background, #ffffff);
    content: "";
}

.p2p-camera-device__lens {
    position: relative;
    flex: 0 0 auto;
    width: 62px;
    height: 62px;
    margin-right: 22px;
    border: 3px solid currentColor;
    border-radius: 50%;
    box-sizing: border-box;
}

.p2p-camera-device__lens::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    border: 2px solid currentColor;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    content: "";
}

.p2p-camera-device__label {
    font-weight: 700;
}

.p2p-camera-device__agent {
    position: relative;
    z-index: 1;
    width: calc(100% - 34px);
    margin-top: -2px;
    padding: 16px;
    border: 2px dashed currentColor;
    background: var(--content-background, #ffffff);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    box-sizing: border-box;
}

.p2p-camera-device__stand {
    width: 70px;
    height: 38px;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    transform: skewX(-28deg);
}

@media (max-width: 1000px) {
    .p2p-products {
        grid-template-columns: 1fr;
    }

    .p2p-products-visual {
        min-height: 340px;
    }
}

@media (max-width: 720px) {
    .p2p-products-visual,
    .p2p-product__visual {
        min-height: auto;
        padding: 24px 18px;
    }

    .p2p-product__visual {
        min-height: 250px;
    }

    .p2p-camera-device__body::after {
        right: -18px;
        width: 18px;
    }

    .p2p-camera-device__lens {
        width: 52px;
        height: 52px;
        margin-right: 16px;
    }
}