:root {
    --header-height: 72px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text, #1a1a1a);
    background: var(--bg, #ffffff);
}

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

/* Header */
.site-header {
    background: var(--surface, #fff);
    border-bottom: 1px solid var(--border, #e5e7eb);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    height: var(--header-height);
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand, #2563eb);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.nav-menu a {
    color: var(--text, #1a1a1a);
    text-decoration: none;
    font-size: 15px;
}

.nav-menu a:hover {
    color: var(--brand, #2563eb);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--brand, #2563eb);
    color: #fff;
    border: none;
    border-radius: var(--radius-md, 8px);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover {
    background: var(--brand-hover, #1d4ed8);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-ghost {
    background: transparent;
    color: var(--brand, #2563eb);
    border: 1px solid var(--brand, #2563eb);
}

.btn-ghost:hover {
    background: var(--brand, #2563eb);
    color: #fff;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Hero */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    margin: 0 0 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted, #6b7280);
    margin: 0 0 32px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--brand, #2563eb);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted, #6b7280);
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-lg, 0 10px 40px rgba(0,0,0,0.1));
}

/* Section */
.section {
    padding: 80px 0;
}

.section h2 {
    font-size: 32px;
    margin: 0 0 40px;
    text-align: center;
}

/* Advantages */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.advantage-card {
    padding: 32px;
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--radius-lg, 16px);
}

.advantage-icon {
    color: var(--brand, #2563eb);
    margin-bottom: 16px;
}

.advantage-card h3 {
    font-size: 20px;
    margin: 0 0 12px;
}

.advantage-card p {
    margin: 0;
    color: var(--text-muted, #6b7280);
}

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

.vacancy-card {
    padding: 24px;
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--radius-md, 12px);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.vacancy-card:hover {
    border-color: var(--brand, #2563eb);
    box-shadow: var(--shadow-md, 0 4px 16px rgba(0,0,0,0.08));
}

.vacancy-header h3 {
    font-size: 18px;
    margin: 0 0 12px;
}

.vacancy-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-muted, #f3f4f6);
    border-radius: var(--radius-sm, 6px);
    font-size: 13px;
    color: var(--text-muted, #6b7280);
    margin-bottom: 12px;
}

.vacancy-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--text-muted, #6b7280);
    margin-bottom: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vacancy-salary {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand, #2563eb);
}

/* Departments */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.department-card {
    padding: 24px;
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--radius-md, 12px);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.department-card:hover {
    border-color: var(--brand, #2563eb);
}

.department-card h3 {
    font-size: 16px;
    margin: 0 0 8px;
}

.department-count {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted, #6b7280);
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.review-card {
    padding: 24px;
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--radius-md, 12px);
}

.review-author {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.review-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.review-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.review-position {
    font-size: 14px;
    color: var(--text-muted, #6b7280);
}

.review-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--brand, #2563eb) 0%, #1e40af 100%);
    color: #fff;
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    color: #fff;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

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

/* Page header */
.page-header {
    padding: 40px 0;
    background: var(--bg-muted, #f9fafb);
    border-bottom: 1px solid var(--border, #e5e7eb);
}

.page-header h1 {
    font-size: 36px;
    margin: 0 0 8px;
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-muted, #6b7280);
    margin: 0;
}

.breadcrumbs {
    display: flex;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted, #6b7280);
    margin-bottom: 16px;
}

.breadcrumbs a {
    color: var(--brand, #2563eb);
    text-decoration: none;
}

/* Layouts */
.vacancies-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.vacancy-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.contacts-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
}

.apply-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
}

/* Sidebar */
.sidebar-card {
    padding: 24px;
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--radius-md, 12px);
    margin-bottom: 24px;
}

.sidebar-card h3 {
    font-size: 18px;
    margin: 0 0 16px;
}

.sidebar-card p {
    margin: 0 0 16px;
}

.sidebar-card .muted {
    color: var(--text-muted, #6b7280);
    font-size: 14px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--radius-md, 8px);
    font-size: 15px;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand, #2563eb);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.required {
    color: #ef4444;
}

/* Lists */
.content-list {
    margin: 16px 0;
    padding-left: 24px;
}

.content-list li {
    margin-bottom: 8px;
}

/* Footer */
.site-footer {
    background: var(--bg-dark, #1f2937);
    color: #fff;
    padding: 48px 0 24px;
    margin-top: 80px;
}

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

.footer-col h3 {
    font-size: 18px;
    margin: 0 0 16px;
}

.footer-col h4 {
    font-size: 16px;
    margin: 0 0 12px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 8px;
}

.footer-menu a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.footer-menu a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content,
    .vacancies-layout,
    .vacancy-detail-layout,
    .content-layout,
    .contacts-layout,
    .apply-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-actions,
    .form-row {
        flex-direction: column;
    }
}