/* classificators.online — дизайн-система.
   Токены цвета задаются на :root и переопределяются для тёмной темы. */

:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f0f3f7;
  --border: #e1e6ed;
  --border-strong: #cfd7e2;
  --text: #15202d;
  --text-2: #475467;
  --text-3: #7a8698;
  --accent: #1f5fcc;
  --accent-hover: #184fae;
  --accent-soft: #e9f0fc;
  --mark: #fff1b8;
  --focus: #1f5fcc55;

  --c-blue: #1f5fcc;   --c-blue-soft: #e9f0fc;
  --c-teal: #0d8478;   --c-teal-soft: #e3f4f1;
  --c-green: #2f8340;  --c-green-soft: #e7f3e9;
  --c-rose: #c0384a;   --c-rose-soft: #fbe9eb;
  --c-amber: #a86a12;  --c-amber-soft: #fbf1df;

  --ad-bg: repeating-linear-gradient(135deg, #f0f3f7 0 10px, #eaeef3 10px 20px);

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .14);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --container: 1240px;
  --sidebar: 300px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e131a; --surface: #151c25; --surface-2: #1b2430; --border: #263140; --border-strong: #334155;
    --text: #e5eaf0; --text-2: #a8b3c1; --text-3: #7c8797;
    --accent: #6aa5ff; --accent-hover: #8ab8ff; --accent-soft: #1a2a44; --mark: #5a4a12; --focus: #6aa5ff55;
    --c-blue: #6aa5ff;  --c-blue-soft: #1a2a44;
    --c-teal: #3fc2b2;  --c-teal-soft: #11302d;
    --c-green: #6cc27c; --c-green-soft: #16301c;
    --c-rose: #f07a8a;  --c-rose-soft: #3a1a20;
    --c-amber: #e0a94a; --c-amber-soft: #352710;
    --ad-bg: repeating-linear-gradient(135deg, #1b2430 0 10px, #18202a 10px 20px);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 12px 32px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e131a; --surface: #151c25; --surface-2: #1b2430; --border: #263140; --border-strong: #334155;
  --text: #e5eaf0; --text-2: #a8b3c1; --text-3: #7c8797;
  --accent: #6aa5ff; --accent-hover: #8ab8ff; --accent-soft: #1a2a44; --mark: #5a4a12; --focus: #6aa5ff55;
  --c-blue: #6aa5ff;  --c-blue-soft: #1a2a44;
  --c-teal: #3fc2b2;  --c-teal-soft: #11302d;
  --c-green: #6cc27c; --c-green-soft: #16301c;
  --c-rose: #f07a8a;  --c-rose-soft: #3a1a20;
  --c-amber: #e0a94a; --c-amber-soft: #352710;
  --ad-bg: repeating-linear-gradient(135deg, #1b2430 0 10px, #18202a 10px 20px);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 12px 32px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 var(--font); min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
mark { background: var(--mark); color: inherit; border-radius: 2px; padding: 0 1px; }
code, .code { font-family: var(--mono); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--text-3); }
.nowrap { white-space: nowrap; }

/* ---------- Шапка ---------- */
.header { background: var(--surface); border-bottom: 1px solid var(--border); position: relative; z-index: 20; }
.header__row { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.08rem; flex-shrink: 0; }
.logo:hover { text-decoration: none; color: var(--text); }
.logo__mark { width: 32px; height: 32px; flex-shrink: 0; }
.logo__tld { color: var(--text-3); font-weight: 500; }
.header__search { flex: 1; max-width: 620px; }
.header__actions { margin-left: auto; display: flex; gap: 6px; }
.icon-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }

.nav { border-top: 1px solid var(--border); }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.nav__list::-webkit-scrollbar { display: none; }
.nav__link {
  display: block; padding: 10px 12px; color: var(--text-2); font-size: .93rem; font-weight: 500; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav__link:hover { color: var(--text); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Поиск ---------- */
.search { position: relative; }
.search__form { display: flex; position: relative; }
.search__input {
  width: 100%; height: 42px; padding: 0 44px 0 40px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font: inherit; font-size: .97rem;
}
.search__input::placeholder { color: var(--text-3); }
.search__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
.search__icon { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search__submit {
  position: absolute; right: 4px; top: 4px; bottom: 4px; width: 36px; border: 0; border-radius: 4px;
  background: var(--accent); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.search__submit svg { width: 16px; height: 16px; }
.search--hero .search__input { height: 56px; font-size: 1.08rem; padding-left: 48px; border-radius: var(--radius); box-shadow: var(--shadow); }
.search--hero .search__icon { left: 16px; width: 20px; height: 20px; }
.search--hero .search__submit { width: auto; padding: 0 22px; right: 6px; top: 6px; bottom: 6px; border-radius: var(--radius-sm); font: inherit; font-weight: 600; }

.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); list-style: none; margin: 0; padding: 6px; z-index: 50;
}
.suggest[hidden] { display: none; }
.suggest__item a { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text); }
.suggest__item a:hover, .suggest__item[aria-selected="true"] a { background: var(--surface-2); text-decoration: none; }
.suggest__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.suggest__all a { color: var(--accent); font-weight: 500; }

/* ---------- Каркас страницы ---------- */
.main { flex: 1; padding: 20px 0 48px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 1080px) { .layout { grid-template-columns: minmax(0, 1fr) var(--sidebar); } }
.sidebar { display: none; }
@media (min-width: 1080px) { .sidebar { display: block; } }
.sidebar__sticky { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 20px; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.panel + .panel, .panel + .ad, .ad + .panel, .section + .section { margin-top: 20px; }
@media (max-width: 640px) { .panel { padding: 16px; border-radius: 8px; } }
.panel__title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.panel__title h2 { margin: 0; }

/* ---------- Хлебные крошки ---------- */
.crumbs { font-size: .88rem; color: var(--text-3); margin-bottom: 14px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--border-strong); }
.crumbs a { color: var(--text-2); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
.crumbs .code { font-size: .85em; }

/* ---------- Карточка записи ---------- */
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .85rem; color: var(--text-3); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: var(--chip-soft, var(--accent-soft)); color: var(--chip, var(--accent)); white-space: nowrap; line-height: 1.6;
}
.chip--plain { background: var(--surface-2); color: var(--text-2); font-weight: 500; }
[data-accent="blue"]  { --chip: var(--c-blue);  --chip-soft: var(--c-blue-soft); }
[data-accent="teal"]  { --chip: var(--c-teal);  --chip-soft: var(--c-teal-soft); }
[data-accent="green"] { --chip: var(--c-green); --chip-soft: var(--c-green-soft); }
[data-accent="rose"]  { --chip: var(--c-rose);  --chip-soft: var(--c-rose-soft); }
[data-accent="amber"] { --chip: var(--c-amber); --chip-soft: var(--c-amber-soft); }

.record__title { font-size: clamp(1.2rem, 1rem + .8vw, 1.55rem); font-weight: 650; margin: 0; }
.record__code { display: block; font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.9rem); font-weight: 700; color: var(--chip, var(--accent)); letter-spacing: .01em; margin-bottom: 6px; overflow-wrap: anywhere; }
.record__name { display: block; overflow-wrap: anywhere; }
.record__code--long { font-size: clamp(1rem, .9rem + .5vw, 1.2rem); }
.related__more { margin: 8px 0 0; font-size: .9rem; color: var(--text-3); }
.letters { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; }
.letters a, .letters span { min-width: 34px; height: 34px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 600; font-size: .92rem; }
.letters a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.letters [aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.record__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.attrs .code { color: var(--chip, var(--accent)); font-weight: 600; margin-right: 6px; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: inherit; font-size: .82rem; cursor: pointer;
}
.copy-btn:hover { background: var(--surface-2); color: var(--text); }
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn.is-done { color: var(--c-green); border-color: currentColor; }

.attrs { display: grid; grid-template-columns: minmax(140px, 240px) 1fr; margin: 18px 0 0; border-top: 1px solid var(--border); }
.attrs dt, .attrs dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--border); }
.attrs dt { color: var(--text-3); font-size: .9rem; padding-right: 16px; }
.attrs dd { overflow-wrap: anywhere; white-space: pre-line; }
@media (max-width: 640px) {
  .attrs { grid-template-columns: 1fr; }
  .attrs dt { border-bottom: 0; padding-bottom: 0; }
  .attrs dd { padding-top: 2px; }
}
.note { white-space: pre-line; color: var(--text-2); font-size: .95rem; }
.note--clamp { max-height: 14em; overflow: hidden; position: relative; }
.note--clamp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4em; background: linear-gradient(transparent, var(--surface)); }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; }

/* ---------- Списки кодов ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list__item { border-top: 1px solid var(--border); }
.list__item:first-child { border-top: 0; }
.list__link { display: grid; grid-template-columns: minmax(96px, max-content) 1fr auto; gap: 4px 16px; align-items: baseline; padding: 11px 4px; color: var(--text); }
.list__link:hover { text-decoration: none; background: var(--surface-2); }
.list__link:hover .list__name { color: var(--accent); }
.list__code { font-family: var(--mono); font-weight: 600; color: var(--chip, var(--accent)); white-space: nowrap; font-size: .93rem; }
.list__name { min-width: 0; }
.list__meta { color: var(--text-3); font-size: .82rem; white-space: nowrap; }
.list--nocode .list__link { grid-template-columns: 1fr auto; }
@media (max-width: 640px) {
  .list__link { grid-template-columns: 1fr auto; }
  .list__code { grid-column: 1; }
  .list__name { grid-column: 1 / -1; }
  .list__meta { grid-column: 2; grid-row: 1; }
}
.list__ad { border-top: 1px solid var(--border); padding: 12px 0; }

.result__dict { margin-right: 6px; vertical-align: 1px; }

/* Таблица для плоских справочников */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--border-strong); }
.table td { padding: 9px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:hover td { background: var(--surface-2); }
.table .code { font-weight: 600; color: var(--chip, var(--accent)); white-space: nowrap; }

/* Связанные записи */
.related { display: grid; gap: 16px; }
.related__group h3 { font-size: .9rem; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }

/* Соседи */
.siblings { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.siblings a { display: block; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); background: var(--surface); }
.siblings a:hover { border-color: var(--accent); text-decoration: none; }
.siblings small { display: block; color: var(--text-3); font-size: .78rem; }
.siblings .next { text-align: right; grid-column: 2; }
.siblings span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .siblings { grid-template-columns: 1fr; } .siblings .next { grid-column: 1; } }

/* ---------- Главная ---------- */
.hero { padding: 36px 0 28px; text-align: center; }
.hero h1 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem); margin-bottom: 10px; }
.hero__lead { color: var(--text-2); font-size: 1.08rem; max-width: 680px; margin: 0 auto 24px; }
.hero__search { max-width: 760px; margin: 0 auto; text-align: left; }
.hero__examples { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; font-size: .9rem; color: var(--text-3); }
.hero__examples a { padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-2); }
.hero__examples a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.hero__stats { margin-top: 22px; display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; color: var(--text-3); font-size: .9rem; }
.hero__stats strong { display: block; color: var(--text); font-size: 1.35rem; }

.group-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 28px 0 12px; }
.group-title:first-child { margin-top: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tile {
  display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); position: relative; overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
.tile::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--chip, var(--accent)); }
.tile:hover { text-decoration: none; border-color: var(--chip, var(--accent)); box-shadow: var(--shadow); }
.tile__title { font-size: 1.15rem; font-weight: 700; color: var(--chip, var(--accent)); }
.tile__full { font-size: .86rem; color: var(--text-2); font-weight: 500; line-height: 1.35; }
.tile__desc { font-size: .9rem; color: var(--text-3); flex: 1; }
.tile__meta { font-size: .8rem; color: var(--text-3); display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--border); padding-top: 8px; margin-top: 4px; }
.tile--soon { opacity: .65; pointer-events: none; }

.prose { color: var(--text-2); }
.prose h2 { color: var(--text); margin-top: 1.2em; }
.prose ul { padding-left: 1.2em; }

/* ---------- Справочник ---------- */
.dict-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-start; }
.dict-head h1 { margin-bottom: 6px; }
.dict-head__full { color: var(--text-2); margin: 0 0 10px; }
.dict-head__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .88rem; color: var(--text-3); }
.dict-search { margin-top: 16px; }

/* Вкладки фильтра поиска */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 6px; }
.tab { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: .88rem; }
.tab:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.tab[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.tab span { opacity: .75; margin-left: 4px; }

.empty { text-align: center; padding: 40px 16px; color: var(--text-3); }
.empty strong { display: block; color: var(--text); font-size: 1.1rem; margin-bottom: 6px; }

/* Пагинация */
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; height: 38px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: .92rem; }
.pager a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pager [aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Реклама ---------- */
.ad { position: relative; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.ad__label { position: absolute; top: 2px; right: 6px; font-size: .68rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; z-index: 1; }
.ad__box { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; color: var(--text-3); font-size: .82rem; background: var(--ad-bg); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); }
.ad__box b { display: block; font-family: var(--mono); color: var(--text-2); font-size: .9rem; }
.ad > div { width: 100%; }
/* Зарезервированная высота мест — без сдвигов вёрстки при загрузке рекламы */
.ad--A1 { min-height: 100px; margin: 0 auto 20px; max-width: 970px; }
.ad--A1 .ad__box { height: 90px; }
@media (max-width: 767px) { .ad--A1 { min-height: 110px; } .ad--A1 .ad__box { height: 100px; } }
.ad--A2 { min-height: 600px; }
.ad--A2 .ad__box { height: 600px; }
.ad--A3 { min-height: 120px; }
.ad--A3 .ad__box { height: 110px; }
.ad--A4 { min-height: 250px; margin-top: 20px; }
.ad--A4 .ad__box { height: 250px; }
.ad--A5 { min-height: 280px; margin-top: 20px; }
.ad--A5 .ad__box { height: 280px; }
.ad--A6 { display: none; }
@media (max-width: 767px) {
  .ad--A6 { display: flex; position: fixed; left: 0; right: 0; bottom: 0; min-height: 60px; background: var(--surface); border-top: 1px solid var(--border); z-index: 30; padding: 4px 8px; }
  .ad--A6 .ad__box { height: 52px; }
  body.has-floor { padding-bottom: 64px; }
}

/* ---------- Подвал ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 32px 0 24px; font-size: .9rem; color: var(--text-3); }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.footer h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin-bottom: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a { color: var(--text-2); }
.footer__bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; z-index: 40; display: flex; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px 16px; font-size: .88rem; color: var(--text-2);
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 16px; border-radius: var(--radius-sm); border: 0; background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
@media (max-width: 767px) { body.has-floor .cookie { bottom: 76px; } }

@media (max-width: 767px) {
  .header__row { flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .header__search { order: 3; flex-basis: 100%; max-width: none; }
  .hero { padding: 20px 0 16px; }
  .search--hero .search__submit { padding: 0 14px; }
}

/* На телефоне в таблицах плоских справочников оставляем код, наименование и одну колонку атрибутов */
@media (max-width: 640px) {
  .table th:nth-child(n+4), .table td:nth-child(n+4) { display: none; }
}
