/* Основные стили */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #1e293b;
    --accent-color: #f59e0b;
    --light-color: #f8fafc;
    --dark-color: #0f172a;
    --text-color: #334155;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --danger-color: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Шапка сайта */
.site-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    margin-right: 10px;
    font-size: 22px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.2s;
    padding: 5px 0;
    position: relative;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
}

.main-nav a.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.login-button, .register-button {
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.login-button {
    color: var(--primary-color);
}

.login-button:hover {
    background-color: #f1f5f9;
}

.register-button {
    background-color: var(--primary-color);
    color: white;
}

.register-button:hover {
    background-color: var(--primary-hover);
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Герой-секция */
.hero {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.search-form {
    display: flex;
    max-width: 800px;
    margin: 0 auto 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 5px;
}

.search-input {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-right: 1px solid var(--border-color);
}

.search-input i {
    color: var(--text-light);
    margin-right: 10px;
    font-size: 18px;
}

.search-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 0;
    font-size: 16px;
    min-width: 0;
}

.search-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-button:hover {
    background-color: var(--primary-hover);
}

.popular-searches {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    color: var(--text-light);
}

.popular-searches a {
    color: var(--primary-color);
    font-weight: 500;
}

.popular-searches a:hover {
    text-decoration: underline;
}

/* Категории */
.categories {
    padding: 80px 0;
}

.categories h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    background: white;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.category-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.category-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.category-card span {
    color: var(--text-light);
    font-size: 14px;
}

/* Последние вакансии */
.latest-jobs {
    padding: 60px 0 80px;
    background-color: #f8fafc;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-color);
}

.view-all {
    color: var(--primary-color);
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

.jobs-list {
    display: grid;
    gap: 20px;
}

/* .job-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.job-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.job-logo {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 25px;
    flex-shrink: 0;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-logo img {
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
}

.job-info {
    flex: 1;
}

.job-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.company {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 15px;
}

.details {
    display: flex;
    gap: 20px;
    color: var(--text-light);
    font-size: 14px;
}

.details i {
    margin-right: 5px;
    color: var(--text-light);
}

.job-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
} */

.job-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin: 0 0 10px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border-color);
}

.job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color);
}

/* Шапка карточки */
.job-card-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
}

.job-logo {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
  overflow: hidden;
}

.job-logo img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.job-title-wrapper {
  flex-grow: 1;
}

.job-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 4px;
  line-height: 1.4;
}

.job-company {
  font-size: 15px;
  color: var(--text-light);
}

/* Детали вакансии */
.job-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.detail-item {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--text-color);
}

.detail-item i {
  color: var(--text-light);
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

/* Описание */
.job-description {
  margin-bottom: 20px;
}

.job-description p {
  font-size: 14px;
  color: var(--text-color);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Подвал карточки */
.job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.job-posted {
  font-size: 13px;
  color: var(--text-light);
}

.job-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.save-job {
  color: var(--text-light);
  font-size: 18px;
  transition: color 0.2s;
}

.save-job:hover {
  color: var(--accent-color);
}

.save-job.saved {
  color: var(--accent-color);
}

.apply-button {
  background-color: var(--primary-color);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.apply-button:hover {
  background-color: var(--primary-hover);
}

/* Адаптивность */
@media (max-width: 768px) {
  .job-details {
    grid-template-columns: 1fr;
  }
  
  .job-card {
    padding: 16px;
    margin: 0 0 20px 0;
  }
  
  .job-logo {
    width: 50px;
    height: 50px;
  }
}

.time {
    color: var(--text-light);
    font-size: 14px;
}

.apply-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.apply-button:hover {
    background-color: var(--primary-hover);
}

/* Преимущества */
.benefits {
    padding: 80px 0;
}

.benefits h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: white;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.benefit-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.benefit-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.benefit-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.benefit-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Подвал */
.site-footer {
    background-color: var(--secondary-color);
    color: white;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-about .logo {
    margin-bottom: 20px;
    color: white;
}

.footer-about p {
    color: #94a3b8;
    margin-bottom: 20px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    font-size: 20px;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--accent-color);
}

.footer-links h3 {
    font-size: 18px;
    margin-bottom: 25px;
    color: white;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #94a3b8;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact h3 {
    font-size: 18px;
    margin-bottom: 25px;
    color: white;
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #94a3b8;
}

.footer-contact i {
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 14px;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: #94a3b8;
    transition: color 0.2s;
}

.legal-links a:hover {
    color: white;
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 40px;
    }
    
    .search-form {
        flex-direction: column;
        padding: 20px;
    }
    
    .search-input {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 15px 0;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 20px;
        display: none;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .auth-buttons {
        margin-left: auto;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .job-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .job-logo {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .job-meta {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .categories h2, .section-header h2, .benefits h2 {
        font-size: 28px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
/* Стили для страниц аутентификации */
.auth-page {
    padding: 60px 0;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
}

.auth-page .container {
    display: grid;
    gap: 60px;
    align-items: center;
}

.auth-container {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.auth-header {
    margin-bottom: 30px;
    text-align: center;
}

.auth-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-light);
}

.auth-header a {
    color: var(--primary-color);
    font-weight: 500;
}

.auth-header a:hover {
    text-decoration: underline;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--dark-color);
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.input-with-icon input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.forgot-password {
    text-align: right;
    margin-top: 5px;
}

.forgot-password a {
    color: var(--text-light);
    font-size: 14px;
    transition: color 0.2s;
}

.forgot-password a:hover {
    color: var(--primary-color);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
}

.remember-me input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.password-hint {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 5px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.radio-group input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.radio-group label {
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.terms input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.terms label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

.terms a {
    color: var(--primary-color);
    text-decoration: underline;
}

.auth-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.auth-button:hover {
    background-color: var(--primary-hover);
}

.social-login {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.social-login p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.social-button i {
    font-size: 18px;
}

.social-button.vk {
    background-color: #0077FF;
    color: white;
}

.social-button.vk:hover {
    background-color: #0066DD;
}

.social-button.google {
    background-color: white;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.social-button.google:hover {
    background-color: #f8fafc;
}

.auth-image {
    position: relative;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.auth-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
}

.image-overlay h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.image-overlay p {
    color: rgba(255, 255, 255, 0.8);
}

/* Адаптивность для страниц аутентификации */
@media (max-width: 992px) {
    .auth-page .container {
        grid-template-columns: 1fr;
    }
    
    .auth-image {
        display: none;
    }
}

@media (max-width: 576px) {
    .auth-container {
        padding: 30px 20px;
    }
    
    .auth-header h1 {
        font-size: 28px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

.choices__inner {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.desc-input-with-icon {
    position: relative;
}

.desc-input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.desc-input-with-icon input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.desc-input-with-icon input:focus {
    outline: none;
    border-color: var(--primary-color);
}
