﻿html {
    overflow-x: hidden !important;
    overscroll-behavior-x: none;
}
body {
    overflow-x: hidden !important;
    overscroll-behavior-x: none;
    position: relative;
    width: 100%;
}
.vacancies-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
.vacancies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 1200px) {
    .vacancies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .vacancies-wrapper {
        padding: 0 16px;
        overflow: hidden;
    }
    .vacancies-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
.vacancy-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border: 1px solid #e8ecf1;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.vacancy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: #3b82f6;
}
.vacancy-card-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.vacancy-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
    line-height: 1.3;
    min-height: 52px;
}
.vacancy-details {
    margin-bottom: 24px;
    flex: 1;
}
.vacancy-detail {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f2f5;
}
.vacancy-detail:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.detail-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.detail-value {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a2e;
}
.salary-value {
    font-size: 18px;
    font-weight: 700;
    color: #10b981;
}
.vacancy-apply-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: auto;
}
.vacancy-apply-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}
@media (max-width: 768px) {
    .vacancy-card {
        border-radius: 14px;
    }
    .vacancy-card:hover {
        transform: none;
    }
    .vacancy-card-content {
        padding: 20px;
    }
    .vacancy-title {
        font-size: 18px;
        margin-bottom: 16px;
    }
    .vacancy-details {
        margin-bottom: 20px;
    }
    .vacancy-detail {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 8px;
        align-items: baseline;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    .detail-label {
        font-size: 13px;
        margin-bottom: 0;
        white-space: nowrap;
    }
    .detail-label::after {
        content: ':';
    }
    .detail-value {
        font-size: 14px;
    }
    .salary-value {
        font-size: 16px;
    }
}
.vf-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
}
.vf-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}
.vf-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1;
    animation: vfFadeIn .25s ease;
}
@keyframes vfFadeIn {
    from {
        opacity: 0
    }
    to {
        opacity: 1
    }
}
.vf-content {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 36px 40px 40px;
    width: 94%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .2);
    animation: vfSlideUp .35s cubic-bezier(.4, 0, .2, 1);
}
@keyframes vfSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}
.vf-content::-webkit-scrollbar {
    width: 5px
}
.vf-content::-webkit-scrollbar-track {
    background: transparent
}
.vf-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px
}
.vf-handle {
    display: none
}
.vf-modal .vf-close {
    position: sticky !important;
    top: 0 !important;
    float: right !important;
    margin-top: -8px !important;
    margin-right: -8px !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    background: #f3f4f6 !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 24px !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 1 !important;
    transition: background .2s, transform .2s !important;
    -webkit-tap-highlight-color: transparent;
    z-index: 10 !important;
    box-sizing: border-box !important;
}
.vf-modal .vf-close:hover {
    background: #e5e7eb !important;
    transform: rotate(90deg) !important;
}
.vf-modal .vf-title {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 4px !important;
    padding-right: 50px !important;
}
.vf-modal .vf-vacancy-label {
    font-size: 14px !important;
    color: #3b82f6 !important;
    font-weight: 600 !important;
    margin-bottom: 24px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}
.vf-vacancy-label svg {
    flex-shrink: 0
}
.vf-modal .vf-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}
.vf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}
.vf-group {
    display: flex;
    flex-direction: column;
    gap: 4px
}
.vf-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.vf-label .vf-req {
    color: #ef4444;
    margin-left: 2px
}
.vf-modal .vf-input,
.vf-modal .vf-select,
.vf-modal .vf-textarea {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 12px 14px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    background: #fff !important;
    line-height: normal !important;
    transition: border-color .2s, box-shadow .2s !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    vertical-align: baseline !important;
}
.vf-modal .vf-input::placeholder,
.vf-modal .vf-textarea::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
}
.vf-modal .vf-input:focus,
.vf-modal .vf-select:focus,
.vf-modal .vf-textarea:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .1) !important;
}
.vf-modal .vf-input.vf-error,
.vf-modal .vf-select.vf-error,
.vf-modal .vf-textarea.vf-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .08) !important;
}
.vf-error-msg {
    font-size: 11px;
    color: #ef4444;
    font-weight: 500;
    display: none
}
.vf-group.has-error .vf-error-msg {
    display: block
}
.vf-modal .vf-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 36px !important;
    cursor: pointer !important;
}
.vf-modal .vf-textarea {
    min-height: 90px !important;
    resize: vertical !important;
}
.vf-phone-row {
    display: flex;
    gap: 8px;
    align-items: stretch
}
.vf-phone-row .vf-input {
    flex: 1
}
.vf-modal .vf-sms-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px !important;
    background: #f0fdf4 !important;
    color: #16a34a !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    border: 1.5px solid #bbf7d0 !important;
    border-radius: 12px !important;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, border-color .2s;
    -webkit-tap-highlight-color: transparent;
}
.vf-sms-btn:hover {
    background: #dcfce7;
    border-color: #86efac
}
.vf-sms-btn:disabled {
    opacity: .5;
    cursor: not-allowed
}
.vf-sms-btn svg {
    flex-shrink: 0
}
.vf-sms-code-row {
    display: flex;
    align-items: center;
    gap: 12px
}
.vf-sms-input {
    max-width: 140px;
    text-align: center;
    letter-spacing: 6px;
    font-size: 18px !important;
    font-weight: 700 !important
}
.vf-sms-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #16a34a
}
.vf-sms-code-wrap {
    animation: vfSlideDown .3s ease
}
@keyframes vfSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}
.vf-file-zone {
    border: 2px dashed #d1d5db;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    position: relative;
}
.vf-file-zone:hover,
.vf-file-zone.dragover {
    border-color: #3b82f6;
    background: #eff6ff
}
.vf-file-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer
}
.vf-file-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
    background: #eff6ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6
}
.vf-file-text {
    font-size: 13px;
    color: #64748b;
    font-weight: 500
}
.vf-file-text b {
    color: #3b82f6;
    cursor: pointer
}
.vf-file-hint {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px
}
.vf-file-selected {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    margin-top: 8px
}
.vf-file-selected.show {
    display: flex
}
.vf-file-selected .vf-fname {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: #166534;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}
.vf-file-selected .vf-fsize {
    font-size: 11px;
    color: #16a34a;
    white-space: nowrap
}
.vf-file-remove {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    padding: 0 !important;
    background: #fef2f2 !important;
    border: none !important;
    border-radius: 50% !important;
    color: #ef4444 !important;
    font-size: 14px !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
    transition: background .2s;
    box-sizing: border-box !important;
    line-height: 1 !important;
}
.vf-file-remove:hover {
    background: #fee2e2 !important;
}
.vf-modal .vf-submit {
    width: 100% !important;
    padding: 14px !important;
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 14px !important;
    cursor: pointer !important;
    font-family: inherit !important;
    transition: transform .2s, box-shadow .2s;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    -webkit-tap-highlight-color: transparent;
    margin-top: 4px;
    box-sizing: border-box !important;
}
.vf-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, .35)
}
.vf-submit:active {
    transform: scale(.98)
}
.vf-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none
}
.vf-submit svg {
    flex-shrink: 0
}
.vf-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, .3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: vfSpin .6s linear infinite
}
@keyframes vfSpin {
    to {
        transform: rotate(360deg)
    }
}
.vf-form.vf-form-hidden {
    display: none !important;
}
.vf-success {
    display: none;
    text-align: center;
    padding: 60px 20px 40px;
}
.vf-success.show {
    display: block;
}
.vf-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #16a34a;
    animation: vfBounce .6s ease;
}
@keyframes vfBounce {
    0% {
        transform: scale(0)
    }
    50% {
        transform: scale(1.2)
    }
    100% {
        transform: scale(1)
    }
}
.vf-success h4 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}
.vf-success p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 24px;
}
.vf-success-close {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
    padding: 12px 32px !important;
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.vf-success-close:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, .35);
}
.vf-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4
}
.vf-consent input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    flex-shrink: 0;
    accent-color: #3b82f6;
    cursor: pointer
}
.vf-consent a {
    color: #3b82f6;
    text-decoration: none
}
.vf-recaptcha-wrap {
    display: flex;
    justify-content: center;
}
@media (max-width: 600px) {
    .vf-modal.active {
        align-items: flex-end
    }
    .vf-content {
        width: 100%;
        max-width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
        padding: 16px 18px 30px;
        animation: vfSlideUpMobile .35s cubic-bezier(.4, 0, .2, 1);
    }
    @keyframes vfSlideUpMobile {
        from {
            transform: translateY(100%)
        }
        to {
            transform: translateY(0)
        }
    }
    .vf-handle {
        display: block;
        width: 40px;
        height: 4px;
        background: #d1d5db;
        border-radius: 2px;
        margin: 0 auto 14px
    }
    .vf-close {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
        font-size: 20px
    }
    .vf-modal .vf-close {
        margin-top: 0 !important;
        margin-right: -2px !important;
        top: 10px !important;
        background: #f3f4f6 !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, .08) !important;
    }
    .vf-title {
        font-size: 18px
    }
    .vf-vacancy-label {
        font-size: 13px;
        margin-bottom: 18px
    }
    .vf-row {
        grid-template-columns: 1fr;
        gap: 12px
    }
    .vf-input,
    .vf-select,
    .vf-textarea {
        font-size: 16px;
        padding: 13px 14px
    }
    .vf-submit {
        padding: 15px;
        font-size: 15px
    }
    .vf-phone-row {
        flex-direction: column !important;
    }
    .vf-modal .vf-sms-btn {
        padding: 12px 16px !important;
        justify-content: center !important;
        width: 100% !important;
        height: auto !important;
        min-height: 44px !important;
        background: #f0fdf4 !important;
        border: 1.5px solid #bbf7d0 !important;
        border-radius: 12px !important;
        font-size: 13px !important;
        box-sizing: border-box !important;
    }
}
@media (max-width: 768px) {
    .vacancies-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 14px;
        padding-bottom: 20px;
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
        align-items: stretch;
    }
    .vacancies-grid .vacancy-card {
        flex: 0 0 calc(100vw - 36px) !important;
        max-width: calc(100vw - 36px) !important;
        min-width: calc(100vw - 36px) !important;
        scroll-snap-align: start;
        height: auto;
        min-height: 300px;
        display: flex;
        flex-direction: column;
    }
    .vacancies-grid .vacancy-card:last-child {
        margin-right: 16px;
    }
    .vacancies-grid .vacancy-card-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 24px;
    }
    .vacancies-grid .vacancy-title {
        font-size: 18px;
        line-height: 1.35;
        min-height: 48px;
        margin-bottom: 18px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .vacancies-grid .vacancy-details {
        flex: 1;
        margin-bottom: 18px;
    }
    .vacancies-grid .vacancy-detail {
        display: flex;
        flex-direction: row;
        align-items: baseline;
        gap: 10px;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    .vacancies-grid .detail-label {
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .vacancies-grid .detail-value {
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .vacancies-grid .salary-value {
        font-size: 17px;
    }
    .vacancies-grid .vacancy-apply-btn {
        margin-top: auto;
        padding: 14px 24px;
        font-size: 15px;
    }
    .vacancies-grid::-webkit-scrollbar {
        height: 4px;
    }
    .vacancies-grid::-webkit-scrollbar-track {
        background: #e5e7eb;
        border-radius: 10px;
    }
    .vacancies-grid::-webkit-scrollbar-thumb {
        background: #3b82f6;
        border-radius: 10px;
    }
    .vacancies-wrapper::after {
        content: '← Листайте →';
        display: block;
        text-align: center;
        font-size: 12px;
        color: #9ca3af;
        margin-top: 10px;
    }
}
@media (max-width: 480px) {
    .vacancies-grid .vacancy-card {
        flex: 0 0 90%;
        max-width: 90%;
        min-width: 90%;
    }
    .vacancies-grid .vacancy-card:last-child {
        margin-right: 16px;
    }
}
.vacancies-show-more-wrapper {
    text-align: center;
    margin-top: 40px;
}
.vacancies-show-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
.vacancies-show-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}
.show-more-count {
    display: none;
}
.vacancy-card-hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}
.vacancy-card-showing {
    display: flex !important;
    animation: vacancyFadeIn 0.5s ease forwards;
}
@keyframes vacancyFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 768px) {
    .vacancies-show-more-wrapper {
        margin-top: 30px;
        padding: 0 16px;
        display: none;
    }
    .vacancies-show-more-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 30px;
        font-size: 15px;
    }
    .vacancy-card-hidden {
        display: flex !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
