.cooperation-page {
    --font-family: Roboto, Arial, sans-serif;
    --cooperation-accent: #b4c9fc;
    --cooperation-accent-hover: #7481a6;
    width: 100%;
    color: #1d2028;
    font-family: Roboto, Arial, sans-serif;
    padding: 20px 0 64px;
}

.cooperation-page--orange {
    --cooperation-accent: #f7894e;
    --cooperation-accent-hover: #dc6d32;
}

.cooperation-page--wholesale {
    --cooperation-accent: #8b9098;
    --cooperation-accent-hover: #70757d;
}

.cooperation-page--wholesale .cooperation-hero__title {
    max-width: 1050px;
}

.cooperation-page *,
.cooperation-page *::before,
.cooperation-page *::after {
    box-sizing: border-box;
}

.cooperation-page__container {
    width: 100%;
    margin: 0 auto;
}

.cooperation-hero {
    position: relative;
    display: flex;
    aspect-ratio: 2.16 / 1;
    min-height: 0;
    overflow: hidden;
    background-image: linear-gradient(90deg, rgba(5, 9, 20, .78) 0%, rgba(5, 9, 20, .42) 48%, rgba(5, 9, 20, .08) 100%), var(--cooperation-banner);
    background-position: center;
    background-size: cover;
}

.cooperation-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    padding: 42px 48px 44px;
}

.cooperation-hero__title {
    max-width: 700px;
    margin: 0 0 18px;
    font-family: var(--font-family);
    color: #fff;
    font-size: 45px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.01em;
    text-align: left !important;
    text-transform: uppercase;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .3);
}

.cooperation-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.cooperation-button,
.cooperation-button:visited {
    display: inline-flex;
    width: auto;
    min-width: 228px;
    height: 53px;
    align-items: center;
    justify-content: center;
    padding: 19px 30px;
    border: 0;
    border-radius: 1000px;
    color: #fff;
    background: var(--cooperation-accent);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color .2s ease, transform .2s ease;
}

.cooperation-button:hover,
.cooperation-button:focus-visible {
    color: #fff;
    background: var(--cooperation-accent-hover);
    text-decoration: none;
    transform: translateY(-1px);
}

.cooperation-button:disabled,
.cooperation-button[aria-disabled="true"] {
    cursor: default;
    opacity: .65;
    transform: none;
}

.cooperation-button:focus-visible,
.cooperation-form__submit:focus-visible {
    outline: 2px solid #202532 !important;
    outline-offset: 3px;
}

.cooperation-hero__logo {
    position: absolute;
    z-index: 1;
    top: 30px;
    right: 34px;
    color: #262a2e;
    font-size: clamp(22px, 2.4vw, 36px);
    font-weight: 900;
    line-height: 1;
}

.cooperation-hero__logo em {
    display: block;
    text-align: right;
    font-size: .72em;
    font-weight: 300;
}

.cooperation-page__subtitle,
.cooperation-page__intro,
.cooperation-page__content,
.cooperation-page__contacts {
    max-width: 1080px;
    margin-right: auto;
    margin-left: auto;
}

.cooperation-page__subtitle {
    margin-top: 30px;
    font-size: 20px;
    line-height: 1.35;
}

.cooperation-page__intro {
    margin-top: 28px;
}

.cooperation-page__intro p,
.cooperation-section p,
.cooperation-page__content p {
    margin: 0 0 16px;
    color: #6e6e6e;
    font-family: var(--font-family);
    font-size: 16px !important;
    font-weight: 400;
    line-height: 130% !important;
    letter-spacing: -.04em;
}

.cooperation-page__content {
    margin-top: 26px;
}

.cooperation-section + .cooperation-section {
    margin-top: 30px;
}

.cooperation-section__title,
.cooperation-page__content h2 {
    margin: 0 0 16px;
    color: #1a2032;
    font-family: var(--font-family);
    font-size: 26px;
    font-weight: 400;
    line-height: 130%;
    letter-spacing: -.04em;
}

.cooperation-section__list,
.cooperation-page__content ul {
    margin: 0;
    padding-left: 22px;
    color: #6e6e6e;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 130%;
    letter-spacing: -.04em;
    list-style: disc outside;
}

.cooperation-section__list li,
.cooperation-page__content ul li {
    margin-bottom: 0;
    line-height: 130%;
    list-style: disc outside !important;
}

.cooperation-feature + .cooperation-feature {
    margin-top: 16px;
}

.cooperation-feature h3 {
    margin: 0 0 3px;
    font-size: 16px;
    font-weight: 700;
}

.cooperation-feature p {
    margin-bottom: 0;
}

.cooperation-page__contacts {
    margin-top: 28px;
    font-size: 18px;
    line-height: 1.45;
}

.cooperation-form {
    width: 100%;
    margin: 100px auto 0;
    padding: 42px 40px 44px;
    border: 1px solid #30343a;
    background: #fff;
}

.cooperation-form__header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.cooperation-form__header h2 {
    margin: 0;
    width: 100%;
    color: #1a2032;
    font-family: var(--font-family);
    font-size: 26px;
    font-weight: 400;
    line-height: 130%;
    letter-spacing: -.04em;
    text-align: center !important;
}

.cooperation-form__close {
    position: absolute;
    top: 0;
    right: 0;
    color: #777;
    font-size: 32px;
    font-weight: 300;
    line-height: .7;
}

.cooperation-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 28px;
}

.cooperation-field {
    display: block;
    margin: 0;
    color: #808080;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: -.04em;
}

.cooperation-field span {
    display: block;
    margin-bottom: 7px;
    color: #808080;
}

.cooperation-consent span {
    color: #808080;
}

.cooperation-field b,
.cooperation-consent b {
    color: #ed213a;
    font-weight: 400;
}

.cooperation-field input {
    width: 100% !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    border: 1px solid #a9adb3;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    font: 14px/1.2 Arial, sans-serif !important;
}

.cooperation-field input:focus {
    border-color: var(--cooperation-accent);
    outline: 2px solid color-mix(in srgb, var(--cooperation-accent) 24%, transparent);
}

.cooperation-consent {
    display: flex;
    width: 100%;
    max-width: none;
    align-items: flex-start;
    gap: 9px;
    margin: 22px 0 0;
    color: #808080;
    font-family: var(--font-family);
    font-size: 11px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: -.01em;
}

.cooperation-consent input {
    display: block !important;
    flex: 0 0 13px;
    width: 13px !important;
    height: 13px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #808080;
    border-radius: 1px;
    opacity: 1 !important;
    appearance: none !important;
}

.cooperation-consent input:checked {
    border-color: #0d6efd;
    background-color: #0d6efd;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m3 8 3 3 7-7'/%3e%3c/svg%3e");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.cooperation-consent input:focus {
    outline: none !important;
    box-shadow: none !important;
}

.cooperation-consent input:focus-visible {
    outline: 2px solid #0d6efd !important;
    outline-offset: 2px;
}

.cooperation-consent__trigger {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    color: #808080;
    background: transparent;
    font: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    text-align: left;
    cursor: pointer;
}

.cooperation-consent__trigger:hover,
.cooperation-consent__trigger:focus-visible {
    color: #606060;
    text-decoration: underline;
}

.cooperation-form__honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cooperation-form__status {
    min-height: 18px;
    margin-top: 14px;
    color: #357548;
    font-size: 14px;
    text-align: center;
}

.cooperation-form__status--error {
    color: #ed213a;
}

.cooperation-form__submit {
    display: block;
    width: 165px;
    height: 53px;
    margin: 24px auto 0;
    padding: 19px 30px;
    border: 0;
    border-radius: 1000px;
    color: #fff;
    background: #777f8a;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
}

.cooperation-form__submit:disabled {
    cursor: wait;
    opacity: .65;
}

body.cooperation-modal-open {
    overflow: hidden;
}

.cooperation-page > .cooperation-modal-overlay {
    position: fixed;
    z-index: 10020;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .78);
}

.cooperation-page > .cooperation-modal-overlay[hidden] {
    display: none !important;
}

.cooperation-modal {
    position: relative;
    display: flex;
    width: min(750px, 100%);
    max-height: calc(100vh - 40px);
    flex-direction: column;
    padding: 40px;
    color: #111;
    background: #fff;
    box-sizing: border-box;
    font-family: var(--font-family);
}

.cooperation-modal h2 {
    margin: 0 50px 26px 0;
    color: #000;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left !important;
}

.cooperation-modal--success h2 {
    text-transform: uppercase;
}

.cooperation-modal--success p {
    margin: 0 0 20px;
    color: #111;
    font-size: 16px;
    line-height: 1.4;
}

.cooperation-modal--success p:last-child {
    margin-bottom: 0;
}

.cooperation-modal__close {
    position: absolute;
    top: 31px;
    right: 34px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    color: #53575a;
    background: transparent;
    font: 40px/32px Arial, sans-serif;
    cursor: pointer;
}

.cooperation-modal--consent {
    width: min(700px, 100%);
    max-height: min(500px, calc(100vh - 40px));
    padding: 20px;
    border-radius: 10px;
}

.cooperation-modal--consent h2 {
    margin-bottom: 16px;
    font-size: 28px;
    font-weight: 400;
}

.cooperation-modal--consent .cooperation-modal__close {
    top: 10px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    background: #777f8a;
    font-size: 24px;
    line-height: 27px;
}

.cooperation-modal__content {
    min-height: 0;
    overflow-y: auto;
    padding-right: 12px;
    color: #444;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
}

.cooperation-modal__content p {
    margin: 0 0 20px;
    color: inherit;
    font-size: inherit !important;
    line-height: inherit !important;
    letter-spacing: normal;
}

.cooperation-modal__content ul {
    margin: 0 0 20px;
    padding-left: 20px;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: normal;
    list-style: disc outside;
}

.cooperation-modal__buttons {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 16px;
}

.cooperation-modal__accept,
.cooperation-modal__decline {
    height: 52px;
    padding: 0 32px;
    border: 0;
    border-radius: 30px;
    color: #fff;
    background: #777f8a;
    font-family: var(--font-family);
    font-size: 16px;
    cursor: pointer;
    transition: background-color .2s ease;
}

.cooperation-modal__accept:hover,
.cooperation-modal__decline:hover,
.cooperation-modal__accept:focus-visible,
.cooperation-modal__decline:focus-visible {
    background: #5f6670;
}

@media (max-width: 991px) {
    .cooperation-hero {
        aspect-ratio: auto;
        min-height: 540px;
    }

    .cooperation-page__subtitle,
    .cooperation-page__intro,
    .cooperation-page__content,
    .cooperation-page__contacts {
        max-width: none;
    }
}

/*
 * На старом шаблоне основной контейнер принудительно остается шириной 1056 px.
 * Для страниц сотрудничества снимаем это ограничение только в планшетном диапазоне,
 * чтобы баннер и остальные блоки занимали доступную контентную область.
 */
@media (min-width: 768px) and (max-width: 1023px) {
    body:has(.cooperation-page) {
        min-width: 0;
    }

    body:has(.cooperation-page) .wrapper,
    body:has(.cooperation-page) .main.where-buy,
    body:has(.cooperation-page) .main.where-buy > .container,
    body:has(.cooperation-page) header .container,
    body:has(.cooperation-page) footer .container {
        width: 100%;
        min-width: 0 !important;
        max-width: none !important;
    }

    body:has(.cooperation-page) .main.where-buy > .container {
        padding-right: 20px;
        padding-left: 20px;
    }

    /* Фиксированная планшетная шапка не должна перекрывать хлебные крошки. */
    body:has(.cooperation-page) .main.where-buy {
        padding-top: 50px;
    }

    body:has(.cooperation-page) .fullWidthBox,
    body:has(.cooperation-page) .fullWidthBox > .layer,
    body:has(.cooperation-page) .breadcrumb-wrapper,
    body:has(.cooperation-page) .nav-page,
    body:has(.cooperation-page) .nav-page-list {
        width: 100%;
        max-width: none;
        margin-right: 0;
        margin-left: 0;
    }

    body:has(.cooperation-page) .fullWidthBox,
    body:has(.cooperation-page) .fullWidthBox > .layer,
    body:has(.cooperation-page) .nav-page,
    body:has(.cooperation-page) .nav-page-list {
        padding-right: 0;
        padding-left: 0;
    }

    body:has(.cooperation-page) .breadcrumb-wrapper {
        box-sizing: border-box;
    }

    .cooperation-hero {
        aspect-ratio: auto;
        min-height: 568px;
    }

    .cooperation-hero__content {
        padding: 40px;
    }

    .cooperation-hero__title {
        margin-bottom: 24px;
        font-size: 48px;
    }

    .cooperation-hero__actions {
        flex-wrap: nowrap;
        gap: 24px;
    }

    .cooperation-button {
        min-width: 0;
        height: 67px;
        padding: 24px 38px;
    }

    .cooperation-page__intro p,
    .cooperation-section p,
    .cooperation-page__content p,
    .cooperation-section__list,
    .cooperation-page__content ul {
        font-size: 20px !important;
    }

    .cooperation-section__title,
    .cooperation-page__content h2,
    .cooperation-form__header h2 {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    /* Убираем дополнительный отступ layer: внешний container уже задает поля по 10 px. */
    body:has(.cooperation-page) .fullWidthBox > .layer {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
        padding-right: 0;
        padding-left: 0;
    }

    /* В общем мобильном CSS крошки скрыты, хотя в макете cooperation они остаются. */
    body:has(.cooperation-page) .breadcrumb-wrapper,
    body:has(.cooperation-page) .nav-page,
    body:has(.cooperation-page) .nav-page-list {
        width: 100%;
        max-width: none;
        margin-right: 0;
        margin-left: 0;
    }

    body:has(.cooperation-page) .breadcrumb-wrapper {
        box-sizing: border-box;
        padding: 8px 10px 10px;
    }

    body:has(.cooperation-page) .nav-page {
        display: block;
        padding: 0;
    }

    body:has(.cooperation-page) .nav-page-list {
        display: flex;
        padding: 0;
    }

    .cooperation-page {
        padding-top: 12px;
        padding-bottom: 44px;
    }

    .cooperation-page__container {
        width: 100%;
    }

    .cooperation-hero {
        aspect-ratio: auto;
        min-height: 568px;
        background-image: linear-gradient(0deg, rgba(5, 9, 20, .82) 0%, rgba(5, 9, 20, .2) 80%), var(--cooperation-banner);
        background-position: center;
    }

    .cooperation-hero__content {
        padding: 40px 10px;
    }

    .cooperation-hero__title {
        font-size: 30px;
    }

    .cooperation-page--wholesale .cooperation-hero__title {
        font-size: clamp(29px, 8.2vw, 40px);
    }

    .cooperation-hero__actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }

    .cooperation-button {
        width: auto;
        min-width: 0;
        height: 48px;
        padding: 16px 32px;
        font-size: 14px;
    }

    .cooperation-hero__logo {
        top: 20px;
        right: 20px;
        font-size: 20px;
    }

    .cooperation-page__subtitle,
    .cooperation-page__contacts,
    .cooperation-page__container > .cooperation-page__content {
        padding-right: 10px;
        padding-left: 10px;
    }

    /* Внутри HTML из инфоблока не дублируем боковые отступы внешнего контейнера. */
    .cooperation-page__content .cooperation-page__intro,
    .cooperation-page__content .cooperation-page__content {
        padding-right: 0;
        padding-left: 0;
    }

    /* Возвращаем визуальный интервал между вводным текстом и первым разделом. */
    .cooperation-page__content .cooperation-page__content {
        margin-top: 40px;
    }

    .cooperation-page__subtitle {
        font-size: 17px;
    }

    .cooperation-page__intro p,
    .cooperation-section p,
    .cooperation-page__content p,
    .cooperation-section__list,
    .cooperation-page__content ul {
        font-size: 18px;
    }

    .cooperation-section__title,
    .cooperation-page__content h2 {
        margin-bottom: 24px;
        font-size: 24px;
    }

    .cooperation-form {
        width: 100%;
        margin-top: 80px;
        padding: 40px 10px 36px;
    }

    .cooperation-form__header h2 {
        font-size: 24px;
    }

    .cooperation-form__grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cooperation-page > .cooperation-modal-overlay {
        padding: 10px;
    }

    .cooperation-modal {
        max-height: calc(100vh - 20px);
        padding: 28px 20px;
    }

    .cooperation-modal h2,
    .cooperation-modal--consent h2 {
        margin-right: 36px;
        font-size: 22px;
    }

    .cooperation-modal__close {
        top: 20px;
        right: 18px;
    }

    .cooperation-modal--consent {
        padding: 20px 14px;
    }

    .cooperation-modal__buttons {
        flex-direction: column;
    }

    .cooperation-modal__accept,
    .cooperation-modal__decline {
        width: 100%;
    }

}
