/* тендер.kg: витрина в духе Kaspi, Avito и hh.ru. Белые карточки на светло-сером фоне,
   крупные суммы, чипсы фильтров, один красный акцент для главных действий. */

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-soft: #f2f3f5;
  --surface-hover: #e9ebee;
  --text: #1a1a1a;
  --text-2: #5f646c;
  --text-3: #8d929a;
  --line: #ebedf0;
  --line-strong: #d9dce1;
  --brand: #e53935;
  --brand-hover: #d32f2f;
  --brand-soft: #fdecec;
  --link: #1565d8;
  --ok: #1b7a3a;
  --ok-soft: #e7f5ea;
  --warn: #a84300;
  --warn-soft: #fff1e0;
  --bad: #b71c1c;
  --bad-soft: #ffebee;
  --info-soft: #e8f0fe;
  --radius-s: 8px;
  --radius: 12px;
  --radius-l: 16px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow-hover: 0 6px 24px rgba(17, 24, 39, .08);
  --container: 1240px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
p { margin: 0 0 10px; }
ul, ol { margin: 0 0 10px; padding-left: 20px; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
h1 { font-size: 26px; line-height: 1.2; font-weight: 800; }
h2 { font-size: 20px; line-height: 1.25; font-weight: 800; }
h3 { font-size: 16px; line-height: 1.35; font-weight: 700; }
@media (min-width: 900px) { h1 { font-size: 32px; } h2 { font-size: 22px; } }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid rgba(21, 101, 216, .45); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-3); }
.text-2 { color: var(--text-2); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; }
.icon--s { width: 16px; height: 16px; flex: none; }
.ok { color: var(--ok); }
.bad { color: var(--bad); }
.warn { color: var(--warn); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 900px) { .container { padding: 0 24px; } }
.page { padding: 20px 0 48px; min-height: 60vh; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.page-head p { margin: 4px 0 0; color: var(--text-2); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--text-3); margin-bottom: 10px; }
.breadcrumbs a { color: var(--text-2); }

/* Шапка с поиском */
.header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header__inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: var(--brand); white-space: nowrap; }
.logo span { color: var(--text); }
.logo:hover { text-decoration: none; }
.search { flex: 1; display: flex; gap: 8px; max-width: 680px; margin: 0; }
.search__field { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--surface-soft); border-radius: var(--radius); padding: 0 14px; border: 2px solid transparent; }
.search__field:focus-within { background: #fff; border-color: var(--brand); }
.search__field .icon { color: var(--text-3); }
.search__field input { flex: 1; border: 0; background: transparent; height: 40px; font: 600 15px var(--font); color: var(--text); outline: none; min-width: 0; padding: 0; box-shadow: none; }
.search__field input:focus { box-shadow: none; background: transparent; }
.header-nav { display: flex; gap: 2px; margin-left: auto; }
.header-nav a, .header-nav button {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; border-radius: var(--radius-s);
  color: var(--text-2); font: 700 12px var(--font); background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.header-nav a:hover, .header-nav button:hover { color: var(--text); background: var(--surface-soft); text-decoration: none; }
.header-nav a[aria-current="page"] { color: var(--brand); }
.header-nav form { margin: 0; }
.header__mobile-search { display: none; }
@media (max-width: 899px) { .header__signup { display: none; } }
.header__login { display: none; }
@media (max-width: 899px) {
  .header__inner { height: 56px; }
  .header__inner .search, .header-nav { display: none; }
  .header__mobile-search { display: block; padding: 0 16px 10px; }
  .header__mobile-search .search { display: flex; max-width: none; }
  .header__login { display: inline-flex; margin-left: auto; font-weight: 800; }
}

/* Нижнее меню на телефоне */
.tabbar { display: none; }
@media (max-width: 899px) {
  body { padding-bottom: 68px; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text-3); font: 700 11px var(--font); padding: 4px 0; }
  .tabbar a:hover { text-decoration: none; }
  .tabbar a[aria-current="page"] { color: var(--brand); }
  .tabbar .icon { width: 24px; height: 24px; }
}

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: var(--radius); border: 0; background: var(--surface-soft); color: var(--text);
  font: 700 15px var(--font); cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s;
}
.btn:hover { background: var(--surface-hover); text-decoration: none; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); }
.btn--dark { background: var(--text); color: #fff; }
.btn--dark:hover { background: #333; }
.btn--ok { background: var(--ok); color: #fff; }
.btn--ok:hover { background: #156330; }
.btn--outline { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--outline:hover { background: var(--surface-soft); }
.btn--danger { background: var(--bad-soft); color: var(--bad); }
.btn--danger:hover { background: #ffdcdf; }
.btn--s { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn--xs { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn--block { width: 100%; }
.btn[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--text); }
.btn--primary[aria-pressed="true"], .btn--ok[aria-pressed="true"] { box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .35); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-row form { margin: 0; }
.btn-google { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--text); }
.btn-google:hover { background: var(--surface-soft); }
.btn-telegram { background: #2aabee; color: #fff; }
.btn-telegram:hover { background: #229ed9; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--link); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* Чипсы */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 10px; background: var(--surface); color: var(--text); font: 700 14px var(--font); white-space: nowrap; border: 0; cursor: pointer; }
.chip:hover { background: var(--surface-hover); text-decoration: none; }
.chip[aria-current="true"] { background: var(--text); color: #fff; }
.chip__count { color: var(--text-3); font-weight: 600; }
.chip[aria-current="true"] .chip__count { color: rgba(255, 255, 255, .7); }

/* Бейджи */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; background: var(--surface-soft); color: var(--text-2); font: 700 12px/1.3 var(--font); white-space: nowrap; }
.tag--ok { background: var(--ok-soft); color: var(--ok); }
.tag--warn { background: var(--warn-soft); color: var(--warn); }
.tag--bad { background: var(--bad-soft); color: var(--bad); }
.tag--info { background: var(--info-soft); color: var(--link); }
.tag--dark { background: var(--text); color: #fff; }
.tag--wrap { white-space: normal; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.score { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 10px; border-radius: 10px; font: 800 15px/1 var(--font); white-space: nowrap; background: var(--surface-soft); color: var(--text-2); }
.score small { font: 700 11px var(--font); opacity: .85; }
.score--high { background: var(--ok-soft); color: var(--ok); }
.score--mid { background: var(--warn-soft); color: var(--warn); }
.score--low, .score--fail { background: var(--bad-soft); color: var(--bad); }
.score--fail { font-size: 12px; padding: 7px 10px; }
.score--l { font-size: 30px; padding: 12px 14px; border-radius: 14px; flex-direction: column; align-items: center; gap: 4px; min-width: 84px; }
.score--l small { font-size: 11px; }
.score--l.score--fail { font-size: 16px; }

/* Карточки */
.card { background: var(--surface); border-radius: var(--radius-l); padding: 18px; }
@media (min-width: 900px) { .card { padding: 22px 24px; } }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.stack > * + * { margin-top: 12px; }

/* Раскладки */
.layout { display: grid; gap: 16px; }
.layout > * { min-width: 0; }
@media (min-width: 1000px) {
  .layout--sidebar { grid-template-columns: 272px minmax(0, 1fr); gap: 20px; align-items: start; }
  .layout--buybox { grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
  .layout--half { grid-template-columns: 1fr 1fr; align-items: start; }
  .sticky { position: sticky; top: 88px; }
}

/* Плитки тендеров */
.tiles { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tiles--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-l); padding: 16px; transition: box-shadow .15s; min-width: 0; }
.tile:hover { box-shadow: var(--shadow-hover); }
.tile__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.tile__price { font: 800 22px/1.15 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tile__price small { font: 700 14px var(--font); color: var(--text-3); }
.tile__title { font: 700 15px/1.35 var(--font); color: var(--text); margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.tile__title a { color: inherit; }
.tile__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-l); }
.tile:hover .tile__title a { color: var(--brand); text-decoration: none; }
.tile__customer { font-size: 13px; color: var(--text-2); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--text-3); font-weight: 600; }
.tile__meta span { display: inline-flex; align-items: center; gap: 4px; }
.tile__reasons { list-style: none; padding: 10px 0 0; margin: 10px 0 0; font-size: 13px; display: grid; gap: 4px; border-top: 1px solid var(--line); }
.tile__reasons li { display: flex; gap: 6px; align-items: flex-start; color: var(--text-2); line-height: 1.35; }
.tile__reasons .icon--s { margin-top: 1px; }
.tile__footer { margin-top: auto; padding-top: 12px; display: flex; gap: 8px; align-items: center; }
.tile__footer .tags { flex: 1; }
.tile__footer form { margin: 0; position: relative; z-index: 1; }
.tile__dates { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 8px; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* Боковые фильтры */
.filters { background: var(--surface); border-radius: var(--radius-l); padding: 18px; }
.filters__title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.filters fieldset { border: 0; margin: 0; padding: 14px 0 6px; border-top: 1px solid var(--line); min-width: 0; }
.filters fieldset:first-of-type { border-top: 0; padding-top: 4px; }
.filters legend { font-weight: 800; font-size: 14px; padding: 0; margin-bottom: 6px; }
.filters .checks { max-height: 214px; overflow-y: auto; }
.filters .checks label { font-size: 14px; padding: 5px 0; }
.filters__actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }
.filters-toggle { display: none; }
.saved { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.saved__list { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 6px; }
.saved__list li { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; }
@media (max-width: 999px) {
  .filters-toggle { display: inline-flex; }
  .filters { display: none; }
  .filters.is-open { display: block; }
}
.toolbar { display: flex; gap: 10px; align-items: center; margin: 14px 0; flex-wrap: wrap; }
.toolbar__count { font-weight: 700; color: var(--text-2); margin-right: auto; }
.toolbar select { width: auto; height: 38px; border-radius: 10px; background-color: var(--surface); font-size: 14px; }

/* Формы */
.field { margin-bottom: 16px; min-width: 0; }
.field__label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field__hint { display: block; font-size: 13px; color: var(--text-3); margin: -2px 0 6px; font-weight: 500; }
.field__error { display: block; font-size: 13px; color: var(--bad); font-weight: 700; margin-top: 6px; }
.field--error input, .field--error select, .field--error textarea { box-shadow: inset 0 0 0 2px var(--bad); }
fieldset.field { border: 0; padding: 0; margin: 0 0 16px; }
fieldset.field legend { padding: 0; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], input[type=url], select, textarea {
  width: 100%; height: 44px; padding: 0 14px; border-radius: var(--radius); border: 0; background: var(--surface-soft);
  font: 600 15px var(--font); color: var(--text); outline: none; -webkit-appearance: none; transition: box-shadow .15s, background .15s;
}
textarea { height: auto; min-height: 88px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { background: #fff; box-shadow: inset 0 0 0 2px var(--brand); }
input::placeholder, textarea::placeholder { color: var(--text-3); font-weight: 500; }
select { padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%235f646c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
select[multiple] { height: auto; min-height: 120px; padding: 8px; background-image: none; }
input[type=file] { font: 600 14px var(--font); }
.inputs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inputs-2 .field { margin-bottom: 4px; }
.form-grid { display: grid; gap: 0 16px; }
@media (min-width: 720px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid > .field:has(textarea), .form-grid > .field:has(input[type=file]), .form-grid > fieldset.field { grid-column: 1 / -1; }
}

.checks > div { display: grid; gap: 0; }
@media (min-width: 640px) { .checks--cols > div { grid-template-columns: 1fr 1fr; gap: 0 16px; } }
.checks label, .check { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; font-weight: 600; cursor: pointer; line-height: 1.35; }
input[type=checkbox], input[type=radio] {
  -webkit-appearance: none; appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border-radius: 7px;
  background: #fff; box-shadow: inset 0 0 0 2px var(--line-strong); display: inline-grid; place-content: center; cursor: pointer; transition: background .15s, box-shadow .15s;
}
input[type=radio] { border-radius: 50%; }
input[type=checkbox]::before { content: ""; width: 11px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
input[type=checkbox]:checked { background: var(--brand); box-shadow: none; }
input[type=checkbox]:checked::before { opacity: 1; }
input[type=radio]::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); opacity: 0; }
input[type=radio]:checked { box-shadow: inset 0 0 0 2px var(--brand); }
input[type=radio]:checked::before { opacity: 1; }

/* Уведомления */
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); margin-bottom: 14px; font-weight: 600; background: var(--info-soft); color: #0d47a1; }
.toast--success { background: var(--ok-soft); color: var(--ok); }
.toast--error { background: var(--bad-soft); color: var(--bad); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); background: var(--warn-soft); color: var(--warn); font-size: 14px; font-weight: 600; }
.note--info { background: var(--info-soft); color: #0d47a1; }
.note--plain { background: var(--surface-soft); color: var(--text-2); }
.note .icon { margin-top: 1px; }
.note ul { margin: 4px 0 0; padding-left: 18px; }

/* Характеристики: ключ и значение с точками, как на странице товара */
.specs { margin: 0; display: grid; gap: 10px; }
.specs__row { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.specs__key { color: var(--text-2); flex: none; margin: 0; max-width: 45%; }
.specs__dots { flex: 1; min-width: 12px; border-bottom: 1px dotted var(--line-strong); transform: translateY(-4px); }
.specs__value { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; max-width: 60%; }

/* Блок покупки справа */
.buybox__price { font: 800 34px/1.1 var(--font); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.buybox__price small { font: 700 16px var(--font); color: var(--text-3); }
.buybox__deadline { display: flex; align-items: center; gap: 8px; margin: 8px 0 16px; font-weight: 700; color: var(--text-2); flex-wrap: wrap; }
.buybox__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.buybox__links { display: grid; gap: 2px; margin-top: 14px; }
.buybox__links a { display: flex; align-items: center; gap: 10px; padding: 10px 4px; font-weight: 700; color: var(--text); border-top: 1px solid var(--line); }
.buybox__links a:hover { color: var(--brand); text-decoration: none; }
.buybox__links a .icon--s:last-child { margin-left: auto; color: var(--text-3); }

/* Ключевые параметры плиткой */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 16px 0 0; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { background: var(--surface-soft); border-radius: var(--radius); padding: 12px 14px; min-width: 0; }
.fact__label { display: block; font-size: 12px; color: var(--text-3); font-weight: 700; margin-bottom: 4px; }
.fact__value { display: block; font: 800 18px/1.2 var(--font); font-variant-numeric: tabular-nums; }
.fact__note { display: block; font-size: 12px; color: var(--text-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }

/* Оценка */
.verdict { display: flex; gap: 16px; align-items: flex-start; }
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.reasons li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }
.reasons .icon--s { margin-top: 2px; }
.blocks { display: grid; gap: 8px; margin-top: 18px; }
@media (min-width: 720px) { .blocks { grid-template-columns: repeat(2, 1fr); } }
.block { background: var(--surface-soft); border-radius: var(--radius); padding: 12px 14px; }
.block__head { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 14px; }
.block__notes { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.bar { height: 6px; border-radius: 3px; background: var(--line-strong); margin-top: 8px; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 3px; background: var(--ok); }
.bar--mid span { background: #f29b38; }
.bar--low span { background: var(--bad); }

/* Чек калькулятора */
.receipt { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; font-variant-numeric: tabular-nums; }
.receipt td { padding: 5px 0; }
.receipt td:last-child { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 12px; }
.receipt td:first-child { color: var(--text-2); }
.receipt tr.sub td { border-top: 1px solid var(--line); padding-top: 8px; color: var(--text); font-weight: 700; }
.receipt tr.total td { border-top: 1px solid var(--line); padding-top: 10px; font-size: 18px; font-weight: 800; color: var(--text); }

/* Таблицы */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--text-3); padding: 0 12px 10px 0; white-space: nowrap; }
.table td { padding: 12px 12px 12px 0; border-top: 1px solid var(--line); vertical-align: top; }
.table .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Списки строк */
.rows { display: grid; }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; padding-top: 0; }

/* Табы */
.tabs { display: flex; gap: 4px; background: #e8e9ec; padding: 4px; border-radius: var(--radius); width: fit-content; max-width: 100%; overflow-x: auto; }
.tabs a { padding: 8px 16px; border-radius: 9px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs a[aria-current="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

/* Шаги профиля */
.stepper { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 2px; scrollbar-width: none; }
.stepper a, .stepper span { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); font-weight: 700; font-size: 14px; color: var(--text-2); white-space: nowrap; }
.stepper a:hover { text-decoration: none; color: var(--text); }
.stepper b { display: inline-grid; place-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-soft); font-size: 13px; }
.stepper .is-done b { background: var(--ok-soft); color: var(--ok); }
.stepper .is-current { background: var(--text); color: #fff; }
.stepper .is-current b { background: var(--brand); color: #fff; }
.formset-item { background: var(--surface-soft); border-radius: var(--radius); padding: 16px 16px 4px; margin-bottom: 12px; border: 0; }
.formset-item legend { font-weight: 800; font-size: 13px; color: var(--text-3); padding: 0; margin-bottom: 8px; float: left; width: 100%; }
.formset-item legend + * { clear: both; }
.formset-item input, .formset-item select, .formset-item textarea { background: #fff; }

/* Главная */
.hero { background: var(--surface); border-radius: 20px; padding: 28px 20px; }
@media (min-width: 900px) { .hero { padding: 48px 48px 40px; } }
.hero h1 { font-size: 30px; max-width: 16em; }
@media (min-width: 900px) { .hero h1 { font-size: 46px; line-height: 1.08; } }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero__lede { font-size: 17px; color: var(--text-2); max-width: 40em; margin: 12px 0 22px; }
.hero .search { max-width: 760px; }
.hero .search__field input { height: 50px; font-size: 16px; }
.hero .search .btn { height: 54px; padding: 0 26px; font-size: 16px; }
.hero__cats { margin-top: 14px; flex-wrap: wrap; overflow: visible; }
.hero__cats .chip { background: var(--surface-soft); }
.hero__cats .chip:hover { background: var(--surface-hover); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 24px; max-width: 640px; }
.stat { background: var(--surface-soft); border-radius: var(--radius); padding: 12px 14px; }
.stat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--text-2); font-weight: 600; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 28px 0 12px; gap: 12px; }
.features { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { background: var(--surface); border-radius: var(--radius-l); padding: 20px; }
.feature__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-content: center; margin-bottom: 14px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--text-2); font-size: 14px; margin: 0; }
.cta { background: var(--text); color: #fff; border-radius: 20px; padding: 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 28px; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .7); margin: 6px 0 0; }

/* Вход */
.auth { max-width: 440px; margin: 12px auto; }
.auth .card { padding: 28px 24px; }
.auth h1 { font-size: 26px; }
.auth__alt { display: grid; gap: 10px; margin: 18px 0; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 13px; font-weight: 600; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.benefits { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.benefits li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.benefits .icon--s { color: var(--ok); margin-top: 2px; }

/* Мобильная панель действий на карточке */
.action-bar { display: none; }
@media (max-width: 999px) {
  .action-bar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; padding: 10px 16px; background: var(--surface); border-top: 1px solid var(--line); }
  .action-bar form { display: flex; gap: 8px; flex: 1; margin: 0; }
  .action-bar form .btn { flex: 1; }
  .action-bar > .btn { flex: none; width: 52px; padding: 0; }
}
@media (max-width: 899px) { .action-bar { bottom: 64px; } }
@media (max-width: 999px) { .has-action-bar { padding-bottom: 136px; } }

.empty { background: var(--surface); border-radius: var(--radius-l); padding: 40px 20px; text-align: center; color: var(--text-2); grid-column: 1 / -1; }
.empty h3 { color: var(--text); margin-bottom: 6px; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 20px; font-weight: 700; color: var(--text-2); }
.pagination .btn--s { min-width: 36px; padding: 0 10px; font-variant-numeric: tabular-nums; }
.pagination__gap { min-width: 20px; text-align: center; }
.pagination__step--prev .icon--s { transform: scaleX(-1); }
@media (max-width: 599px) { .pagination { gap: 6px; } .pagination__step span { display: none; } }
.footer { color: var(--text-3); font-size: 13px; padding: 24px 0 32px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer a { color: var(--text-2); }
details.more summary { cursor: pointer; color: var(--link); font-weight: 700; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more[open] summary { margin-bottom: 8px; }
