main {
    height: 100%;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

.head-text {
    text-align: center;
    font-size: 48px;
    color: white;
    font-weight: 700;
    margin-top: 75px;
    margin-bottom: 30px;
    line-height: normal;
    height: auto;
}

.cards {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    width: 340px;
    height: 420px;
    border-radius: 15px;
    transition: all .5s;
    overflow: hidden;
    backface-visibility: hidden;
}

.card-main {
    width: 340px;
    height: 420px;
    border-radius: 15px;
    backface-visibility: hidden;
    background-color: #FDAC2E;
    box-shadow: 0px 0px 10px rgb(21, 21, 21);
    transition: .5s;
}

.card-back {
    width: 340px;
    height: 420px;
    border-radius: 15px;
    transform: rotateY(-180deg);
    position: relative;
    top: -420px;
    background-color: #FDAC2E;
    transition: .5s;
    backface-visibility: hidden;
    box-shadow: 0px 0px 10px rgb(21, 21, 21);
    text-align: center;
    display: block;
    justify-content: center;
    align-items: center;
    padding-top: 25px;
    padding-bottom: 25px;
}

input.name {
    margin-bottom: 6px;
    height: 30px;
    width: 250px;
    border-radius: 7px;
    border: 0;
}

input.phone {
    margin-bottom: 10px;
    height: 30px;
    width: 250px;
    border-radius: 7px;
    border: 0;
}

.submit {
    height: 35px;
    width: 130px;
    border-radius: 10px;
    border: 0;
}

.card-text-bg {
    height: 16px;
    margin: 25px 0;
}

.card-back-text2 {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 15px;
}

.card-back-text {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-back-phone {
    color: white;
    text-decoration: none;
    font-size: 25px;
}

.card-back-phone2 {
    color: white;
    text-decoration: none;
    font-size: 25px;
    line-height: 40px;
}

.card-back input {
    text-align: center;
}

.card.clicked .card-main {
    transform: rotateY(180deg);
}

.card.clicked .card-back {
    transform: rotateY(0deg);
}

.card-image {
    width: 340px;
    height: 225px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.card-text {
    font-size: 28px;
    color: black;
    text-align: center;
    font-weight: 700;
    margin: 25px 0;
    position: absolute;
    max-width: 340px;
    width: 100%;
}

.double {
    line-height: 25px;
    margin: 6px 0;
}

.card-description {
    font-size: 20px;
    margin: 0 5px;
}

.education-head, .zarplata-head {
    color: black;
    font-weight: 700;
    vertical-align: middle;
    margin: 15px 0;
}

.education, .zarplata {
    color: white;
    font-weight: 500;
}

.card-arrow {
    font-size: 22px;
    color: white;
    font-weight: 600;
    position: relative;
    cursor: pointer;
}

.card-arrow.next {
    text-align: right;
    top: 15px;
}

.card-arrow.back {
    text-align: left;
    top: 76px;
}

.arrow.back {
    transform: rotate(90deg) scaleX(-1);
}

.arrow {
    height: 50px;
    transform: rotate(-90deg);
    position: relative;
    top: -5px;
}

.card-img {
    -webkit-transition: all 1s cubic-bezier(0.35, 0.19, 0.24, 1.02);
    -moz-transition: all 1s cubic-bezier(0.35, 0.19, 0.24, 1.02);
    -ms-transition: all 1s cubic-bezier(0.35, 0.19, 0.24, 1.02);
    -o-transition: all 1s cubic-bezier(0.35, 0.19, 0.24, 1.02);
    transition: all 1s cubic-bezier(0.35, 0.19, 0.24, 1.02);
}

.card-window {
    background-color: #131313b5;
    width: 100%;
    height: 100%;
    z-index: 9999;
    position: fixed;
}

.card.open {
    z-index: 99999;
    position: relative;
}

@media (max-width: 1300px) {
    .container {
        width: auto;
    }
}

@media (max-width: 940px) {
    .head-text {
        font-size: 30px;
    }

    .card {
        transform: scale(0.8) !important;
    }

    .cards {
        gap: 0;
    }
}