.pm-franchise-model {
    --pm-model-bg: #f7eee8;
    --pm-model-separator-width: 1px;
    --pm-model-separator-height: 72%;
    width: 100%;
    background: var(--pm-model-bg);
    color: #43231d;
}

.pm-franchise-model,
.pm-franchise-model * {
    box-sizing: border-box;
}

.pm-franchise-model__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px 34px;
}

.pm-franchise-model__heading {
    margin: 0 0 40px;
    color: #43231d;
    font-family: Montserrat, sans-serif;
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.pm-franchise-model__line-one,
.pm-franchise-model__line-two {
    display: block;
}

.pm-franchise-model__accent {
    color: #f15a24;
}

.pm-franchise-model__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
}

.pm-franchise-model__item {
    position: relative;
    display: flex;
    min-width: 0;
    margin: 0;
    padding: 0 20px;
    flex-direction: column;
    align-items: center;
    color: inherit;
    text-align: center;
    text-decoration: none;
    transition: transform 180ms ease;
}

.pm-franchise-model__item::after {
    position: absolute;
    top: 50%;
    right: calc(-10px - (var(--pm-model-separator-width) / 2));
    width: var(--pm-model-separator-width);
    height: var(--pm-model-separator-height);
    background: #eadbd2;
    content: "";
    transform: translateY(-50%);
}

.pm-franchise-model:not(.has-separators) .pm-franchise-model__item::after,
.pm-franchise-model__item:nth-child(4n)::after,
.pm-franchise-model__item:last-child::after {
    display: none;
}

a.pm-franchise-model__item:hover {
    color: inherit;
    transform: translateY(-4px);
}

a.pm-franchise-model__item:focus-visible {
    border-radius: 4px;
    outline: 3px solid #f15a24;
    outline-offset: 4px;
}

.pm-franchise-model__icon {
    display: inline-flex;
    width: 62px;
    height: 62px;
    margin-bottom: 14px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid #f15a24;
    border-radius: 50%;
    background: #fffaf6;
    color: #f15a24;
    font-size: 28px;
    line-height: 1;
}

.pm-franchise-model__icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.pm-franchise-model__item-title {
    margin: 0 0 9px;
    color: #43231d;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    transition: color 180ms ease;
}

.pm-franchise-model__item-text {
    max-width: 230px;
    margin: 0;
    color: #624b44;
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .pm-franchise-model__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 38px;
    }

    .pm-franchise-model__item:nth-child(4n)::after {
        display: block;
    }

    .pm-franchise-model__item:nth-child(2n)::after,
    .pm-franchise-model__item:last-child::after {
        display: none;
    }
}

@media (max-width: 600px) {
    .pm-franchise-model__inner {
        padding: 26px 14px 30px;
    }

    .pm-franchise-model__heading {
        margin-bottom: 30px;
        font-size: clamp(17px, 5vw, 22px);
    }

    .pm-franchise-model__grid {
        column-gap: 10px;
        row-gap: 30px;
    }

    .pm-franchise-model__item {
        padding: 0 8px;
    }

    .pm-franchise-model__item::after {
        right: -5px;
    }

    .pm-franchise-model__icon {
        width: 54px;
        height: 54px;
        font-size: 24px;
    }

    .pm-franchise-model__item-title {
        font-size: 13px;
    }

    .pm-franchise-model__item-text {
        font-size: 11px;
    }
}

@media (max-width: 359px) {
    .pm-franchise-model__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pm-franchise-model__item {
        padding: 0 12px 22px;
    }

    .pm-franchise-model__item::after,
    .pm-franchise-model__item:nth-child(4n)::after {
        top: auto;
        right: 15%;
        bottom: 0;
        left: 15%;
        display: block;
        width: 70%;
        height: var(--pm-model-separator-width);
        transform: none;
    }

    .pm-franchise-model__item:last-child::after,
    .pm-franchise-model:not(.has-separators) .pm-franchise-model__item::after {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .pm-franchise-model__item,
    .pm-franchise-model__item-title {
        transition: none;
    }
}
