* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font-face overrides for better metrics */
@font-face {
    font-family: 'Manrope';
    font-display: swap;
    ascent-override: 92%;
    descent-override: 24%;
    line-gap-override: 0%;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background: #ffffff;
    color: #333;
    font-weight: 500;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 1000;
    padding: 0.5rem 0;

}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Убедимся что выравнивание по центру */
    padding: 0.5rem 20px;
    max-width: 1200px;
    margin: 0 auto;
    height: 60px; /* Фиксированная высота для header-content */
}

.logo {
    display: flex; /* Добавляем flex для выравнивания img */
    align-items: center;
    height: 100%; /* Занимаем всю высоту header-content */
}

.logo img {
    height: 45px; /* Немного уменьшаем высоту логотипа */
    width: auto;
    display: block; /* Убираем возможный отступ снизу */
}

.apply-button {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.apply-button:hover {
    background: #333;
    transform: translateY(-2px);
}

main {
    margin-top: 180px;
    padding: 0;
}

.hero-card {
    background: #ffffff;
    color: #1a1a1a;
    padding: 4rem;
    border-radius: 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;

    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 8rem;
}

.hero-content h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #1a1a1a;
    text-align: left;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: #555;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.cta-button {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;

}

.cta-button:hover {
    transform: translateY(-2px);

    background: #333;
}

.conditions {
    margin-bottom: 3rem;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    background: none;
    -webkit-text-fill-color: initial;
}

.card p {
    color: #4b5563;
    font-size: 1.1rem;
    line-height: 1.6;
}

.section-background {
    background: #ffffff;
    border-radius: 24px;
    padding: 4rem;
    margin-bottom: 4rem;

    margin-top: 2rem; /* Add some space between sections */
}

#application-form.section-background {
    background: #ddc8ff;
    border: 1px solid #edf2f7;
    padding: 3rem;
    
}

.carousel {
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 400px;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
}

.carousel-button:hover {
    background: #333;
    transform: translateY(-2px);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.form-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', Arial, sans-serif;
}

input:focus {
    border-color: #1a1a1a;
    outline: none;
}

.submit-button {
    width: 100%;
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.submit-button:hover {
    background: #333;
}

.submit-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.submit-button:hover:before {
    left: 100%;
}

h1 {
    font-weight: 800;
}

h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: #1a1a1a;

    letter-spacing: -0.02em;
}

.footer {
    background: #ffffff;
    padding: 4rem 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 4rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    justify-content: space-between;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    margin-left: 100px;
}

.footer-logo img {
    height: 50px; /* increased size */
    width: auto; /* сохраняем пропорции */
    margin-bottom: 1.5rem;
}

.legal-address {
    color: #6b7280;
    font-size: 1rem; /* increased size */
    line-height: 1.6;
}

.footer-button {
    color: #1a1a1a;
    padding: 0;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    font-size: 1.1rem;
    background: none;
    border: none;
    text-align: left;
    transition: color 0.2s ease;
    display: block; /* made block level */
}

.footer-button:hover {
    color: #333;
    background: none;
}

.telegram-button {
    color: #1a1a1a;
    padding: 0;
    background: none;
    border: none;
    transition: all 0.2s ease;
    width: auto;
    height: auto;
    display: block;
}

.telegram-button svg {
    width: 48px;
    height: 48px;
}

.telegram-button:hover {
    color: #333;
    background: none;
    transform: translateY(-2px);
}

.contact-info {
    color: #6b7280;
    line-height: 1.6;
    font-size: 1.1rem; /* increased size */
}

.contact-info a {
    color: #1a1a1a;
}

.left-aligned {
    text-align: left;
}

.conditions-grid,
.secondary-conditions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.condition-item,
.secondary-condition {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 1.8rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.condition-item:hover,
.secondary-condition:hover {
    transform: translateY(-2px);
    background: #f0f4f8;
}

.condition-header,
.secondary-condition-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.condition-header {
    margin-right: 1rem;
    flex-shrink: 0;
}

.condition-header svg,
.secondary-condition svg {
    width: 36px;
    height: 36px;
    color: #1a1a1a;
    padding: 8px;
    border-radius: 50%;
    background-color: #cacaca;
}

.condition-content {
    flex-grow: 1;
}

.condition-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.condition-item p,
.secondary-condition p {
    font-size: 1.05rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

.secondary-conditions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.secondary-condition {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.secondary-condition:hover {
    transform: translateY(-2px);
    background: #f0f4f8;
}

.secondary-condition svg {
    width: 24px;
    height: 24px;
    color: #1a1a1a;
    padding: 6px;
    border-radius: 50%;
    background-color: #E6F3FF;
}

.secondary-condition p {
    font-size: 1.05rem;
    color: #4b5563;
    margin: 0;
}

.button-container {
    text-align: center;
    margin-top: 2rem;
}

.application-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.application-left {
    position: relative;
}

.application-left h2 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    font-weight: 800;
    position: relative;
}

.application-left p {
    font-size: 1.2rem;
    color: #555;
    font-weight: 500;
}

.application-left:after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #1a1a1a, transparent);
    bottom: -20px;
    left: 0;
}

.application-right {
    background: #efe5ff;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}



.application-right h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 2рем;
    font-weight: 700;
    text-align: left;
}

#application-form .application-left h2 {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 0;
    padding-top: 1rem;
}

#application-form .application-right h3 {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #4b5563;
    font-weight: 500;
}

.privacy-notice {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 1rem;
    font-weight: 500;
}

/* Remove number input arrows */
.form-group input[type="number"]::-webkit-inner-spin-button,
.form-group input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.form-group input[type="number"] {
    -moz-appearance: textfield;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    color: #64748b; /* Изменили цвет текста на серый */
    font-weight: 500;
    transition: border-color 0.2s ease;
}

.form-group input::placeholder {
    color: #64748b;
}

.form-group select {
    appearance: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 16px !important;
    padding-right: 2.5rem !important;
}

.form-group select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E");
}

.form-group select option {
    color: #64748b;
}

/* Сохраняем стрелку при фокусе */
.form-group select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E");
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.benefit-item {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 600px; /* увеличили с 450px до 600px */
    transition: all 0.3s ease;
    padding: 1.8rem;
}

.benefit-item:hover {
    transform: translateY(-2px);
    background: #f0f4f8;
}

.benefit-content {
    flex-grow: 1;
}

.benefit-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.benefit-content p {
    font-size: 1.05rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

.benefit-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* делаем контейнер квадратным */
    height: auto; /* убираем фиксированную высоту */
    overflow: hidden;
    border-radius: 8px;
    margin-top: 1.5rem;
    position: relative; /* для абсолютного позиционирования img */
}

.benefit-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.benefit-item:hover .benefit-image img {
    transform: scale(1.05);
}

.requirements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.requirement-item {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    padding: 1.8rem;
}

.requirement-item:hover {
    transform: translateY(-2px);
    background: #f0f4f8;
}

.requirement-item.main {
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    /* background: #CDECF1; */
    background: #ddc8ff;
}

.requirements-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.requirements-stack .requirement-item {
    flex: 1;
    min-height: 120px;
}

.requirement-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.8rem;
}

.requirement-content p {
    font-size: 1.1rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

.duties-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.duties-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.duty-item {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    padding: 1.8rem;
}

.duty-item:hover {
    transform: translateY(-2px);
    background: #f0f4f8;
}

.duty-item.main {
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    background: #ddc8ff;
    scrollbar-width: none
}

.duties-stack .duty-item {
    flex: 1;
    min-height: 192px;
}

.duty-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.duty-content p {
    font-size: 1.1rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}



.success-message {
    display: none;
    background: #ecfdf5;
    border: 1px solid #059669;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 2rem auto;
    max-width: 600px;
}

.success-message h3 {
    color: #059669;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.success-message p {
    color: #065f46;
    font-size: 1.2rem;
    line-height: 1.6;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: #059669;
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    background: #fef2f2;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #fee2e2;
    display: none;
}

.form-group.has-error input,
.form-group.has-error select {
    border-color: #dc2626;
}

/* About Card Styles */
.about-card {
    background: linear-gradient(135deg, #efefef 0%, #ffffff 100%);
    margin-top: 8rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h1 {
    font-size: 3.2rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
    font-family: 'Space Grotesk', sans-serif;
}

.about-content p {
    font-size: 1.2rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Job Cards Styles */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.job-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative; /* Добавлено */
    padding-bottom: 60px; /* Добавлено: место для кнопки */
    display: grid;
    grid-template-rows: auto 1fr;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.job-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.job-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.job-card:hover .job-image img {
    transform: scale(1.05);
}

.job-content {
    padding: 1.2rem;
    flex-grow: 1;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 12px;
}

.job-content h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
    min-height: 4rem; /* Фиксированная высота для заголовка */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Максимум 2 строки */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-details {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 8px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.job-salary, .job-location {
    color: #4b5563;
    font-size: 1.1rem;
    font-weight: 600;
}

.job-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.job-button {
    position: absolute; /* Изменено */
    bottom: 15px; /* Добавлено */
    left: 20px; /* Добавлено */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1a1a1a;
    font-weight: 600;
    padding: 8px 0; /* Добавлено */
}

.job-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.job-card:hover .job-button svg {
    transform: translateX(5px);
}

/* Partnership Card Styles */
.partnership-card {
    background: #ddc8ff;
    text-align: center;
}

.partnership-content {
    max-width: 800px;
    margin: 0 auto;
}

.partnership-content h2 {
    margin-bottom: 1.5rem;
}

.partnership-content p {
    font-size: 1.2rem;
    color: #4b5563;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.partnership-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #1a1a1a;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.partnership-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.partnership-button:hover {
    background: #333;
    transform: translateY(-2px);
}

.partnership-button:hover svg {
    transform: translateX(5px);
}

/* Modal Styles - обновленная версия */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: scroll; /* Добавляем скролл для модального окна */
}

.modal.active {
    opacity: 1;
}

.modal-content {
    background: #fff;
    margin: 5vh auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1рем;
    width: 32px;
    height: 32px;
    opacity: 0.8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #666;
    background: none;
    border: none;
    border-radius: 50%;
    padding: 0;
    z-index: 1000;
}

.close-modal:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.05);
}

.close-modal:hover {
    color: #333;
}

.modal-trigger {
    cursor: pointer;
}

/* Contact Form Styles - обновленная версия */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form .form-group {
    margin-bottom: 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    color: #1a1a1a;
    transition: all 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #1a1a1a;
    background: #ffffff;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
}

.contact-form .submit-button {
    background: #1a1a1a;
    color: white;
    padding: 1.2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.contact-form .submit-button:hover {
    background: #333;
    transform: translateY(-2px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #6b7280;
}


/* Contact Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;

    border-radius: 4px;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.submit-button:hover {
    background-color: #0056b3;
}




.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal .contact-form .form-group {
    margin-bottom: 0;
}

.modal .contact-form input,
.modal .contact-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    color: #1a1a1a;
    transition: all 0.2s ease;
}

.modal .contact-form input:focus,
.modal .contact-form textarea:focus {
    outline: none;
    border-color: #1a1a1a;
    background: #ffffff;
}

.modal .contact-form textarea {
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
}

.modal .contact-form .submit-button {
    background: #1a1a1a;
    color: white;
    padding: 1.2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    width: 100%;
}

.modal .contact-form .submit-button:hover {
    background: #333;
    transform: translateY(-2px);
}

.modal .contact-form input::placeholder,
.modal .contact-form textarea::placeholder {
    color: #6b7280;
}


#job-application .form-group {
    margin-bottom: 1.25rem;
}

#job-application input,
#job-application select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
    transition: border-color 0.2s ease;
}

#job-application input::placeholder {
    color: #64748b;
}

#job-application .submit-button {
    width: 100%;
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

#job-application .submit-button:hover {
    background: #333;
}

#job-application .submit-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

#job-application .submit-button:hover:before {
    left: 100%;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
}

.modal-content {
    background: #fff;
    margin: 5vh auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.close-modal:hover {
    color: #333;
}


.modal-trigger {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
}

.footer-button.modal-trigger {
    color: #1a1a1a;
    font-weight: 700;
    text-align: left;
}


.footer-button {
    cursor: pointer;
}

.partnership-button {
    cursor: pointer;
}


.modal-trigger.footer-button {
    color: #1a1a1a;
    padding: 0;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    font-size: 1.1rem;
    background: none;
    border: none;
    text-align: left;
    transition: color 0.2s ease;
    display: block;
}

.modal-trigger.footer-button:hover {
    color: #333;
    background: none;
}

.modal-trigger.partnership-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #1a1a1a;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-trigger.partnership-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.modal-trigger.partnership-button:hover {
    background: #333;
    transform: translateY(-2px);
}

.modal-trigger.partnership-button:hover svg {
    transform: translateX(5px);
}

/* Стили для кастомного скроллбара */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Исправление проблемы сдвига при открытии модального окна */
html {
    scrollbar-gutter: stable;
}

body.modal-open {
    padding-right: 10px; /* Компенсация ширины скроллбара */
    overflow: hidden;
}

/* Стили для валидации в модальном окне */
.modal .form-group.has-error input,
.modal .form-group.has-error textarea {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.modal .form-group.has-error .error-message {
    display: block;
    margin-top: 0.5rem;
    color: #dc2626;
    font-size: 0.875rem;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.modal-form-container {
    position: relative;
}

.form-content, .success-content {
    transition: opacity 0.3s ease;
}

.success-content {
    text-align: center;
    padding: 2rem 0;
}

.success-content h2 {
    color: #059669;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.success-content p {
    color: #065f46;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.close-button {
    background: #1a1a1a;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-button:hover {
    background: #333;
    transform: translateY(-2px);
}

.modal .form-group.has-error input,
.modal .form-group.has-error textarea {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.modal .form-group .error-message {
    display: none;
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    background: #fef2f2;
    border: 1px solid #fee2e2;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ...existing code... */

/* Обновленные стили для секции advantages */
.advantages {
    margin: 4rem 0;
    min-height: 420px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Переопределяем существующие стили для мобильных устройств */
@media screen and (max-width: 768px) {
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .advantages .duty-item {
        min-height: auto;
    }

    .advantages .duty-item.main {
        min-height: 180px;
    }

    .advantages .duties-stack {
        gap: 1rem;
    }

    .advantages .duty-title {
        font-size: 1.2rem;
    }

    .advantages .duty-content p {
        font-size: 0.95rem;
    }
}

/* ...existing code... */

/* Улучшенная мобильная адаптация - исправленная версия */
@media screen and (max-width: 768px) {
    /* Общие стили */
    .container {
        padding: 0 15px;
    }
    
    /* Header */
    .header {
        height: auto;
        padding: 0.5rem 0;
    }
    
    .header-content {
        padding: 0.5rem 15px;
    }
    
    .logo img {
        height: 40px;
        width: auto; /* сохраняем пропорции */
    }
    
    .apply-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    /* Main Content */
    main {
        margin-top: 80px;
        padding: 0;
    }
    
    /* Hero Section - обновленная версия */
    .hero-card {
        grid-template-columns: 1fr 1fr; /* Меняем на равные колонки */
        padding: 1.5rem;
        margin-top: 6rem;
        gap: 1rem;
        border-radius: 16px;
        align-items: center;
    }

    .hero-content {
        padding-right: 0.5rem;
    }

    .hero-content h1 {
        font-size: 1.4rem; /* Уменьшаем размер заголовка */
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero-image {
        height: 100%;
        min-height: 140px;
        display: flex;
        align-items: center;
    }

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
    }

    .about-card {
        margin-top: 2rem !important;
    }
    
    .hero-content h1 {
        font-size: 1.4rem;
        text-align: left;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 0.7rem;
        margin-bottom: 1.5rem;
        text-align: left;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 0.7rem;
        display: inline-block;
        width: 150px;
    }
    
    /* Условия работы - сохраняем выравнивание слева */
    .condition-item,
    .secondary-condition {
        padding: 1.5rem;
        border-radius: 12px;
        min-height: auto;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
    }
    
    .condition-header,
    .condition-content p {
        text-align: left;
    }
    
    .condition-header {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .condition-content p {
        font-size: 1rem;
    }
    
    /* Сохраняем расположение сетки карточек (2 колонки) до 576px */
    @media screen and (min-width: 576px) and (max-width: 768px) {
        .conditions-grid,
        .secondary-conditions-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
        }
    }
    
    /* Для очень маленьких экранов - 1 колонка */
    @media screen and (max-width: 575px) {
        .conditions-grid,
        .secondary-conditions-grid {
            grid-template-columns: 1fr;
            gap: 1rem;
        }
    }
    
    /* Секция с преимуществами - сохраняем структуру как на десктопе */
    /* Для планшетов - сохраняем структуру */
    @media screen and (min-width: 576px) and (max-width: 768px) {
        .benefits-grid {
            display: grid;
            grid-template-areas:
                "main main"
                "side1 side2";
            gap: 1rem;
        }
        
        .benefit-item.main {
            grid-area: main;
        }
        
        .benefits-stack .benefit-item:nth-child(1) {
            grid-area: side1;
        }
        
        .benefits-stack .benefit-item:nth-child(2) {
            grid-area: side2;
        }
    }
    
    /* Для маленьких экранов */
    @media screen and (max-width: 575px) {
        .benefits-grid {
            grid-template-columns: 1fr;
            gap: 1rem;
        }
    }
    
    .benefit-item {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .benefit-title,
    .benefit-content p {
        text-align: left;
    }
    
    .benefit-title {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .benefit-content p {
        font-size: 1рем;
    }
    
    .benefit-image {
        height: 180px;
        border-radius: 8px;
        margin-bottom: 1rem;
    }
    
    /* Требования - сохраняем структуру */
    @media screen and (min-width: 576px) and (max-width: 768px) {
        .requirements-grid {
            display: grid;
            grid-template-areas:
                "main main"
                "side1 side2";
            gap: 1rem;
        }
        
        .requirement-item.main {
            grid-area: main;
        }
        
        .requirements-stack .requirement-item:nth-child(1) {
            grid-area: side1;
        }
        
        .requirements-stack .requirement-item:nth-child(2) {
            grid-area: side2;
        }
    }
    
    @media screen and (max-width: 575px) {
        .requirements-grid {
            grid-template-columns: 1fr;
            gap: 1rem;
        }
    }
    
    .requirement-item {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .requirement-title,
    .requirement-content p {
        text-align: left;
    }
    
    .requirement-title {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .requirement-content p {
        font-size: 1rem;
    }
    
    /* Обязанности - сохраняем структуру */
    @media screen and (min-width: 576px) and (max-width: 768px) {
        .duties-grid {
            display: grid;
            grid-template-areas:
                "main main"
                "side1 side2";
            gap: 1rem;
        }
        
        .duty-item.main {
            grid-area: main;
        }
        
        .duties-stack .duty-item:nth-child(1) {
            grid-area: side1;
        }
        
        .duties-stack .duty-item:nth-child(2) {
            grid-area: side2;
        }
    }
    
    @media screen and (max-width: 575px) {
        .duties-grid {
            grid-template-columns: 1fr;
            gap: 1rem;
        }
    }
    
    .duty-item {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .duty-title,
    .duty-content p {
        text-align: left;
    }
    
    .duty-title {
        font-size: 1.2rem;
        margin-bottom: 0.75рем;
    }
    
    .duty-content p {
        font-size: 1rem;
    }
    
    /* Section Headers */
    .section-background {
        padding: 2rem;
        border-radius: 16px;
        margin-bottom: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        text-align: left;
    }
    
    /* Вакансии */
    @media screen and (min-width: 576px) and (max-width: 768px) {
        .jobs-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
        }
    }
    
    @media screen and (max-width: 575px) {
        .jobs-grid {
            grid-template-columns: 1fr;
            gap: 1rem;
        }
    }
    
    .job-card {
        padding: 0;
        border-radius: 12px;
        padding-bottom: 50px; /* Уменьшаем отступ для мобильных */
    }
    
    .job-image {
        height: 160px;
    }
    
    .job-content {
        padding: 1.2rem;
    }
    
    .job-content h3,
    .job-description {
        text-align: left;
    }
    
    .job-button {
        bottom: 12px; /* Немного выше для мобильных */
        left: 15px; /* Меньше отступ слева */
    }
    
    /* Application Form */
    .application-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .application-left,
    .application-right {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .application-left h2 {
        font-size: 1.8rem;
        text-align: left;
    }
    
    .application-left p {
        text-align: left;
    }
    
    .application-left:after {
        left: 0;
        transform: none;
    }
    
    #application-form.section-background {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    /* Form Elements */
    .form-group {
        margin-bottom: 1rem;
    }
    
    input,
    select {
        padding: 0.8rem;
        border-radius: 8px;
        font-size: 0.95rem;
    }
    
    .submit-button {
        padding: 0.9rem;
        border-radius: 8px;
        font-size: 1рем;
    }
    
    /* Carousel */
    .carousel {
        margin: 1.5rem 0;
    }
    
    .carousel-slide {
        height: 200px;
    }
    
    .carousel-button {
        width: 36px;
        height: 36px;
        font-size: 0.9рем;
    }
    
    /* Footer */
    .footer {
        padding: 1.5rem 0;
    }
    
    .footer-container {
        grid-template-columns: repeat(4, 1fr); /* Сохраняем 4 колонки */
        gap: 1rem;
        padding: 0 15px;
    }
    
    .footer-column {
        margin-left: 0;
        gap: 0.75rem;
    }
    
    .footer-logo img {
        height: 30px;
        width: auto; /* сохраняем пропорции */
        margin-bottom: 0.5rem;
    }
    
    .legal-address {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .footer-button {
        font-size: 0.85rem;
        padding: 0.25rem 0;
    }
    
    .contact-info {
        font-size: 0.75rem;
    }
    
    .telegram-button svg {
        width: 28px;
        height: 28px;
    }
    
    /* Success/Error Messages */
    .success-message {
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }
    
    .success-message h3 {
        font-size: 1.5rem;
    }
    
    .success-message p {
        font-size: 1rem;
    }
    
    .success-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }
    
    .error-message {
        font-size: 0.8rem;
        padding: 0.4рем 0.6рем;
    }

    /* Принудительно задаем 2 колонки и уменьшаем карточки */
    .conditions-grid,
    .secondary-conditions-grid,
    .benefits-grid,
    .requirements-grid,
    .duties-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    /* Уменьшаем размеры карточек */
    .condition-item,
    .secondary-condition,
    .benefit-item,
    .requirement-item,
    .duty-item {
        padding: 1rem;
        min-height: auto;
        font-size: 0.9rem;
    }

    /* Уменьшаем заголовки в карточках */
    .condition-title,
    .benefit-title,
    .requirement-title,
    .duty-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    /* Уменьшаем текст в карточках */
    .condition-content p,
    .benefit-content p,
    .requirement-content p,
    .duty-content p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    /* Уменьшаем иконки */
    .condition-header svg,
    .secondary-condition svg {
        width: 24px;
        height: 24px;
        padding: 4px;
    }

    /* Уменьшаем картинки в benefits */
    .benefit-image {
        height: 120px;
        margin-top: 0.75rem;
    }

    /* Корректируем отступы секций */
    .section-background {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* Уменьшаем карточки и их содержимое */
    .condition-item,
    .secondary-condition,
    .benefit-item,
    .requirement-item,
    .duty-item {
        padding: 0.75rem;
        min-height: auto;
        /* max-height: 160px; Ограничиваем максимальную высоту */
        overflow: auto; /* Добавляем прокрутку если текст не помещается */
    }

    /* Уменьшаем размеры заголовков */
    .condition-title,
    .benefit-title,
    .requirement-title,
    .duty-title {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
        line-height: 1.2;
    }

    /* Уменьшаем основной текст */
    .condition-content p,
    .benefit-content p,
    .requirement-content p,
    .duty-content p {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 0;
    }

    /* Уменьшаем иконки */
    .condition-header svg,
    .secondary-condition svg {
        width: 20px;
        height: 20px;
        padding: 3px;
    }

    /* Уменьшаем отступы в сетке */
    .conditions-grid,
    .secondary-conditions-grid,
    .benefits-grid,
    .requirements-grid,
    .duties-grid {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    /* Корректируем размер картинок в benefits */
    .benefit-image {
        height: 100px;
        margin-top: 0.5rem;
    }

    /* Уменьшаем отступы секций */
    .section-background {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    /* Application Form - полностью обновленные стили */
    #application-form.section-background {
        padding: 1.2rem;
        border-radius: 12px;
        margin-bottom: 1.5rem;
    }

    .application-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 90%;
        margin: 0 auto;
        text-align: center !important;
    }

    .application-left {
        text-align: center !important;
    }

    .application-left h2 {
        font-size: 1.5rem !important;
        line-height: 1.2;
        margin-bottom: 0.8rem;
        text-align: center !important;
    }

    .application-left p {
        font-size: 0.9rem !important;
        margin-top: 0.8rem;
        text-align: center !important;
        color: #555;
    }

    .application-right {
        padding: 1.2rem;
        border-radius: 12px;
    }

    .application-right h3 {
        font-size: 1rem !important; /* Уменьшили с 1.1rem */
        margin-bottom: 1rem !important;
        text-align: center !important;
        color: #4b5563;
        font-weight: 500;
    }

    /* Убираем декоративную линию */
    .application-left:after {
        display: none;
    }

    /* Form Elements */
    .form-group {
        margin-bottom: 0.8rem;
    }

    #job-application input,
    #job-application select {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        border-radius: 10px;
        height: auto;
    }

    #job-application .submit-button {
        padding: 0.9rem;
        font-size: 0.9rem;
        margin-top: 1рем;
        border-radius: 10px;
        height: auto;
    }

    .privacy-notice {
        font-size: 0.75rem;
        margin-top: 0.8рем;
        color: #64748b;
    }
}

/* Добавляем специфичные стили для очень узких экранов */
@media screen and (max-width: 480px) {
    .hero-card {
        grid-template-columns: 1fr 1fr; /* На очень маленьких экранах переключаемся на одну колонку */
        padding: 1rem;
    }

    .hero-image {
        min-height: 140px;
    }

    .footer-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        margin-left: 30px;
    }
    
    .footer-column {
        gap: 0.5rem;
    }
    
    .footer-logo img {
        height: 25px;
        width: auto; /* сохраняем пропорции */
    }
    
    .legal-address,
    .footer-button,
    .contact-info {
        font-size: 0.7rem !important;
    }
    
    .telegram-button svg {
        width: 24px;
        height: 24px;
    }
}

/* Только для очень маленьких экранов меняем на 1 колонку */
@media screen and (max-width: 400px) {
    .conditions-grid,
    .secondary-conditions-grid,
    .benefits-grid,
    .requirements-grid,
    .duties-grid {
        grid-template-columns: 1fr;
    }

    /* Для маленьких экранов увеличиваем отступы между карточками */
    .condition-item,
    .secondary-condition,
    .benefit-item,
    .requirement-item,
    .duty-item {
        margin-bottom: 0.75rem;
    }
}

/* Дополнительные правки для очень маленьких экранов */
@media screen and (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .apply-button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .condition-item,
    .benefit-item,
    .requirement-item,
    .duty-item {
        padding: 1.2rem;
    }
    
    .carousel-slide {
        height: 160px;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .condition-header,
    .benefit-title,
    .requirement-title,
    .duty-title {
        font-size: 1.1рем;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .submit-button {
        padding: 0.8rem;
        font-size: 0.9рем;
    }
}

/* Дополнительные корректировки для очень маленьких экранов */
@media screen and (max-width: 375px) {
    #application-form.section-background {
        padding: 1rem;
    }

    .application-left h2 {
        font-size: 1.3rem !important;
    }

    .application-left p {
        font-size: 0.85rem !important;
    }

    .application-right h3 {
        font-size: 0.9rem !important;
    }

    .application-right {
        padding: 1rem;
    }

    #job-application input,
    #job-application select {
        padding: 0.7rem 0.9рем;
        font-size: 0.85rem;
    }

    #job-application .submit-button {
        padding: 0.8rem;
        font-size: 0.9рем;
    }
}

/* About Card Mobile Styles */
@media screen and (max-width: 768px) {
    .about-card {
        padding: 1.5rem;
        margin-top: 6рем !important;
        border-radius: 16px;
    }

    .about-content h1 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        line-height: 1.2;
        text-align: left;
    }

    .about-content p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }

    /* Jobs Grid Mobile Styles */
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .job-card {
        padding: 0;
        border-radius: 12px;
        min-height: auto;
        background: #f8f9fa;
        transition: all 0.3s ease;
        padding-bottom: 50px; /* Уменьшаем отступ для мобильных */
    }

    .job-card:hover {
        transform: translateY(-2px);
        background: #f0f4f8;
    }

    .job-image {
        height: 120px;
    }

    .job-content {
        padding: 1rem;
    }

    .job-content h3 {
        font-size: 1рем;
        margin-bottom: 0.5rem;
    }

    .job-details {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .job-description {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .job-button {
        bottom: 12px; /* Немного выше для мобильных */
        left: 15px; /* Меньше отступ слева */
    }

    /* Partnership Card Mobile Styles */
    .partnership-card {
        padding: 1.5rem;
        border-radius: 12px;
        margin-bottom: 1.5rem;
    }

    .partnership-content h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .partnership-content p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }

    .partnership-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    /* For very small screens */
    @media screen and (max-width: 480px) {
        .jobs-grid {
            grid-template-columns: 1fr;
        }
        
        .job-card {
            margin-bottom: 0.75rem;
        }
    }
}

/* Стили для каталога статей */
.articles-catalog {
    margin: 3rem 0;
    padding: 2rem 0;
}

.catalog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.catalog-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.catalog-description {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.article-category {
    margin-bottom: 4rem;
}

.article-category h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #007bff;
}

.articles-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.article-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
}

.article-content time {
    font-size: 0.9rem;
    color: #888;
    display: block;
    margin-bottom: 0.75rem;
}

.article-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-content h3 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content h3 a:hover {
    color: #007bff;
}

.article-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Адаптивность для каталога статей */
@media (max-width: 768px) {
    .catalog-header h1 {
        font-size: 2.5rem;
    }
    
    .catalog-description {
        font-size: 1.1rem;
    }
    
    .article-category h2 {
        font-size: 1.8rem;
    }
    
    .articles-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-image {
        height: 180px;
    }
    
    .article-content {
        padding: 1.25rem;
    }
    
    .article-content h3 {
        font-size: 1.2rem;
    }
}

/* Адаптивные стили для рекламного баннера */
@media screen and (max-width: 768px) {
    .ad-banner {
        padding: 10px;
        margin: 15px 0;
    }

    .credit-banner {
        width: 100%;
    }

    .banner-content {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .banner-content img {
        width: 100% !important;
        height: auto !important;
        max-height: 150px;
        object-fit: cover !important;
        border-radius: 8px !important;
    }

    .banner-text {
        padding: 0;
    }

    .banner-text h3 {
        font-size: 18px !important;
        margin-bottom: 5px !important;
    }

    .banner-text p {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
}

/* Адаптивные стили для секции advantages */
@media screen and (max-width: 768px) {
    .advantages {
        padding: 2rem 1rem;
    }

    .advantages h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .advantages-grid {
        gap: 0.75rem;
    }

    .duty-item {
        padding: 1rem;
        min-height: auto;
    }

    .duty-item.main {
        min-height: auto;
        padding: 1rem;
    }

    .duties-stack {
        gap: 0.75rem;
    }

    /* .duties-stack .duty-item {
        min-height: auto;
    } */

    .duty-title {
        font-size: 1рем;
        margin-bottom: 0.5rem;
    }

    .duty-content p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* Специальные стили для очень узких экранов */
@media screen and (max-width: 375px) {
    .advantages-grid {
        gap: 0.5rem;
    }

    .duty-item {
        padding: 0.75rem;
    }

    .duty-title {
        font-size: 0.9rem;
    }

    .duty-content p {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .duties-stack .duty-item {
        min-height: auto;
    }
}

/* Общие стили для поддержки вложенности и выравнивания */
.duty-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.duty-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-start;
}

/* Мобильные стили для вакансий - обновленная версия */
@media screen and (max-width: 768px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr); /* Возвращаем две колонки */
        gap: 12px; /* Оптимальный отступ между карточками */
        /* padding: 0 8px; */
        margin-top: 1rem;
    }



    #vacancies h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .job-card {
        padding: 0;
        border-radius: 12px;
        min-height: auto;
        padding-bottom: 45px; /* Уменьшаем отступ снизу */
        background: #f8f9fa;

        position: relative;
    }

    .job-image {
        height: 120px; /* Уменьшаем высоту изображения */
        border-radius: 12px 12px 0 0;
    }

    .job-content {
        padding: 12px;
        display: grid;
        grid-template-rows: auto auto 1fr auto;
        gap: 8px;
    }

    .job-content h3 {
        font-size: 0.95rem !important;
        min-height: 2.8rem; /* Меньшая фиксированная высота для мобильных */
        line-height: 1.3;
    }

    .job-details {
        display: flex;
        justify-content: space-between; /* Разносим элементы по краям */
        align-items: center;
        margin: 0;
        padding: 6px 0;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .job-salary,
    .job-location {
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
        font-weight: 500 !important;
        color: #4b5563;
        white-space: nowrap; /* Предотвращаем перенос текста */
    }

    .job-description {
        font-size: 0.8rem !important;
        line-height: 1.4;
        margin: 0;
        color: #6b7280;
        display: -webkit-box;
        -webkit-line-clamp: 3; /* Ограничиваем текст тремя строками */
        -webkit-box-orient: vertical;
        overflow: hidden;
        max-height: 3.6em; /* Максимальная высота для трех строк */
    }

    .job-button {
        position: absolute;
        bottom: 8px;
        left: 12px;
        right: 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.85rem !important;
        color: #1a1a1a;
        font-weight: 600;
        padding: 6px 0;
    }

    .job-button span {
        font-size: 0.85rem !important;
    }

    .job-button svg {
        width: 16px;
        height: 16px;
    }

    .hot-vacancy-ribbon {
        top: 28px !important;
        right: -32px !important;
        padding: 3px 30px !important;
        font-size: 10px !important;
        transform: rotate(45deg);
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media screen and (max-width: 480px) {
    .jobs-grid {
        gap: 18px;
    }

    .job-content {
        padding: 10px;
        gap: 6px;
    }

    .job-content h3 {
        font-size: 0.8rem !important;
    }

    .job-salary,
    .job-location {
        font-size: 0.75rem !important;
    }

    .job-description {
        font-size: 0.75rem !important;
        -webkit-line-clamp: 2; /* Уменьшаем до двух строк на маленьких экранах */
    }

    .hot-vacancy-ribbon {
        top: 20px;
        right: -32px;
        padding: 2px 25px;
        font-size: 10px;
    }
}

/* ...existing code... */

/* Обновляем стили для секции advantages на мобильных устройствах */
@media screen and (max-width: 768px) {
    .advantages {
        padding: 1.5rem 1рем;
    }

    .advantages-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Сохраняем две колонки */
        gap: 10px; /* Уменьшаем отступы между карточками */
        margin-bottom: 1рем;
    }

    .advantages .duty-item {
        min-height: unset;
        padding: 12px; /* Уменьшаем внутренние отступы */
        height: 100%;
    }

    .advantages .duty-item.main {
        grid-column: auto; /* Отменяем растягивание на всю ширину */
        min-height: 100%;
    }

    .advantages .duty-content {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .advantages .duty-title {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    .advantages .duty-content p {
        font-size: 0.8rem;
        line-height: 1.3;
        margin: 0;
    }

    /* Стили для стека карточек */
    .advantages .duties-stack {
        display: grid;
        grid-template-columns: 1fr; /* Одна колонка в стеке */
        gap: 10px;
        height: 100%;
    }

    .advantages .duties-stack .duty-item {
        margin: 0;
        height: auto;
    }
}

/* Дополнительные корректировки для очень маленьких экранов */
@media screen and (max-width: 375px) {
    .advantages-grid {
        gap: 8px; /* Еще меньше отступы для маленьких экранов */
    }

    .advantages .duty-item {
        padding: 10px;
    }

    .advantages .duty-title {
        font-size: 0.85rem;
    }

    .advantages .duty-content p {
        font-size: 0.75rem;
    }
}

/* ...existing code... */

/* Resume Upload Styles */
.resume-grid {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.resume-grid h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

.resume-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.file-upload-container {
    position: relative;
}

.file-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-label:hover {
    background: #f0f4f8;
    border-color: #1a1a1a;
}

.file-label svg {
    width: 24px;
    height: 24px;
}

.file-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.file-name {
    font-size: 0.95rem;
    color: #1a1a1a;
}

.remove-file {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.resume-form .submit-button:disabled {
    background: #e2e8f0;
    cursor: not-allowed;
}

/* Обновляем стили кнопки отправки резюме */
.resume-form .submit-button {
    width: 100%;
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

.resume-form .submit-button:not(:disabled) {
    cursor: pointer;
}

.resume-form .submit-button:not(:disabled):hover {
    background: #333;
    transform: translateY(-2px);
}

.resume-form .submit-button:not(:disabled):before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.resume-form .submit-button:not(:disabled):hover:before {
    left: 100%;
}

.resume-form .submit-button:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

/* Mobile Styles for Resume Upload */
@media screen and (max-width: 768px) {
    .resume-grid h3 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .file-label {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .file-label svg {
        width: 20px;
        height: 20px;
    }

    .file-status {
        padding: 0.5rem 0.75rem;
    }

    .file-name {
        font-size: 0.85rem;
    }
}

/* ...existing code... */

.resume-content {
    text-align: center;
}

.resume-success {
    display: none;
    background: #ecfdf5;
    border: 1px solid #059669;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 2rem auto;
    max-width: 600px;
}

.resume-success .success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: #059669;
}

.resume-success h3 {
    color: #059669;
    font-size: 1.8rem;
    margin-bottom: 1рем;
    font-weight: 700;
}

.resume-success p {
    color: #065f46;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .resume-success {
        padding: 2rem 1.5rem;
        margin: 1.5rem auto;
    }

    .resume-success .success-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }

    .resume-success h3 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .resume-success p {
        font-size: 1rem;
    }
}

/* Стили для блока с телеграм-ссылкой в success message */
.telegram-follow {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(5, 150, 105, 0.2);
}

.telegram-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(5, 150, 105, 0.1);
    border-radius: 12px;
    color: #059669;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.telegram-link:hover {
    background: rgba(5, 150, 105, 0.15);
    transform: translateY(-2px);
}

.telegram-link svg {
    width: 24px;
    height: 24px;
}

.telegram-link span {
    font-size: 1rem;
}

/* Мобильные стили для телеграм-ссылки */
@media screen and (max-width: 768px) {
    .telegram-follow {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .telegram-link {
        padding: 0.6rem 1rem;
        gap: 0.5rem;
    }

    .telegram-link svg {
        width: 20px;
        height: 20px;
    }

    .telegram-link span {
        font-size: 0.9rem;
    }
}

/* ...existing code... */

/* Стили для телеграм-блока в about секции */
.about-telegram {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.about-telegram-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.about-telegram-link:hover {
    background: #f0f4f8;
    transform: translateY(-2px);
}

.about-telegram-link svg {
    color: #1a1a1a;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.about-telegram-link:hover svg {
    transform: scale(1.1);
}

.about-telegram-link span {
    font-size: 1.1rem;
}

/* Мобильные стили для телеграм-блока */
@media screen and (max-width: 768px) {
    .about-telegram {
        margin-top: 2rem;
        padding-top: 1rem;
    }

    .about-telegram-link {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .about-telegram-link svg {
        width: 20px;
        height: 20px;
    }

    .about-telegram-link span {
        font-size: 0.9rem;
    }
}

/* ...existing code... */

/* ...existing code... */
.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
/* ...existing code... */

.ad-banner {
    margin: 2rem 0;
    padding: 0.5rem;
    min-height: 120px;
}

.credit-banner {
    display: block;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.credit-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.banner-content {
    display: flex;
    align-items: center;
    padding: 2.5rem;
}

.banner-content img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 16px;
    margin-right: 2.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.banner-text {
    color: #1a1a1a;
}

.banner-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.banner-text p {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.6;
}

/* ...existing code... */

/* ...existing code... */
.job-image {
    position: relative;
    /* ...existing styles... */
}

.hot-vacancy-ribbon {
    position: absolute;
    top: 45px;
    right: -45px;
    background: #dc2626;
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1;
}
/* ...existing code... */

/* ...existing code... */

/* Стили для страницы курьеров */
.breadcrumbs {
    margin: 2rem 0 1rem 0;
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumbs a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #666;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #ccc;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.regional-vacancies {
    margin: 3rem 0;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.city-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.city-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #1a1a1a;
}

.city-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.city-card p {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 1rem;
    font-weight: 600;
}

.city-vacancies-count {
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.faq-section {
    margin: 3rem 0;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.faq-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 600;
}

.faq-item p {
    color: #4b5563;
    line-height: 1.6;
}

.useful-materials {
    margin: 3rem 0;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.material-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.material-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #1a1a1a;
}

.material-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 600;
}

.material-card p {
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.9rem;
}

.cta-section {
    margin: 3rem 0;
}

.cta-content {
    text-align: center;
    background: #ffffff;
    border-radius: 24px;
    padding: 3rem 2rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.cta-content p {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button:hover {
    background: #333;
    transform: translateY(-2px);
}

.cta-button svg {
    width: 20px;
    height: 20px;
}

/* Стили для специализаций водителей */
.driver-specializations {
    margin: 3rem 0;
}

.specializations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.specialization-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.specialization-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #1a1a1a;
}

.specialization-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 600;
}

.specialization-card p {
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.specialization-card ul {
    list-style: none;
    padding: 0;
}

.specialization-card li {
    color: #4b5563;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
    padding-left: 1.5rem;
}

.specialization-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.specialization-card li:last-child {
    border-bottom: none;
}

/* Стили для складских специализаций */
.warehouse-specializations {
    margin: 3rem 0;
}

/* Стили для категорий вакансий */
.vacancy-categories {
    margin: 3rem 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #1a1a1a;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 600;
}

.category-card p {
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.category-vacancies {
    background: #e5e7eb;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Адаптивность для новых элементов */
@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cities-grid {
        grid-template-columns: 1fr;
    }
    
    .materials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content {
        padding: 2rem 1rem;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .breadcrumbs {
        margin: 1rem 0;
        font-size: 0.8rem;
    }
    
    .specializations-grid {
        grid-template-columns: 1fr;
    }
    
    .specialization-card {
        padding: 1.5rem;
    }
    
    .warehouse-specializations .specializations-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .category-icon {
        font-size: 2.5rem;
    }
}

/* More cities block styles */
.more-cities {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.more-cities p {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
}

.more-cities a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.more-cities a:hover {
    text-decoration: underline;
}

/* Стили для секции сотрудничества */
.cooperation-section {
    text-align: center;
    padding: 4rem 2rem;
}

.cooperation-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.cooperation-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cooperation-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cooperation-button {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.cooperation-button:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Стили для секции статей */
.articles-section {
    padding: 4rem 2rem;
}

.articles-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: #1a1a1a;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.article-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a1a1a, #333);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.article-card:hover::before {
    transform: scaleX(1);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
    align-items: center;
}

.article-meta time {
    color: #1a1a1a;
    font-weight: 600;
    background: #f8f9fa;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.article-category {
    background: linear-gradient(135deg, #1a1a1a, #333);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.4;
    color: #1a1a1a;
}

.article-card h3 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.article-card h3 a:hover {
    color: #333;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.article-card p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.article-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: 2px solid transparent;
}

.article-link:hover {
    color: white;
    background: #1a1a1a;
    border-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.2);
}

/* Стили для страниц статей */
.article-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.article-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.article-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #1a1a1a, #333);
}

.article-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.article-excerpt {
    font-size: 1.3rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.article-body {
    line-height: 1.8;
    color: #333;
    font-size: 1.1rem;
}

.article-body h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 3rem 0 2rem 0;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 0.5rem;
}

.article-body h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1a1a1a, #333);
    border-radius: 2px;
}

.article-body h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 2.5rem 0 1.5rem 0;
    color: #1a1a1a;
}

.article-body p {
    margin-bottom: 1.8rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body ul {
    margin-bottom: 2rem;
    padding-left: 2rem;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #1a1a1a;
}

.article-body li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.article-cta {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    margin-top: 4rem;
    border: 2px solid #e9ecef;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.article-cta h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.article-cta p {
    color: #666;
    margin-bottom: 1.5rem;
}

.article-cta .cta-button {
    background: #007bff;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.article-cta .cta-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .cooperation-content h2,
    .articles-section h2 {
        font-size: 2rem;
    }
    
    .cooperation-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-card {
        padding: 1.5rem;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-content {
        padding: 1rem;
    }
}

/* Стили для блока "Похожие вакансии" */
.similar-vacancies {
    margin: 3rem 0;
    padding: 2rem 0;
}

.similar-vacancies h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2rem;
    text-align: center;
}

.vacancy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.vacancy-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.vacancy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.vacancy-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.vacancy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vacancy-card:hover .vacancy-image img {
    transform: scale(1.05);
}

.vacancy-content {
    padding: 1.5rem;
}

.vacancy-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.vacancy-content h3 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.vacancy-content h3 a:hover {
    color: #007bff;
}

.vacancy-salary {
    font-size: 1.1rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 0.75rem;
}

.vacancy-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.vacancy-content .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.vacancy-content .btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.vacancy-content .btn:active {
    transform: translateY(0);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .similar-vacancies {
        margin: 2rem 0;
        padding: 1.5rem 0;
    }
    
    .similar-vacancies h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .vacancy-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .vacancy-image {
        height: 180px;
    }
    
    .vacancy-content {
        padding: 1.25rem;
    }
    
    .vacancy-content h3 {
        font-size: 1.1rem;
    }
    
    .vacancy-salary {
        font-size: 1rem;
    }
    
    .vacancy-description {
        font-size: 0.9rem;
    }
}

