/* WorkHab — фирменные цвета Apartex */
:root {
    --navy:        #132557;
    --navy-2:      #172554;
    --blue:        #2563eb;
    --blue-deep:   #002b80;
    --light-blue:  #DAE3F7;
    --bg:          #f7f9fe;
    --rose:        #f43f5e;
    --ink:         #1a2233;
    --muted:       #62748e;
    --line:        #e3e9f5;
    --card:        #ffffff;
    --shadow:      0 1px 2px rgba(19,37,87,.06), 0 8px 24px rgba(19,37,87,.06);
    --shadow-lg:   0 12px 40px rgba(19,37,87,.14);
    --radius:      16px;
    --radius-sm:   10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.section { padding: 40px 0; }
.section--center { min-height: 50vh; display: grid; place-items: center; }
.section__title { font-size: 22px; font-weight: 700; margin-bottom: 20px; color: var(--navy); }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 800; }
.brand:hover { text-decoration: none; }
.brand__mark {
    width: 34px; height: 34px; border-radius: 9px;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.brand__name { font-size: 19px; letter-spacing: -.02em; }
.brand__name--muted { color: var(--navy); }
.site-nav__tag { color: var(--muted); font-size: 14px; font-weight: 500; }

/* Hero (главная) */
.hero {
    background: radial-gradient(1200px 400px at 80% -50%, rgba(37,99,235,.45), transparent 60%),
                linear-gradient(135deg, var(--navy) 0%, var(--blue-deep) 100%);
    color: #fff; padding: 64px 0; text-align: center;
}
.hero__title { font-size: clamp(28px, 5vw, 46px); font-weight: 800; letter-spacing: -.02em; }
.hero__subtitle { margin: 14px auto 0; max-width: 560px; color: rgba(255,255,255,.82); font-size: 18px; }
.hero__stats { display: flex; gap: 28px; justify-content: center; margin-top: 26px; color: rgba(255,255,255,.85); }
.hero__stats strong { color: #fff; font-size: 20px; }

/* Logos */
.logo {
    flex: none; display: grid; place-items: center; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--navy), var(--blue)); border-radius: 14px;
}
.logo--xs { width: 26px; height: 26px; font-size: 11px; border-radius: 7px; }
.logo--sm { width: 52px; height: 52px; font-size: 18px; }
.logo--lg { width: 88px; height: 88px; font-size: 30px; border-radius: 22px; }
.logo--img { object-fit: cover; background: #fff; border: 1px solid var(--line); }

/* Grids */
.grid { display: grid; gap: 16px; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--companies { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* Vacancy card */
.vacancy-card {
    display: flex; flex-direction: column; gap: 10px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; color: var(--ink); box-shadow: var(--shadow);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.vacancy-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--light-blue); text-decoration: none; }
.vacancy-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.vacancy-card__title { font-size: 17px; font-weight: 700; color: var(--navy); }
.vacancy-card__salary { font-size: 18px; font-weight: 700; color: var(--ink); }
.vacancy-card__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.vacancy-card__desc { color: var(--muted); font-size: 14px; margin: 0; }
.vacancy-card__company { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; padding-top: 6px; border-top: 1px dashed var(--line); margin-top: 2px; }
.vacancy-card__cta { margin-top: auto; color: var(--blue); font-weight: 600; font-size: 14px; }

/* Company card */
.company-card {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px 16px; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.company-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.company-card__name { font-weight: 700; color: var(--navy); }
.company-card__sphere { font-size: 13px; color: var(--muted); }

/* Chips & badges */
.chip {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--light-blue); color: var(--navy);
    border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600;
}
.chip--ghost { background: #eef2fb; color: var(--muted); font-weight: 500; }
.chip--light { background: rgba(37,99,235,.10); color: var(--blue); }
.badge { display: inline-flex; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge--urgent { background: rgba(244,63,94,.12); color: var(--rose); }

/* Company hero */
.company-hero { background: #fff; border-bottom: 1px solid var(--line); padding: 40px 0; }
.company-hero__inner { display: flex; align-items: center; gap: 24px; }
.company-hero__name { font-size: clamp(24px, 4vw, 34px); font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.company-hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.company-hero__desc { margin: 14px 0 0; color: var(--muted); max-width: 640px; }

/* Breadcrumbs */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 20px; font-size: 14px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--blue); }

/* Vacancy detail */
.vacancy { display: grid; grid-template-columns: 1fr 400px; gap: 28px; padding: 24px 20px 56px; align-items: start; }
.vacancy__title { font-size: clamp(24px, 4vw, 34px); font-weight: 800; color: var(--navy); margin: 8px 0 0; letter-spacing: -.02em; }
.company-line { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--ink); }
.vacancy__salary { font-size: 24px; font-weight: 800; color: var(--ink); margin: 20px 0 14px; }
.vacancy__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vacancy__description { margin-top: 24px; }
.prose p { margin: 0 0 12px; color: #2c3650; }
.vacancy__apply-cta { margin-top: 28px; }
.vacancy__aside { position: sticky; top: 84px; }

/* Apply card / form */
.apply-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.apply-card__title { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 18px; }
.apply-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field__label i { color: var(--rose); font-style: normal; }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; color: var(--ink);
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 11px 13px; background: #fbfcff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.15); background: #fff;
}
.field textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field--check { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); }
.field--check input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--blue); }
.field--check i { color: var(--rose); font-style: normal; }
.field__error { color: var(--rose); font-size: 12px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-weight: 700; cursor: pointer; border: none;
    border-radius: var(--radius-sm); padding: 12px 22px; transition: transform .12s, box-shadow .12s, opacity .12s;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; box-shadow: 0 6px 18px rgba(37,99,235,.3); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37,99,235,.38); }
.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn--block { width: 100%; }

/* Alerts */
.alert { border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 16px; font-size: 14px; }
.alert--success { background: rgba(34,197,94,.12); color: #15803d; border: 1px solid rgba(34,197,94,.3); }
.alert--error { background: rgba(244,63,94,.10); color: #be123c; border: 1px solid rgba(244,63,94,.3); }

/* Empty */
.empty { text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 48px 20px; }
.empty--lg h1 { font-size: 64px; color: var(--navy); margin-bottom: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; margin-top: 40px; }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 20px; flex-wrap: wrap; }
.site-footer .muted { font-size: 14px; }
.site-footer p { margin: 4px 0 0; font-size: 14px; }

/* Responsive */
@media (max-width: 880px) {
    .vacancy { grid-template-columns: 1fr; }
    .vacancy__aside { position: static; }
    .company-hero__inner { flex-direction: column; text-align: center; align-items: center; }
    .company-hero__meta { justify-content: center; }
}
@media (max-width: 520px) {
    .field-row { grid-template-columns: 1fr; }
    .hero__stats { gap: 18px; }
    .site-nav__tag { display: none; }
}
