/* Partners / B2B landing (/partners/) */
.rg-b2b {
    padding-bottom: 24px;
}

.rg-b2b .rg-breadcrumbs--static {
    margin-bottom: 20px;
}

.rg-b2b__eyebrow {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rg-accent);
}

.rg-b2b__eyebrow--light {
    color: rgba(255, 255, 255, 0.75);
}

/* Заголовки как .rg-hero__title / .rg-static-page__title */
.rg-b2b__title,
.rg-b2b-hero__title,
.rg-b2b-stm__title,
.rg-b2b-card__title,
.rg-b2b-step__title,
.rg-b2b-form-success h3 {
    font-family: var(--rg-font);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--rg-text);
}

.rg-b2b__title,
.rg-b2b-stm__title {
    margin: 0 0 28px;
    font-size: clamp(28px, 3vw, 40px);
}

.rg-b2b-hero__title {
    margin: 0 0 12px;
    font-size: clamp(28px, 3vw, 40px);
    max-width: none;
}

.rg-b2b__title em,
.rg-b2b-hero__title em,
.rg-b2b-stm__title em {
    font-style: normal;
    font-weight: 700;
    color: inherit;
}

.rg-b2b-section {
    padding: 48px 0 8px;
}

.rg-b2b-hero {
    display: block;
    padding: 0 0 36px;
}

.rg-b2b-hero__text {
    max-width: 720px;
}

.rg-b2b-hero__lead {
    margin: 0 0 28px;
    max-width: 720px;
    font-size: 16px;
    line-height: 1.55;
    color: var(--rg-text-muted);
}

.rg-b2b-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rg-b2b-hero__media {
    position: relative;
    justify-self: end;
    width: 72%;
    max-width: 460px;
}

.rg-b2b-hero__media img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--rg-radius);
    background: #e8e4df;
}

.rg-b2b-hero__badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 14px 18px;
    border-radius: var(--rg-radius-sm);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--rg-shadow);
}

.rg-b2b-hero__badge-n {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: var(--rg-accent);
}

.rg-b2b-hero__badge-t {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--rg-text-muted);
}

.rg-b2b-bento__photo {
    position: relative;
    overflow: hidden;
    border-radius: var(--rg-radius-sm);
    min-height: 196px;
    max-height: 280px;
    background: #e8e4df;
    align-self: stretch;
}

.rg-b2b-bento__photo img {
    width: 100%;
    height: 100%;
    min-height: 196px;
    max-height: 280px;
    object-fit: cover;
}

.rg-b2b-bento__photo--badge .rg-b2b-hero__badge {
    left: 12px;
    bottom: 12px;
}

.rg-b2b-bento__row {
    display: grid;
    grid-template-columns: 1.15fr 1.15fr 0.6fr;
    gap: 12px;
    margin-bottom: 12px;
    align-items: stretch;
}

.rg-b2b-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px 22px;
    border-radius: var(--rg-radius-sm);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    min-height: 0;
}

.rg-b2b-card__icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f3eee8;
    color: var(--rg-accent);
}

.rg-b2b-card__title {
    margin: 0;
    font-size: 18px;
}

.rg-b2b-card__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.rg-b2b-card__list li {
    position: relative;
    padding-left: 14px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--rg-text-muted);
}

.rg-b2b-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--rg-accent);
}

.rg-b2b-card__list--lg {
    margin: 0 0 24px;
    gap: 10px;
}

.rg-b2b-card__list--lg li {
    font-size: 14px;
}

.rg-b2b-bento__photo {
    overflow: hidden;
    border-radius: var(--rg-radius-sm);
    min-height: 196px;
    max-height: 280px;
    background: #e8e4df;
    align-self: stretch;
}

.rg-b2b-bento__photo img {
    width: 100%;
    height: 100%;
    min-height: 196px;
    max-height: 280px;
    object-fit: cover;
}

.rg-b2b-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.rg-b2b-step {
    padding: 26px 22px;
    border-radius: var(--rg-radius-sm);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.rg-b2b-step__n {
    display: block;
    margin-bottom: 16px;
    font-size: 42px;
    font-weight: 300;
    line-height: 1;
    color: rgba(39, 101, 46, 0.22);
}

.rg-b2b-step__title {
    margin: 0 0 8px;
    font-size: 18px;
}

.rg-b2b-step__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--rg-text-muted);
}

.rg-b2b-section--split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
    align-items: stretch;
    padding-top: 53px;
    padding-bottom: 53px;
}

#rg-b2b-contract {
    padding-top: 53px;
    padding-bottom: 53px;
}

.rg-b2b-panel {
    padding: 8px 0;
}

.rg-b2b-panel__lead {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--rg-text-muted);
}

.rg-b2b-panel--media {
    overflow: hidden;
    border-radius: var(--rg-radius);
    min-height: 280px;
    max-height: 420px;
    background: #e8e4df;
}

.rg-b2b-panel--media img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    max-height: 420px;
    object-fit: cover;
}

/* СТМ: фон hero + стеклянная панель как у taiganica */
.rg-b2b-stm {
    position: relative;
    margin: 40px 0 8px;
    padding: 56px 40px 48px;
    border-radius: var(--rg-radius);
    overflow: hidden;
    color: #fff;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        linear-gradient(105deg, rgba(20, 28, 24, 0.72) 0%, rgba(20, 28, 24, 0.35) 48%, rgba(20, 28, 24, 0.18) 100%),
        url('/local/templates/realgreen/images/hero_bg.jpg') center/cover no-repeat;
}

.rg-b2b-stm__inner {
    position: relative;
    z-index: 1;
    width: 100%;
}

.rg-b2b-stm__head {
    margin-bottom: 28px;
    max-width: 640px;
}

.rg-b2b-stm__title {
    margin: 0 0 12px;
    color: #fff;
}

.rg-b2b-stm__sub {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.rg-b2b-stm__lead {
    margin: 0;
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
}

.rg-b2b-stm__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 0 0 28px;
    min-height: 280px;
    padding: 36px 28px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(25px) saturate(1.1);
    -webkit-backdrop-filter: blur(25px) saturate(1.1);
}

.rg-b2b-stm__item {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 8px 22px;
    background: transparent;
    border: 0;
}

.rg-b2b-stm__item + .rg-b2b-stm__item {
    border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.rg-b2b-stm__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    background: transparent;
    color: #fff;
}

.rg-b2b-stm__icon svg {
    display: block;
}

.rg-b2b-stm__item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #fff;
}

.rg-b2b-stm .rg-btn--accent {
    background: var(--rg-accent);
    color: #fff;
}

.rg-b2b-bloggers {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
    align-items: center;
    padding: 56px 0 24px;
}

.rg-b2b-bloggers__mail {
    display: inline-block;
    margin: 8px 0 12px;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    font-style: normal;
    color: var(--rg-accent);
    text-decoration: none;
}

.rg-b2b-bloggers__mail:hover {
    color: var(--rg-accent-hover);
}

.rg-b2b-bloggers__hint {
    margin: 0;
    font-size: 13px;
    color: var(--rg-text-muted);
}

.rg-b2b-bloggers__media {
    justify-self: end;
    width: 70%;
    max-width: 420px;
    overflow: hidden;
    border-radius: var(--rg-radius);
    aspect-ratio: 1;
    background: #e8e4df;
}

.rg-b2b-bloggers__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rg-b2b-faq {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: start;
    padding-top: 40px;
}

.rg-b2b-form-section {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 36px;
    align-items: start;
    margin-top: 32px;
    padding: 40px 32px;
    border-radius: var(--rg-radius);
    background: #ebe7e1;
}

.rg-b2b-form-section__photo {
    margin: 20px 0;
    overflow: hidden;
    border-radius: var(--rg-radius-sm);
    width: 30%;
    max-width: 200px;
    aspect-ratio: 4 / 3;
    background: #d9d4cd;
}

.rg-b2b-form-section__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rg-b2b-form-section__contacts {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
}

.rg-b2b-form-section__contacts a {
    color: var(--rg-green);
    text-decoration: none;
}

.rg-b2b-form-section__contacts a:hover {
    text-decoration: underline;
}

.rg-b2b-form-wrap {
    padding: 28px;
    border-radius: var(--rg-radius-sm);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.rg-b2b-form {
    display: grid;
    gap: 16px;
}

.rg-b2b-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.rg-b2b-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.rg-b2b-form__field {
    display: grid;
    gap: 6px;
}

.rg-b2b-form__field span {
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--rg-text-muted);
}

.rg-b2b-form__field input,
.rg-b2b-form__field select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    font: inherit;
    font-size: 14px;
    color: var(--rg-text);
    background: var(--rg-bg);
    outline: none;
}

.rg-b2b-form__field input:focus,
.rg-b2b-form__field select:focus {
    border-color: var(--rg-green);
    box-shadow: 0 0 0 3px rgba(39, 101, 46, 0.12);
}

.rg-b2b-form__contact {
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.rg-b2b-form__contact legend {
    margin-bottom: 10px;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--rg-text-muted);
}

.rg-b2b-form__contact label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--rg-text);
    cursor: pointer;
}

.rg-b2b-form__agree {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.5;
    color: var(--rg-text-muted);
    cursor: pointer;
}

.rg-b2b-form__agree a {
    color: var(--rg-green);
}

.rg-b2b-form__agree input {
    margin-top: 2px;
}

.rg-b2b-form__error {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fde8e8;
    color: #8a1f1f;
    font-size: 13px;
}

.rg-b2b-form__submit {
    width: 100%;
}

.rg-b2b-form-success {
    text-align: center;
    padding: 48px 16px;
}

.rg-b2b-form-success__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3eee8;
    color: var(--rg-green);
    font-size: 24px;
}

.rg-b2b-form-success h3 {
    margin: 0 0 8px;
    font-size: clamp(22px, 3vw, 28px);
}

.rg-b2b-form-success p {
    margin: 0;
    color: var(--rg-text-muted);
}

@media (max-width: 1100px) {
    .rg-b2b-bento__row,
    .rg-b2b-stats,
    .rg-b2b-steps,
    .rg-b2b-stm__grid {
        grid-template-columns: 1fr 1fr;
    }

    .rg-b2b-bento__row {
        grid-template-columns: 1fr 1fr;
    }

    .rg-b2b-bento__row .rg-b2b-bento__photo {
        grid-column: 1 / -1;
        min-height: 180px;
        max-height: 220px;
    }

    .rg-b2b-bento__photo img {
        min-height: 180px;
        max-height: 220px;
    }

    .rg-b2b-stm__item {
        border-left: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.28);
        padding: 20px 16px;
    }

    .rg-b2b-stm__item + .rg-b2b-stm__item {
        border-left: 0;
    }

    .rg-b2b-stm__item:nth-last-child(-n + 2) {
        border-bottom: 0;
    }
}

@media (max-width: 900px) {
    .rg-b2b-hero,
    .rg-b2b-section--split,
    .rg-b2b-bloggers,
    .rg-b2b-faq,
    .rg-b2b-form-section {
        grid-template-columns: 1fr;
    }

    .rg-b2b-hero__media,
    .rg-b2b-bloggers__media {
        justify-self: start;
        width: 78%;
        max-width: 360px;
    }

    .rg-b2b-hero__badge {
        left: 12px;
        bottom: 12px;
    }

    .rg-b2b-stm {
        padding: 36px 20px 28px;
        min-height: 0;
        justify-content: flex-start;
    }

    .rg-b2b-stm__grid {
        min-height: 0;
        padding: 20px 12px;
    }

    .rg-b2b-form-section {
        padding: 28px 18px;
    }

    .rg-b2b-form-section__photo {
        width: 42%;
        max-width: 160px;
    }
}

@media (max-width: 640px) {
    .rg-b2b-stats,
    .rg-b2b-bento__row,
    .rg-b2b-steps,
    .rg-b2b-stm__grid,
    .rg-b2b-form__row {
        grid-template-columns: 1fr;
    }

    .rg-b2b-stm__item {
        border-left: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    }

    .rg-b2b-stm__item + .rg-b2b-stm__item {
        border-left: 0;
    }

    .rg-b2b-stm__item:last-child {
        border-bottom: 0;
    }

    .rg-b2b-hero__media,
    .rg-b2b-bloggers__media {
        width: 100%;
        max-width: none;
    }

    .rg-b2b-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .rg-b2b-hero__actions .rg-btn {
        width: 100%;
    }

    .rg-b2b-form-section__photo {
        width: 48%;
    }
}
