/* JobPapuga — стили витрины. Значения из design_handoff README §Design Tokens.
   В прототипе использовался inline `style-hover`; здесь — нормальные классы +
   реальные :hover. */

:root {
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --brand-tint: #eff6ff;
  --bg: #f8fafc;
  --surface: #fff;
  --text: #0f172a;
  --muted: #475569;
  --soft: #64748b;
  --faint: #94a3b8;
  --border: #e2e8f0;
  --border-soft: #f1f5f9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
::selection { background: var(--brand); color: #fff; }
input::placeholder { color: var(--faint); }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-1040 { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.container-1000 { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

/* ---------------- header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.wordmark { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.wordmark span { color: var(--brand); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; white-space: nowrap; }
.nav-link {
  font-size: 15px; font-weight: 600; color: var(--muted);
  padding: 8px 14px; border-radius: 9px; transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--border-soft); color: var(--text); }
.nav-link.active { color: var(--text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.link-signin { font-size: 15px; font-weight: 600; color: var(--muted); padding: 8px 12px; }
.link-signin:hover { color: var(--text); }

/* ---------------- buttons ---------------- */
.btn { font-family: inherit; border: none; cursor: pointer; font-weight: 700; border-radius: 11px; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { color: #fff; background: var(--brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-soft { color: var(--brand); background: var(--brand-tint); border-radius: 10px; }
.btn-soft:hover { background: var(--brand); color: #fff; }
.btn-outline { color: var(--muted); background: var(--surface); border: 1px solid var(--border); }
.btn-outline:hover { border-color: #cbd5e1; color: var(--text); }
.btn-header { font-size: 15px; padding: 11px 20px; box-shadow: 0 1px 2px rgba(37,99,235,0.25); }

/* ---------------- hero ---------------- */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding: 72px 24px 56px; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px 6px 8px; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 24px;
}
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.hero-title { font-size: 54px; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 18px; }
.hero-title span { color: var(--brand); }
.hero-sub { font-size: 18px; line-height: 1.6; color: var(--soft); margin: 0 0 32px; max-width: 460px; }

.search {
  display: flex; gap: 10px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 8px; box-shadow: 0 8px 30px rgba(15,23,42,0.06); max-width: 520px;
}
.search.wide { max-width: none; box-shadow: 0 4px 20px rgba(15,23,42,0.04); margin-bottom: 28px; }
.search-field { display: flex; align-items: center; gap: 10px; flex: 1; padding-left: 12px; }
.search-input { border: none; outline: none; font-family: inherit; font-size: 16px; font-weight: 500; color: var(--text); width: 100%; background: transparent; }
.search .btn { font-size: 16px; padding: 14px 28px; flex-shrink: 0; }

.popular { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.popular-label { font-size: 14px; font-weight: 600; color: var(--faint); }
.tag { font-size: 14px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; transition: border-color .15s, color .15s; }
.tag:hover { border-color: var(--brand); color: var(--brand); }

.hero-art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 380px; }
.hero-circle { position: absolute; width: 340px; height: 340px; border-radius: 50%; background: var(--surface); box-shadow: 0 30px 80px rgba(37,99,235,0.18); border: 1px solid var(--border); }
.hero-art img { position: relative; width: 300px; height: 300px; object-fit: contain; z-index: 1; }
.float-chip { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; box-shadow: 0 12px 30px rgba(15,23,42,0.1); z-index: 2; animation: floaty 5s ease-in-out infinite; }
.float-chip.bottom { animation-duration: 6s; animation-delay: 1s; }
.float-chip .ct { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; }
.float-chip .cs { font-size: 12px; font-weight: 600; margin-top: 2px; white-space: nowrap; }

/* ---------------- sections ---------------- */
.section { padding: 8px 24px 64px; }
.section.last { padding-bottom: 80px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.section-title { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }
.section-sub { font-size: 16px; color: var(--soft); margin: 0; }
.view-all { font-size: 15px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.view-all:hover { color: var(--brand-hover); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 14px; }

/* ---------------- stats ---------------- */
.stats-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 36px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; box-shadow: 0 4px 20px rgba(15,23,42,0.04); }
.stat { text-align: center; }
.stat-tick { width: 32px; height: 3px; border-radius: 2px; margin: 0 auto 14px; }
.stat-num { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.stat-label { font-size: 14px; font-weight: 600; color: var(--soft); margin-top: 4px; }

/* ---------------- monogram / badges ---------------- */
.monogram { display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.badge { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 7px; white-space: nowrap; }

/* ---------------- company card ---------------- */
.company-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.company-card:hover { border-color: #cbd5e1; box-shadow: 0 12px 30px rgba(15,23,42,0.08); transform: translateY(-3px); }
.company-top { display: flex; align-items: center; gap: 16px; }
.company-top .monogram { width: 56px; height: 56px; border-radius: 15px; font-size: 24px; }
.company-name { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.company-industry { font-size: 14px; color: var(--soft); font-weight: 500; }
.company-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: space-between; }
.company-city { font-size: 14px; font-weight: 600; color: var(--muted); }
.pill-open { font-size: 13px; font-weight: 700; color: var(--brand); background: var(--brand-tint); padding: 4px 11px; border-radius: 999px; white-space: nowrap; }

/* ---------------- category card ---------------- */
.category-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; display: flex; align-items: center; gap: 16px; transition: border-color .15s, box-shadow .15s; }
.category-card:hover { border-color: #cbd5e1; box-shadow: 0 10px 26px rgba(15,23,42,0.07); }
.cat-icon { width: 48px; height: 48px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cat-name { font-size: 16px; font-weight: 700; }
.cat-count { font-size: 13px; font-weight: 600; color: var(--faint); margin-top: 2px; }

/* ---------------- job row ---------------- */
.job-row { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; display: flex; align-items: center; gap: 18px; transition: border-color .15s, box-shadow .15s; }
.job-row:hover { border-color: #cbd5e1; box-shadow: 0 10px 26px rgba(15,23,42,0.07); }
.job-row .monogram { width: 54px; height: 54px; border-radius: 14px; font-size: 22px; }
.job-main { flex: 1; min-width: 0; }
.job-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.job-title { font-size: 17px; font-weight: 700; }
.job-meta { font-size: 14px; color: var(--soft); font-weight: 500; margin-top: 5px; }
.job-side { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.job-posted { font-size: 13px; font-weight: 600; color: var(--faint); white-space: nowrap; }
.job-side .btn { font-size: 14px; padding: 9px 18px; }
.job-side .btn-primary { padding: 9px 20px; }

/* ---------------- page heads ---------------- */
.page-head { margin-bottom: 24px; }
.page-title { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }
.page-sub { font-size: 16px; color: var(--soft); margin: 0; }
.page-sub strong { color: var(--text); font-weight: 700; }
.pad-page { padding: 48px 24px 80px; }

/* ---------------- jobs listing ---------------- */
.jobs-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.filters { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; position: sticky; top: 96px; }
.filter-label { font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.filter-row { display: flex; align-items: center; gap: 11px; padding: 7px 0; font-size: 15px; font-weight: 600; color: #334155; }
.filter-row.active .checkbox { background: var(--brand); border-color: var(--brand); }
.checkbox { width: 18px; height: 18px; border-radius: 6px; border: 2px solid #cbd5e1; display: inline-block; flex-shrink: 0; }
.filter-count { font-size: 13px; font-weight: 600; color: var(--faint); }
.divider { height: 1px; background: var(--border-soft); margin: 18px 0; }
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pill { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; transition: border-color .15s, color .15s; }
.cat-pill:hover, .cat-pill.active { border-color: var(--brand); color: var(--brand); }
.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.fpill { font-size: 14px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 7px 15px; transition: border-color .15s; }
.fpill:hover { border-color: #cbd5e1; }
.fpill.active { font-weight: 700; color: #fff; background: var(--text); border-color: var(--text); }
.sort { font-size: 14px; font-weight: 600; color: var(--soft); }
.sort strong { color: var(--text); font-weight: 700; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.page-btn { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: var(--muted); background: var(--surface); border: 1px solid var(--border); transition: border-color .15s; }
.page-btn:hover { border-color: #cbd5e1; }
.page-btn.active { color: #fff; background: var(--brand); border-color: var(--brand); }
.empty { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 48px 24px; text-align: center; color: var(--soft); }

/* ---------------- company detail ---------------- */
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--soft); margin-bottom: 24px; }
.back-link:hover { color: var(--text); }
.company-profile { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 36px; box-shadow: 0 4px 20px rgba(15,23,42,0.04); }
.profile-top { display: flex; align-items: center; gap: 24px; }
.profile-top .monogram { width: 84px; height: 84px; border-radius: 22px; font-size: 38px; }
.profile-name { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }
.profile-meta { font-size: 16px; color: var(--soft); font-weight: 500; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.stat-box { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 18px; text-align: center; }
.stat-box .n { font-size: 24px; font-weight: 800; }
.stat-box .l { font-size: 13px; font-weight: 600; color: var(--soft); margin-top: 2px; }
.about { font-size: 16px; line-height: 1.7; color: var(--muted); margin: 28px 0 0; }
.h2-section { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 40px 0 18px; }

/* ---------------- job detail ---------------- */
.job-detail { background: var(--bg); }
.job-hero { background: var(--surface); border-bottom: 1px solid var(--border); }
.job-hero-inner { padding: 28px 24px 32px; }
.job-hero-row { display: flex; align-items: flex-start; gap: 22px; }
.job-hero-row .monogram { width: 72px; height: 72px; border-radius: 18px; font-size: 32px; }
.job-hero-main { flex: 1; min-width: 0; }
.job-hero-title { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; line-height: 1.15; }
.job-company-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.job-company-link { font-size: 16px; font-weight: 700; color: var(--brand); }
.job-company-link:hover { color: var(--brand-hover); }
.job-company-meta { font-size: 15px; color: var(--soft); font-weight: 500; }
.job-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.job-badges .badge { padding: 4px 11px; border-radius: 8px; }
.posted-meta { font-size: 13px; font-weight: 600; color: var(--faint); margin-left: 4px; }
.job-hero-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.job-hero-actions .btn-primary { font-size: 15px; padding: 13px 30px; border-radius: 12px; box-shadow: 0 2px 8px rgba(37,99,235,0.25); }
.job-hero-actions .btn-outline { font-size: 15px; padding: 12px 30px; border-radius: 12px; }

.jd-body { padding: 40px 24px 80px; display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; }
.jd-h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 12px; }
.jd-h2.mt { margin-top: 0; }
.jd-text { font-size: 16px; line-height: 1.75; color: var(--muted); margin: 0 0 36px; }
.checklist { display: flex; flex-direction: column; gap: 13px; margin-bottom: 36px; }
.check-item { display: flex; align-items: flex-start; gap: 12px; }
.check-mark { width: 22px; height: 22px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex-shrink: 0; margin-top: 1px; }
.check-mark.blue { background: var(--brand-tint); color: var(--brand); }
.check-mark.teal { background: #f0fdfa; color: #14b8a6; }
.check-text { font-size: 16px; line-height: 1.6; color: #334155; }
.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.benefit { display: flex; align-items: center; gap: 11px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.benefit-dot { width: 8px; height: 8px; border-radius: 50%; background: #fbbf24; flex-shrink: 0; }
.benefit span:last-child { font-size: 15px; font-weight: 600; color: #334155; }

.sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.overview-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; box-shadow: 0 4px 20px rgba(15,23,42,0.04); }
.ov-label { font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.ov-rows { display: flex; flex-direction: column; gap: 15px; }
.ov-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ov-row .k { font-size: 14px; font-weight: 600; color: var(--soft); }
.ov-row .v { font-size: 14px; font-weight: 700; color: var(--text); text-align: right; }
.overview-card .btn-primary { width: 100%; font-size: 15px; padding: 14px; border-radius: 12px; margin-top: 22px; }
.company-mini { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; transition: border-color .15s, box-shadow .15s; }
.company-mini:hover { border-color: #cbd5e1; box-shadow: 0 10px 26px rgba(15,23,42,0.07); }
.company-mini-top { display: flex; align-items: center; gap: 14px; }
.company-mini-top .monogram { width: 48px; height: 48px; border-radius: 13px; font-size: 20px; }
.company-mini-name { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.company-mini-industry { font-size: 13px; color: var(--soft); font-weight: 500; }
.company-mini p { font-size: 14px; line-height: 1.6; color: var(--soft); margin: 14px 0 0; }
.company-mini .view { display: inline-block; font-size: 14px; font-weight: 700; color: var(--brand); margin-top: 14px; }

/* ---------------- footer ---------------- */
.site-footer { background: var(--text); color: #cbd5e1; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: 56px 24px 28px; }
.footer-brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-mark { width: 40px; height: 40px; border-radius: 11px; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.footer-mark img { width: 32px; height: 32px; object-fit: contain; }
.footer-word { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.footer-word span { color: #60a5fa; }
.footer-tagline { font-size: 15px; line-height: 1.6; color: var(--faint); margin: 0; max-width: 280px; }
.footer-col-title { font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: 15px; font-weight: 500; color: var(--faint); }
.footer-link:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e293b; }
.footer-bottom-inner { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom span { font-size: 14px; color: var(--soft); }

/* ---------------- responsive ---------------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .jobs-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .jd-body { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero-title { font-size: 38px; }
  .stats-card { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav { display: none; }
  .job-hero-actions { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
