/* شخصی‌سازی محصولات عمومی */
.gen-page {
    padding-bottom: 180px;
}

.gen-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #e8e4dc;
}

.gen-hero__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: cover;
    object-position: center;
}

.gen-hero__caption {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 8%;
    z-index: 2;
    margin: 0;
    padding: 0 5%;
    color: #fff;
    font-size: clamp(14px, 1.55vw, 20px);
    font-weight: 700;
    line-height: 1.7;
    text-align: center;
    background: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
    pointer-events: none;
}

.gen-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 14px;
    margin-bottom: 40px;
}

.gen-gallery__item {
    display: block;
    overflow: hidden;
    background: #111;
    border: 1px solid #e5e5e5;
    aspect-ratio: 16 / 10;
}

.gen-gallery__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gen-content {
    max-width: 920px;
    margin: 0 auto;
    color: #333;
    text-align: right;
}

.gen-content h1 {
    margin: 0 0 18px;
    color: #1a1a1a;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.7;
}

.gen-content h2 {
    margin: 28px 0 14px;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.7;
}

.gen-content h3 {
    margin: 0 0 6px;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
}

.gen-content p {
    margin: 0 0 1.15em;
    font-size: 14.5px;
    line-height: 2.1;
    text-align: justify;
    text-align-last: right;
}

.gen-content__title {
    margin: 0 0 18px;
    color: #1a1a1a;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.7;
}

.gen-content__lead,
.gen-content__text {
    margin: 0 0 1.15em;
    font-size: 14.5px;
    line-height: 2.1;
    text-align: justify;
    text-align-last: right;
}

.gen-content__subtitle {
    margin: 28px 0 14px;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.7;
}

.gen-step {
    margin: 0 0 1.35em;
}

.gen-step__title {
    margin: 0 0 6px;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
}

.gen-step__text {
    margin: 0;
    font-size: 14.5px;
    line-height: 2.1;
    text-align: justify;
    text-align-last: right;
}

.gen-cta {
    margin-top: 36px;
    text-align: center;
}

.gen-cta__q {
    margin: 0 0 8px;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.7;
    text-align: center;
}

.gen-cta__hint {
    margin: 0 0 22px;
    color: #555;
    font-size: 14px;
    line-height: 1.9;
    text-align: center;
}

.gen-cta__btn {
    display: inline-block;
    padding: 14px 28px;
    background-color: #1a1a1a;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    border: 1px solid #1a1a1a;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.gen-cta__btn:hover {
    background-color: #fff;
    color: #1a1a1a;
    text-decoration: none;
}

@media (max-width: 991px) {
    .gen-hero__img {
        max-height: 300px;
    }

    .gen-hero__caption {
        bottom: 6%;
        font-size: 13px;
        padding: 0 4%;
    }

    .gen-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 767px) {
    .gen-hero__img {
        max-height: 220px;
    }

    .gen-hero__caption {
        bottom: 5%;
        font-size: 12px;
        line-height: 1.55;
    }

    .gen-content__title,
    .gen-content h1 {
        font-size: 18px;
    }

    .gen-content__lead,
    .gen-content__text,
    .gen-step__text,
    .gen-content p {
        font-size: 13.5px;
        line-height: 2;
    }

    .gen-gallery {
        margin-bottom: 28px;
    }

    .gen-cta__btn {
        display: block;
        width: 100%;
        text-align: center;
    }
}
