/*
 * ЧейКод — сайт поиска компаний.
 * Визуальный язык основного web-приложения (лендинг и вход): Inter, тёмно-серый
 * текст #2E2E2E, синий градиент #1FA0FA → #0276C7 на кнопках, мягкий голубой фон,
 * «капли» и тёмный подвал #1B1B1B.
 */

/* Inter — свои файлы, без Google Fonts: страница не ждёт внешний сервер
   (из России он бывает медленным), а шрифт не тянет ~200 КБ лишних начертаний.
   Вариативный шрифт 100–900, только кириллица и латиница (лицензия OFL — fonts/Inter-OFL-LICENSE.txt). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/inter-cyrillic-wght-normal-abad5a4f.woff2") format("woff2-variations"), url("/assets/inter-cyrillic-wght-normal-abad5a4f.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/inter-latin-wght-normal-5e6b0c47.woff2") format("woff2-variations"), url("/assets/inter-latin-wght-normal-5e6b0c47.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #2e2e2e;
  --ink-2: rgba(46, 46, 46, .72);
  --ink-3: rgba(46, 46, 46, .5);
  --line: rgba(46, 46, 46, .08);
  --line-2: rgba(46, 46, 46, .12);
  --fill: #f4f5f7;
  --surface: #fff;
  --soft: #f4f9ff;

  --blue: #1fa0fa;
  --blue-dark: #0276c7;
  --blue-ink: #0270bd;
  --blue-tint: rgba(31, 160, 250, .12);
  --blue-tint-2: rgba(31, 160, 250, .2);
  --grad: linear-gradient(179.58deg, #1fa0fa 13.39%, #0276c7 109.14%);

  --ok: #17803f;
  --ok-tint: #e5f4ea;
  --dark: #1b1b1b;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-card: 0 1px 2px rgba(20, 60, 120, .05), 0 22px 48px -30px rgba(20, 60, 120, .32);
  --shadow-pop: 0 2px 6px rgba(20, 60, 120, .06), 0 24px 60px -18px rgba(20, 60, 120, .38);
  --shadow-btn: 0 4px 20px rgba(2, 118, 199, .35);
  --shadow-field: 0 .6px .6px -1.25px rgba(171, 171, 171, .18), 0 2.3px 2.3px -2.5px rgba(171, 171, 171, .16), 0 10px 10px -3.75px rgba(171, 171, 171, .06);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1120px;
  --gutter: 24px;
}

/* ── База ─────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--blue-ink); }
button { font: inherit; }
mark { background: none; color: inherit; font-weight: 700; }

.icon { flex: none; display: block; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -48px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid rgba(31, 160, 250, .55); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.main { flex: 1 0 auto; position: relative; }

/* Мягкий фон как у страницы входа основного приложения */
.page-soft .main {
  background:
    radial-gradient(1000px 520px at 50% -120px, rgba(31, 160, 250, .12), rgba(31, 160, 250, 0) 70%),
    linear-gradient(180deg, #fff 0%, var(--soft) 100%);
}
.page-soft { background: var(--soft); }

.link { font-weight: 600; color: var(--blue-ink); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ── Кнопки ───────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border: none;
  border-radius: 200px;
  background-image: var(--grad);
  background-color: var(--blue-dark);
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform .2s, box-shadow .2s, filter .2s, background-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(2, 118, 199, .45); filter: brightness(1.06); }
.btn:active { transform: scale(.98); transition-duration: .08s; }

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border: 2px solid rgba(46, 46, 46, .1);
  box-shadow: var(--shadow-field);
}
.btn--ghost:hover { border-color: rgba(31, 160, 250, .45); color: var(--blue-ink); box-shadow: var(--shadow-field); filter: none; }

.btn--soft {
  background: var(--blue-tint);
  color: var(--blue-ink);
  box-shadow: none;
  white-space: normal;
  text-align: center;
}
.btn--soft:hover { background: var(--blue-tint-2); box-shadow: none; filter: none; }

.btn--sm { min-height: 44px; padding: 8px 20px; font-size: 15px; }
.btn--lg { min-height: 56px; font-size: 17px; }
.btn--block { width: 100%; }

/* ── Шапка ────────────────────────────────────────── */

.site-header { position: relative; z-index: 20; }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 88px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.brand__mark { width: 40px; height: 40px; }
.brand__name { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.brand__divider { width: 1px; height: 24px; background: rgba(46, 46, 46, .3); margin: 0 4px; }
.brand__section { font-size: 16px; color: var(--ink-2); }

.site-header__search { flex: 1; min-width: 0; max-width: 560px; }

/* Кнопка-переход между сайтами: «Личный кабинет» здесь и «Поиск» на lk-dev — одинаковые */
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px 0 16px;
  border-radius: 24px;
  background: #fff;
  border: 2px solid rgba(46, 46, 46, .1);
  box-shadow: 0 .6px .6px -1.25px rgba(171, 171, 171, .18), 0 2.3px 2.3px -2.5px rgba(171, 171, 171, .16), 0 10px 10px -3.75px rgba(171, 171, 171, .06);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.nav-btn svg { flex: none; color: rgba(46, 46, 46, .5); }
.nav-btn:hover { border-color: rgba(31, 160, 250, .45); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(31, 160, 250, .15); }
.site-header__nav { margin-left: auto; flex: none; }

.page-soft .site-header { background: rgba(255, 255, 255, .72); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.page-soft .site-header__inner { min-height: 76px; }

/* ── Поиск ────────────────────────────────────────── */

.search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: var(--surface);
  border: 2px solid rgba(46, 46, 46, .1);
  border-radius: 32px;
  box-shadow: var(--shadow-field);
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within {
  border-color: rgba(31, 160, 250, .6);
  box-shadow: 0 0 0 4px rgba(31, 160, 250, .14), var(--shadow-field);
}
.search--open { border-bottom-left-radius: 32px; }

.search__icon { display: flex; color: var(--ink-3); padding-left: 18px; }

.search__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 8px 0 12px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: 500 16px/1.2 var(--font);
  -webkit-appearance: none;
  appearance: none;
}
.search__input::placeholder { color: var(--ink-3); font-weight: 400; }
.search__input::-webkit-search-cancel-button { display: none; }

.search__clear {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 4px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
}
.search__clear:hover { background: var(--fill); color: var(--ink); }
.search__clear[hidden] { display: none; }

.search__submit { flex: none; margin: 4px; min-height: 40px; padding: 8px 20px; font-size: 15px; box-shadow: none; }
.search__submit:hover { box-shadow: 0 6px 18px rgba(2, 118, 199, .35); transform: none; }
.search__submit-icon { display: none; }

.search--hero { border-radius: 36px; box-shadow: 0 20px 50px -24px rgba(20, 60, 120, .35), var(--shadow-field); }
.search--hero .search__icon { padding-left: 24px; }
.search--hero .search__input { height: 60px; font-size: 18px; padding-left: 14px; }
.search--hero .search__submit { margin: 6px; min-height: 52px; padding: 12px 32px; font-size: 16px; box-shadow: var(--shadow-btn); }

/* Подсказки */
.suggest {
  position: absolute;
  left: -2px;
  right: -2px;
  top: calc(100% + 8px);
  z-index: 30;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  text-align: left;
}
.suggest[hidden] { display: none; }

.suggest__item,
.suggest__all {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 8px 12px;
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
}
.suggest__item:hover,
.suggest__item[aria-selected="true"],
.suggest__all:hover,
.suggest__all[aria-selected="true"] { background: var(--soft); }

.suggest__body { display: flex; flex-direction: column; min-width: 0; }
.suggest__name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest__summary { font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest__all { min-height: 48px; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; font-weight: 600; color: var(--blue-ink); }
.suggest__note { padding: 14px 12px; color: var(--ink-2); }

/* ── Аватар ───────────────────────────────────────── */

.avatar {
  flex: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--blue-tint);
  color: var(--blue-ink);
  box-shadow: inset 0 0 0 1px rgba(46, 46, 46, .06);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.avatar__initial { font-weight: 700; line-height: 1; }
.avatar--sm { width: 40px; height: 40px; border-radius: 12px; }
.avatar--sm .avatar__initial { font-size: 17px; }
.avatar--md { width: 48px; height: 48px; border-radius: 14px; }
.avatar--md .avatar__initial { font-size: 20px; }
.avatar--lg { width: 96px; height: 96px; border-radius: 24px; }
.avatar--lg .avatar__initial { font-size: 42px; }
.avatar--lg:not(:has(img)) { background: var(--grad); color: #fff; box-shadow: 0 14px 28px -12px rgba(2, 118, 199, .55); }

/* Фавикон сайта вместо логотипа: по центру белой плитки, в своём размере */
.avatar .avatar__fav {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  object-fit: contain;
  background: transparent;
  transform: translate(-50%, -50%);
  /* не display:none — иначе браузер не загрузит картинку с loading="lazy" */
  opacity: 0;
}
.avatar--sm .avatar__fav { width: 22px; height: 22px; }
.avatar--favicon { background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.avatar--favicon .avatar__fav { opacity: 1; }
.avatar--favicon .avatar__initial { display: none; }
.avatar--lg.avatar--favicon { box-shadow: inset 0 0 0 1px var(--line-2), 0 14px 28px -18px rgba(20, 60, 120, .45); }

/* ── Главная ──────────────────────────────────────── */

/* На главной шапка лежит поверх героя, чтобы капли заходили под неё */
.page-home .site-header { position: absolute; top: 0; left: 0; right: 0; background: transparent; }
.page-home .main {
  position: relative;
  padding-top: 88px;
  background:
    radial-gradient(900px 560px at 50% 42%, rgba(31, 160, 250, .12), rgba(31, 160, 250, 0) 62%),
    #fff;
}

.hero { position: relative; z-index: 3; padding: clamp(48px, 9vh, 112px) 0 clamp(40px, 7vh, 88px); }
/* Капли — отдельным слоем под контентом; обрезает их он, а не <main>,
   иначе обрезался бы и список подсказок */
.home-decor { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__title { font-size: clamp(34px, 5.4vw, 60px); font-weight: 800; line-height: 1.1; letter-spacing: .01em; }
.hero__lead { margin-top: 20px; max-width: 560px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.4; color: var(--ink-2); }
.hero__search { width: 100%; max-width: 720px; margin-top: 40px; }

.drop { position: absolute; z-index: 1; pointer-events: none; }
.drop img { width: 100%; height: auto; }
.drop--tl { left: -60px; top: 36px; width: 200px; transform: rotate(17deg); animation: float-a 6.2s ease-in-out infinite; }
.drop--tr { right: -70px; top: 96px; width: 260px; transform: rotate(-30deg); animation: float-b 7.1s ease-in-out infinite; }
.drop--ml { left: 14%; top: 380px; width: 120px; transform: rotate(-15deg); animation: float-c 5.8s ease-in-out infinite; opacity: .9; }
.drop--bl { left: -150px; top: 500px; width: 360px; transform: rotate(14deg); animation: float-c 8s ease-in-out infinite; }
.drop--br { right: -40px; top: 430px; width: 160px; transform: rotate(17deg); animation: float-a 6.6s ease-in-out infinite; }

@keyframes float-a { 0%, 100% { translate: 0 0; } 30% { translate: 6px -18px; } 65% { translate: -4px -8px; } }
@keyframes float-b { 0%, 100% { translate: 0 0; } 35% { translate: 10px -16px; } 70% { translate: 4px -24px; } }
@keyframes float-c { 0%, 100% { translate: 0 0; } 45% { translate: -6px -20px; } 80% { translate: 8px -8px; } }

.features {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 72px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.feature__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(31, 160, 250, .15);
  color: var(--blue-dark);
  transition: transform .22s, background .22s, box-shadow .22s;
}
.feature__text { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.feature__text strong { display: block; font-weight: 600; color: var(--ink); }
.feature:hover .feature__icon { transform: translateY(-4px) scale(1.06); background: rgba(31, 160, 250, .25); box-shadow: 0 6px 20px rgba(31, 160, 250, .22); }
.feature--link:hover { border-color: rgba(31, 160, 250, .35); }
.feature--link .feature__text strong { color: var(--blue-ink); }

/* Строка о мобильном приложении под плитками */
.app-note {
  grid-column: 1 / -1;
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  max-width: 100%;
  margin-top: -4px;
  padding: 8px 18px 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.app-note__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(31, 160, 250, .15);
  color: var(--blue-dark);
}
.app-note__text { font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.app-note__text strong { font-weight: 600; color: var(--ink); }
.store-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(31, 160, 250, .12);
  color: var(--blue-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s;
}
.store-chip:hover { background: rgba(31, 160, 250, .22); }

/* ── Страницы поиска и карточек ───────────────────── */

.page { padding-top: 32px; padding-bottom: 72px; }
.page--list > * { max-width: 820px; }
.page__title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; line-height: 1.2; margin-bottom: 20px; overflow-wrap: anywhere; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -8px 0 16px;
  padding: 6px 4px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.back:hover { color: var(--blue-ink); }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.panel--note { padding: 20px 24px; color: var(--ink-2); border-radius: var(--radius); }
.panel--link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.panel--link:hover { color: var(--blue-ink); border-color: rgba(31, 160, 250, .35); }

/* Списки строк (как в мобильном приложении) */
.list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.list__item + .list__item { border-top: 1px solid var(--line); }
.list__item + .list__item { position: relative; }
.list__more { padding: 16px; display: flex; justify-content: center; border-top: 1px solid var(--line); }

.row { display: flex; align-items: center; min-height: 64px; }
.row__main,
.row--result {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 18px;
  color: inherit;
  text-decoration: none;
  transition: background .15s;
}
.row--result { padding-right: 14px; min-height: 76px; }
.row__main:hover,
.row--result:hover { background: var(--soft); }

.row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row__title { font-size: 16px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.row__title--wrap { display: block; overflow-wrap: anywhere; }
.row__sub { font-size: 14px; line-height: 1.35; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__chevron { flex: none; display: flex; color: rgba(46, 46, 46, .35); padding-right: 16px; }
.row--result .row__chevron { padding-right: 0; }

.row__action {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: 10px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: rgba(46, 46, 46, .45);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.row__action:hover { background: var(--blue-tint); color: var(--blue-ink); }

.row__pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  margin-right: 14px;
  padding: 6px 14px;
  border-radius: 200px;
  background: var(--blue-tint);
  color: var(--blue-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}
.row__pill:hover { background: var(--blue-tint-2); }

/* Плитки слева от строки */
.tile {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #5b6472;
  color: #fff;
}
.tile__text { font-size: 13px; font-weight: 800; letter-spacing: -.02em; }
.tile--phone { background: #1e8e4e; }
.tile--email { background: var(--blue-dark); }
.tile--site { background: #5b6472; }
.tile--favicon { background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.tile--favicon img { width: 20px; height: 20px; object-fit: contain; }
.tile--telegram { background: #229ed9; }
.tile--vk { background: #0077ff; }
.tile--whatsapp { background: #1c9e4f; }
.tile--max { background: #6c3ce0; font-size: 11px; }
.tile--max .tile__text { font-size: 11px; }
.tile--youtube { background: #e62117; }
.tile--rutube { background: #100943; }
.tile--ok { background: #ee8208; }
.tile--dzen { background: #2e2e2e; }
.tile--instagram { background: #d6249f; }
.tile--pin { background: var(--blue-tint); color: var(--blue-ink); }

/* Результаты поиска */
.results .avatar { margin-right: 2px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 200px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}
.badge--ok { background: var(--ok-tint); color: var(--ok); }
.badge--sm { flex: none; padding: 4px 10px; font-size: 13px; }

/* Пустые состояния, 404, 503 */
.empty {
  max-width: 620px;
  margin: clamp(24px, 6vh, 72px) auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: rgba(31, 160, 250, .15);
  color: var(--blue-dark);
}
.empty__code {
  font-size: 88px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.empty__title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.empty__text { color: var(--ink-2); font-size: 17px; max-width: 520px; }
.empty__search { width: 100%; margin: 8px 0; }
.empty .btn--soft { margin-top: 8px; }

/* ── Карточка организации / адреса ────────────────── */

.card-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}
.card-main { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.card-aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }

.profile { display: flex; align-items: center; gap: 24px; padding: 28px; }
.profile__body { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.profile__name { font-size: clamp(24px, 2.8vw, 32px); font-weight: 800; line-height: 1.18; letter-spacing: -.005em; overflow-wrap: anywhere; }
.profile__meta { color: var(--ink-2); font-size: 15px; }
.profile__about { color: var(--ink-2); font-size: 16px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; max-width: 60ch; }
.profile__meta a { font-weight: 600; text-decoration: none; }
.profile__meta a:hover { text-decoration: underline; }

.section { display: flex; flex-direction: column; gap: 12px; }
.section__title { display: flex; align-items: center; gap: 8px; padding: 0 4px; font-size: 20px; font-weight: 700; }
.section__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 200px;
  background: var(--blue-tint);
  color: var(--blue-ink);
  font-size: 14px;
  font-weight: 700;
}

.qr-panel { padding: 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.qr-panel__title { font-size: 18px; font-weight: 700; }
.qr-panel__code {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 216px;
  height: 216px;
  padding: 14px;
  border-radius: 20px;
  border: 2px solid #eef0f3;
  background: #fff;
}
.qr-panel__code img { width: 184px; height: 184px; image-rendering: pixelated; }
.qr-panel__code--empty { color: var(--ink-3); font-size: 14px; }
.qr-panel__code--empty .icon { margin: 0 auto 8px; }
.qr-panel__caption { font-size: 14px; color: var(--ink-2); max-width: 260px; }
.qr-panel__actions { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }

.claim { padding: 24px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, #fff 0%, var(--soft) 100%); }
.claim__icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(31, 160, 250, .15); color: var(--blue-dark); }
.claim__title { font-size: 18px; font-weight: 700; }
.claim__text { font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }

.share-bar { display: none; }

/* ── Подвал ───────────────────────────────────────── */

.site-footer { flex: none; background: var(--dark); color: #fff; }
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.site-footer__logo { height: 28px; width: auto; }
.site-footer__copy { font-size: 12px; font-weight: 500; line-height: 16px; opacity: .55; }
.site-footer__links {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  gap: 10px 40px;
}
.site-footer__links a { color: #fff; opacity: .8; font-size: 13px; line-height: 18px; text-decoration: none; transition: opacity .2s; }
.site-footer__links a:hover { opacity: 1; text-decoration: underline; }

/* ── Тост ─────────────────────────────────────────── */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 200;
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  border-radius: 200px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transform: translate(-50%, 12px);
  opacity: 0;
  transition: opacity .2s, transform .2s;
  overflow-wrap: anywhere;
}
.toast--visible { opacity: 1; transform: translate(-50%, 0); }
.toast[hidden] { display: none; }

/* ── Адаптив ──────────────────────────────────────── */

@media (max-width: 1024px) {
  .card-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
  .drop--ml { display: none; }
}

@media (max-width: 860px) {
  .card-layout { grid-template-columns: minmax(0, 1fr); }
  .card-aside { position: static; }
  .features { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-bottom: 48px; }
  .brand__divider, .brand__section { display: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }

  .site-header__inner { gap: 12px; min-height: 68px; }
  .page-soft .site-header__inner { min-height: 64px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: 19px; }
  .site-header--search .site-header__search { order: 3; flex-basis: 100%; max-width: none; }
  .nav-btn { height: 40px; padding: 0 14px 0 12px; gap: 6px; font-size: 15px; border-radius: 20px; }
  .nav-btn svg { width: 18px; height: 18px; }

  .search__submit-text { display: none; }
  .search__submit-icon { display: flex; }
  .search__submit { padding: 8px 12px; min-height: 40px; }
  .search--hero .search__icon { display: none; }
  .search--hero .search__input { height: 52px; font-size: 17px; padding-left: 20px; }
  .search--hero .search__submit { min-height: 46px; padding: 10px 16px; }

  .page-home .main { padding-top: 68px; }
  .hero { padding-top: 40px; padding-bottom: 36px; }
  .hero__br { display: none; }
  .hero__search { margin-top: 28px; }
  .drop--tl { width: 110px; left: -56px; top: -2px; }
  .drop--tr { width: 130px; right: -64px; top: 4px; }
  .drop--bl { width: 190px; left: -110px; top: 470px; }
  .drop--br { width: 100px; right: -36px; top: 400px; }

  .feature { padding: 14px 16px; }
  .app-note { justify-self: stretch; justify-content: flex-start; margin-top: 0; padding: 12px 16px; border-radius: 18px; }
  .app-note__text { flex: 1 1 200px; }
  .feature__icon { width: 48px; height: 48px; border-radius: 14px; }

  .page { padding-top: 20px; padding-bottom: 48px; }
  .page-card .page { padding-bottom: 104px; }
  .profile { flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 24px 20px; }
  .profile__body { align-items: center; }
  .avatar--lg { width: 88px; height: 88px; border-radius: 22px; }
  .row__main, .row--result { padding-left: 14px; gap: 12px; }
  .row__pill { margin-right: 10px; padding: 6px 12px; }
  .row__pill span { display: none; }

  .site-footer__inner { flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 32px; padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
  .site-footer__links { grid-template-rows: none; grid-auto-flow: row; }

  /* «Поделиться» прилипает к низу экрана, как в приложении */
  .share-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(244, 249, 255, 0) 0%, rgba(244, 249, 255, .92) 38%);
  }
  .page-card .qr-panel__actions { display: none; }
  .page-card .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .page-card .site-footer__inner { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.suggest mark { color: var(--blue-ink); }

@media (max-width: 359px) {
  .nav-btn svg { display: none; }
  .nav-btn { padding: 0 14px; }
}
