/* ============================================================
 * SoftStyle — конверсионный hero для посадок produce
 * Файл: wp-content/themes/softstyle/assets/css/offer-hero.css
 * ============================================================ */

.ss-hero {
    position: relative;
    padding: 64px 0 56px;
    background: var(--white, #fff);
    color: var(--black, #222);
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
}

.ss-hero--with-bg {
    color: var(--white, #fff);
    background: var(--black, #222);
}

/* Фоновое фото */
.ss-hero__bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.9;
    filter: saturate(0.9);
}

.ss-hero__overlay {
    position: absolute; inset: 0;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(10, 50, 49, 0.72) 0%,
        rgba(10, 50, 49, 0.50) 55%,
        rgba(10, 50, 49, 0.25) 100%
    );
}
.ss-hero:not(.ss-hero--with-bg) .ss-hero__overlay {
    background: linear-gradient(
        135deg,
        rgba(196, 177, 162, 0.15) 0%,
        rgba(255, 255, 255, 0) 60%
    );
}

.ss-hero__container {
    position: relative;
    z-index: 2;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.ss-hero__content {
    max-width: 720px;
}

/* H1 */
.ss-hero__title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 52px;
    font-weight: 500;
    line-height: 1.1;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    color: inherit;
}

/* Подзаголовок */
.ss-hero__desc {
    font-family: "Roboto", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.5;
    margin: 0 0 32px;
    opacity: 0.92;
    max-width: 620px;
}

/* Trust-блок */
.ss-hero__trust {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.ss-hero__trust-item {
    display: flex;
    flex-direction: column;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    min-width: 120px;
}
.ss-hero:not(.ss-hero--with-bg) .ss-hero__trust-item {
    background: var(--grey, #F9F9F9);
    border-color: rgba(0, 0, 0, 0.08);
}

.ss-hero__trust-item strong {
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: inherit;
    line-height: 1;
}
.ss-hero__trust-item span {
    margin-top: 6px;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 12px;
    line-height: 1.2;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* CTA-блок */
.ss-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 0 0 20px;
}

.ss-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding: 0 28px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    border: 0;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.ss-hero__btn--primary {
    background: var(--ss-accent, #8B7B6D);
    color: var(--white, #fff);
}
.ss-hero__btn--primary:hover { background: var(--black, #222); }

.ss-hero__btn--secondary {
    background: transparent;
    color: inherit;
    border: 1px solid currentColor;
}
.ss-hero__btn--secondary:hover { background: rgba(255, 255, 255, 0.10); }
.ss-hero:not(.ss-hero--with-bg) .ss-hero__btn--secondary:hover { background: var(--grey, #F9F9F9); }

.ss-hero__btn--alt {
    background: transparent;
    color: inherit;
    border: 0;
    padding: 0 12px;
    height: auto;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.85;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    align-self: center;
}
.ss-hero__btn--alt:hover { opacity: 1; }

/* Legal/Trust подпись */
.ss-hero__legal {
    font-family: "Roboto", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    opacity: 0.75;
}
.ss-hero__legal span { color: var(--ss-accent, #8B7B6D); font-weight: 700; margin-right: 2px; }

/* ---- Мобильная адаптация ---- */
@media (max-width: 1024px) {
    .ss-hero { padding: 48px 0 40px; min-height: 380px; }
    .ss-hero__title { font-size: 40px; }
}

@media (max-width: 767px) {
    .ss-hero {
        padding: 32px 0 28px;
        min-height: 320px;
    }
    .ss-hero__container { padding: 0 16px; }
    .ss-hero__title { font-size: 28px; margin-bottom: 12px; }
    .ss-hero__desc { font-size: 15px; margin-bottom: 20px; }
    .ss-hero__trust {
        margin: 0 -16px 24px;
        padding: 0 16px;
        gap: 10px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .ss-hero__trust::-webkit-scrollbar { display: none; }
    .ss-hero__trust-item {
        flex: 0 0 auto;
        min-width: 110px;
        padding: 10px 14px;
    }
    .ss-hero__trust-item strong { font-size: 16px; }
    .ss-hero__trust-item span { font-size: 11px; margin-top: 4px; }
    .ss-hero__cta { flex-direction: column; align-items: stretch; gap: 10px; }
    .ss-hero__btn { width: 100%; }
    .ss-hero__btn--alt {
        align-self: center;
        width: auto;
        padding: 8px 12px;
    }
}

/* Скрываем старый .offer только на страницах, где рендерится новый ss-hero
   (produce-таксономия). На главной/других страницах .offer остаётся. */
body:has(.ss-hero) .offer { display: none !important; }
