/* =========================================
   COOPERATION PAGE — NEW FIGMA LAYOUT
========================================= */
.cooperation-page-shell {
    min-height: 100vh;
    background: #f3f3f3;
    overflow-x: hidden;
}

.cooperation-header {
    background: #f3f3f3;
    position: relative;
    z-index: 20;
}

.cooperation-page {
    background: #f3f3f3;
    overflow: hidden;
}

.cooperation-page .container,
.cooperation-header .container {
    width: min(calc(100% - 48px), 1180px);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* =========================================
   HERO
========================================= */
.cooperation-hero {
    background: #42e0a8;
    padding: 26px 0 30px;
}

.cooperation-hero__container {
    max-width: 840px;
}

.cooperation-hero__title {
    margin: 0;
    font-size: clamp(28px, 3.1vw, 44px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #000;
}

/* =========================================
   INTRO
========================================= */
.coop-intro-section {
    background: #f3f3f3;
    padding: 58px 0 60px;
}

.coop-intro-container {
    max-width: 780px;
}

.coop-intro-text {
    max-width: 680px;
    margin: 0 auto 34px;
}

.coop-intro-text p {
    margin: 0;
    font-size: clamp(18px, 1.7vw, 24px);
    line-height: 1.24;
    font-weight: 500;
    letter-spacing: -0.025em;
    color: #111;
}

.coop-quote {
    position: relative;
    max-width: 620px;
    margin: 0 auto;
    padding: 0 58px;
    border: 0;
}

.coop-quote p {
    margin: 0;
    font-size: clamp(15px, 1.35vw, 18px);
    line-height: 1.22;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111;
}

.coop-quote__mark {
    position: absolute;
    font-size: 76px;
    line-height: 1;
    font-weight: 800;
    color: #111;
}

.coop-quote__mark--left {
    top: -18px;
    left: 0;
}

.coop-quote__mark--right {
    right: 0;
    bottom: -44px;
}

/* =========================================
   STORY GREEN SECTION
========================================= */
.coop-story-section {
    background: #42e0a8;
    padding: 58px 0 58px;
}

.coop-story-container {
    max-width: 760px;
}

.coop-story-content {
    max-width: 680px;
    margin: 0 auto;
}

.coop-story-content h2 {
    margin: 0 0 16px;
    font-size: clamp(34px, 4.3vw, 58px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.055em;
    color: #000;
}

.coop-story-lead {
    max-width: 610px;
    margin: 0 0 28px;
    font-size: clamp(18px, 1.8vw, 25px);
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -0.035em;
    color: #111;
}

.coop-story-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.coop-story-item h3,
.coop-business-item h3 {
    width: fit-content;
    margin: 0 0 8px;
    padding: 4px 14px 6px;
    border-radius: 999px;
    background: #8a2a8e;
    color: #fff;
    font-size: clamp(19px, 1.9vw, 28px);
    line-height: 1;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.coop-story-item p,
.coop-business-item p {
    margin: 0;
    max-width: 660px;
    font-size: clamp(13px, 1vw, 16px);
    line-height: 1.28;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: #111;
}

/* =========================================
   CASES / COOPERATION SLIDER
========================================= */
.coop-cases-section {
    background: #f3f3f3;
    padding: 62px 0 60px;
}

.coop-cases-container {
    max-width: 980px;
}

.coop-section-title {
    margin: 0 0 30px;
    font-size: clamp(36px, 4.6vw, 62px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.055em;
    color: #000;
}

.coop-slider-shell {
    position: relative;
    display: flex;
    align-items: center;
    gap: 28px;
}

.coop-slider-viewport {
    width: 100%;
    overflow: hidden;
}

.coop-slider-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease;
    will-change: transform;
}

.coop-case-card {
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: calc((100% - 48px) / 3);
    background: #fff;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
    transition: 0.35s ease;
}

.coop-case-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

.coop-case-card__image {
    width: 100%;
    height: 185px;
    overflow: hidden;
    background: #d9d9d9;
}

.coop-case-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.55s ease;
}

.coop-case-card:hover .coop-case-card__image img {
    transform: scale(1.06);
}

.coop-case-card__content {
    padding: 14px 13px 18px;
}

.coop-case-card__content h3 {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.14;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #111;
}

.coop-case-card__content p {
    margin: 0 0 14px;
    font-size: 11px;
    line-height: 1.32;
    font-weight: 500;
    color: #222;
}

.coop-case-card__btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 7px 12px;
    border-radius: 2px;
    background: #42e0a8;
    color: #111;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    transition: 0.3s ease;
}

.coop-case-card__btn:hover {
    transform: translateY(-2px);
    background: #31d69c;
}

.coop-slider-arrow {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #42e0a8;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s ease;
}

.coop-slider-arrow:hover {
    transform: scale(1.08);
    background: #31d69c;
}

.coop-slider-arrow i {
    font-size: 14px;
}

/* =========================================
   WORK TOGETHER
========================================= */
.coop-work-section {
    background: #f3f3f3;
    padding: 0 0 66px;
}

.coop-work-container {
    max-width: 820px;
}

.coop-work-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 10px;
}

.coop-work-card {
    position: relative;
    min-height: 150px;
    padding: 22px 24px;
    overflow: hidden;
    transition: 0.35s ease;
}

.coop-work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 26px rgba(0, 0, 0, 0.12);
    z-index: 3;
}

.coop-work-card--green {
    background: #42e0a8;
    color: #111;
}

.coop-work-card--purple {
    background: #8a2a8e;
    color: #fff;
}

.coop-work-card--center {
    grid-column: 1 / -1;
    width: 50%;
    justify-self: center;
}

.coop-work-card h3 {
    margin: 0 0 14px;
    font-size: clamp(15px, 1.35vw, 19px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.coop-work-card p {
    margin: 0;
    font-size: clamp(12px, 1vw, 14px);
    line-height: 1.28;
    font-weight: 500;
    letter-spacing: -0.015em;
}

.coop-work-card__notch {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #f3f3f3;
    transform: translateY(-50%);
}

.coop-work-card__notch--left {
    left: -7px;
}

.coop-work-card__notch--right {
    right: -7px;
}

/* =========================================
   BUSINESS SECTION
========================================= */
.coop-business-section {
    position: relative;
    background: #dff1ea;
    padding: 62px 0 66px;
    overflow: hidden;
}

.coop-business-container {
    max-width: 820px;
}

.coop-business-content {
    max-width: 690px;
    margin: 0 auto;
}

.coop-business-content h2 {
    margin: 0 0 26px;
    font-size: clamp(36px, 4.8vw, 62px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.055em;
    color: #000;
}

.coop-business-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.coop-business-decor {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.coop-business-decor--left {
    left: -42px;
    bottom: 72px;
    width: 170px;
    opacity: 0.85;
}

.coop-business-decor--right {
    right: -28px;
    top: 70px;
    width: 180px;
    opacity: 0.85;
}

/* =========================================
   SUPPORT OVERRIDE FOR THIS PAGE
========================================= */
.cooperation-support-section {
    background: #f3f3f3;
    padding: 66px 0 64px;
}

.cooperation-support-section .support-grid {
    grid-template-columns: minmax(320px, 460px) minmax(240px, 300px);
    column-gap: 76px;
}

.cooperation-support-section .support-text p {
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.32;
}

.cooperation-support-section .support-visual__image-wrap {
    margin-left: 0;
}

.cooperation-support-section .support-visual__image {
    max-width: 210px;
}

.cooperation-support-section .support-btn {
    min-width: 155px;
    padding: 12px 18px;
    font-size: 12px;
}

/* =========================================
   CONTACTS + FOOTER OVERRIDE
   чтобы Cooperation.css не ломал общий стиль
========================================= */
.cooperation-page .contacts-section {
    background: #42e0a8;
    padding: 28px 0 26px;
}

.cooperation-page .contacts-container {
    width: min(calc(100% - 48px), 620px);
    max-width: 620px;
    margin: 0 auto;
}

.cooperation-page .contacts-title {
    margin: 0 0 14px;
    font-size: clamp(44px, 4.8vw, 54px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #000;
}

.cooperation-page .contacts-line {
    width: 100%;
    height: 1.5px;
    background: #111;
    margin-bottom: 12px;
}

.cooperation-page .contacts-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.cooperation-page .contact-item {
    display: flex;
    align-items: center;
    gap: 18px;
    width: fit-content;
    color: #000;
}

.cooperation-page .contact-icon {
    width: 32px;
    height: 32px;
    border: 1.6px solid #111;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cooperation-page .contact-icon i {
    font-size: 15px;
}

.cooperation-page .contact-text {
    font-size: clamp(20px, 2vw, 24px);
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.03em;
}

/* =========================================
   REVEAL
========================================= */
.reveal,
.reveal-support-left,
.reveal-support-right,
.reveal-support-up {
    opacity: 0;
    transform: translateY(28px);
}

.reveal.in-view,
.reveal-support-left.in-view,
.reveal-support-right.in-view,
.reveal-support-up.in-view {
    animation: cooperationRevealUp 0.8s ease forwards;
}

.delay-1.in-view {
    animation-delay: 0.1s;
}

.delay-2.in-view {
    animation-delay: 0.18s;
}

.delay-3.in-view {
    animation-delay: 0.26s;
}

.delay-4.in-view {
    animation-delay: 0.34s;
}

@keyframes cooperationRevealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1100px) {

    .coop-cases-container,
    .coop-work-container,
    .coop-business-container {
        max-width: 900px;
    }

    .coop-business-decor--left {
        width: 125px;
        left: -55px;
    }

    .coop-business-decor--right {
        width: 140px;
        right: -55px;
    }
}

@media (max-width: 900px) {

    .cooperation-hero__title,
    .coop-story-content h2,
    .coop-business-content h2 {
        text-align: left;
    }

    .coop-slider-shell {
        gap: 14px;
    }

    .coop-case-card {
        flex: 0 0 calc((100% - 24px) / 2);
        min-width: calc((100% - 24px) / 2);
    }

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

    .coop-work-card--center {
        width: 100%;
    }

    .coop-work-card__notch {
        display: none;
    }

    .cooperation-support-section .support-grid {
        grid-template-columns: 1fr;
        row-gap: 32px;
    }
}

@media (max-width: 767px) {

    .cooperation-page .container,
    .cooperation-header .container {
        width: min(calc(100% - 28px), 1180px);
    }

    .cooperation-hero {
        padding: 24px 0;
    }

    .coop-intro-section {
        padding: 42px 0 44px;
    }

    .coop-quote {
        padding: 0 34px;
    }

    .coop-quote__mark {
        font-size: 54px;
    }

    .coop-quote__mark--right {
        bottom: -34px;
    }

    .coop-story-section,
    .coop-business-section {
        padding: 44px 0;
    }

    .coop-cases-section {
        padding: 48px 0;
    }

    .coop-work-section {
        padding-bottom: 48px;
    }

    .coop-slider-shell {
        padding: 0 38px;
    }

    .coop-slider-arrow {
        position: absolute;
        top: 42%;
        z-index: 4;
    }

    .coop-slider-arrow--left {
        left: 0;
    }

    .coop-slider-arrow--right {
        right: 0;
    }

    .coop-case-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .coop-case-card__image {
        height: 220px;
    }

    .coop-work-card {
        min-height: auto;
        padding: 20px;
    }

    .coop-business-decor--left {
        width: 80px;
        left: -36px;
        bottom: 40px;
        opacity: 0.55;
    }

    .coop-business-decor--right {
        width: 92px;
        right: -38px;
        top: 42px;
        opacity: 0.55;
    }

    .cooperation-support-section {
        padding: 46px 0;
    }

    .cooperation-page .contacts-container {
        width: min(calc(100% - 28px), 620px);
    }

    .cooperation-page .contacts-title {
        font-size: 42px;
    }

    .cooperation-page .contact-text {
        font-size: 20px;
    }
}

@media (max-width: 420px) {
    .cooperation-hero__title {
        font-size: 25px;
    }

    .coop-story-content h2,
    .coop-business-content h2,
    .coop-section-title {
        font-size: 32px;
    }

    .coop-story-item h3,
    .coop-business-item h3 {
        font-size: 18px;
    }

    .coop-slider-shell {
        padding: 0 32px;
    }

    .coop-case-card__image {
        height: 190px;
    }

    .cooperation-page .contact-text {
        font-size: 18px;
    }
}