/* vacancies-list.css */
.vacancies-list-main {
    background: #fff;
    padding: 60px 20px;
}
.vacancies-list-container {
    max-width: 1100px;
    margin: 0 auto;
}
.vacancies-list-container h2 {
    font-size: 2.2rem;
    text-align: center;
    font-weight: 900;
    margin: 0 0 2.2rem 0;
    padding-top: 0.7em;
    padding-bottom: 0.5em;
    letter-spacing: 0.5px;
    color: #222;
}
.vacancies-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: stretch;
}
@media (max-width: 1100px) {
    .vacancies-list-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}
@media (max-width: 700px) {
    .vacancies-list-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
.vacancies-list-item {
    background: #f6f6f6;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 0 0 18px 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100%;
    transition: box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}
.vacancies-list-item:hover {
    box-shadow: 0 6px 32px rgba(52,152,219,0.13);
}
.vacancies-list-img-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #eaeaea;
    border-radius: 14px 14px 0 0;
    margin-bottom: 0.7rem;
}
.vacancies-list-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 14px 14px 0 0;
    transition: transform 0.3s;
}
.vacancies-list-item:hover .vacancies-list-img-wrap img {
    transform: scale(1.04);
}
.vacancies-list-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 1.1rem 1.2rem 0.3rem 1.2rem;
    text-align: left;
    color: #222;
    display: flex;
    align-items: center;
    gap: 8px;
}
.vacancies-list-desc {
    font-size: 0.98rem;
    color: #444;
    margin: 0 1.2rem 0.7rem 1.2rem;
    text-align: left;
    display: flex;
    align-items: flex-start;
    flex-grow: 1;
    min-height: 48px;
    margin-bottom: 0.7rem;
}
.vacancies-list-content {
    display: block;
    margin: 0 1.2rem 0.7rem 1.2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(230,126,34,0.07);
    padding: 0 1.2rem;
    font-size: 0.98rem;
    color: #333;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(.77,0,.18,1), opacity 0.25s;
    pointer-events: none;
}
.vacancies-list-content.open {
    padding: 1rem 1.2rem;
    max-height: 800px;
    opacity: 1;
    pointer-events: auto;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInContent {
    from { opacity: 0; }
    to { opacity: 1; }
}
.vacancies-list-details-btn {
    background: #e53935;
    color: #fff;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(229,57,53,0.08);
    cursor: pointer;
    transition: box-shadow 0.18s, transform 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    margin: 0 1.2rem 0.7rem 1.2rem;
    margin-top: auto;
    align-self: flex-end;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    justify-content: center;
}
.vacancies-list-details-btn[aria-expanded="true"] {
    box-shadow: 0 4px 18px rgba(52,52,52,0.13);
    transform: translateY(-2px) scale(1.04);
}
.vacancies-list-desc.open {
    display: block;
    animation: fadeIn 0.3s;
}
.vacancies-list-apply-btn {
    background: #222;
    color: #fff;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(52,52,52,0.08);
    cursor: pointer;
    transition: box-shadow 0.18s, transform 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    margin: 0 1.2rem 0.7rem 1.2rem;
    margin-top: auto;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    justify-content: center;
}
.vacancies-list-apply-btn:hover {
    box-shadow: 0 4px 18px rgba(52,52,52,0.13);
    transform: translateY(-2px) scale(1.04);
}
.vacancy-form-success {
    display: none;
    color: #43a047;
    margin-top: 14px;
    font-weight: 600;
    font-size: 1.08em;
    text-align: center;
}
.vacancy-modal-content h3 {
    font-size: 1.18rem;
    font-weight: 800;
    color: #e53935;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
#vacancyForm input, #vacancyForm textarea {
    width: 100%;
    margin-bottom: 12px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 1rem;
}
#vacancyForm button[type=submit] {
    background: #e53935;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px 0;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: box-shadow 0.18s, transform 0.15s;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(229,57,53,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
#vacancyForm button[type=submit]:hover {
    box-shadow: 0 4px 18px rgba(229,57,53,0.13);
    transform: translateY(-2px) scale(1.04);
}
.vacancy-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45); /* Сделал overlay чуть темнее */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px); /* Лёгкое размытие фона */
}
.vacancy-modal.show {
    display: flex !important;
}
.vacancy-modal-content {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    margin: 40px auto;
    padding: 32px 24px 24px 24px;
    position: relative;
    box-shadow: 0 6px 32px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    opacity: 1;
    animation: popupIn 0.22s;
}
.vacancy-modal-close{
    font-size: 20px;
}

@keyframes popupIn {
    from { transform: translateY(40px) scale(0.95); opacity: 0; }
    to { transform: none; opacity: 1; }
}
.vacancies-list-details-btn,
.vacancies-list-apply-btn {
    width: calc(100% - 2.4rem);
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1.2rem;
    margin-right: 1.2rem;
    margin-top: auto;
}
@media (max-width: 600px) {
    .vacancies-list-details-btn,
    .vacancies-list-apply-btn {
        margin-left: 0.7rem;
        margin-right: 0.7rem;
        width: calc(100% - 1.4rem);
    }
}
/* --- PROFESSIONAL FORM STYLES --- */
.vacancy-form-styled {
    background: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}
.vacancy-form-styled .questions-input-wrap {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    align-items: stretch;
}
.vacancy-form-styled .questions-input-wrap input,
.vacancy-form-styled .questions-input-wrap textarea {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border-radius: 7px;
    border: 1.2px solid #e0e4ea;
    font-size: 1.07rem;
    background: #fff;
    color: #232323;
    transition: border 0.18s, box-shadow 0.18s;
    box-shadow: none;
    outline: none;
    resize: none;
    font-family: inherit;
}
.vacancy-form-styled .questions-input-wrap input::placeholder,
.vacancy-form-styled .questions-input-wrap textarea::placeholder {
    color: #b0b6c3;
    opacity: 1;
    font-size: 1em;
    font-family: inherit;
}
.vacancy-form-styled .questions-input-wrap input[type="file"] {
    padding-left: 44px;
    background: #fff;
    border-radius: 7px;
    border: 1.2px solid #e0e4ea;
    font-size: 1.01rem;
    color: #232323;
    height: 44px;
    display: flex;
    align-items: center;
}
.vacancy-form-styled .questions-input-wrap input:focus,
.vacancy-form-styled .questions-input-wrap textarea:focus {
    border: 1.5px solid #e53935;
    background: #fff;
    box-shadow: 0 0 0 2px #ffeaea;
}
.vacancy-form-styled .questions-input-wrap i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #e53935;
    font-size: 1.13em;
    pointer-events: none;
    opacity: 0.7;
    transition: color 0.18s;
}
.vacancy-form-styled .questions-input-wrap input:focus ~ i,
.vacancy-form-styled .questions-input-wrap textarea:focus ~ i {
    color: #b71c1c;
    opacity: 0.9;
}
.vacancy-form-styled button[type=submit] {
    background: linear-gradient(90deg, #e53935 0%, #b71c1c 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px 0;
    font-size: 1.12rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(229,57,53,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    letter-spacing: 0.01em;
}
.vacancy-form-styled button[type=submit]:hover,
.vacancy-form-styled button[type=submit]:focus {
    background: linear-gradient(90deg, #b71c1c 0%, #e53935 100%);
    box-shadow: 0 4px 18px rgba(229,57,53,0.13);
    transform: translateY(-1px) scale(1.02);
}
.vacancy-form-styled .questions-input-wrap input[type="file"]::-webkit-file-upload-button {
    visibility: hidden;
}
.vacancy-form-styled .questions-input-wrap input[type="file"]::before {
    content: 'Прикрепить файл';
    display: inline-block;
    background: #f8fafc;
    border: 1px solid #e0e4ea;
    border-radius: 6px;
    padding: 7px 18px;
    outline: none;
    white-space: nowrap;
    cursor: pointer;
    font-size: 1em;
    color: #444;
    margin-right: 10px;
    transition: background 0.18s, border 0.18s;
}
.vacancy-form-styled .questions-input-wrap input[type="file"]:focus::before {
    border: 1.5px solid #e53935;
    background: #fff;
}
.vacancy-form-styled .questions-input-wrap input[type="file"]:hover::before {
    background: #f1f1f1;
}
/* Remove default file input text */
.vacancy-form-styled .questions-input-wrap input[type="file"]::-ms-browse {
    display: none;
}

/* Сбросить все старые стили для формы модального окна */
#vacancyForm input, #vacancyForm textarea, #vacancyForm button[type=submit] {
    all: unset;
}

/* Стилизация формы отклика как в questions.css */
#vacancyForm.questions-form {
    flex: 1 1 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 18px rgba(52,152,219,0.08);
}
#vacancyForm .questions-input-wrap {
    position: relative;
    margin-bottom: 18px;
}
#vacancyForm .questions-input-wrap input,
#vacancyForm .questions-input-wrap textarea {
    width: 100%;
    padding: 12px 14px 12px 44px;
    border-radius: 8px;
    border: 1px solid #dbeafe;
    font-size: 1.05rem;
    background: #f8fafc;
    transition: border 0.2s;
    color: #232323;
    font-family: inherit;
}
#vacancyForm .questions-input-wrap input:focus,
#vacancyForm .questions-input-wrap textarea:focus {
    border: 1.5px solid #e53935;
    outline: none;
    background: #fff;
}
#vacancyForm .questions-input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #e53935;
    font-size: 1.1em;
    pointer-events: none;
    opacity: 0.85;
}
#vacancyForm button[type=submit] {
    background: #e53935;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px 0;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(229,57,53,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
#vacancyForm button[type=submit]:hover {
    background: #111;
    color: #fff;
}
#vacancyForm .questions-success-msg {
    display: none;
    color: #43a047;
    margin-top: 14px;
    font-weight: 600;
    font-size: 1.08em;
    text-align: center;
}
#vacancyForm .questions-input-wrap input[type="file"] {
    padding-left: 44px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #dbeafe;
    font-size: 1.01rem;
    color: #232323;
    height: 44px;
    display: flex;
    align-items: center;
}
#vacancyForm .questions-input-wrap input[type="file"]::-webkit-file-upload-button {
    visibility: hidden;
}
#vacancyForm .questions-input-wrap input[type="file"]::before {
    content: 'Прикрепить файл';
    display: inline-block;
    background: #f8fafc;
    border: 1px solid #e0e4ea;
    border-radius: 6px;
    padding: 7px 18px;
    outline: none;
    white-space: nowrap;
    cursor: pointer;
    font-size: 1em;
    color: #444;
    margin-right: 10px;
    transition: background 0.18s, border 0.18s;
}
#vacancyForm .questions-input-wrap input[type="file"]:focus::before {
    border: 1.5px solid #e53935;
    background: #fff;
}
#vacancyForm .questions-input-wrap input[type="file"]:hover::before {
    background: #f1f1f1;
}
#vacancyForm .questions-input-wrap input[type="file"]::-ms-browse {
    display: none;
}
@media (max-width: 900px) {
    #vacancyForm.questions-form {
        padding: 32px 18px;
    }
}
@media (max-width: 600px) {
    #vacancyForm.questions-form {
        padding: 22px 8px;
    }
}
.vacancy-form-section {
    background: #fff;
    padding: 60px 0;
}
.vacancy-form-container {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 18px rgba(52,152,219,0.08);
    padding: 48px 36px;
}
.vacancy-form-title {
    font-size: 2.2rem;
    text-align: center;
    font-weight: 900;
    margin: 0 0 1.2rem 0;
    letter-spacing: 0.5px;
    color: #222;
}
.vacancy-form-desc {
    text-align: center;
    font-size: 1.18rem;
    color: #444;
    margin-bottom: 2.2rem;
}
@media (max-width: 900px) {
    .vacancy-form-container {
        padding: 32px 18px;
    }
}
@media (max-width: 600px) {
    .vacancy-form-container {
        padding: 18px 4px;
    }
    .vacancy-form-title {
        font-size: 1.3rem;
    }
}
