/* ============================================================
   Мини-апп «Эбка» · Октоберфест ГК «Европея»
   Фирменный стиль: docs/brand.md
   Цвета: #204653 (бренд) · #E49614 (CTA) · #23262B / #179CA3 (иконка)
   Шрифты: Tenor (заголовки) · Atyp (текст)
   Иконки: только inline SVG (набор assets/icons/), без эмодзи
   ============================================================ */

/* --- Фирменные шрифты --- */
@font-face {
  font-family: 'Atyp';
  font-display: swap;
  src: url('../assets/fonts/AtypRegularVariable.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Tenor';
  font-display: swap;
  src: url('../assets/fonts/TenorSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

:root {
  --blue: #204653;
  --blue-soft: #2d5a6b;
  --orange: #e49614;
  --orange-hover: #d28812;
  --orange-soft: rgba(228, 150, 20, 0.14);
  --blue-soft-t: rgba(32, 70, 83, 0.10);
  --dark: #23262b;
  --teal: #179ca3;
  --white: #ffffff;
  --text: #212529;
  --muted: #6b6b6b;
  --line: #cdd1d6;
  --line-soft: #ebebec;
  --bg-soft: #f5f5f5;
  --error: #e61430;
  --ok: #28a745;
  --radius-card: 13px;
  --radius-pill: 60px;
  --font-body: 'Atyp', -apple-system, BlinkMacSystemFont, 'Segoe UI Adjusted', 'Segoe UI', 'Liberation Sans', sans-serif;
  --font-display: 'Tenor', 'Atyp', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg-soft);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; }

/* --- SVG-иконки (единый стиль) --- */
.ic {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: middle;
}
.ic--label { width: 16px; height: 16px; color: var(--blue); }
.ic--consent { width: 14px; height: 14px; color: var(--muted); margin-top: 2px; }
.ic--chev { width: 18px; height: 18px; color: var(--orange); transition: transform .2s ease; }

/* --- Каркас приложения --- */
.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top));
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
}
.app-header__logo { width: 26px; height: 26px; border-radius: 6px; }
.app-header__title {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: .02em;
  color: var(--blue);
}
.app-header__sub { font-size: 12px; color: var(--muted); }
.app-header__badge {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
}

.app-main { flex: 1; padding: 16px 16px calc(84px + env(safe-area-inset-bottom)); }

/* --- Экраны --- */
.screen { animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.screen__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.screen__title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .01em;
  color: var(--blue);
}
.screen__head-spacer { flex: 1; }
.back {
  width: 38px; height: 38px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.back:hover {
  border-color: var(--blue);
  background: var(--blue-soft-t);
  box-shadow: 0 3px 10px rgba(32, 70, 83, .16);
  transform: translateY(-1px);
}
.back .ic { width: 20px; height: 20px; }

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #244f5e 0%, var(--blue) 55%, #1b3d49 100%);
  color: var(--white);
  border-radius: var(--radius-card);
  padding: 22px 18px 46px;
  margin-bottom: 14px;
}
/* декор: кружка */
.hero__deco--mug {
  position: absolute;
  top: 6px; right: -14px;
  width: 150px; height: 150px;
  color: var(--orange);
  opacity: 0.14;
  transform: rotate(10deg);
  pointer-events: none;
}
/* декор: силуэт деревни */
.hero__roofline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%; height: 40px;
  color: rgba(255, 255, 255, 0.16);
  pointer-events: none;
}
.hero__roofline path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.hero__badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--orange);
  border-radius: var(--radius-pill);
  padding: 5px 13px;
  margin-bottom: 14px;
}
.hero__badge .ic { width: 15px; height: 15px; }
.hero__title {
  position: relative;
  font-family: var(--font-display);
  font-size: 31px;
  line-height: 1.15;
  letter-spacing: .01em;
  margin-bottom: 10px;
}
.hero__text { position: relative; font-size: 15px; opacity: .92; margin-bottom: 14px; max-width: 92%; }
.hero__meta { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
}
.chip .ic { width: 15px; height: 15px; color: var(--orange); }
.hero .btn { position: relative; }

/* --- Карточки --- */
.card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  padding: 18px 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(32, 70, 83, .06);
}
.card__title {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--blue);
  margin-bottom: 12px;
}
.card--dark { background: var(--blue); border-color: var(--blue); }
.card--dark .card__title--light { color: var(--white); }
.card--success { text-align: center; }

/* --- Преимущества --- */
.perks { list-style: none; }
.perks__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 0;
}
.perks__item + .perks__item { border-top: 1px solid var(--line-soft); }
.perks__icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.perks__icon .ic { width: 24px; height: 24px; }
.perks__icon--blue { background: var(--blue-soft-t); color: var(--blue); }
.perks__icon--orange { background: var(--orange-soft); color: var(--orange-hover); }
.perks__item b { display: block; font-size: 15px; }
.perks__item > div > span { font-size: 13px; color: var(--muted); }
.perks__item div { display: flex; flex-direction: column; }

/* --- Шаги --- */
.steps { list-style: none; margin: 0 0 16px; counter-reset: step; }
.steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 7px 0;
  font-size: 15px;
  color: rgba(255,255,255,.95);
}
.steps__num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

/* --- Подвал --- */
.foot {
  margin-top: 4px;
  padding: 16px 4px 4px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
.foot__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 10px;
}
.foot__logo { width: 26px; height: 26px; border-radius: 6px; flex: 0 0 auto; }
.foot__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 8px;
}
.foot__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--blue);
  text-decoration: none;
  padding: 2px 4px;
  border-radius: 8px;
  transition: color .18s ease, background .18s ease;
}
.foot__link .ic { width: 16px; height: 16px; }
.foot__link:hover { color: var(--orange-hover); background: var(--orange-soft); }
.foot__note { font-size: 11px; color: var(--muted); }

/* --- Кнопки (фирменные, v2 — градиенты/тени/hover-эффекты) --- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 16px;
  letter-spacing: .01em;
  padding: 14px 22px;
  transition: background .22s ease, background-color .22s ease, border-color .22s ease,
              color .22s ease, box-shadow .22s ease, transform .18s ease;
}
.btn .ic { width: 20px; height: 20px; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--big { font-size: 17px; padding: 16px 22px; }

/* primary: оранжевый градиент + мягкая тень + блик по диагонали */
.btn--primary {
  background: linear-gradient(180deg, #f2a71b 0%, #e49614 100%);
  color: #000;
  border-color: #cf8a10;
  box-shadow: 0 6px 18px rgba(228, 150, 20, .32), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, .38) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform .55s ease;
  pointer-events: none;
}
.btn--primary:hover {
  background: linear-gradient(180deg, #f7b32c 0%, #e89b17 100%);
  border-color: #d28812;
  box-shadow: 0 10px 26px rgba(228, 150, 20, .45), inset 0 1px 0 rgba(255, 255, 255, .45);
  transform: translateY(-1px);
}
.btn--primary:hover::after { transform: translateX(130%); }
.btn--primary:active { transform: translateY(0) scale(.99); }

/* CTA регистрации: ghost, цвет #E49614 ТОЛЬКО при наведении */
.btn--cta {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 2px 10px rgba(32, 70, 83, .10);
}
.btn--cta:hover {
  background: linear-gradient(180deg, #f2a71b 0%, #e49614 100%);
  border-color: #d28812;
  color: #000;
  box-shadow: 0 10px 26px rgba(228, 150, 20, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
  transform: translateY(-1px);
}
/* на тёмных подложках (hero, тёмные карточки) — белая ghost-рамка */
.hero .btn--cta,
.card--dark .btn--cta {
  color: var(--white);
  border-color: rgba(255, 255, 255, .95);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.hero .btn--cta:hover,
.card--dark .btn--cta:hover { color: #000; }

/* secondary: белая с синей рамкой, hover — заливка синим */
.btn--secondary {
  background: var(--white);
  color: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 2px 8px rgba(32, 70, 83, .08);
}
.btn--secondary:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(32, 70, 83, .28);
  transform: translateY(-1px);
}
/* в hero — прозрачная ghost-белая, приглушённая (вторичная), hover — белая заливка */
.hero .btn--secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, .38);
  color: rgba(255, 255, 255, .92);
  box-shadow: none;
}
.hero .btn--secondary:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .8);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
}
.gift-row { display: flex; gap: 10px; margin-bottom: 10px; }
.gift-row .btn { flex: 1; font-size: 14px; padding: 12px 10px; }
.gift-row .btn .ic { width: 18px; height: 18px; }

/* --- Формы --- */
.form-note { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.field { margin-bottom: 14px; }
.field__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 6px;
}
.field__label i { color: var(--error); font-style: normal; }
.field__input {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field__input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(32,70,83,.12); }

.phone-max {
  margin-top: 8px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--teal);
  background: #f0f7f7;
  border: 1.5px dashed var(--teal);
  border-radius: 10px;
  padding: 10px 12px;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.phone-max:hover {
  background: #e2f1f1;
  box-shadow: 0 4px 12px rgba(23, 156, 163, .18);
  transform: translateY(-1px);
}
.phone-max .ic { width: 17px; height: 17px; color: var(--teal); }
.phone-max:disabled { opacity: .7; }

/* Сегменты (клиент/агент) */
.segmented {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.segmented__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 14px;
  padding: 10px 8px;
  background: var(--white);
  border: none;
  color: var(--muted);
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.segmented__btn:hover:not(.is-active) { color: var(--blue); background: var(--bg-soft); }
.segmented__btn .ic { width: 17px; height: 17px; }
.segmented__btn.is-active {
  background: linear-gradient(180deg, #2d5a6b 0%, var(--blue) 100%);
  color: var(--white);
  box-shadow: 0 3px 10px rgba(32, 70, 83, .28);
}

/* Согласие */
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 14px;
  cursor: pointer;
}
.consent input { margin-top: 2px; accent-color: var(--blue); }
.consent .ic--consent { margin-top: 1px; }

.form-error {
  font-size: 14px;
  color: var(--error);
  background: #fdeef0;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

/* --- Чипы дат/времени --- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  transition: background .18s ease, border-color .18s ease, color .18s ease,
              box-shadow .18s ease, transform .18s ease;
}
.chip-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 3px 10px rgba(32, 70, 83, .14);
  transform: translateY(-1px);
}
.chip-btn.is-active {
  background: linear-gradient(180deg, #f2a71b 0%, #e49614 100%);
  border-color: #d28812;
  color: #000;
  box-shadow: 0 4px 12px rgba(228, 150, 20, .35);
}

/* --- Успех / купон --- */
.success { text-align: center; }
.success__icon {
  width: 72px; height: 72px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pop .4s cubic-bezier(.2, 1.4, .5, 1);
}
.success__icon .ic { width: 40px; height: 40px; }
.success__icon--green { background: rgba(40, 167, 69, .12); color: var(--ok); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success__text { font-size: 15px; color: var(--text); margin-bottom: 16px; }

.coupon {
  position: relative;
  background: var(--white);
  border: 2px dashed var(--orange);
  border-radius: var(--radius-card);
  padding: 16px;
  margin-bottom: 14px;
  text-align: center;
}
.coupon__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.coupon__label .ic { width: 15px; height: 15px; color: var(--orange-hover); }
.coupon__code {
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: .12em;
  color: var(--blue);
  margin: 4px 0 10px;
  user-select: all;
}
.coupon__copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--blue);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  transition: background .18s ease, border-color .18s ease, color .18s ease,
              box-shadow .18s ease, transform .18s ease;
}
.coupon__copy:hover {
  border-color: var(--blue);
  box-shadow: 0 3px 10px rgba(32, 70, 83, .14);
  transform: translateY(-1px);
}
.coupon__copy .ic { width: 15px; height: 15px; }

/* --- FAQ --- */
.faq__item {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  margin-bottom: 10px;
  padding: 14px 16px;
}
.faq__item summary {
  font-size: 15px;
  cursor: pointer;
  color: var(--blue);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item[open] .ic--chev { transform: rotate(180deg); }
.faq__item p { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* --- Нижняя навигация --- */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  background: var(--white);
  border-top: 1px solid var(--line-soft);
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
  z-index: 20;
}
.tabbar__btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 12px;
  padding: 5px 0;
  transition: color .18s ease, background .18s ease;
}
.tabbar__btn:hover { color: var(--blue); background: var(--bg-soft); }
.tabbar__btn .ic { width: 22px; height: 22px; transition: transform .18s ease; }
.tabbar__btn.is-active { color: var(--blue); background: var(--blue-soft-t); }
.tabbar__btn.is-active .ic { transform: scale(1.08); }

/* --- Доступность --- */
.btn:focus-visible,
.chip-btn:focus-visible,
.back:focus-visible,
.tabbar__btn:focus-visible,
.phone-max:focus-visible,
.segmented__btn:focus-visible,
.foot__link:focus-visible,
.lead-row__status:focus-visible {
  outline: 3px solid rgba(32, 70, 83, .35);
  outline-offset: 2px;
}

/* ============================================================
   Блоки кабинета (каталог / объект / калькулятор / кабинет / админка)
   ============================================================ */

/* --- Цифры на главной --- */
.stats-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.stats-row__item {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  padding: 12px 8px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(32, 70, 83, .06);
}
.stats-row__item b {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--blue);
}
.stats-row__item span { font-size: 11.5px; color: var(--muted); line-height: 1.3; display: block; margin-top: 2px; }

/* Шаги на светлой карточке */
.steps--light li { color: var(--text); font-size: 14px; }
.steps--light li b { display: block; font-size: 14.5px; color: var(--blue); }
.steps--light li div { flex: 1; }

/* --- Каталог: фильтры --- */
.catalog-filters { margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.catalog-complex { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23204653' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }

.demo-banner {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: #8a6116;
  background: #fdf3dd;
  border: 1px solid #f2d9a0;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.demo-banner .ic { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }

/* --- Карточка объекта в списке --- */
.obj-card {
  display: flex;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  padding: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(32, 70, 83, .06);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.obj-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 22px rgba(32, 70, 83, .14);
  transform: translateY(-1px);
}
.obj-card__photo {
  width: 104px;
  height: 86px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 9px;
  background: var(--blue-soft-t);
}
.obj-card__photo--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}
.obj-card__photo--ph .ic { width: 30px; height: 30px; opacity: .55; }
.obj-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.obj-card__name { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.3; }
.obj-card__complex { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.obj-card__params { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.obj-card__param {
  font-size: 11.5px;
  color: var(--blue);
  background: var(--blue-soft-t);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
}
.obj-card__price {
  font-family: var(--font-display);
  font-size: 16.5px;
  color: var(--blue);
  margin-top: auto;
  padding-top: 6px;
}

/* --- Объект: детально --- */
.obj-photo {
  height: 180px;
  border-radius: var(--radius-card);
  background: linear-gradient(160deg, #2d5a6b, var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, .35);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.obj-photo__ph { width: 54px; height: 54px; }
.obj-name { font-family: var(--font-display); font-size: 22px; color: var(--blue); line-height: 1.25; }
.obj-complex { font-size: 14px; color: var(--muted); margin: 4px 0 12px; }
.obj-params__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}
.obj-params__row span { color: var(--muted); }
.obj-params__row b { color: var(--text); text-align: right; }
.obj-price {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--blue);
  margin: 12px 0;
}
.obj-desc { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
#screen-object .btn + .btn { margin-top: 10px; }

/* --- Калькулятор --- */
.calc-rate { margin: 4px 0 12px; }
.calc-result {
  background: var(--blue);
  border-radius: var(--radius-card);
  padding: 16px;
  text-align: center;
  color: var(--white);
}
.calc-result__label { font-size: 13px; opacity: .8; }
.calc-result__value {
  font-family: var(--font-display);
  font-size: 34px;
  margin-top: 2px;
}
.calc-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.calc-example { font-size: 14px; color: var(--muted); }
.calc-example b { color: var(--blue); }
#screen-calc .btn { margin-bottom: 0; }

/* --- Кабинет --- */
.me-profile { display: flex; align-items: center; gap: 12px; }
.me-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--blue-soft-t);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.me-avatar .ic { width: 28px; height: 28px; }
.me-profile__info { flex: 1; min-width: 0; }
.me-profile__name { font-family: var(--font-display); font-size: 17px; color: var(--blue); }
.me-profile__sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.me-logout {
  font-size: 12.5px;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  transition: color .18s ease, border-color .18s ease;
}
.me-logout:hover { color: var(--error); border-color: var(--error); }
.me-coupon { text-align: center; }
.me-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.me-stats__item {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  padding: 10px 6px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(32, 70, 83, .06);
}
.me-stats__item b { display: block; font-family: var(--font-display); font-size: 20px; color: var(--blue); }
.me-stats__item span { font-size: 11px; color: var(--muted); display: block; margin-top: 2px; line-height: 1.3; }
.me-commission {
  margin-bottom: 14px;
  text-align: center;
  background: linear-gradient(160deg, #244f5e 0%, var(--blue) 55%, #1b3d49 100%);
  color: var(--white);
  border: none;
  padding: 16px 14px;
}
.me-commission__label { font-size: 11.5px; color: rgba(255, 255, 255, .75); }
.me-commission__value { font-family: var(--font-display); font-size: 26px; color: var(--orange); margin-top: 4px; }
.me-list-title { margin: 16px 0 10px; }

/* --- Строка заявки --- */
.lead-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  padding: 12px;
  margin-bottom: 8px;
}
.lead-row__main { flex: 1; min-width: 0; }
.lead-row__name { font-size: 14.5px; color: var(--text); }
.lead-row__agent { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.lead-row__sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-row__comment { font-size: 12px; color: var(--muted); font-style: italic; margin-top: 3px; }
.lead-row__status {
  flex: 0 0 auto;
  max-width: 130px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--blue);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 10px;
  outline: none;
}
.lead-row--admin { flex-wrap: wrap; }
.lead-row--admin .lead-row__sub, .lead-row--admin .lead-row__comment { white-space: normal; }

/* --- Пилюли статусов --- */
.pill {
  flex: 0 0 auto;
  font-size: 12px;
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  white-space: nowrap;
}
.pill--new { background: var(--blue-soft-t); color: var(--blue); }
.pill--contacted { background: rgba(23, 156, 163, .14); color: #0f7378; }
.pill--view { background: var(--orange-soft); color: var(--orange-hover); }
.pill--deal { background: rgba(40, 167, 69, .14); color: #1d7a35; }
.pill--paid { background: rgba(40, 167, 69, .22); color: #17602a; }

/* --- Подсказка «зарегистрируйтесь» в форме клиента --- */
.client-hint {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fdf3dd;
  border: 1px solid #f2d9a0;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #8a6116;
}
.client-hint .ic { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }
.client-hint a { color: var(--blue); font-weight: 600; }

.empty {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius-card);
  padding: 24px 16px;
}

/* ---------- Бейдж «Новинка» ---------- */
.badge-new {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--orange);
  border-radius: 6px;
  padding: 2px 6px;
  vertical-align: middle;
  margin-left: 4px;
}

/* ---------- Клиент: связь + вознаграждение ---------- */
.lead-row--client { align-items: flex-start; }
.lead-actions { display: flex; gap: 6px; margin-top: 8px; }
.lead-actions__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--blue);
}
.lead-actions__btn .ic { width: 16px; height: 16px; }
.lead-row__comm {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--orange-hover);
}

/* ---------- Уровень партнёра ---------- */
.me-level { margin-bottom: 14px; }
.me-level__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.me-level__badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 15px;
  color: #fff;
  border-radius: 8px;
  padding: 4px 12px;
}
.me-level__badge--bronze { background: linear-gradient(135deg, #a5673f, #7d4a2a); }
.me-level__badge--silver { background: linear-gradient(135deg, #8b98a5, #5f6d7a); }
.me-level__badge--gold { background: linear-gradient(135deg, #f0b429, #d28812); }
.me-level__rank { font-size: 12px; color: var(--muted); text-align: right; }
.me-level__next { margin-top: 10px; font-size: 13px; color: var(--text); font-weight: 600; }
.me-level__perk { margin-top: 4px; font-size: 12px; color: var(--muted); line-height: 1.45; }
.me-level__btns { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.me-protect-note { margin: 2px 2px 12px; }
.me-commission__sub { margin-top: 6px; font-size: 11px; color: rgba(255, 255, 255, .65); }

/* ---------- Маркетинг-кит ---------- */
.mkt-badge {
  background: linear-gradient(160deg, #244f5e 0%, var(--blue) 55%, #1b3d49 100%);
  color: var(--white);
  border: none;
  margin-bottom: 14px;
}
.mkt-badge__mark { font-family: var(--font-display); font-size: 17px; color: var(--orange); }
.mkt-badge__sub { margin-top: 6px; font-size: 13.5px; }
.mkt-badge .form-note { color: rgba(255, 255, 255, .7); margin-top: 8px; }
.mkt-link {
  font-size: 12.5px;
  color: var(--blue);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 9px 12px;
  margin-bottom: 10px;
  word-break: break-all;
}
.mkt-ad { border: 1px solid var(--line-soft); border-radius: var(--radius-card); padding: 10px 12px; margin-bottom: 8px; }
.mkt-ad summary { font-size: 13.5px; font-weight: 600; color: var(--text); cursor: pointer; }
.mkt-ad__text { font-size: 13px; color: var(--text); line-height: 1.55; margin: 10px 0; white-space: pre-line; }
.mkt-ad__copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--blue);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
}

/* ---------- Админка: дашборд ---------- */
.adm-card { margin-bottom: 12px; }
.kpi { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpi__item {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  padding: 10px;
}
.kpi__item b { display: block; font-family: var(--font-display); font-size: 20px; color: var(--blue); }
.kpi__item span { font-size: 11px; color: var(--muted); line-height: 1.3; display: block; margin-top: 2px; }
.adm-pipeline { display: flex; gap: 8px; margin-top: 10px; }
.adm-pipeline__item {
  flex: 1;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  padding: 10px;
}
.adm-pipeline__item span { font-size: 11px; color: var(--muted); display: block; }
.adm-pipeline__item b { font-family: var(--font-display); font-size: 15px; color: var(--blue); margin-top: 3px; display: block; }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 84px; padding-top: 8px; }
.chart__col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; }
.chart__val { font-size: 10.5px; color: var(--muted); }
.chart__bar { width: 70%; max-width: 26px; background: var(--orange); border-radius: 4px 4px 2px 2px; }
.chart__bar--zero { background: var(--line); }
.chart__label { font-size: 10.5px; color: var(--muted); }
.funnel__row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.funnel__label { flex: 0 0 118px; font-size: 12px; color: var(--text); }
.funnel__track { flex: 1; height: 10px; background: var(--bg-soft); border-radius: 5px; overflow: hidden; }
.funnel__fill { height: 100%; background: var(--blue-soft); border-radius: 5px; }
.funnel__num { flex: 0 0 auto; font-size: 11.5px; color: var(--blue); }
.top-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.top-row:last-child { border-bottom: none; }
.top-row__pos { font-family: var(--font-display); font-size: 15px; color: var(--muted); width: 18px; }
.top-row__main { flex: 1; min-width: 0; }
.top-row__name { font-size: 13.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-row__sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.top-row__nums { text-align: right; }
.top-row__nums b { font-family: var(--font-display); font-size: 16px; color: var(--blue); display: block; }
.top-row__nums span { font-size: 10.5px; color: var(--muted); }

/* --- Каталог из фида: заметки к цене, пагинация --- */
.obj-card__price-note {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.cat-counter {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  padding: 12px 0 2px;
}
.cat-more {
  width: 100%;
  margin-top: 10px;
}

/* --- Объект: галерея, заметка к цене, контакты --- */
.obj-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 6px;
  margin-bottom: 14px;
}
.obj-thumbs__img {
  flex: 0 0 74px;
  height: 54px;
  object-fit: cover;
  border-radius: 9px;
  border: 2px solid transparent;
  opacity: 0.7;
  cursor: pointer;
  background: var(--bg-soft);
}
.obj-thumbs__img.is-active {
  border-color: var(--orange);
  opacity: 1;
}
.obj-price-note {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.obj-contact {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.obj-contact__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--blue-soft-t);
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.obj-contact__link:active { background: var(--orange-soft); }
