/* ===== Страница сотрудничества с ТЦ — B2B ===== */

.page-coop {
    --coop-ink: #f4f4f5;
    --coop-muted: rgba(244, 244, 245, 0.62);
    --coop-line: rgba(255, 255, 255, 0.1);
    --coop-panel: rgba(12, 12, 14, 0.72);
}

/* ---- Hero: full-bleed ---- */

.coop-hero {
    position: relative;
    isolation: isolate;
    min-height: min(88vh, 760px);
    display: flex;
    align-items: flex-end;
    padding: 0 0 clamp(3rem, 8vw, 5.5rem);
    overflow: hidden;
    background: #050506;
}

.coop-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.coop-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    transform: scale(1.04);
    animation: coop-hero- ken 18s ease-out forwards;
}

.coop-hero__veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(7, 7, 8, 0.42) 0%, rgba(7, 7, 8, 0.62) 45%, rgba(7, 7, 8, 0.94) 100%),
        linear-gradient(90deg, rgba(7, 7, 8, 0.72) 0%, rgba(7, 7, 8, 0.28) 58%, rgba(7, 7, 8, 0.45) 100%);
    pointer-events: none;
}

.coop-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding-top: calc(var(--site-header-offset, 76px) + 1.5rem);
    animation: coop-rise 0.9s var(--ease-out-expo, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.coop-hero__crumbs {
    margin-bottom: 1.75rem;
}

.coop-hero__brand {
    margin: 0 0 1.15rem;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.4rem, 7vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.95;
    color: #fff;
}

.coop-hero h1 {
    margin: 0 0 1.25rem;
    max-width: 18em;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.78);
}

.coop-hero__lead {
    margin: 0 0 1.75rem;
    max-width: 34em;
    color: var(--coop-muted);
    font-size: clamp(1rem, 2vw, 1.12rem);
    line-height: 1.65;
    font-weight: 300;
}

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

.coop-hero__actions .btn {
    min-height: 48px;
    border-radius: 2px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transform: none;
    box-shadow: none;
}

.coop-hero__actions .btn-primary {
    background: #ff3b3b;
    background-image: none;
    color: #fff;
    border-color: #ff3b3b;
}

.coop-hero__actions .btn-primary:hover {
    background: #e62828;
    background-image: none;
    transform: none;
    box-shadow: none;
}

.coop-hero__actions .btn-outline {
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
}

.coop-hero__actions .btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(0, 0, 0, 0.5);
}

.page-coop .coop-form__footer .btn {
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    min-height: 50px;
    padding-inline: 1.75rem;
    background: linear-gradient(135deg, #ff3b3b 0%, #e62828 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 28px rgba(255, 59, 59, 0.28);
    transform: none;
}

.page-coop .coop-form__footer .btn:hover {
    background: linear-gradient(135deg, #ff4d4d 0%, #d62222 100%);
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(255, 59, 59, 0.35);
}

@keyframes coop-hero-ken {
    from { transform: scale(1.06); }
    to { transform: scale(1); }
}

@keyframes coop-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .coop-hero__media img,
    .coop-hero__inner,
    .coop-specs__list,
    .coop-apply__shell {
        animation: none !important;
    }
}

/* ---- About / why partner ---- */

.coop-about {
    padding: clamp(3.5rem, 8vw, 5.5rem) 0;
    background:
        radial-gradient(ellipse 70% 50% at 100% 0%, rgba(255, 59, 59, 0.06), transparent 55%),
        var(--bg-dark);
    border-top: 1px solid var(--coop-line);
}

.coop-about__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.coop-about__eyebrow {
    margin: 0 0 0.75rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

.coop-about__intro h2 {
    margin: 0 0 1.15rem;
    max-width: 14em;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.35rem, 2.8vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.coop-about__intro p {
    margin: 0 0 1rem;
    max-width: 36em;
    color: var(--coop-muted);
    font-size: 1.02rem;
    line-height: 1.65;
}

.coop-about__intro p:last-child {
    margin-bottom: 0;
}

.coop-about__why h3 {
    margin: 0 0 1.25rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

.coop-about__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--coop-line);
    counter-reset: coop-why;
}

.coop-about__list li {
    counter-increment: coop-why;
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 4px 14px;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--coop-line);
}

.coop-about__list li::before {
    content: counter(coop-why, decimal-leading-zero);
    grid-row: 1 / span 2;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(255, 59, 59, 0.85);
    line-height: 1.4;
    padding-top: 0.1rem;
}

.coop-about__list strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
    line-height: 1.35;
}

.coop-about__list span {
    display: block;
    color: var(--coop-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .coop-about__grid {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .coop-about__intro h2 {
        max-width: none;
    }
}

/* ---- Specs: typographic table ---- */

.coop-specs {
    padding: clamp(3.5rem, 8vw, 5.5rem) 0;
    background:
        radial-gradient(ellipse 90% 60% at 0% 0%, rgba(255, 59, 59, 0.05), transparent 50%),
        var(--bg-dark);
    border-top: 1px solid var(--coop-line);
}

.coop-specs__head {
    max-width: 560px;
    margin-bottom: clamp(2rem, 4vw, 2.75rem);
    animation: coop-rise 0.8s var(--ease-out-expo, cubic-bezier(0.22, 1, 0.36, 1)) 0.08s both;
}

.coop-specs__head h2 {
    margin: 0 0 0.75rem;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.35rem, 2.8vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.coop-specs__head p {
    margin: 0;
    color: var(--coop-muted);
    font-size: 1.02rem;
    line-height: 1.6;
}

.coop-specs__list {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--coop-line);
    animation: coop-rise 0.85s var(--ease-out-expo, cubic-bezier(0.22, 1, 0.36, 1)) 0.16s both;
}

.coop-specs__row {
    display: grid;
    grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
    gap: 12px 32px;
    align-items: baseline;
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--coop-line);
}

.coop-specs__row dt {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

.coop-specs__row dd {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    line-height: 1.5;
}

.coop-specs__row--key dd strong {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

/* ---- Form panel ---- */

.coop-apply {
    padding: 0 0 clamp(4rem, 9vw, 6.5rem);
    background: var(--bg-dark);
}

.coop-apply__shell {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(1.85rem, 4.5vw, 2.75rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.055) 0%, transparent 42%),
        linear-gradient(180deg, rgba(22, 22, 28, 0.92), rgba(12, 12, 14, 0.88));
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: coop-rise 0.85s var(--ease-out-expo, cubic-bezier(0.22, 1, 0.36, 1)) 0.12s both;
}

.coop-apply__header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--coop-line);
}

.coop-apply__header h2 {
    margin: 0 0 0.65rem;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.25rem, 2.5vw, 1.55rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.coop-apply__header p {
    margin: 0;
    max-width: 42em;
    color: var(--coop-muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

.coop-apply__header a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.35);
}

.coop-apply__header a:hover {
    text-decoration-color: var(--primary);
}

.coop-form__fieldset {
    margin: 0 0 1.75rem;
    padding: 0;
    border: 0;
}

.coop-form__fieldset legend {
    margin: 0 0 1rem;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.coop-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}

.coop-form .form-group {
    margin-bottom: 1.15rem;
}

.coop-form .form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.coop-form .form-group input,
.coop-form .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: var(--text);
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.coop-form .form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
    border-radius: 16px;
}

.coop-form .form-group input::placeholder,
.coop-form .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.coop-form .form-group input:hover,
.coop-form .form-group textarea:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.07);
}

.coop-form .form-group input:focus,
.coop-form .form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 59, 59, 0.55);
    background: rgba(255, 59, 59, 0.06);
    box-shadow: 0 0 0 4px rgba(255, 59, 59, 0.12);
}

.coop-form__error {
    margin: 0 0 1rem;
    padding: 12px 16px;
    border: 1px solid rgba(255, 59, 59, 0.35);
    border-radius: 14px;
    background: rgba(255, 59, 59, 0.08);
    color: #ffb4b4;
    font-size: 0.9rem;
    line-height: 1.45;
}

.coop-form__success {
    margin: 0 0 1rem;
    padding: 12px 16px;
    border: 1px solid rgba(74, 222, 128, 0.35);
    border-radius: 14px;
    background: rgba(74, 222, 128, 0.08);
    color: #bbf7d0;
    font-size: 0.9rem;
    line-height: 1.45;
}

.coop-files {
    position: relative;
}

.coop-files__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.coop-files__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 148px;
    padding: 1.5rem 1.25rem;
    border: 1.5px dashed rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.coop-files__label:hover,
.coop-files.is-dragover .coop-files__label,
.coop-files__input:focus-visible + .coop-files__label {
    border-color: rgba(255, 59, 59, 0.55);
    background: rgba(255, 59, 59, 0.06);
    box-shadow: 0 0 0 4px rgba(255, 59, 59, 0.1);
}

.coop-files__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 59, 59, 0.12);
    color: #ff6b6b;
    font-size: 1.15rem;
}

.coop-files__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.coop-files__hint {
    max-width: 28em;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
    line-height: 1.45;
}

.coop-files__list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.coop-files__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.coop-files__kind {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 59, 59, 0.14);
    color: #ffb4b4;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.coop-files__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.88rem;
}

.coop-files__size {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.78rem;
    white-space: nowrap;
}

.coop-files__remove {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.coop-files__remove:hover {
    background: rgba(255, 59, 59, 0.2);
    color: #fff;
}

.page-coop .coop-form__footer .btn.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.coop-form__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
    padding-top: 0.35rem;
}

.coop-form__note {
    margin: 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    line-height: 1.4;
}

@media (max-width: 720px) {
    .coop-hero {
        min-height: min(78vh, 640px);
        align-items: flex-end;
    }

    .coop-hero h1 {
        max-width: none;
    }

    .coop-specs__row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 1.15rem 0;
    }

    .coop-form__row {
        grid-template-columns: 1fr;
    }

    .coop-form__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .coop-form__footer .btn {
        width: 100%;
        justify-content: center;
    }
}
