/* --- Глобальные переменные и стили --- */
:root {
    --primary-color: #005DFF;
    --primary-hover: #004ADF;
    --dark-text: #121212;
    --light-text: #6B7280;
    --border-color: #E5E7EB;
    --bg-color: #F9FAFB;
    --card-bg: #FFFFFF;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--dark-text);
    margin: 0;
    line-height: 1.6;
}
* { box-sizing: border-box; }

/* --- Новая Hero-шапка --- */
.vacancy-hero {
    position: relative;
    padding: 60px 20px;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(10, 20, 40, 0.7); /* Затемнение для читаемости */
    backdrop-filter: blur(4px);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}
.hero-breadcrumb {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.8;
    margin: 0 0 15px;
}
.hero-breadcrumb span {
    margin: 0 5px;
}
.hero-title {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 20px;
    line-height: 1.2;
}
.hero-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 18px;
}
.hero-meta span {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 600;
}
a {
    text-decoration: none;
}
/* --- Основной макет --- */
.vacancy-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1200px;
    margin: -40px auto 30px; /* Отрицательный margin для "наезда" на шапку */
    padding: 0 20px;
    position: relative;
    z-index: 3;
}
.content-panel {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.vacancy-section h2 {
    font-size: 22px;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
}
.vacancy-section { margin-bottom: 30px; }
.vacancy-section:last-child { margin-bottom: 0; }
.vacancy-section ul { padding-left: 20px; }

/* --- Боковая панель --- */
.sidebar { width: 100%; }
.apply-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 30px;
}
.apply-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}
.company-name { font-weight: 700; margin: 0; }
.company-location { color: var(--light-text); font-size: 14px; margin: 0; }
.apply-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.main-action {
    background-color: var(--primary-color);
    color: #fff;
}
.main-action:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 93, 255, 0.25);
}
.apply-card-subtitle {
    font-size: 14px;
    text-align: center;
    color: var(--light-text);
    margin: 20px 0 15px;
}
.secondary-action {
    background-color: #F3F4F6;
    color: var(--dark-text);
}
.secondary-action:hover { background-color: #E5E7EB; }

/* --- Футер --- */
.page-footer {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: var(--light-text);
    border-top: 1px solid var(--border-color);
    margin-top: 30px;
}

/* --- Адаптивность --- */
@media (max-width: 991px) {
    .hero-title { font-size: 32px; }
}
@media (min-width: 992px) {
    .vacancy-layout { flex-direction: row; align-items: flex-start; }
    .content-panel { flex: 1; }
    .sidebar { width: 360px; flex-shrink: 0; }
}


/* --- OPENCLAW visual upgrade 2026-05-08 --- */
:root { --accent-color:#22C55E; --warm-color:#F59E0B; --soft-blue:#EEF5FF; }
body { background: radial-gradient(circle at top left, rgba(0,93,255,.08), transparent 30%), var(--bg-color); }
.vacancy-hero { padding: 78px 20px 96px; overflow:hidden; }
.vacancy-hero::after { content:""; position:absolute; inset:auto -10% -45% -10%; height:220px; background:linear-gradient(180deg, transparent, rgba(249,250,251,.96)); z-index:1; }
.hero-overlay { background: linear-gradient(135deg, rgba(4,12,28,.86), rgba(0,93,255,.55)); backdrop-filter: blur(2px); }
.hero-content { max-width: 980px; }
.hero-title { font-size: clamp(34px, 5vw, 64px); line-height:1.05; letter-spacing:-.03em; }
.hero-meta { flex-wrap:wrap; margin-bottom:24px; }
.hero-meta span { background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); }
.hero-actions { display:flex; justify-content:center; gap:14px; flex-wrap:wrap; margin-top: 10px; }
.hero-button { display:inline-flex; align-items:center; justify-content:center; min-height:52px; padding: 0 24px; border-radius:14px; font-weight:800; color:#fff; transition:.2s ease; }
.hero-button-primary { background:linear-gradient(135deg, var(--primary-color), #00A3FF); box-shadow:0 18px 40px rgba(0,93,255,.35); }
.hero-button-secondary { background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.28); }
.hero-button:hover { transform:translateY(-2px); }
.hero-trust { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; margin-top:18px; color:rgba(255,255,255,.92); font-size:14px; }
.hero-trust span { padding:7px 10px; border-radius:999px; background:rgba(255,255,255,.10); }
.vacancy-layout { margin-top:-70px; }
.content-panel, .apply-card { border-radius:24px; box-shadow:0 22px 60px rgba(15,23,42,.08); border-color:rgba(15,23,42,.08); }
.content-panel { padding:34px; }
.income-highlight { display:grid; gap:4px; padding:24px; margin-bottom:28px; border-radius:22px; background:linear-gradient(135deg,#07152f,#0b5cff); color:#fff; box-shadow:0 20px 45px rgba(0,93,255,.2); }
.income-highlight .income-kicker { color:rgba(255,255,255,.76); font-weight:700; text-transform:uppercase; letter-spacing:.08em; font-size:12px; }
.income-highlight strong { font-size:clamp(34px,5vw,52px); line-height:1; letter-spacing:-.04em; }
.vacancy-section h2 { font-size:26px; letter-spacing:-.02em; border-bottom:none; padding-bottom:0; }
.vacancy-section p, .vacancy-section li { color:#334155; }
.benefits-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.benefit-card { padding:18px; border-radius:18px; background:linear-gradient(180deg,#fff,#F8FAFC); border:1px solid rgba(15,23,42,.08); }
.benefit-icon { display:inline-flex; width:38px; height:38px; align-items:center; justify-content:center; border-radius:12px; margin-bottom:12px; background:var(--soft-blue); color:var(--primary-color); font-weight:900; font-size:20px; }
.benefit-card strong { display:block; font-size:17px; margin-bottom:6px; }
.benefit-card p { margin:0; font-size:15px; line-height:1.55; }
.steps-list { display:grid; gap:12px; counter-reset: step; }
.step-card { display:grid; grid-template-columns:46px 1fr; gap:14px; align-items:flex-start; padding:18px; border-radius:18px; background:#F8FAFC; border:1px solid rgba(15,23,42,.08); }
.step-card span { display:flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:50%; background:#0F172A; color:#fff; font-weight:900; }
.step-card p { margin:0; }
.inline-action { display:inline-flex; margin-top:10px; color:var(--primary-color); font-weight:800; }
.closing-note { padding:16px 18px; border-radius:16px; background:#ECFDF5; color:#065F46 !important; font-weight:700; }
video { border-radius:18px; box-shadow:0 16px 35px rgba(15,23,42,.12); background:#000; }
.telegram-subscribe-container { padding:22px 0 0 !important; }
.telegram-subscribe-button { border-radius:14px !important; background:#229ED9 !important; box-shadow:0 14px 30px rgba(34,158,217,.22) !important; }
.sidebar-income { padding:18px; margin:0 0 18px; border-radius:18px; background:linear-gradient(135deg,#EEF5FF,#F8FAFC); border:1px solid rgba(0,93,255,.12); }
.sidebar-income span, .sidebar-income small { display:block; color:var(--light-text); font-weight:700; }
.sidebar-income strong { display:block; color:var(--dark-text); font-size:30px; line-height:1.1; letter-spacing:-.03em; margin:4px 0; }
.sidebar-points { list-style:none; margin:0 0 18px; padding:0; display:grid; gap:10px; }
.sidebar-points li { position:relative; padding-left:26px; color:#334155; font-weight:600; }
.sidebar-points li::before { content:"✓"; position:absolute; left:0; top:0; color:var(--accent-color); font-weight:900; }
.mobile-sticky-cta { display:none; }
@media (max-width: 991px) {
  .vacancy-hero { padding:58px 20px 86px; }
  .hero-title { font-size:36px; }
  .hero-actions { display:grid; grid-template-columns:1fr; }
  .hero-button { width:100%; }
  .content-panel { padding:24px; }
  .benefits-grid { grid-template-columns:1fr; }
  .sidebar { display:none; }
  .page-footer { padding-bottom:96px; }
  .mobile-sticky-cta { position:fixed; left:0; right:0; bottom:0; z-index:9998; display:grid; grid-template-columns:1.4fr .9fr; gap:10px; padding:10px 14px calc(10px + env(safe-area-inset-bottom)); background:rgba(255,255,255,.94); border-top:1px solid rgba(15,23,42,.10); box-shadow:0 -12px 30px rgba(15,23,42,.12); backdrop-filter:blur(12px); }
  .mobile-sticky-cta a { display:flex; align-items:center; justify-content:center; min-height:48px; border-radius:14px; font-weight:900; }
  .mobile-sticky-cta a:first-child { color:#fff; background:var(--primary-color); }
  .mobile-sticky-cta a:last-child { color:#0F172A; background:#EEF2F7; }
}
@media (max-width: 520px) {
  .hero-meta { font-size:14px; }
  .vacancy-layout { padding:0 14px; }
  .content-panel { padding:20px; border-radius:20px; }
  .income-highlight { padding:20px; }
  .step-card { grid-template-columns:38px 1fr; padding:15px; }
}

.step-card .inline-action { grid-column:2; width:max-content; max-width:100%; padding:10px 14px; border-radius:12px; background:#EEF5FF; }
@media (max-width:520px){ .step-card .inline-action { width:100%; justify-content:center; } }

.step-card .inline-action { align-self:start; min-height:40px; line-height:1.2; }
