/* Стили общих экранов: старт/поиск (1a), каталог по отраслям (1b), мои профессии (1d). */

body { margin: 0; }

.topbar {
  position: sticky; top: 70px; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-bg);
}
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex: none;
  color: var(--color-text); background: none; border: none; padding: 0; cursor: pointer;
  text-decoration: none;
}
.icon-btn:hover { color: var(--color-accent); }
.icon-btn svg { width: 20px; height: 20px; }
.crumb {
  font: 400 10px var(--font-mono); letter-spacing: .08em;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-lockup { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 18px; width: auto; flex: none; display: block; }
.topbar .nav-brand { font-size: 13px; margin-right: 0; }

/* — старт/поиск (1a) — */
.start {
  padding: var(--space-4); max-width: 480px; margin: 0 auto;
}

/* Полноэкранная картинка-герой — вылет на всю ширину вьюпорта независимо от отступов .start */
.hero-figure {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 0;
  margin-bottom: var(--space-4);
  height: 68vh;
  min-height: 380px;
  max-height: 680px;
  display: flex; align-items: flex-end; justify-content: center;
  background: linear-gradient(180deg, var(--color-accent-100), var(--color-bg) 90%);
  overflow: hidden;
}
.hero-figure img { width: auto; max-width: 55%; object-fit: contain; }
.hero-figure-girl { height: 80%; margin-right: -22px; }
.hero-figure-boy { height: 94%; z-index: 1; }

.start .kicker { margin-top: var(--space-2); font-size: 15px; letter-spacing: .04em; font-weight: 700; }
.start h2 { font-size: 30px; line-height: 1.12; }
.start .lead { font-size: 13px; opacity: 0.65; margin-bottom: var(--space-4); }

.search-box { position: relative; margin-bottom: var(--space-3); }
.suggest-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20;
  background: var(--color-bg); border: 1px solid var(--color-divider); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); max-height: 320px; overflow-y: auto;
}
.suggest-row {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-2);
  padding: 10px 12px; cursor: pointer; border-bottom: 1px solid var(--color-divider);
  font-family: var(--font-heading); font-size: 15px;
}
.suggest-row:last-child { border-bottom: none; }
.suggest-row:hover, .suggest-row.is-active { background: var(--color-accent-100); }
.suggest-industry { font-size: 11px; font-family: var(--font-body); opacity: 0.55; white-space: nowrap; }

.start-actions { display: flex; gap: 10px; margin-top: var(--space-3); }
.start-actions .btn { flex: 1; height: 44px; }
.start-footnote { font-size: 11px; opacity: 0.5; margin-top: var(--space-4); }

.not-found { display: none; text-align: center; padding: var(--space-6) 0; }
.not-found.is-visible { display: block; }

/* — десктоп: крупный, центрированный блок поиска — */
@media (min-width: 900px) {
  .hero-figure { max-height: 560px; }
  .start {
    max-width: 640px;
    padding: var(--space-8) var(--space-6) var(--space-8);
    text-align: center;
  }
  .start .field { text-align: left; }
  .start h2 { font-size: 44px; }
  .start .lead { font-size: 16px; max-width: 52ch; margin-left: auto; margin-right: auto; }
  .start .input { height: 58px; font-size: 18px; border-radius: var(--radius-lg); }
  .start #find-btn { height: 60px; font-size: 17px; border-radius: var(--radius-lg); }
  .suggest-row { font-size: 17px; padding: 14px 16px; }
  .start-actions .btn { height: 52px; font-size: 15px; }
  .partner-figure, .not-found { justify-content: center; }
}

/* — каталог по отраслям (1b) — */
.catalog { padding: var(--space-4); max-width: 720px; margin: 0 auto; }

.catalog-hero { position: relative; padding-top: var(--space-2); padding-bottom: var(--space-8); overflow: hidden; }
.catalog-hero-figure {
  position: absolute; top: -8px; right: -28px; z-index: 0;
  width: 190px; height: auto; pointer-events: none;
}
.catalog-hero .catalog-search { position: relative; z-index: 1; max-width: 58%; margin: var(--space-3) 0; }

@media (min-width: 900px) {
  .catalog-hero { padding-top: var(--space-4); }
  .catalog-hero-figure { width: 280px; top: 0; right: 0; }
  .catalog-hero .catalog-search { max-width: 420px; }
}
.industry-list { display: flex; flex-direction: column; gap: 8px; }
.industry-item { border: 1px solid var(--color-divider); border-radius: var(--radius-md); overflow: hidden; }
.industry-header {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  padding: 12px; cursor: pointer; background: var(--color-bg);
}
.industry-item.is-open .industry-header { background: var(--color-accent-100); }
.industry-name { font-family: var(--font-heading); font-size: 17px; }
.industry-meta { display: flex; align-items: center; gap: 8px; }
.industry-count { font-size: 12px; color: var(--color-accent-700); }
.industry-chevron { transition: transform 0.15s; }
.industry-item.is-open .industry-chevron { transform: rotate(180deg); }
.industry-body { display: none; }
.industry-item.is-open .industry-body { display: block; }
.industry-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--color-divider);
}
.industry-grid a {
  display: block; background: var(--color-bg); padding: 10px 8px;
  font-size: 12.5px; color: var(--color-text); text-decoration: none;
}
.industry-grid a:hover { color: var(--color-accent); background: var(--color-accent-100); }

/* — мои профессии (1d) — */
.mypage { padding: var(--space-4); max-width: 560px; margin: 0 auto; }
.mypage-mascot { display: flex; justify-content: flex-end; margin-bottom: -20px; }
.mypage-mascot img { width: 96px; height: auto; }
.mycard-block {
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
  padding: var(--space-3); margin: var(--space-3) 0;
}
.mycard-empty { font-size: 13px; opacity: 0.6; }
.history-section h6 { margin: var(--space-4) 0 var(--space-2); color: var(--color-accent-700); }
.history-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--color-divider);
  text-decoration: none; color: var(--color-text);
}
.history-thumb {
  width: 44px; height: 56px; flex: none; border-radius: var(--radius-sm);
  background: var(--color-surface);
}
.history-info { flex: 1; }
.history-name { font-family: var(--font-heading); font-size: 15px; }
.history-industry { font-size: 11px; opacity: 0.55; }
.history-star { color: var(--color-accent); flex: none; }
.history-star.is-empty { opacity: 0.3; }
.empty-note { font-size: 12.5px; opacity: 0.55; padding: var(--space-3) 0; }
