:root {
    --color-primary: #2C5FE8;
    --color-primary-hover: #1E4FD8;
    --color-secondary: #6B7280;
    --color-text: #111827;
    --color-text-muted: #6B7280;
    --color-bg: #F9FAFB;
    --color-white: #FFFFFF;
    --color-border: #E5E7EB;
    --color-danger: #DC2626;
    --color-success: #059669;
    
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    --container-width: 1200px;
    --radius: 8px;
    --radius-large: 12px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 10px 25px rgba(0, 0, 0, 0.15);
    
    --transition: 150ms ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    transition: opacity var(--transition);
}

.logo:hover {
    opacity: 0.8;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.nav-link:hover {
    color: var(--color-primary);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.burger span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px;
}

.mobile-menu.is-open {
    display: block;
}

.mobile-menu-link {
    display: block;
    padding: 12px 0;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu-link:last-child {
    border-bottom: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    font-family: inherit;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg);
    border-color: var(--color-text-muted);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Hero */
.hero {
    background: var(--color-white);
    padding: 64px 0;
    border-bottom: 1px solid var(--color-border);
}

.hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--color-text);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

/* Search Form */
.search-form {
    max-width: 800px;
}

.search-input-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    font-size: 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    font-family: inherit;
    transition: border-color var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.search-btn {
    padding: 14px 32px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.search-btn:hover {
    background: var(--color-primary-hover);
}

/* Filters */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.filter-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.filter-checkbox span {
    font-size: 15px;
    color: var(--color-text);
}

/* Vacancies */
.vacancies {
    padding: 48px 0 80px;
}

.vacancy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.vacancy-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    padding: 24px;
    transition: all var(--transition);
}

.vacancy-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.vacancy-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
    line-height: 1.3;
}

.vacancy-salary {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.vacancy-company {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.vacancy-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 13px;
    background: var(--color-bg);
    color: var(--color-text-muted);
    border-radius: 999px;
    font-weight: 500;
}

.vacancy-short {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.vacancy-actions {
    display: flex;
    gap: 12px;
}

.vacancy-actions .btn {
    flex: 1;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results h2 {
    font-size: 28px;
    margin-bottom: 24px;
    color: var(--color-text);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.is-open {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-large);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    box-shadow: var(--shadow-large);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    font-size: 28px;
    line-height: 1;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color var(--transition);
}

.modal-close:hover {
    color: var(--color-text);
}

.vacancy-details h2 {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--color-text);
}

.vacancy-details .vacancy-company {
    font-size: 18px;
    margin-bottom: 8px;
}

.vacancy-details .vacancy-salary {
    font-size: 28px;
    margin-bottom: 20px;
}

.vacancy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.vacancy-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vacancy-meta-label {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vacancy-meta-value {
    font-size: 16px;
    color: var(--color-text);
}

.vacancy-section {
    margin-bottom: 32px;
}

.vacancy-section h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--color-text);
}

.vacancy-section p {
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 12px;
}

.vacancy-section ul {
    list-style: none;
    padding: 0;
}

.vacancy-section li {
    padding-left: 24px;
    position: relative;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 8px;
}

.vacancy-section li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--color-primary);
    font-weight: 700;
}

.vacancy-details-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.vacancy-details-actions .btn {
    flex: 1;
}

/* Reveal Modal */
.reveal-modal .modal-content {
    max-width: 800px;
    padding: 48px;
}

.reveal-header {
    text-align: center;
    margin-bottom: 40px;
}

.reveal-title {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 800;
    color: var(--color-danger);
    margin-bottom: 16px;
    line-height: 1.1;
}

.reveal-subtitle {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text);
}

.reveal-body {
    max-width: 640px;
    margin: 0 auto;
}

.reveal-text {
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 16px;
}

.red-flags {
    background: var(--color-bg);
    border-radius: var(--radius-large);
    padding: 32px;
    margin: 32px 0;
}

.red-flags-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-text);
}

.red-flag-item {
    margin-bottom: 24px;
}

.red-flag-item:last-child {
    margin-bottom: 0;
}

.red-flag-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-danger);
    margin-bottom: 8px;
}

.red-flag-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.reveal-cta {
    text-align: center;
    margin-top: 40px;
}

.reveal-question {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--color-text);
}

.reveal-secondary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

/* Footer */
.footer {
    background: #202124;
    color: #E8EAED;
    padding: 48px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.footer-heading {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #FFFFFF;
}

.footer-link {
    display: block;
    color: #9AA0A6;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color var(--transition);
}

.footer-link:hover {
    color: #E8EAED;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid #3C4043;
    margin-bottom: 24px;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-link-small {
    color: #9AA0A6;
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition);
}

.footer-link-small:hover {
    color: #E8EAED;
}

.footer-separator {
    color: #5F6368;
}

.footer-copyright {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #9AA0A6;
}

.footer-disclaimer {
    font-size: 12px;
    line-height: 1.5;
    color: #9AA0A6;
    max-width: 800px;
    padding-top: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .burger {
        display: flex;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .search-input-wrapper {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .vacancy-grid {
        grid-template-columns: 1fr;
    }
    
    .vacancy-actions {
        flex-direction: column;
    }
    
    .modal-content {
        padding: 24px;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .reveal-modal .modal-content {
        padding: 32px 24px;
    }
    
    .reveal-title {
        font-size: 36px;
    }
    
    .red-flags {
        padding: 24px;
    }
    
    .reveal-secondary {
        flex-direction: column;
    }
    
    .vacancy-details-actions {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-copyright {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .vacancy-card {
        padding: 20px;
    }
    
    .vacancy-title {
        font-size: 18px;
    }
    
    .vacancy-salary {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Progress Bar (NProgress) */
#nprogress {
    pointer-events: none;
}

#nprogress .bar {
    background: var(--color-primary);
    position: fixed;
    z-index: 1031;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
}

#nprogress .peg {
    display: block;
    position: absolute;
    right: 0;
    width: 100px;
    height: 100%;
    box-shadow: 0 0 10px var(--color-primary), 0 0 5px var(--color-primary);
    opacity: 1;
    transform: rotate(3deg) translate(0px, -4px);
}

#nprogress .spinner {
    display: block;
    position: fixed;
    z-index: 1031;
    top: 15px;
    right: 15px;
}

#nprogress .spinner-icon {
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    border: solid 2px transparent;
    border-top-color: var(--color-primary);
    border-left-color: var(--color-primary);
    border-radius: 50%;
    animation: nprogress-spinner 400ms linear infinite;
}

@keyframes nprogress-spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Validation Errors */
.sg-field-error {
    display: block;
    color: var(--color-danger);
    font-size: 13px;
    line-height: 1.4;
    margin-top: 6px;
    font-weight: 500;
}

/* --- Стили для блоков, оставшихся без оформления --- */
/* Кнопки применения (фильтр и т.п.) */
.btn-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3, 12px) var(--space-5, 24px);
  background: var(--brand, #5b57f2);
  color: #fff;
  font-size: var(--step-0, 1rem);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-2, 12px);
  cursor: pointer;
  transition: transform 150ms var(--ease-out, ease-out), 
              box-shadow 150ms var(--ease-out, ease-out);
}

.btn-apply:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-2, 0 4px 12px rgba(0,0,0,0.1));
}

.btn-apply:active {
  transform: translateY(0);
}

/* Кнопка закрытия модального окна раскрытия */
.btn-close-reveal {
  position: absolute;
  top: var(--space-3, 12px);
  right: var(--space-3, 12px);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2, #f5f5f7);
  border: 1px solid var(--border, rgba(0,0,0,0.08));
  border-radius: var(--radius-pill, 999px);
  cursor: pointer;
  transition: background 150ms var(--ease-out, ease-out);
}

.btn-close-reveal:hover {
  background: var(--border, rgba(0,0,0,0.12));
}

/* Кнопка детального просмотра */
.btn-details {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2, 8px);
  padding: var(--space-2, 8px) var(--space-4, 16px);
  background: transparent;
  color: var(--brand, #5b57f2);
  font-size: var(--step--1, 0.875rem);
  font-weight: 600;
  border: 1px solid var(--brand, #5b57f2);
  border-radius: var(--radius-2, 12px);
  cursor: pointer;
  transition: background 150ms var(--ease-out, ease-out), 
              color 150ms var(--ease-out, ease-out);
}

.btn-details:hover {
  background: var(--brand, #5b57f2);
  color: #fff;
}

/* Бренд в подвале */
.footer-brand {
  font-size: var(--step-1, 1.2rem);
  font-weight: 700;
  color: var(--text, #1a1a1a);
  margin-bottom: var(--space-2, 8px);
}

/* Секция подвала */
.footer-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 12px);
}

.footer-section h4 {
  font-size: var(--step-0, 1rem);
  font-weight: 600;
  color: var(--text, #1a1a1a);
  margin: 0 0 var(--space-2, 8px) 0;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2, 8px);
}

.footer-section a {
  color: var(--muted, #6b7280);
  text-decoration: none;
  font-size: var(--step--1, 0.875rem);
  transition: color 150ms var(--ease-out, ease-out);
}

.footer-section a:hover {
  color: var(--brand, #5b57f2);
}

/* Контент раскрытия (модальное окно с признаками) */
.reveal-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4, 16px);
  padding: var(--space-5, 24px);
  max-height: 70vh;
  overflow-y: auto;
}

.reveal-content h3 {
  font-size: var(--step-1, 1.2rem);
  font-weight: 700;
  color: var(--text, #1a1a1a);
  margin: 0;
}

.reveal-content > div {
  padding: var(--space-4, 16px);
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, rgba(0,0,0,0.08));
  border-radius: var(--radius-2, 12px);
}

@media (max-width: 768px) {
  .reveal-content {
    padding: var(--space-4, 16px);
  }
  
  .btn-apply {
    width: 100%;
  }
}
