/* ====== Брендбук БИГ (по bigcom.ru/company/jobs) ====== */
/* Self-hosted Evolventa — без внешнего blocking-запроса к cdnfonts; swap чтобы текст не пропадал */
@font-face {
  font-family: 'Evolventa';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/Evolventa-Regular.woff') format('woff');
}
@font-face {
  font-family: 'Evolventa';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/Evolventa-Bold.woff') format('woff');
}
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f5;     /* gray-bg */
  --peach: #fff5f0;       /* peach-bg */
  --peach-hover: #ffe5d9;
  --bg-dark: #000000;
  --ink: #111111;
  --muted: #6c6c6c;
  --line: #e2e2e2;
  --brand: #ff5100;       /* фирменный оранжевый */
  --brand-dark: #de4700;
  --brand-soft: #fff5f0;
  --gold: #111111;        /* второй ряд графика */
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 6px 22px rgba(0, 0, 0, 0.06);
  --maxw: 1200px;
  --font-head: 'Evolventa', 'Jost', -apple-system, sans-serif;
  --font: 'PT Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  /* брендовый волновой узор как подложка страниц (поверх белого фона), бледно-оранжевый, скруглённые концы */
  background: var(--bg) url('/static/pattern.svg?p=7') center top / cover no-repeat fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 8px; font-weight: 700; font-size: 15px;
  border: 1.5px solid transparent; cursor: pointer; transition: .2s ease;
  font-family: var(--font);
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-white { background: #fff; color: #000; }
.btn-white:hover { background: var(--peach-hover); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-outline-white { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-white:hover { background: #fff; color: #000; border-color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: -.03em;
}
.logo small { font-weight: 400; color: var(--muted); font-size: 12px; display: block; font-family: var(--font); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a.navlink { font-weight: 700; font-size: 15px; color: var(--ink); }
.nav a.navlink:hover { color: var(--brand); }

/* ---------- HERO (по аналогии с .hr-hero) ---------- */
.hero { padding: 28px 0 56px; }
.hero-panel {
  position: relative; border-radius: var(--radius); overflow: hidden;
  /* заполняет первый экран целиком, чтобы секции ниже не выглядывали; пол — 540px */
  min-height: max(540px, calc(100vh - 140px));
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  padding: 44px; background: var(--brand); isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg svg { width: 100%; height: 100%; display: block; }
.hero-left, .hero-right { position: relative; z-index: 1; min-width: 0; }
.hero-left { display: flex; flex-direction: column; color: #fff; }
.hero-title {
  text-transform: uppercase; font-size: clamp(30px, 3.8vw, 44px); line-height: 1.05;
  color: #fff; letter-spacing: .01em; margin: 0 0 8px;
}
.hero-subtitle {
  text-transform: lowercase; font-size: clamp(16px, 1.9vw, 24px);
  color: #fff; letter-spacing: .02em; margin: 0 0 22px; opacity: .96;
}
.hero-desc { color: rgba(255,255,255,.92); line-height: 1.5; font-size: clamp(14px, 1.1vw, 17px); flex: 1; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-tags { display: flex; gap: 22px; margin-top: 30px; color: #fff; }
.hero-tags .t strong { font-family: var(--font-head); font-size: 26px; display: block; line-height: 1; }
.hero-tags .t span { font-size: 13px; opacity: .9; }

/* ---------- SLIDER (колода карт: фронт + края следующих сзади) ---------- */
.slider { position: relative; height: 100%; min-height: 520px; }
.slide {
  position: absolute; inset: 0; background: #fff; border-radius: var(--radius-sm);
  padding: 34px 34px 84px; display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; pointer-events: none; transform-origin: top center; will-change: transform, opacity;
  transition: transform 1.7s cubic-bezier(.65,0,.35,1), opacity 1.5s cubic-bezier(.65,0,.35,1), box-shadow 1.7s ease;
  box-shadow: 0 20px 50px rgba(0,0,0,.16); text-decoration: none;
}
/* позиции колоды (data-pos выставляет slider.js) */
.slide[data-pos="0"]   { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1);      z-index: 30; box-shadow: 0 26px 60px rgba(0,0,0,.22); }
.slide[data-pos="1"]   { opacity: .55; transform: translateY(16px) scale(.965);                    z-index: 20; }
.slide[data-pos="2"]   { opacity: .28; transform: translateY(32px) scale(.93);                     z-index: 10; }
.slide[data-pos="back"]{ opacity: 0;   transform: translateY(32px) scale(.93);                     z-index: 1; }
.slide[data-pos="out"] { opacity: 0;   transform: translate(46px,-96px) rotate(7deg) scale(1.05);  z-index: 40; }
.slide.active { opacity: 1; pointer-events: auto; } /* фолбэк без JS */
/* каскад контента активной карты */
@keyframes slideContentIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.slide[data-pos="0"] .slide-top  { animation: slideContentIn 1s .20s both; }
.slide[data-pos="0"] h3          { animation: slideContentIn 1s .36s both; }
.slide[data-pos="0"] p           { animation: slideContentIn 1s .52s both; }
.slide[data-pos="0"] .slide-meta { animation: slideContentIn 1s .68s both; }
/* полоса прогресса автоплея */
.slider-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0,0,0,.06); border-radius: 0 0 var(--radius-sm) var(--radius-sm); overflow: hidden; z-index: 45; }
.slider-progress i { display: block; height: 100%; width: 100%; background: var(--brand); transform-origin: left; transform: scaleX(0); }
.slider-progress i.run { animation: sliderProg 6000ms linear forwards; }
@keyframes sliderProg { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.slider.paused .slider-progress i { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  /* без «полётов», но плавный медленный кроссфейд, а не мгновенный щелчок */
  .slide { transition: opacity 1s ease; }
  .slide[data-pos="0"] .slide-top, .slide[data-pos="0"] h3, .slide[data-pos="0"] p, .slide[data-pos="0"] .slide-meta { animation: none; }
  .slider-progress i.run { animation: none; }
}
/* тематическая иллюстрация роли — полупрозрачный водяной знак в углу слайда */
.slide > * { position: relative; z-index: 1; }
/* брендовый волновой узор на белой подложке слайда (светло-оранжевый, как на оранжевой hero-панели) */
.slide-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: .06; pointer-events: none; }
.slide-illustration {
  position: absolute; right: -8px; bottom: -12px; width: 216px; height: 216px;
  color: var(--brand); opacity: .12; z-index: 0; pointer-events: none;
}
.slide-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.slide-dept {
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand); background: var(--peach); padding: 7px 14px; border-radius: 999px;
}
.slide-count { font-size: 13px; color: var(--muted); font-weight: 700; }
.slide h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; color: var(--ink); margin: 0 0 12px; }
.slide p { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0 0 18px; }
.slide-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.chip { font-size: 13px; padding: 7px 13px; border-radius: 999px; background: var(--bg-soft); color: var(--ink); }
.chip.salary { background: var(--brand); color: #fff; font-weight: 700; }
.slider-nav { position: absolute; bottom: 26px; right: 28px; display: flex; gap: 10px; z-index: 50; }
.slider-arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer; font-size: 20px; display: grid; place-items: center; transition: .18s;
}
.slider-arrow:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.slider-dots { position: absolute; bottom: 38px; left: 32px; display: flex; gap: 7px; z-index: 50; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,.18); cursor: pointer; transition: .25s; }
.dot.active { background: var(--brand); width: 24px; border-radius: 4px; }

/* ---------- Секции ---------- */
section.block { padding: 76px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--brand);
  background: var(--peach); padding: 7px 15px; border-radius: 999px;
}
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* ценности */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card { background: var(--bg-soft); border-radius: var(--radius); padding: 30px; transition: .2s; }
.value-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.value-icon { width: 52px; height: 52px; border-radius: 14px; background: #fff; display: grid; place-items: center; font-size: 24px; margin-bottom: 18px; }
.value-card h3 { margin: 0 0 8px; font-size: 19px; }
.value-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* список вакансий */
.vac-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.vac-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff;
  display: flex; flex-direction: column; transition: .2s; position: relative;
}
.vac-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--brand); }
.vac-card .dept { font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: .03em; text-transform: uppercase; }
.vac-card h3 { margin: 8px 0 10px; font-size: 21px; }
.vac-card p { color: var(--muted); font-size: 15px; margin: 0 0 18px; flex: 1; }
.vac-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.vac-meta .chip { background: var(--bg-soft); }
.vac-meta .chip.salary { background: var(--peach); color: var(--brand-dark); font-weight: 700; }
.vac-card .row { display: flex; align-items: center; justify-content: space-between; }
.vac-card .order-no { position: absolute; top: 24px; right: 26px; font-size: 13px; color: var(--muted); font-weight: 700; }

/* ---------- Страница вакансии ---------- */
.vac-hero { background: var(--peach); border-bottom: 1px solid var(--line); padding: 54px 0; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--brand); }
.vac-hero h1 { font-size: clamp(28px, 4vw, 42px); margin: 6px 0 16px; max-width: 760px; }
.vac-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; padding: 56px 0 80px; }
.vac-body h3 { font-size: 22px; margin: 32px 0 14px; }
.vac-body ul { padding-left: 0; list-style: none; margin: 0; }
.vac-body li { position: relative; padding: 9px 0 9px 30px; color: #333; border-bottom: 1px solid var(--line); }
.vac-body li:before { content: ''; position: absolute; left: 4px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.apply-card { position: sticky; top: 96px; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.apply-card h3 { margin: 0 0 6px; font-size: 21px; }
.apply-card .sub { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: #333; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 15px;
  font-family: var(--font); transition: .15s; background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--peach); }
.field textarea { min-height: 90px; resize: vertical; }
.ok-banner { background: #ecf9f0; border: 1px solid #bfe6cc; color: #1d7a3e; padding: 14px 16px; border-radius: 10px; font-weight: 700; font-size: 15px; margin-bottom: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.7); padding: 56px 0 30px; margin-top: 40px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer .logo { color: #fff; }
.site-footer a:hover { color: var(--brand); }
.foot-links { display: flex; gap: 40px; flex-wrap: wrap; }
.foot-col h4 { color: #fff; font-size: 14px; margin: 0 0 12px; letter-spacing: .04em; text-transform: uppercase; }
.foot-col a { display: block; font-size: 15px; margin-bottom: 8px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 36px; padding-top: 20px; font-size: 13px; color: rgba(255,255,255,.5); }

/* ---------- Admin ---------- */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: var(--bg-dark); color: #fff; padding: 26px 18px; }
.admin-side .logo { color: #fff; margin-bottom: 30px; }
.admin-nav a { display: block; padding: 11px 14px; border-radius: 9px; color: rgba(255,255,255,.7); font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.admin-nav a:hover, .admin-nav a.active { background: var(--brand); color: #fff; }
.admin-main { padding: 36px 40px; background: var(--bg-soft); }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.admin-head h1 { margin: 0; font-size: 28px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.metric { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.metric .label { font-size: 13px; color: var(--muted); font-weight: 700; }
.metric .num { font-size: 32px; font-family: var(--font-head); margin-top: 6px; }
.metric .num.brand { color: var(--brand); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-bottom: 24px; }
.panel h2 { margin: 0 0 18px; font-size: 19px; }
table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px; border-bottom: 2px solid var(--line); }
table.admin-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: middle; }
table.admin-table tr:last-child td { border-bottom: none; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.tag.on { background: #ecf9f0; color: #1d7a3e; }
.tag.off { background: var(--bg-soft); color: var(--muted); }
.iconbtn { border: 1px solid var(--line); background: #fff; border-radius: 8px; width: 32px; height: 32px; cursor: pointer; font-size: 15px; display: inline-grid; place-items: center; transition: .15s; }
.iconbtn:hover { border-color: var(--brand); color: var(--brand); }
.iconbtn:disabled { opacity: .3; cursor: not-allowed; }
.iconbtn.danger:hover { border-color: #e33834; color: #e33834; }
.inline-form { display: inline; }
.actions-row { display: flex; gap: 6px; align-items: center; }
.order-cell { display: flex; gap: 4px; align-items: center; }
.order-cell .ord { font-weight: 800; width: 22px; text-align: center; font-family: var(--font-head); }

/* chart */
.chart { display: flex; align-items: flex-end; gap: 8px; height: 160px; padding-top: 10px; }
.chart .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart .bars { display: flex; gap: 3px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.chart .bar { width: 10px; border-radius: 4px 4px 0 0; min-height: 2px; }
.chart .bar.views { background: var(--brand); }
.chart .bar.apps { background: var(--ink); }
.chart .lbl { font-size: 11px; color: var(--muted); white-space: nowrap; }
.legend { display: flex; gap: 18px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.legend i.views { background: var(--brand); }
.legend i.apps { background: var(--ink); }

/* edit form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.switch { display: flex; align-items: center; gap: 10px; font-weight: 700; }

/* login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--peach); }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; width: 380px; box-shadow: var(--shadow); }
.login-card .logo { justify-content: center; margin-bottom: 22px; }
.err { background: var(--peach-hover); color: #e33834; padding: 11px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 14px; }

/* ---------- Счётчики просмотров ---------- */
.vstat { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.vstat .eye { font-size: 14px; line-height: 1; }
.vstat b { color: var(--ink); font-weight: 700; }
.vstat .today { color: var(--brand); font-weight: 700; }
/* живые счётчики на оранжевом hero */
.hero-live-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; align-self: flex-start; }
.hero-live {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.16); color: #fff; padding: 9px 16px; border-radius: 999px;
  font-size: 14px; backdrop-filter: blur(4px);
}
.vstat-group { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-live .dot-live { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: pulseLive 1.8s infinite; }
.hero-live b { font-weight: 700; }
.hero-live .today { color: #fff; font-weight: 700; opacity: .92; }
@keyframes pulseLive { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6);} 70% { box-shadow: 0 0 0 9px rgba(255,255,255,0);} 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0);} }
/* счётчик на карточке вакансии */
.vac-card .vstat { margin-bottom: 12px; }
/* пилюля просмотров на странице вакансии */
.view-pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); padding: 8px 15px; border-radius: 999px; font-size: 14px; color: var(--muted); }
.view-pill b { color: var(--ink); font-weight: 700; }
.view-pill .today { color: var(--brand); font-weight: 700; }
.metric .delta { font-size: 13px; color: var(--brand); font-weight: 700; margin-top: 4px; }
.metric .delta.flat { color: var(--muted); }

/* empty */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }

@media (max-width: 920px) {
  .hero-panel { grid-template-columns: 1fr; padding: 30px; min-height: 0; }
  .hero-right { min-height: 440px; }
  .slider { min-height: 440px; }
  .values { grid-template-columns: 1fr; }
  .vac-grid { grid-template-columns: 1fr; }
  .vac-layout { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: none; }
  .nav .navlink { display: none; }
}
