/* ===== COMPANIES HERO ===== */

.companies-hero {
    padding: 30px 0 80px;
}

.companies-hero__container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 40px;
}

.companies-hero__back {
    font-family: "Manrope-Regular", sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 8px 14px;

    border-radius: 999px;

    background: rgba(0,0,0,.05);

    color: #555;
    text-decoration: none;

    font-size: 14px;

    cursor: pointer;

    transition: all .3s ease;

    position: relative;
    top: 40px; /* подберите значение */
    z-index: 100;
}

.companies-hero__back:hover {
    background: rgba(0,0,0,.1);

    transform: translateY(-1px);
}

.companies-hero__back:active {
    transform: translateY(0);
}

.companies-hero__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    margin-top: 0px;

    gap: 80px;

    position: relative;
}

.companies-hero__left {
    position: relative;
    flex: 0 0 100px;
}

.companies-hero__title {
    font-family: "AV Fontimer-SemiBold", sans-serif;
    font-size: 92px;
    left: 150px;
    font-weight: 800;
    line-height: .95;

    color: #202020;

    position: relative;
    z-index: 2;
}

.companies-hero__background {
    font-family: "AV Fontimer-Black", sans-serif;
    position: absolute;

    top: 10px;
    left: 50%;

    font-size: 150px;
    font-weight: 900;

    color: transparent;

    -webkit-text-stroke: 1px #d8d1c8;

    white-space: nowrap;

    z-index: 1;

    user-select: none;
    pointer-events: none;
}

.companies-hero__right {
    font-family: "Manrope-Medium", sans-serif;
    z-index: 2;
    max-width: none;
    padding-top: 140px;
}

.companies-hero__right p {
    font-size: 36px;
    line-height: 1.45;
    color: #2c2c2c;
}

.companies-hero__right span {
    color: #e36a2d;
}

/* ===== COMPANY CARD right ===== */

.company-card {
    padding: 40px 0;
}

.company-card__container {
    max-width: 1920px;

    margin: 0 auto;
    padding: 0 40px;

    display: flex;
    /*align-items: flex-start;*/

    gap: 80px;
    justify-content: flex-start;
}

/*.company-card__image {*/
/*    flex: 1.3;*/
/*}*/

/*.company-card__image img {*/
/*    width: 100%;*/

/*    display: block;*/

/*    border-radius: 20px;*/

/*    object-fit: cover;*/
/*}*/

.company-card__content {
    flex: 1;

    max-width: 800px;
}

.company-card__category {
    display: inline-block;

    color: #138a36;

    font-size: 22px;
    font-weight: 500;

    margin-bottom: 35px;
}

.company-card__title {
    font-family: "AV Fontimer-SemiBold", sans-serif;
    font-size: 66px;
    line-height: .95;
    font-weight: 700;

    color: #202020;

    margin-bottom: 40px;
}

.company-card__description {
    font-family: "Manrope-Regular", sans-serif;
    font-size: 22px;
    line-height: 1.55;

    color: #3b3b3b;

    margin-bottom: 40px;
}

.company-card__logo {
    display: inline-block;

    transition: .3s ease;
}

.company-card__logo:hover {
    transform: translateY(-3px);
}

.company-card__logo img {
    max-width: 220px;
    display: block;
}

.fade-in-section {
        opacity: 0;
        transform: translateY(40px);
        transition: all 0.8s ease;
}

.fade-in-section.visible {
        opacity: 1;
        transform: translateY(0);
}

.company-card__image {
    flex: 1.2;


    max-width: 1064px;
    height: 600px;

    overflow: hidden;
    border-radius: 20px;
}

.company-card__image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform .5s ease;
}

.company-card__image:hover img {
    transform: scale(1.05);
}

/* ADAPTATION */

/* ===== TABLET ===== */

@media (max-width: 1240px) {

    .companies-hero__container,
    .company-card__container {
        padding: 0 30px;
    }

    /* HERO */
    .companies-hero__content {
        flex-direction: column;
        gap: 24px;
    }

    .companies-hero__title {
        font-size: 48px;
        left: 140px;
    }

    .companies-hero__background {
        font-size: 72px;
        top: 10px;
        left: 0;
    }

    .companies-hero__right {
        max-width: 100%;
        padding-top: 0;
    }

    .companies-hero__right p {
        font-size: 18px;
    }

    /* CARD */
    .company-card__container {
        flex-direction: column;
        gap: 24px;
    }

    .company-card__content {
        display: flex;
        flex-direction: column;
        order: 2;
        max-width: 100%;
    }

    .company-card__image {
        order: 1;
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .company-card__category {
        order: 1;
        font-size: 18px;
        margin-bottom: 12px;
    }

    .company-card__title {
        order: 2;
        font-size: 42px;
        margin-bottom: 12px;
    }

    .company-card__description {
        order: 3;
        font-size: 18px;
        margin-bottom: 12px;
    }

    .company-card__logo {
        order: 4;
    }

    .company-card__logo img {
        max-width: 160px;
    }
}

/* ===== MOBILE ===== */

@media (max-width: 480px) {

    .companies-hero {
        padding: 20px 0 40px;
    }

    .companies-hero__container,
    .company-card__container {
        padding: 0 20px;
    }

    .companies-hero__content {
        gap: 16px;
    }

    .companies-hero__title {
        font-size: 32px;
        left: 0;
        margin: 0 0 0 50px;
    }

    .companies-hero__background {
        display: none;
    }

    .companies-hero__right {
        padding-top: 0;
        max-width: 100%;
    }

    .companies-hero__right p {
        font-size: 15px;
        line-height: 1.4;
        margin: 0;
    }

    .companies-hero__left {
        flex: none;
    }

    .company-card {
        padding: 24px 0;
    }

    .company-card__container {
        flex-direction: column;
        gap: 16px;
    }

    .company-card__content {
        display: flex;
        flex-direction: column;
        order: 2;
    }

    .company-card__image {
        order: 1;
        aspect-ratio: 16 / 10;
        border-radius: 14px;
    }

    .company-card__category {
        order: 1;
        font-size: 14px;
        margin-bottom: 10px;
    }

    .company-card__title {
        order: 2;
        font-size: 28px;
        margin-bottom: 10px;
        line-height: 1.1;
    }

    .company-card__description {
        order: 3;
        display: none;
    }

    .company-card__logo {
        order: 4;
    }

    .company-card__logo img {
        max-width: 140px;
    }

    .back-text {
     display: none;
     }

    .back-icon {
        font-size: 18px;
    }
}

