@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  --background: #f7f9fc;
  --foreground: #1e293b;
  --card: #ffffff;
  --primary: #2959c8;
  --primary-dark: #1f469f;
  --primary-foreground: #ffffff;
  --secondary: #edf2f7;
  --secondary-foreground: #1e293b;
  --muted-foreground: #516074;
  --accent: #2f9f7f;
  --accent-foreground: #ffffff;
  --border: #d9e2ef;
  --radius: 18px;
  --container: 1200px;
  --hero-gradient: linear-gradient(135deg, #2959c8 0%, #2f8bd8 100%);
  --card-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --card-shadow-hover: 0 16px 28px rgba(15, 23, 42, 0.08), 0 10px 12px rgba(15, 23, 42, 0.05);
  --font-heading: "Plus Jakarta Sans", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.container-main {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 249, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand span { color: var(--primary); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.site-nav a {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a.is-active { color: var(--primary); }

.hero-section {
  background: var(--hero-gradient);
  color: var(--primary-foreground);
  padding: 88px 0 72px;
}

.hero-section--compact { padding: 64px 0 48px; }

.hero-section h1,
.section-title,
.card-title,
.cta-box h2 {
  font-family: var(--font-heading);
}

.hero-section h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-section p {
  max-width: 780px;
  margin: 0;
  font-size: 1.05rem;
  opacity: 0.94;
}

.section { padding: 56px 0; }

.section-stack {
  display: grid;
  gap: 40px;
}

.section-title {
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-lead,
.page-description,
.results-summary,
.seo-copy,
.site-footer p,
.company-card__description,
.company-card__meta,
.nav-card p,
.filter-help {
  color: var(--muted-foreground);
}

.grid { display: grid; gap: 24px; }
.grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card-base {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-base:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
  border-color: #c8d6ea;
}

.nav-card,
.company-card { padding: 24px; }

.nav-card { display: flex; flex-direction: column; gap: 14px; }

.nav-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eaf0fb;
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 700;
}

.card-title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

.btn,
.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: var(--accent-foreground); }

.btn-outline,
.filter-button {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover,
.filter-button:hover,
.filter-button.is-active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.button-row,
.badge-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-list {
  display: grid;
  gap: 14px;
}

.link-list a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--foreground);
  font-weight: 600;
}

.link-list a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs--dark {
  color: var(--muted-foreground);
}

.breadcrumbs--dark a:hover {
  color: var(--primary);
}

.separator-dot {
  opacity: 0.65;
}

.company-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-size: 0.78rem;
  font-weight: 700;
}

.badge--featured {
  background: rgba(47, 159, 127, 0.14);
  color: #19654f;
}

.meta-label { color: var(--foreground); font-weight: 700; }

.cta-box {
  padding: 34px;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, rgba(41, 89, 200, 0.08) 0%, rgba(47, 159, 127, 0.08) 100%);
  border: 1px solid var(--border);
}

.cta-box h2 { margin: 0 0 10px; font-size: 1.8rem; }
.cta-box p { margin: 0 0 18px; }

.page-header { padding: 40px 0 16px; }
.page-header h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 24px 0 12px;
}

.contact-form,
.company-card__meta { display: grid; gap: 12px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--foreground);
  padding: 12px 14px;
}

.contact-form textarea { min-height: 140px; resize: vertical; }
.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.centered-box { max-width: 720px; margin: 0 auto; }
.hidden { display: none !important; }

.info-panel {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}

.info-panel p:last-child,
.faq-item p:last-child {
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-family: var(--font-heading);
}

@media (max-width: 960px) {
  .grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .site-header__inner,
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .grid--three { grid-template-columns: 1fr; }
  .hero-section { padding: 72px 0 56px; }
  .hero-section h1,
  .page-header h1 { font-size: 2rem; }
  .cta-box,
  .nav-card,
  .company-card { padding: 22px; }
}
