.home-shell {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
  padding: clamp(48px, 6vw, 72px) 0 clamp(72px, 8vw, 104px);
}
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: start;
  padding-bottom: 76px;
  border-bottom: 1px solid var(--line-strong);
}
.home-hero-copy h1 {
  max-width: 730px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7.5vw, 6.8rem);
}
.home-hero-description {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.7;
}
.home-search {
  display: flex;
  max-width: 650px;
  min-height: 62px;
  align-items: center;
  gap: 4px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(31, 45, 72, 0.06);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.home-search:focus-within {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 4px rgba(45, 92, 245, 0.1), 0 16px 32px rgba(31, 45, 72, 0.08);
  transform: translateY(-1px);
}

.home-search-mark {
  position: relative;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
}

.home-search-mark::before {
  position: absolute;
  top: 6px;
  left: 4px;
  width: 13px;
  height: 13px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
  content: '';
}

.home-search-mark::after {
  position: absolute;
  top: 20px;
  left: 17px;
  width: 8px;
  height: 1.8px;
  border-radius: 2px;
  background: currentColor;
  content: '';
  transform: rotate(45deg);
}

.home-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 16px;
}

.home-search input::placeholder { color: var(--ink-faint); }

.home-quick-panel {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.home-quick-stage {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, var(--surface-blue), var(--surface));
}

.home-panel-heading {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 150px;
}

.home-panel-heading span,
.home-result-count,
.home-step-number {
  font-family: var(--font-mono);
}

.home-panel-heading span {
  color: var(--cobalt-deep);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-panel-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(16px, 1.45vw, 19px);
  letter-spacing: -0.04em;
}

.home-quick-list { display: grid; gap: 3px; padding: 12px; }

.home-quick-link {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 10px 8px;
  border-radius: 12px;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.home-quick-link:hover {
  color: var(--cobalt-deep);
  background: var(--cobalt-soft);
  transform: translateX(3px);
}

.home-quick-link strong,
.home-quick-link small { display: block; }
.home-quick-link strong { font-size: clamp(13px, 1.1vw, 15px); }
.home-quick-link small { margin-top: 2px; color: var(--ink-faint); font-size: clamp(10px, 0.8vw, 11px); }

.home-link-arrow {
  color: var(--ink-faint);
  font-size: 15px;
  transition: color 160ms ease, transform 160ms ease;
}

.home-quick-link:hover .home-link-arrow,
.home-tool-card:hover .home-link-arrow { color: var(--cobalt); transform: translate(2px, -2px); }

.home-catalog,
.home-steps { padding-top: clamp(56px, 6.8vw, 82px); }

.home-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 48px;
  align-items: end;
  margin-bottom: 32px;
}

.home-section-heading h2,
.home-privacy h2 {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1;
}

.home-section-heading > p,
.home-privacy-copy > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.7;
}

.home-category-list {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.home-category-list::-webkit-scrollbar { display: none; }

.home-category {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 254, 250, 0.52);
  font-size: 12px;
  font-weight: 600;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.home-category:hover { border-color: var(--cobalt); color: var(--cobalt-deep); }
.home-category.is-active { border-color: var(--ink); color: var(--paper); background: var(--ink); }

.home-result-count {
  margin: 0 0 13px;
  color: var(--ink-faint);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-tool-card {
  display: flex;
  min-height: 176px;
  flex-direction: column;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 254, 250, 0.74);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.home-tool-card[hidden] { display: none; }
.home-tool-card:hover { border-color: rgba(45, 92, 245, 0.46); color: var(--cobalt-deep); background: var(--surface); box-shadow: 0 14px 30px rgba(31, 45, 72, 0.08); transform: translateY(-3px); }
.home-tool-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 31px; }
.home-tool-card strong { font-size: clamp(13px, 1.1vw, 15px); letter-spacing: -0.02em; }
.home-tool-card small { margin-top: 5px; color: var(--ink-faint); font-size: clamp(10px, 0.85vw, 11px); line-height: 1.45; }

.home-empty {
  padding: 34px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  color: var(--ink-soft);
  text-align: center;
}

.home-empty strong { color: var(--ink); }
.home-empty p { margin: 5px 0 0; font-size: 13px; }

.home-privacy {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 54px;
  margin-top: 88px;
  padding: 42px;
  border-radius: 24px;
  color: white;
  background: #183da9;
  box-shadow: 0 20px 50px rgba(24, 61, 169, 0.2);
}

.home-privacy .section-kicker { color: #cbd7ff; }
.home-privacy h2 { margin-bottom: 18px; color: white; }
.home-privacy-copy > p { margin-bottom: 24px; color: #dbe3ff; }
.home-privacy-copy > a { display: inline-flex; gap: 7px; color: var(--lime); font-size: 12px; font-weight: 700; }
.home-benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.home-benefit { min-height: 220px; padding: 18px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 15px; background: rgba(255, 255, 255, 0.07); }
.home-benefit > span { display: inline-grid; width: 31px; height: 31px; place-items: center; margin-bottom: 58px; border-radius: 50%; color: #183da9; background: var(--lime); font-family: var(--font-mono); font-size: 9px; }
.home-benefit h3 { margin-bottom: 7px; font-size: 14px; }
.home-benefit p { margin: 0; color: #dbe3ff; font-size: 11px; line-height: 1.55; }

.home-text-link { justify-self: end; color: var(--cobalt-deep); font-size: 12px; font-weight: 700; }
.home-step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.home-step { display: grid; min-height: 190px; grid-template-columns: 38px 1fr; gap: 18px; padding: 28px 24px; border-right: 1px solid var(--line-strong); }
.home-step:last-child { border-right: 0; }
.home-step-number { color: var(--cobalt-deep); font-size: 10px; }
.home-step h3 { margin-bottom: 8px; font-size: 15px; }
.home-step p { max-width: 30ch; margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }


.home-tool-card-meta { display: inline-flex; align-items: center; gap: 8px; }
.home-tool-tier { min-height: 21px; padding: 3px 7px; font-size: 8px; }
