 :root {
     --text-primary: #1a1a1a;
     --text-secondary: #4a4a4a;
     --accent: #2962ff;
     --accent-hover: #1a4fc4;
     --background: #ffffff;
     --surface: #f8f9fa;
     --border: #e0e0e0;
     --highlight: #f5f5f5;
     --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
     --radius: 12px;
     --transition: all 0.3s ease;
 }

 .card {
     background: var(--background);
     border-radius: var(--radius);
     box-shadow: var(--shadow);
     padding: 32px;
     margin-bottom: 24px;
     transition: var(--transition);
 }

 .job-header {
     display: flex;
     align-items: baseline;
 }

 .card:hover {
     box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
 }


 h1 {
     font-size: 28px;
     font-weight: 700;
     margin: 0 0 8px 0;
     color: var(--text-primary);
 }

 .company {
     font-size: 18px;
     color: var(--accent);
     font-weight: 500;
     margin-bottom: 20px;
     display: block;
 }

 .contact-info {
     display: flex;
     flex-wrap: wrap;
     gap: 16px;
     margin: 20px 0;
 }

 .contact-item {
     display: flex;
     align-items: center;
     gap: 10px;
     font-size: 15px;
     color: var(--text-secondary);
     padding: 10px 16px;
     background: var(--surface);
     border-radius: 50px;
 }

 .contact-icon {
     width: 20px;
     height: 20px;
     display: flex;
     align-items: center;
     justify-content: center;
     color: var(--accent);
 }

 .container.job {
     margin-top: 50px;
 }

 .badge {
     display: inline-flex;
     align-items: center;
     padding: 6px 12px;
     background: rgba(41, 98, 255, 0.1);
     color: var(--accent);
     border-radius: 50px;
     font-size: 13px;
     font-weight: 500;
     margin-right: 8px;
 }

 .divider {
     height: 1px;
     background: linear-gradient(90deg, transparent 0%, var(--border) 50%, transparent 100%);
     margin: 32px 0;
 }

 h2 {
     font-size: 22px;
     font-weight: 700;
     margin: 0 0 16px 0;
     display: flex;
     align-items: center;
     gap: 12px;
 }

 h2:after {
     content: "";
     flex: 1;
     height: 1px;
     background: var(--border);
     margin-left: 12px;
 }

 h3 {
     font-size: 17px;
     font-weight: 600;
     margin: 24px 0 12px 0;
     color: var(--text-primary);
 }

.salary-tag {
    background: linear-gradient(135deg, #009688 0%, #8BC34A 100%);
    color: white;
    padding: 10px 14px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-left: 12px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1; /* Убираем стандартный межстрочный интервал */
}

 .modern-form {
     max-width: 500px;
     margin: 0 auto;
     padding: 0rem 35px;
 }

 .form-title {
     text-align: center;
     font-size: 1.5rem;
     font-weight: 500;
     margin-bottom: 0.5rem;
     color: #2d3748;
 }

 .form-subtitle {
     text-align: center;
     color: #718096;
     margin-bottom: 2rem;
 }

 .input-group {
     position: relative;
     margin-bottom: 1.5rem;
 }

 .FormWrapper_job_asko {
     display: flex;
 }

 .form-input {
     width: 100%;
     padding: 1.2rem 1rem 1.2rem 3rem;
     border: 2px solid #e2e8f0;
     border-radius: 12px;
     font-size: 1rem;
     transition: all 0.3s ease;
     background: #f8fafc;
 }

 .form-input:focus {
     outline: none;
     border-color: #4299e1;
     background: white;
     box-shadow: 0 0 0 4px rgba(66, 153, 225, 0.1);
 }

 .form-input:focus+.form-label,
 .form-input:not(:placeholder-shown)+.form-label {
     transform: translateY(-120%) scale(0.9);
     background: white;
     padding: 0 0.5rem;
     color: #4299e1;
 }

 .form-label {
     position: absolute;
     left: 3rem;
     top: 1.2rem;
     color: #718096;
     pointer-events: none;
     transition: all 0.3s ease;
     transform-origin: left top;
 }

 .input-icon {
     position: absolute;
     left: 1rem;
     top: 50%;
     transform: translateY(-50%);
     color: #a0aec0;
 }

 .form-input:focus~.input-icon {
     color: #4299e1;
 }

 .captcha-container {
     margin: 2rem 0;
     display: flex;
     justify-content: center;
 }

 .error-message {
     display: none;
     color: #e53e3e;
     text-align: center;
     margin: 1rem 0;
     padding: 0.5rem;
     background: #fed7d7;
     border-radius: 8px;
 }

 .submit-btn {
     width: 100%;
     padding: 1.2rem;
     background: linear-gradient(135deg, #009688 0%, #8BC34A 100%);
     color: white;
     border: none;
     border-radius: 12px;
     font-size: 1.1rem;
     font-weight: 600;
     cursor: pointer;
     transition: all 0.3s ease;
     position: relative;
     overflow: hidden;
 }

 .submit-btn:hover {
     transform: translateY(-2px);
     box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
 }

 .submit-btn:active {
     transform: translateY(0);
 }

 .btn-loader {
     display: none;
     position: absolute;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%);
 }

 .btn-loader-spinner {
     width: 20px;
     height: 20px;
     border: 2px solid transparent;
     border-top: 2px solid white;
     border-radius: 50%;
     animation: spin 1s linear infinite;
 }

 @keyframes spin {
     0% {
         transform: rotate(0deg);
     }

     100% {
         transform: rotate(360deg);
     }
 }

 .success-message {
     display: none;
     text-align: center;
     padding: 2rem;
 }

 .success-icon {
     color: #48bb78;
     margin-bottom: 1rem;
 }

 .success-message h3 {
     font-size: 1.5rem;
     color: #2d3748;
     margin-bottom: 0.5rem;
 }

 .success-message p {
     color: #718096;
 }


/* Улучшенные медиа-запросы для мобильных устройств */
@media (max-width: 768px) {
    .card {
        padding: 20px 16px;
        margin: 0 10px 20px 10px;
    }

    .job-header {
        display: block;
    }

    .company {
        margin: 10px 0;
        font-size: 16px;
    }

    .modern-form {
        padding: 1rem;
        margin: 0.5rem;
    }

    section#ManagerForm {
        margin-top: 30px;
    }

    .FormWrapper_job_asko {
        display: block;
    }

    .form-title {
        font-size: 1.3rem;
    }

    .badge {
        display: inline-block;
        margin: 5px 5px 5px 0;
        max-width: 100%;
    }

    .meta {
        display: block;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
        margin: 15px 0;
    }

    .contact-item {
        width: 100%;
        box-sizing: border-box;
        justify-content: left;
        font-size: 13px;
    }

    .salary-tag {
        margin: 10px 0 0 0;
        display: inline-block;
        padding: 8px 16px;
    }

    h2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    h2:after {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
    }

    /* Фикс для input на iOS */
    input, textarea {
        font-size: 16px !important; /* Предотвращает масштабирование в iOS */
    }

    .form-input {
        padding: 1rem 1rem 1rem 2.5rem;
    }

    .form-label {
        left: 2.5rem;
    }

    .input-icon {
        left: 0.8rem;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 360px) {
    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    .contact-item {
        font-size: 14px;
        padding: 8px 12px;
    }

    .form-input {
        padding: 0.8rem 0.8rem 0.8rem 2.2rem;
    }

    .form-label {
        left: 2.2rem;
        font-size: 14px;
    }
}

/* Фикс для ориентации landscape на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .card {
        padding: 15px;
    }
    
    .contact-info {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .contact-item {
        width: auto;
        min-width: 0;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Предотвращаем масштабирование при повороте устройства */
body {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    width: 100%;
    overflow-x: hidden;
}