:root {
  --tp-green: #00b67a;
  --tp-lime: #73cf11;
  --tp-yellow: #ffce00;
  --tp-orange: #ff8622;
  --tp-red: #ff3722;
  --tp-blue: #4169e1;
  --tp-blue-hover: #2f4fd0;
  --ink: #191919;
  --body: #3d3d3d;
  --muted: #6e6e73;
  --line: #e6e6eb;
  --hero: #fbf8f1;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: #fff; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

.topbar {
  background: #191919; color: #fff; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; padding: 12px 28px;
  position: sticky; top: 0; z-index: 50;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 22px; letter-spacing: -0.04em; color: #fff; }
.brand img { height: 32px; width: auto; display: block; }
.star-logo { width: 22px; height: 22px; color: #00b67a; }
.top-search { flex: 1; max-width: 420px; position: relative; }
.top-search input { width: 100%; border: 0; border-radius: 999px; padding: 10px 14px 10px 38px; font-size: 14px; }
.top-search svg { position: absolute; left: 12px; top: 10px; opacity: .5; }
.nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.nav a, .nav button.link { background: none; border: 0; color: #fff; cursor: pointer; font-size: 14px; }
.btn { border: 0; cursor: pointer; border-radius: 999px; font-weight: 600; }
.btn-blue { background: var(--tp-blue); color: #fff; padding: 10px 16px; }
.btn-blue:hover { background: var(--tp-blue-hover); }
.btn-outline { background: #fff; color: var(--tp-blue); border: 1px solid #d9d9e3; padding: 10px 16px; }
.btn-ghost { background: transparent; border: 1px solid #d9d9e3; padding: 8px 12px; border-radius: 999px; cursor: pointer; }

.hero { background: var(--hero); position: relative; overflow: hidden; text-align: center; padding: 92px 20px 110px; }
.blob { position: absolute; pointer-events: none; }
.blob-orange { width: 280px; height: 160px; background: #ff7a1a; border-radius: 50%; top: -90px; left: -40px; transform: rotate(-12deg); }
.blob-yellow { width: 340px; height: 180px; background: #ffe14a; bottom: -90px; left: -80px; transform: rotate(-18deg); }
.blob-green { width: 260px; height: 420px; background: #19e08a; right: -70px; top: 40px; border-radius: 40% 0 0 40%; transform: rotate(8deg); }
.hero h1 { margin: 0 auto 12px; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; max-width: 760px; letter-spacing: -0.03em; }
.hero .sub { font-size: 22px; color: var(--body); margin-bottom: 28px; }
.search-pill { width: min(560px, 92%); margin: 0 auto; background: #fff; border-radius: 999px; display: flex; align-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.08); padding: 6px 6px 6px 20px; position: relative; z-index: 2; }
.search-pill input { flex: 1; border: 0; outline: none; font-size: 16px; padding: 12px 8px; }
.search-pill button { width: 44px; height: 44px; border-radius: 50%; background: var(--tp-blue); color: #fff; border: 0; cursor: pointer; font-size: 18px; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: 14px; position: relative; z-index: 2; }
.hero-note a { color: var(--tp-blue); text-decoration: underline; }
.cta-row { display: flex; justify-content: center; margin-top: -22px; position: relative; z-index: 3; }
.cta-pill { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; box-shadow: 0 4px 14px rgba(0,0,0,.04); }
.cta-pill a { color: var(--tp-blue); font-weight: 600; }

.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 48px 0; }
.section h2 { font-size: 32px; margin: 0 0 24px; letter-spacing: -0.03em; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; text-align: center; }
.cat { background: none; border: 0; cursor: pointer; color: var(--ink); font-size: 13px; }
.cat .ico { width: 28px; height: 28px; margin: 0 auto 8px; font-size: 22px; }
.cat.active { font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: #fff; cursor: pointer; }
.card:hover { box-shadow: 0 8px 20px rgba(0,0,0,.06); }
.card-top { display: flex; gap: 12px; align-items: center; }
.logo { width: 48px; height: 48px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 700; }
.card h3 { margin: 0; font-size: 18px; }
.muted { color: var(--muted); font-size: 13px; }
.scoreline { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.star-box { width: 18px; height: 18px; border-radius: 2px; display: grid; place-items: center; color: #fff; font-size: 11px; }
.s5 { background: var(--tp-green); }
.s4 { background: var(--tp-lime); }
.s3 { background: var(--tp-yellow); color: #191919; }
.s2 { background: var(--tp-orange); }
.s1 { background: var(--tp-red); }
.s0 { background: #dcdce6; color: transparent; }
.label-excellent { color: var(--tp-green); font-weight: 700; }
.label-great { color: #3d9b0d; font-weight: 700; }
.label-average { color: #c7a000; font-weight: 700; }
.label-poor { color: var(--tp-orange); font-weight: 700; }
.label-bad { color: var(--tp-red); font-weight: 700; }

.crumbs { color: #cfcfcf; font-size: 13px; background: #191919; padding: 0 28px 12px; }
.company { padding: 28px 0 64px; }
.company-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 28px; }
.company-title { display: flex; gap: 16px; align-items: flex-start; }
.company-title h1 { margin: 4px 0 8px; font-size: 40px; letter-spacing: -0.04em; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: #eefaf3; color: #0b7a4b; border-radius: 6px; padding: 4px 8px; font-size: 12px; font-weight: 600; }
.badge.unclaimed { background: #f3f3f6; color: #666; }
.actions { display: flex; gap: 10px; margin-top: 16px; }
.score-box, .side-card, .review, .panel { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.score-box { padding: 18px; }
.big-score { font-size: 42px; font-weight: 800; line-height: 1; }
.bars { margin-top: 10px; }
.bar-row { display: grid; grid-template-columns: 46px 1fr; gap: 8px; align-items: center; font-size: 13px; margin: 6px 0; }
.bar { height: 8px; background: #ececf1; border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; }
.side-card { padding: 16px; margin-top: 12px; font-size: 14px; color: var(--body); }
.side-card b { display: block; color: var(--ink); margin-bottom: 4px; }
.notice { background: #fff8eb; border: 1px solid #f0e0b8; border-radius: 10px; padding: 12px 14px; margin: 20px 0; font-size: 14px; }
.reviews-head { display: flex; justify-content: space-between; align-items: center; margin: 28px 0 14px; }
.reviews-head h2 { margin: 0; font-size: 28px; }
.review-list { display: grid; gap: 14px; }
.review { padding: 18px 20px; }
.review-top { display: flex; justify-content: space-between; gap: 12px; }
.who { display: flex; gap: 10px; align-items: center; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; }
.review h3 { margin: 12px 0 8px; font-size: 18px; }
.review p { margin: 0; color: var(--body); line-height: 1.55; }
.review-foot { display: flex; justify-content: space-between; margin-top: 14px; color: var(--muted); font-size: 13px; }
.form { max-width: 680px; padding: 36px 0 72px; }
.form h1 { font-size: 36px; letter-spacing: -0.03em; }
label { display: block; font-weight: 600; margin: 16px 0 6px; }
input[type=text], input[type=password], input[type=email], input[type=search], input[type=url], select, textarea { width: 100%; border: 1px solid #d7d7de; border-radius: 8px; padding: 12px 14px; font-size: 16px; line-height: 1.4; background: #fff; box-sizing: border-box; }
input[type=password] { letter-spacing: 0.12em; font-size: 16px; }
textarea { min-height: 160px; }
.star-pick { display: flex; gap: 6px; }
.star-pick button { width: 44px; height: 44px; border: 0; border-radius: 6px; cursor: pointer; color: #fff; font-size: 18px; background: #dcdce6; }
.star-pick button.on.n1 { background: var(--tp-red); }
.star-pick button.on.n2 { background: var(--tp-orange); }
.star-pick button.on.n3 { background: var(--tp-yellow); color: #191919; }
.star-pick button.on.n4 { background: var(--tp-lime); }
.star-pick button.on.n5 { background: var(--tp-green); }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; color: var(--ink); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.12); display: none; overflow: hidden; z-index: 20; }
.suggest.show { display: block; }
.suggest button { width: 100%; text-align: left; border: 0; background: #fff; padding: 12px 14px; cursor: pointer; border-bottom: 1px solid var(--line); }
.footer { background: #191919; color: #cfcfcf; padding: 32px 0; font-size: 13px; }
.footer b { color: #fff; }
.empty { padding: 40px; text-align: center; color: var(--muted); }
.hero h1, .hero .sub, .search-pill, .hero-note { position: relative; z-index: 2; }
.crumbs { margin-top: 0; }

@media (max-width: 980px) {
  .topbar { flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
  .top-search { order: 3; flex: 1 1 100%; max-width: none; }
  .nav { width: 100%; flex-wrap: wrap; gap: 8px 14px; }
  .nav a { font-size: 13px; white-space: nowrap; }
  .brand { font-size: 18px; }
  .grid, .cats { grid-template-columns: 1fr 1fr; }
  .company-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 16px 72px; }
  .blob-green, .blob-orange { opacity: .35; }
  .hero h1 { font-size: 32px; }
}
@media (max-width: 640px) {
  .top-search { display: none; }
  .grid, .cats { grid-template-columns: 1fr; }
  .blob, .blob-green, .blob-orange, .blob-yellow { display: none; }
  .hero { padding: 36px 16px 56px; }
  .wrap { padding: 0 16px; }
  .company-title { flex-direction: column; }
}

.lang-switch { display:inline-flex; gap:8px; margin-left:8px; padding-left:12px; border-left:1px solid #444; }
.lang-switch a { font-size:12px; font-weight:700; letter-spacing:.04em; opacity:.7; }
.lang-switch a.on { opacity:1; color:#00b67a; }

.cat .ico { width: 56px; height: 56px; display:flex; align-items:center; justify-content:center; margin: 0 auto 10px; background:#f4f5f7; border-radius:16px; }
.cat .ico img { width: 32px; height: 32px; display:block; }
.cats-icons { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 980px) { .cats-icons { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .cats-icons { grid-template-columns: repeat(2, 1fr); } }

.logo { overflow:hidden; border-radius:12px; display:flex; align-items:center; justify-content:center; font-weight:700; color:#fff; flex-shrink:0; background:#191919; }
.logo img { width:100%; height:100%; object-fit:cover; display:block; }
.has-preview { background:#dbe4ee; border:1px solid #e6e6ea; }
.has-logo { background:#fff; }

.admin-nav { display:flex; flex-wrap:wrap; gap:10px 16px; margin: 8px 0 20px; }
.admin-nav a { font-weight:600; font-size:14px; }
.table-wrap { overflow:auto; }
.table { width:100%; border-collapse:collapse; font-size:14px; }
.table th,.table td { text-align:left; padding:10px 8px; border-bottom:1px solid var(--line); vertical-align:top; }
.table th { color:var(--muted); font-weight:600; }
.pager { display:flex; align-items:center; gap:12px; margin:18px 0 8px; }

.contact-box { margin-top:18px; padding-top:16px; border-top:1px solid var(--line); font-size:14px; line-height:1.6; }
.contact-box h3 { margin:0 0 8px; font-size:16px; }
.contact-box a { color:var(--tp-blue); }
.review-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:flex-start; margin-top:12px; }
.review-actions .inline { display:inline; }
.share-box summary { list-style:none; cursor:pointer; }
.share-box summary::-webkit-details-marker { display:none; }
.share-links, .report-form { background:#fff; border:1px solid var(--line); border-radius:12px; padding:10px; margin-top:8px; display:flex; flex-direction:column; gap:8px; min-width:220px; }
.linkish { background:none; border:0; color:var(--tp-blue); text-align:left; cursor:pointer; padding:0; }
