/* Ваканчии */
.job-cards {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.job-title {
    font-weight: 500;
    font-size: var(--h2-fontsize);
    line-height: 100%;
    margin: 0;
}

.job-card {
    position: relative;
    min-height: 320px;
    border: 5px solid var(--main-bg);
    border-radius: 30px;
    padding: 40px 30px;
}

.job-card:nth-child(2n) {
    background-color: var(--violet-color);
    border: 5px solid var(--violet-color);
}

.job-card:nth-child(1) {
    transform: rotate(-2deg);
}

.job-card:nth-child(3) {
    transform: rotate(1deg);
}

.job-card:nth-child(2) {
    transform: rotate(-2deg);
}

.job-card:nth-child(4) {
    transform: rotate(3deg);
}

.job-text {
    padding-right: 40%;
    font-size: .9rem;
}

.job-img {
    position: absolute;
    right: -30px;
    bottom: -30px;
    max-height: 240px;
}

.job-button {
    position: absolute;
    text-align: center;
    padding: 0;
    font-size: .9rem;
    line-height: 44px;
    height: 44px;
    bottom: -22px;
    left: 25px;
    right: 25px;
}

/* About */
.about-text {
    text-align: left;
    font-size: var(--h1-fontsize);
    line-height: 1em;
    font-weight: 500;
    margin: 0;
}

.about-banner-pc {
    width: 100%;
    margin-top: -50px;
}

.about-banner-mobile {
    display: none;
}

/* Плюшки? */
.benefits-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 30px;
}

.benefit-card:nth-child(1) {
    grid-column: span 4;
}

.benefit-card:nth-child(2) {
    grid-column: span 2;
}

.benefit-card:nth-child(3) {
    grid-column: span 3;
}

.benefit-card:nth-child(4) {
    grid-column: span 3;
}

.benefit-card:nth-child(5) {
    grid-column: span 2;
}

.benefit-card:nth-child(6) {
    grid-column: span 4;
}

.benefit-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    border: 5px solid var(--main-bg);
    border-radius: 30px;
    padding: 50px;
}

.benefit-card.blue {
    background-color: var(--main-bg);
    border: 5px solid var(--main-bg);
    color: #fff;
}

.benefit-card.violet {
    background-color: var(--violet-color);
    border: 5px solid var(--violet-color);
    color: var(--main-color);
}

.benefit-info.p-right {
    padding-right: 120px;
}

.benefit-title {
    font-size: var(--h2-fontsize);
    font-weight: 500;
    line-height: 1.1em;
    margin: 0;
}

.benefit-text {
    margin: 0;
    margin-top: 20px;
    font-size: 1rem;
    line-height: 1.5em;
}

.benefit-img-rub {
    max-width: 240px;
    margin-top: -10px;
    margin-bottom: -10px;
    margin-right: -10px;
}

.benefit-img-percent {
    max-width: 260px;
    margin-top: -70px;
    margin-bottom: -10px;
    margin-right: -10px;
    z-index: 1;
}

.benefit-card.cutted {
    border: none;
    position: relative;
    background-image: url(/wa-data/public/site/themes/landings/img/benefits/cut-mask.webp);
    background-position: right bottom;
    background-repeat: no-repeat;
}

.benefit-card.cutted .benefit-text{
    padding-right: 100px;
}

.benefit-card.cutted .benefit-button {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    width: 340px;
    height: 60px;
    bottom: 0px;
    right: 0px;
}

/* Team */
.team-cards {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 20px;
}

.team-card {
    flex: 1 1 45%;
    position: relative;
    min-height: 320px;
    border-radius: 30px;
    padding: 40px;
    background-color: var(--violet-color);
    border: 5px solid var(--violet-color);
}

.team-card-info {
    padding-right: 20%;
}

.team-card-title {
    font-size: var(--h2-fontsize);
    line-height: 100%;
    font-weight: 500;
    margin: 0;
}

.team-card-text {
    font-size: 1rem;
}

.team-card-subtext {
    font-size: 1.3rem;
    font-weight: 500;
}

.team-card-img {
    position: absolute;
    right: -40px;
    top: -30px;
    max-width: 120px;
}

@media (max-width: 1200px) {
    :root {
        --big-fontsize: 70px;
    }

    .job-cards {
        flex-wrap: wrap;
        gap: 40px;
    }

    .job-card {
        flex: 1 1 45%;
    }
    
    .job-card:nth-child(1) {
        transform: rotate(1deg);
    }
    
    .job-card:nth-child(2) {
        transform: rotate(-2deg);
    }

    .job-card:nth-child(3) {
        transform: rotate(0deg);
    }
    
    .job-card:nth-child(4) {
        transform: rotate(-1deg);
    }

    .about-banner-pc {
        margin-top: 0;
    }

    .benefits-cards {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .benefit-card {
        padding: 40px;
    }

    .benefit-info.p-right {
        padding-right: 0;
    }

    .form-banner-card {
        display: flex;
        flex-direction: column;
        padding-right: 40px;
        padding: 40px;
    }

    .form-banner-img {
        position: initial;
    }

    .header-btn {
        display: none;
    }

    .team-cards {
        flex-direction: column;
    }

    .team-card {
        padding: 30px;
    }

    .team-card-info {
        padding-right: 10%;
    }

    .team-card-img {
        transform: rotate(-5deg);
    }
}

@media (max-width: 1000px) {
    .how-works-cards .card{
        flex: 1 1 100%;
    }
}

@media (max-width: 700px) {
    :root {
        --base-fontsize: 16px;
        --h1-fontsize: 40px;
        --h2-fontsize: 32px;
        --big-fontsize: 48px;
    }

    .view-pc {
        display: none;
    }

    .view-mobile {
        display: inline-block;
    }

    .header-list {
        display: none;
    }

    .hero {
        margin-top: 0;
    }

    .hero-img {
        display: none;
    }

    .hero-img_mobile {
        display: block;
        margin-bottom: 30px;
    }

    .menu-btn {
        display: block;
    }

    section {
        margin-top: 4rem;
    }

    .hero-list {
        flex-direction: column;
        gap: 5px;
    }

    .hero-item {
        width: 80%;
    }

    .hero-item .hero-link{
        width: 100%;
    }

    .hero-item:not(:first-child) {
        margin-left: 0px;
    }

    .hero-item:nth-child(1) {
        transform: rotate(-1deg);
        margin-left: 40px;
        margin-right: 0;
    }
    
    .hero-item:nth-child(2) {
        transform: rotate(2deg);
        margin-left: 0;
        margin-right: 40px;
    }
    
    .hero-item:nth-child(3) {
        transform: rotate(1deg);
        margin-left: 40px;
        margin-right: 0;
    }
    
    .hero-item:nth-child(4) {
        transform: rotate(-3deg);
        margin-left: 0;
        margin-right: 40px;
    }

    .hero-info-btn {
        width: 100%;
    }

    .job-cards {
        flex-wrap: wrap;
        gap: 40px;
    }

    .job-card {
        flex: 1 1 100%;
        min-height: 240px;
    }

    .team {
        overflow: hidden;
    }

    .about-text {
        font-size: var(--h1-fontsize);
    }

    .about-banner-pc {
        display: none;
    }

    .about-banner-mobile {
        display: block;
        width: 100%;
    }

    .benefits-cards {
        gap: 20px;
    }

    .benefit-card {
        flex-direction: column;
        padding: 30px;
    }

    .benefit-img-rub {
        max-width: 240px;
        margin-top: 0;
        margin-bottom: 0;
        margin-right: 0;
        margin: 0 auto;
    }
    
    .benefit-img-percent {
        max-width: 260px;
        margin-top: 0;
        margin-bottom: 0;
        margin-right: 0;
        margin: 0 auto;
    }

    .benefit-card.cutted {
        border: none;
        background-image: none;
    }

    .benefit-card.cutted .benefit-text{
        padding-right: 0;
    }    

    .benefit-card.cutted .benefit-button {
        position: initial;
        font-size: 1.1rem;
        width: 100%;
        height: 60px;
        margin: 0 auto;
    }
}