/* Тендус — комфортная типографика и выравнивание рабочей области.
   Подключается последним, чтобы переопределять базовые размеры. */

:root {
  --sidebar-width: 286px;
  --topbar-height: 86px;
}

body { font-size: 17px; line-height: 1.55; }

/* ---------- Sidebar ---------- */
.sidebar { padding: 20px 14px 14px; }
.sidebar__top { gap: 8px; }
.sidebar .brand { gap: 9px; min-width: 0; }
.sidebar .brand-mark { width: 38px; height: 38px; border-radius: 11px; flex: none; }
.sidebar .brand-word { font-size: 21px; letter-spacing: -.03em; white-space: nowrap; }
.sidebar .brand-sub { font-size: 9.5px; letter-spacing: .075em; margin-top: 5px; white-space: nowrap; }
.workspace-switch { padding: 10px 11px; gap: 9px; margin-top: 16px; }
.workspace-logo { width: 34px; height: 34px; font-size: 14px; }
.workspace-copy b { font-size: 13px; }
.workspace-copy small { font-size: 10.5px; }
.auth-entry { width: 100%; padding: 11px 11px; gap: 9px; margin-bottom: 14px; }
.auth-entry__icon { width: 34px; height: 34px; }
.auth-entry b { font-size: 13px; line-height: 1.25; }
.auth-entry small { font-size: 10.5px; line-height: 1.35; }
.auth-trial { padding: 10px 11px; gap: 7px; }
.auth-trial b { font-size: 12px; }
.auth-trial small { font-size: 9.5px; }
.nav__label { font-size: 11px; letter-spacing: .08em; padding: 0 10px; }
.nav__item { min-height: 43px; padding: 9px 10px; gap: 9px; font-size: 14px; }
.nav__icon { width: 22px; }
.nav__icon .icon { width: 19px; height: 19px; }
.nav__badge { font-size: 10.5px; min-width: 24px; height: 21px; }
.sidebar-folders { margin-top: 20px; }
.folder-row { min-height: 36px; padding: 7px 10px; font-size: 12.5px; }
.folder-row b { font-size: 11px; }
.sidebar-ai { padding: 12px; gap: 9px; }
.sidebar-ai b { font-size: 13px; }
.sidebar-ai small { font-size: 10.5px; line-height: 1.35; }
.utility-link { min-height: 37px; padding: 8px 10px; font-size: 12.5px; }
.user-chip { padding: 10px 8px; gap: 9px; }
.user-chip b { font-size: 13px; }
.user-chip small { font-size: 10.5px; }

/* ---------- Topbar ---------- */
.topbar { padding: 0 22px; gap: 10px; height: var(--topbar-height); }
.topbar__left { gap: 8px; min-width: 0; }
.crumb { font-size: 12.5px; gap: 5px; }
.crumb > span:first-child { display: none; }
.crumb > .icon { display: none; }
.crumb b { font-size: 15px; }
.topbar__right { gap: 7px; min-width: 0; }
.trial-pill { height: 31px; padding: 0 9px; font-size: 11px; }
.trial-pill .icon { width: 13px; height: 13px; }
.topbar-auth { min-height: 34px; padding: 6px 10px; font-size: 12px; }
.cmd-trigger { min-height: 36px; padding: 0 10px; font-size: 12.5px; }
.cmd-trigger span { max-width: 108px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coverage { font-size: 11px; white-space: nowrap; }
.profile-chip { gap: 7px; padding: 5px 7px; }
.profile-chip__copy b { font-size: 12.5px; }
.profile-chip__copy small { font-size: 10.5px; }
.icon-btn { width: 36px; height: 36px; }
.notif-dot { min-width: 18px; height: 18px; font-size: 10px; }

/* ---------- Search / cards ---------- */
.search-input { font-size: 16px; }
.ai-mode { font-size: 12.5px; }
.search-submit { font-size: 14px; }
.hero__stats span b { font-size: 17px; }
.hero__stats span small { font-size: 10px; }
.tender-title { font-size: 16px; }
.tender-meta { font-size: 12.5px; }
.tender-price b { font-size: 20px; }
.deadline { font-size: 12px; }
.badge { font-size: 10.5px; }
.match-pill { font-size: 10.5px; }
.filters__title b, .filter-group__head { font-size: 11px; }
.check-label { font-size: 13px; }
.status-select { font-size: 13px; height: 38px; }
.price-range input { font-size: 13px; }
.mini-chip { font-size: 11px; height: 28px; }

/* ---------- Drawer: главный экран закупки ---------- */
.drawer { width: min(820px, 100%); }
.drawer-head { padding: 24px 28px 20px; }
.drawer-head h2 { font-size: 25px; line-height: 1.3; }
.drawer-head__meta .meta-link, .drawer-head__meta .meta-item { font-size: 13px; }
.drawer-tab { font-size: 13px; padding: 14px 10px 15px; }
.drawer-tab .icon { width: 15px; height: 15px; }
.drawer-tab span { font-size: 9px; min-width: 18px; height: 18px; }
.drawer-body { padding: 24px 28px 38px; }
.ai-summary-card { padding: 18px; }
.ai-summary-card__head b { font-size: 14px; }
.ai-summary-card__head span { font-size: 11px; }
.ai-summary-card p { font-size: 14px !important; line-height: 1.6 !important; }
.fact { padding: 12px 13px; }
.fact > span { font-size: 10.5px; }
.fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fact b { font-size: 14px; white-space: normal; overflow: visible; }
.fact small { font-size: 10.5px; white-space: normal; overflow: visible; }
.detail-block { padding: 16px; }
.detail-block__head h3 { font-size: 14px; }
.detail-block__head > span:not(.panel-tag):not(.ai-label) { font-size: 11px; }
.detail-block__head .link-btn { font-size: 11.5px; }
.drawer-foot .btn { min-height: 40px; font-size: 13px; }
.drawer-foot__hint { font-size: 10.5px; }
.stage-select { height: 38px; font-size: 12px; max-width: 200px; }
.detail-list li, .detail-block p, .detail-block li { font-size: 13.5px; line-height: 1.55; }

/* ---------- Modals ---------- */
.modal__title, .modal-head h2 { font-size: 24px; }
.modal__subtitle, .modal-head p { font-size: 13px; }
.field > span, .field label > span { font-size: 12.5px; }
.field input, .field select, .field textarea { font-size: 14px; min-height: 42px; }
.btn { font-size: 14px; }
.btn--sm { font-size: 13px; min-height: 38px; }
.price-card__head b { font-size: 28px; }

/* ---------- Public SEO pages ---------- */
.public-container { max-width: 1320px; }

/* /poisk/... — та же ширина контента, что и у /search внутри рабочего пространства. */
.public-query-search {
  max-width: 1560px;
  padding-left: 0;
  padding-right: 0;
}
.seo-head h1 { font-size: 38px; }
.seo-head p { font-size: 14px; }
.seo-hub-links a { font-size: 11.5px; min-height: 28px; }
.public-city-card b { font-size: 12px; }
.public-city-card span, .public-city-card small { font-size: 10px; }
.public-query-grid b { font-size: 13px; }
.public-query-grid span { font-size: 11px; }
.public-industry-card b { font-size: 15px; }
.public-industry-card span, .public-industry-card em { font-size: 11px; }
.public-footer__col a { font-size: 11px; }
.public-footer__brand p { font-size: 12px; }
.public-footer__bottom { font-size: 10px; }
.public-catalog-card b { font-size: 12px; }
.public-catalog-card small { font-size: 10px; }

.brand-float--new { display: none; }

/* Плашка дедлайнов: часы по центру двух строк текста, ничего не «висит». */
.deadline-strip__label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 8px;
  row-gap: 1px;
  width: 172px;
}
.deadline-strip__label > .icon {
  grid-row: 1 / span 2;
  width: 18px;
  height: 18px;
  align-self: center;
  justify-self: center;
  color: var(--brand);
}
.deadline-strip__label b,
.deadline-strip__label span { line-height: 1.25; }
.deadline-strip__all .icon { align-self: center; }
@media (max-width: 980px) {
  .deadline-strip__label {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    gap: 6px;
  }
  .deadline-strip__label > .icon { width: 16px; height: 16px; }
}

/* ---------- Auth: иконки и шаг подтверждения почты ---------- */
.auth-gate__benefits > span,
.auth-benefits > span {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 9px;
  row-gap: 1px;
}
.auth-gate__benefits > span > .icon,
.auth-benefits > span > .icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 18px;
  height: 18px;
  margin: 0;
  align-self: center;
  justify-self: center;
}
.auth-gate__benefits b, .auth-gate__benefits small,
.auth-benefits b, .auth-benefits small { grid-column: 2; }
.auth-gate__benefits b { font-size: 12.5px; line-height: 1.3; }
.auth-gate__benefits small { font-size: 11px; line-height: 1.35; }
.auth-benefits b { font-size: 11.5px; line-height: 1.3; }
.auth-benefits small { font-size: 10px; line-height: 1.35; }
.auth-progress span { font-size: 11px; }
.auth-progress span i { font-size: 10px; }
.auth-mail-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 2px auto 4px;
  border-radius: 17px;
  background: var(--brand-soft);
  color: var(--brand);
}
.auth-mail-icon .icon { width: 27px; height: 27px; }
.auth-email-step { text-align: center; }
.auth-email-step .auth-progress { text-align: left; }
.auth-email-step .auth-lead { margin: 0 auto 14px; max-width: 420px; }
.auth-email-step form { text-align: left; }
.auth-code-input {
  height: 58px !important;
  font-size: 27px !important;
  font-weight: 800;
  letter-spacing: .38em;
  text-align: center;
  padding-left: .38em;
}
.auth-email-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 10px;
  flex-wrap: wrap;
}
.auth-email-actions .link-btn { font-size: 12.5px; }
.field-hint { display: block; margin-top: 4px; color: var(--muted); font-size: 10.5px; line-height: 1.35; }

/* ---------- Интересы и мониторинг площадок ---------- */
.monitor-promise {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid #cfe5d8;
  border-radius: 16px;
  background: linear-gradient(180deg, #f4faf5 0%, #ffffff 100%);
}
.monitor-promise__main { display: flex; align-items: flex-start; gap: 13px; min-width: 0; }
.monitor-promise__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex: none;
}
.monitor-promise__icon .icon { width: 21px; height: 21px; }
.monitor-promise__copy { min-width: 0; }
.monitor-promise__copy > b { display: block; font-size: 15.5px; letter-spacing: -.02em; }
.monitor-promise__copy p { margin: 3px 0 9px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.monitor-promise__side { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; flex: none; max-width: 300px; }
.interest-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.interest-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 27px;
  padding: 4px 9px;
  border: 1px solid #d9e7dd;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
}
.interest-chip .icon { width: 13px; height: 13px; color: var(--brand); }
.interest-chip b { min-width: 17px; height: 17px; padding: 0 4px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); font-size: 10px; display: inline-grid; place-items: center; }
.interest-chip--empty { color: var(--muted); font-weight: 500; border-style: dashed; }
.interest-mail-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}
.interest-mail-status .icon { width: 14px; height: 14px; flex: none; }
.interest-mail-status--ok { color: var(--brand); }
.interest-mail-status--ok b { font-weight: 700; }
.interest-mail-status--warn { color: #9a5a16; }
.profile-interests { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.profile-interests__note { display: flex; align-items: flex-start; gap: 6px; margin-top: 10px; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.profile-interests__note .icon { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--brand); }
.interest-mail { margin-top: 9px; }
@media (max-width: 980px) {
  .monitor-promise { flex-direction: column; }
  .monitor-promise__side { align-items: flex-start; max-width: none; width: 100%; }
}
@media (max-width: 760px) {
  .auth-gate__benefits, .auth-benefits { grid-template-columns: 1fr; }
  .auth-email-actions { flex-direction: column; align-items: flex-start; }
}

/* Карточки воронки не должны растягивать колонку «Новые». */
.kanban { align-items: stretch; }
.kanban-col { flex: 1 1 0; min-width: 0; }
.kanban-col__body { min-width: 0; }
.kanban-card { min-width: 0; }
.kanban-title { overflow-wrap: anywhere; }
.kanban-card__meta { min-width: 0; }
.kanban-col__head { min-width: 0; }
.kanban-col__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 980px) {
  .kanban-col { flex: 0 0 232px; }
}

/* ---------- Icons: выравнивание после увеличения текста ---------- */
.icon { display: inline-block; vertical-align: -0.14em; flex: none; align-self: center; }
.btn .icon { width: 17px; height: 17px; }
.btn--sm .icon { width: 15px; height: 15px; }
.icon-btn { display: inline-grid; place-items: center; }
.icon-btn .icon { width: 18px; height: 18px; }
.icon-btn--soft .icon, .icon-btn--tiny .icon { width: 16px; height: 16px; }
.nav__icon .icon { width: 20px; height: 20px; }
.folder-row .icon { width: 16px; height: 16px; }
.meta-link .icon, .meta-item .icon, .deadline .icon, .tender-meta .icon,
.breadcrumbs .icon, .panel__link .icon, .link-btn .icon, .inline-legal .icon {
  width: 14px; height: 14px; vertical-align: -0.12em;
}
.badge .icon, .risk-badge .icon, .match-pill .icon, .status-text .icon, .coverage .icon {
  width: 13px; height: 13px;
}
.trial-pill .icon, .auth-trial .icon, .auth-entry > .icon { width: 14px; height: 14px; }
.utility-link .icon { width: 16px; height: 16px; }
.workspace-switch > .icon { width: 15px; height: 15px; }
.profile-chip > .icon { width: 15px; height: 15px; }
.fact .icon, .detail-block__head h3 .icon { width: 15px; height: 15px; }
.cmd-trigger .icon { width: 17px; height: 17px; }
.public-topbar .icon, .seo-hub .icon { flex: none; }

/* ---------- Layout safety ---------- */
.topbar__right > * { flex: none; }
.cmd-trigger { flex: 0 1 auto; min-width: 0; }
@media (max-width: 1500px) {
  .coverage { display: none; }
  .cmd-trigger span { display: none; }
  .cmd-trigger { width: 38px; justify-content: center; padding: 0; }
  .cmd-trigger kbd { display: none; }
}
@media (max-width: 1250px) {
  .profile-chip__copy { display: none; }
  .trial-pill { display: none; }
  .topbar { padding: 0 18px; }
}
@media (max-width: 980px) {
  :root { --sidebar-width: 0px; --topbar-height: 76px; }
  .sidebar .brand-word { font-size: 19px; }
  .topbar { padding: 0 14px; }
}
@media (max-width: 760px) {
  .drawer { width: 100%; }
  .drawer-head { padding: 18px 16px 16px; }
  .drawer-body { padding: 18px 16px 28px; }
  .drawer-head h2 { font-size: 22px; }
  .drawer-foot { padding: 10px 16px; }
  .fact-grid { grid-template-columns: 1fr 1fr; }
  .seo-head h1 { font-size: 30px; }
}
