html {
    scroll-behavior: smooth;
}

h2, h2 span {
    color: var(--title-text-color);
    font-size: 20px;
    font-weight: 700;
}

h2 span {
    color: var(--green-color);
}

.form__container.green {
    background-color: var(--green-color);
    background-image: url("../images/form-circle-opacity.4ded05abdaec.svg");
    height: max-content;
    background-size: cover;
}

.form__container.green h1, .form__container.green p {
    color: #fff;
}

.form__container.green h1 {
    font-size: 24px;
}

.form__container.green p {
    margin-bottom: 20px;
}

.form {
    flex-direction: column;
    height: unset;
}

.form__row {
    display: flex;
    width: 100%;
    gap: 10px;
    height: 55px;
}

.form-button {
    background-color: #fff;
    color: var(--green-color);
}

.block:nth-of-type(2) {
    margin-top: 50px;
}

.block__items.vacancy {
    flex-direction: column;
    justify-content: flex-start;
}

.block-item.vacancy {
    height: max-content;
    width: 100%;
}

.vacancy__head {
    min-height: 185px;
    margin-bottom: 12px;
}

.vacancy__head.single {
    margin: 0;
}

.vacancy-items__container {
    margin-bottom: 20px;
}

.vacancy-salary {
    margin-top: 10px;
    margin-bottom: 12px;
}

.vacancy__description {
    margin-left: 20px;
}

.vacancy__description li {
    color: var(--text-color);
    font-size: 15px;
}

.vacancy__container, .company__container {
    background-color: #fff;
    border-radius: var(--border-radius);
}

.company__container {
    padding-bottom: 50px;
}

.vacancy__container-head, .company__container-head {
    background-image: url("../images/vacancy-circle.0ab2b4885aa8.svg");
    background-repeat: no-repeat;
    background-position: right;
    background-size: cover;
    padding: 30px;
    border-bottom: 1px solid #D9D9D9;
}

.company__container-head {
    display: flex;
    background: transparent;
    align-items: center;
    gap: 26px;
    padding-left: 0;
    padding-right: 0;
}

.sub-header {
    font-size: 17px;
    font-weight: 700;
    color: var(--title-text-color);
    /*margin-bottom: 10px;*/
}

.company__container-head img {
    width: 85px;
    height: 85px;
    border-radius: 16px;
}

.vacancy__block:not(:last-of-type) {
    padding: 30px;
    border-bottom: 1px solid #D9D9D9;
}

.vacancy__block:last-of-type {
    padding: 20px 30px;
}

.vacancy__block-title {
    color: var(--title-text-color);
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 32px;
    font-weight: 400;
}

.vacancy__block-item {
    margin-top: 20px;
    display: flex;
    width: 100%;
}

.vacancy__block-item span {
    color: var(--title-text-color);
    font-weight: 700;
    width: 160px;
}

.vacancy__block-item ul {
    flex: 1;
}

.vacancy__block-item ul li {
    font-size: 17px;
    line-height: 27px;
    color: #4F5668;
}

.breadcrumbs__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 14px;
}

.vacancy__block span, .breadcrumbs__container a {
    font-size: 14px;
    color: var(--text-color);
    transition: color .1s ease;
}

.breadcrumbs__container a:hover {
    color: var(--green-color);
}

.vacancy__block span {
    margin-top: auto;
}

.vacancy__block-item span {
    margin-top: unset;
}

#specialization_input input {
    cursor: pointer;
}

#specialization_input .element-suggest {
    max-height: 336px;
    overflow-y: scroll;
}

input[type='number'] {
    -moz-appearance:textfield;
}

.company__container-head h1 {
    color: var(--title-text-color);
    font-size: 22px;
    font-weight: 700;
    text-transform: unset;
    margin-bottom: 0;
}

.company__block {
    padding: 20px 0px 30px 0px;
}

.company__block p {
    color: #4F5668;
    font-size: 17px;
    line-height: 27px;
    margin-bottom: 15px;
}

.company__block p:last-of-type {
    margin-bottom: 0;
}

.modal, .modal-thanks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    background-color: rgba(0,0,0,0.25);
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease;
}

.modal.active, .modal-thanks.active {
    pointer-events: all;
    opacity: 1;
}

.modal__container {
    border-radius: var(--border-radius);
    background-color: #F2F4F6;
    padding: 30px;
    width: 450px;
    position: relative;
}

.modal__container p {
    margin-top: 6px;
}

.modal-header {
    color: var(--title-text-color);
    font-size: 24px;
    line-height: 27px;
    font-weight: 700;
    text-transform: uppercase;
}

.modal_closer {
    position: absolute;
    right: 30px;
    top: 30px;
    cursor: pointer;
}

#form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.form-element.modal-form {
    width: 100%;
    height: unset;
}

.form-element.modal-form input {
    height: 55px;
    margin-top: 6px;
}

.form-element label {
    margin-bottom: 6px;
    color: var(--title-text-color);
    font-size: 15px;
}

.form-button.modal-form {
    background-color: var(--green-color);
    height: 55px;
    margin-top: 20px;
    color: #fff;
    flex: unset;
}

.required {
    color: #ea4e4e;
    font-size: 22px;
}

.vacancy-name {
    text-transform: unset;
}

/* Для Chrome, Safari, Opera ... */
#salary_from_input::-webkit-outer-spin-button,
#salary_from_input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Для Firefox */
#salary_from_input {
  -moz-appearance: textfield;
}

.anchor-top {
    position: fixed;
    right: 30px;
    bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s ease;
    z-index: 5;
}

.anchor-top.active {
    opacity: 1;
    animation: 0.8s ease-in 1 anchor-appearance;
}

@keyframes anchor-appearance {
    0% {
        bottom: -80px;
    }
    25% {
        bottom: 60px;
    }
    50% {
        bottom: 50px;
    }
    100% {
        transform: rotate(0);
    }
}

@media screen and (max-width: 900px) {
    .form__container.green {
        height: max-content;
    }

    .form__row {
        flex-direction: column;
        height: max-content;
    }

    .vacancy__container, .company__container {
        width: 100vw;
        margin-left: -30px;
        overflow-x: hidden;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }

    .anchor-top {
        right: 10px;
        bottom: 30px;
    }

    @keyframes anchor-appearance {
        0% {
            bottom: -50px;
        }
        25% {
            bottom: 40px;
        }
        50% {
            bottom: 30px;
        }
        100% {
            transform: rotate(0);
        }
    }
}

@media screen and (max-width: 580px) {
    .vacancy__block-title {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .vacancy__block-item {
        flex-direction: column;
    }

    .vacancy__block-item span {
        margin-bottom: 10px;
    }

    .vacancy__block-item ul {
        margin-left: 20px;
    }

    .vacancy__block-item li {
        font-size: 15px;
    }

    .breadcrumbs__container {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .breadcrumbs__container span {
        font-size: 12px;
    }
}

@media screen and (max-width: 420px) {
    .company__block p {
        font-size: 15px;
        line-height: 26px;
    }
}