:root {
  --ink: #1b2430;
  --ink-2: #3b4754;
  --muted: #6b7784;
  --line: #e7ecf0;
  --bg: #f5f7f9;
  --paper: #ffffff;
  --teal: #0d7c8f;
  --teal-dark: #0a5f6e;
  --teal-soft: #e6f4f7;
  --orange: #f06a16;
  --orange-dark: #d85c10;
  --good: #1c8a4e;
  --mid: #c98912;
  --bad: #c24b32;
  --shadow: 0 8px 24px rgba(27, 36, 48, 0.06);
  --radius: 16px;
  --max: 1140px;
  --nav-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

.wrap { width: min(var(--max), calc(100% - 36px)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--teal); font-size: 1.12rem; letter-spacing: -.02em;
}
.mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: var(--teal); color: #fff; display: grid; place-items: center;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 600; font-size: .95rem;
}
.nav-links a:hover { background: var(--bg); color: var(--teal-dark); }
.nav-links a.active { color: var(--teal); background: var(--teal-soft); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn {
  display: none; border: 1px solid var(--line); background: #fff;
  width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; border-radius: 8px; padding: 11px 18px;
  font-weight: 700; transition: .15s ease; white-space: nowrap;
}
.btn-primary, .btn-orange { background: var(--orange); color: #fff; }
.btn-primary:hover, .btn-orange:hover { background: var(--orange-dark); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg); }
.btn-outline { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-lg { padding: 13px 20px; }

.hero { background: #fff; padding: 28px 0 12px; }
.hero-panel {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 0;
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow); background: #fff; min-height: 380px;
}
.hero-copy { padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--teal-soft); color: var(--teal-dark);
  font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; width: max-content;
}
.hero h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  line-height: 1.15; letter-spacing: -.03em; margin: 14px 0 10px; font-weight: 750;
}
.hero .lead { color: var(--ink-2); max-width: 440px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-photo { position: relative; min-height: 340px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

.search-bar {
  margin-top: 18px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 6px; display: flex; gap: 8px; max-width: 640px;
}
.search-bar input { flex: 1; border: 0; outline: 0; padding: 10px 12px; background: transparent; }

section { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; }
h2 { font-size: 1.55rem; letter-spacing: -.02em; font-weight: 750; }
.company-card h3, .review-card h3 { font-size: 1.05rem; font-weight: 750; letter-spacing: -.01em; }
.company-card a { display: block; color: inherit; }
.sub { color: var(--muted); }

.company-grid, .review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card, .company-card, .review-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}
.company-card, .review-card { display: block; transition: .15s ease; }
.company-card:hover, .review-card:hover { border-color: #b7d7de; box-shadow: var(--shadow); }
.meta a, .sub a, .facts a, .crumb a { color: var(--teal-dark); font-weight: 650; }
.meta a:hover, .sub a:hover, .facts a:hover { text-decoration: underline; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo-dot {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; color: #fff; flex-shrink: 0; font-size: .85rem;
}
.score-badge {
  min-width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.15rem; font-weight: 800; color: #fff;
}
.score-good { background: var(--good); }
.score-mid { background: var(--mid); }
.score-bad { background: var(--bad); }
.meta { color: var(--muted); font-size: .9rem; }
.stars { color: #e0a21a; letter-spacing: 1px; }
.chip {
  display: inline-flex; padding: 3px 9px; border-radius: 999px;
  background: var(--teal-soft); color: var(--teal-dark); font-size: .75rem; font-weight: 700;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 7px 13px; cursor: pointer; color: var(--ink-2); font-weight: 650;
}
.filter-btn.active, .filter-btn:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

.profile { display: grid; grid-template-columns: 1.55fr .7fr; gap: 16px; align-items: start; }
.company-hero { display: flex; gap: 18px; align-items: flex-start; }
.company-logo {
  width: 88px; height: 88px; border-radius: 16px; object-fit: contain;
  background: #fff; border: 1px solid var(--line); padding: 8px; flex-shrink: 0;
}
.logo-dot img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.facts { list-style: none; margin-top: 14px; }
.facts li { margin: 8px 0; color: var(--ink-2); word-break: break-word; }
.facts a { color: var(--teal-dark); font-weight: 650; }
.facts a:hover { text-decoration: underline; }
.profile-side { position: sticky; top: 90px; }
.big-score { text-align: center; padding: 26px 16px; }
.big-score .num { font-size: 3.6rem; line-height: .95; font-weight: 800; color: var(--teal-dark); }
.bar-row { display: grid; grid-template-columns: 24px 1fr 24px; gap: 8px; align-items: center; font-size: .8rem; margin: 6px 0; color: var(--muted); }
.bar { height: 7px; background: #eef2f5; border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--orange); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; max-width: 720px; }
label { display: block; font-weight: 700; margin: 14px 0 6px; }
.field, select.field, textarea.field {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 11px 12px; outline: none;
}
.field:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,124,143,.12); }
.score-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.score-picker button {
  width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-weight: 750;
}
.score-picker button.selected { background: var(--orange); color: #fff; border-color: var(--orange); }
.notice { background: var(--teal-soft); color: var(--teal-dark); border-radius: 10px; padding: 12px; margin-top: 14px; display: none; }
.notice.show { display: block; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.page-hero { padding: 36px 0 6px; }
.page-hero h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.02em; }
.crumb { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.crumb a:hover { color: var(--teal); }

.site-footer { background: #16343a; color: #c5d5d9; padding: 44px 0 20px; margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.site-footer a { color: #c5d5d9; }
.site-footer a:hover { color: #fff; }
.site-footer p + p { margin-top: 8px; }
.foot-copy { border-top: 1px solid rgba(255,255,255,.08); margin-top: 28px; padding-top: 14px; color: #8ea7ad; font-size: .86rem; }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: 14px; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 28px 0 8px; }
.benefits article { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.benefits h3 { font-size: 1.02rem; margin-bottom: 6px; }

@media (max-width: 960px) {
  .hero-panel, .company-grid, .review-grid, .cards, .profile, .foot-grid, .benefits, .grid-2 { grid-template-columns: 1fr; }
  .hero-photo { min-height: 220px; }
  .hero-photo img { position: relative; height: 220px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #fff; padding: 10px; border-bottom: 1px solid var(--line);
  }
  .menu-btn { display: grid; place-items: center; }
  .profile-side { position: static; }
  .nav-actions .btn-ghost { display: none; }
}
