/* =================================================================
   ТОЧКА ВЫГОДЫ — расширение дизайн-системы
   Новые страницы и компоненты (кабинеты, карта, формы, чат, FAQ...).
   Использует те же переменные и тот же язык, что и style.css —
   ничего в style.css не меняется, этот файл только дополняет его.
================================================================= */

:root{
  --c-success: #17A673;
  --c-success-bg: #E7F7F0;
  --c-danger: #E5484D;
  --c-danger-bg: #FDEBEC;
  --c-warning: #E0A11E;
  --c-warning-bg: #FCF3DF;
  --c-info: #1E9BE0;
  --c-info-bg: #E9F5FC;
  --c-violet: #7C5CFF;

  --sidebar-w: 276px;
  --topbar-h: 76px;
}

/* =================================================================
   ОБЩЕЕ / УТИЛИТЫ
================================================================= */
.nav__link.is-active{ color: var(--c-primary); }
.nav__link.is-active::after{ width: 100%; }
.mobile-nav__link.is-active{ color: var(--c-primary); }

.icon--md{ width: 22px; height: 22px; }
.icon--lg{ width: 28px; height: 28px; }

.glass-card{
  background: var(--c-glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(17,17,17,0.06);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}

.card{
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}

.skeleton{
  position: relative;
  overflow: hidden;
  background: #ECECEF;
  border-radius: var(--r-md);
}
.skeleton::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  transform: translateX(-100%);
  animation: skeletonSweep 1.5s infinite;
}
@keyframes skeletonSweep{ to{ transform: translateX(100%); } }

.badge{
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  line-height: 1.3;
  white-space: nowrap;
}
.badge--primary{ background: #FFF1E6; color: var(--c-primary); }
.badge--success{ background: var(--c-success-bg); color: var(--c-success); }
.badge--danger{ background: var(--c-danger-bg); color: var(--c-danger); }
.badge--warning{ background: var(--c-warning-bg); color: #9A6B10; }
.badge--info{ background: var(--c-info-bg); color: var(--c-info); }
.badge--muted{ background: rgba(17,17,17,0.06); color: var(--c-muted); }
.badge--dot{ padding-left: 9px; }
.badge--dot::before{ content:""; width:6px; height:6px; border-radius:50%; background: currentColor; }

.chip{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--c-ink);
  background: var(--c-white);
  border: 1.5px solid var(--c-line);
  padding: 9px 16px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.chip:hover{ border-color: rgba(17,17,17,0.24); }
.chip.is-active{ background: var(--grad-primary); border-color: transparent; color: var(--c-white); box-shadow: 0 8px 20px rgba(255,106,0,0.25); }
.chip .icon{ width: 16px; height: 16px; }

.icon-btn{
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--r-pill);
  background: rgba(17,17,17,0.05);
  color: var(--c-ink);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
  flex-shrink: 0;
}
.icon-btn:hover{ background: rgba(17,17,17,0.09); }
.icon-btn--sm{ width: 34px; height: 34px; }
.icon-btn.is-active{ background: #FFF1E6; color: var(--c-primary); }

.btn--danger{ background: var(--c-danger-bg); color: var(--c-danger); }
.btn--danger:hover{ background: #FBDBDC; }

.pagination{ display:flex; align-items:center; justify-content:center; gap:8px; margin-top: 40px; }
.pagination__link{
  min-width: 40px; height: 40px; padding: 0 8px;
  display:flex; align-items:center; justify-content:center;
  border-radius: var(--r-pill); font-weight: 600; font-size: 14px;
  color: var(--c-ink); border: 1.5px solid var(--c-line);
}
.pagination__link:hover{ border-color: rgba(17,17,17,0.24); }
.pagination__link.is-active{ background: var(--grad-primary); border-color: transparent; color: var(--c-white); }
.pagination__link--nav{ border-color: transparent; color: var(--c-muted); }

/* =================================================================
   PAGE HERO — компактный баннер для внутренних страниц
================================================================= */
.page-hero{
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 64px;
  overflow: hidden;
}
.page-hero__bg{ position:absolute; inset:0; z-index:-1; background: var(--c-paper); }
.page-hero__bg .glow{ opacity: .6; }
.page-hero .eyebrow{ margin-bottom: 18px; }
.page-hero__title{
  font-family: var(--f-display); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(32px, 4.6vw, 54px); line-height: 1.08; max-width: 800px;
}
.page-hero__lead{ margin-top: 18px; font-size: 18px; color: var(--c-muted); max-width: 620px; line-height: 1.6; }
.page-hero__actions{ display:flex; gap:14px; margin-top: 30px; flex-wrap: wrap; }
.page-hero--sm{ padding: calc(var(--header-h) + 44px) 0 44px; }
.page-hero--dark{ background: var(--grad-dark); }
.page-hero--dark .page-hero__title{ color: var(--c-white); }
.page-hero--dark .page-hero__lead{ color: var(--c-muted-dark); }

.breadcrumbs{ display:flex; align-items:center; gap:8px; font-size:13.5px; color: var(--c-muted); margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumbs a:hover{ color: var(--c-primary); }
.breadcrumbs span[aria-hidden]{ opacity:.5; }

/* =================================================================
   ФОРМЫ
================================================================= */
.form-grid{ display:grid; gap: 18px; }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field{ display:flex; flex-direction:column; gap: 8px; }
.form-label{ font-size: 13.5px; font-weight: 700; color: var(--c-ink); }
.form-label--optional{ font-weight: 500; color: var(--c-muted); }
.form-hint{ font-size: 12.5px; color: var(--c-muted); }
.form-error{ font-size: 12.5px; color: var(--c-danger); display:none; }
.form-field.has-error .form-error{ display:block; }
.form-field.has-error .form-input,
.form-field.has-error .form-textarea,
.form-field.has-error .form-select{ border-color: var(--c-danger); }

.form-input, .form-textarea, .form-select{
  width: 100%;
  font: 500 15px/1.4 var(--f-body);
  color: var(--c-ink);
  background: var(--c-white);
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.form-input::placeholder, .form-textarea::placeholder{ color: #A9A9B2; font-weight: 400; }
.form-input:focus, .form-textarea:focus, .form-select:focus{
  outline: none; border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(255,106,0,0.12);
}
.form-textarea{ resize: vertical; min-height: 120px; }
.form-select{ appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2362626B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

.input-icon-wrap{ position: relative; }
.input-icon-wrap .form-input{ padding-left: 46px; }
.input-icon-wrap .icon{ position:absolute; left:16px; top:50%; transform:translateY(-50%); color: var(--c-muted); pointer-events:none; }
.input-icon-wrap .input-toggle{ position:absolute; right:14px; top:50%; transform:translateY(-50%); color: var(--c-muted); background:none; padding:4px; }
.input-icon-wrap .input-toggle:hover{ color: var(--c-ink); }

.form-check{ display:flex; align-items:flex-start; gap: 10px; font-size: 13.5px; color: var(--c-muted); line-height: 1.5; cursor: pointer; }
.form-check input{ appearance: none; width: 19px; height: 19px; flex-shrink:0; border: 1.5px solid var(--c-line); border-radius: 6px; margin-top: 1px; position: relative; cursor: pointer; transition: all .2s var(--ease); }
.form-check input:checked{ background: var(--grad-primary); border-color: transparent; }
.form-check input:checked::after{ content:""; position:absolute; left:6px; top:2px; width:5px; height:9px; border:solid #fff; border-width:0 2px 2px 0; transform: rotate(45deg); }
.form-check a{ color: var(--c-ink); text-decoration: underline; text-underline-offset: 3px; }

.switch{ position: relative; display:inline-block; width: 44px; height: 26px; flex-shrink:0; }
.switch input{ opacity:0; width:0; height:0; position:absolute; }
.switch__track{ position:absolute; inset:0; background: rgba(17,17,17,0.14); border-radius: var(--r-pill); transition: background .25s var(--ease); cursor:pointer; }
.switch__track::after{ content:""; position:absolute; left:3px; top:3px; width:20px; height:20px; background:#fff; border-radius:50%; box-shadow: var(--sh-sm); transition: transform .25s var(--ease); }
.switch input:checked + .switch__track{ background: var(--grad-primary); }
.switch input:checked + .switch__track::after{ transform: translateX(18px); }

/* авторизация */
.auth-shell{ min-height: 100vh; display:grid; grid-template-columns: 1fr 1fr; }
.auth-shell__form{ display:flex; align-items:center; justify-content:center; padding: calc(var(--header-h) + 40px) 32px 60px; }
.auth-shell__form-inner{ width: 100%; max-width: 420px; }
.auth-shell__visual{ position: relative; background: var(--grad-dark); overflow:hidden; display:flex; align-items:center; justify-content:center; padding: 60px; }
.auth-shell__visual .glow{ opacity: .8; }
.auth-back{ display:inline-flex; align-items:center; gap:8px; font-size:13.5px; font-weight:600; color: var(--c-muted); margin-bottom: 28px; }
.auth-back:hover{ color: var(--c-ink); }
.auth-back .icon{ transform: rotate(180deg); width:16px; height:16px; }
.auth-title{ font-family: var(--f-display); font-weight: 800; font-size: 30px; letter-spacing:-0.02em; margin-bottom: 8px; }
.auth-sub{ color: var(--c-muted); font-size: 14.5px; margin-bottom: 32px; }
.auth-divider{ display:flex; align-items:center; gap:14px; margin: 26px 0; color: var(--c-muted); font-size: 12.5px; }
.auth-divider::before, .auth-divider::after{ content:""; flex:1; height:1px; background: var(--c-line); }
.auth-social{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-social__btn{ display:flex; align-items:center; justify-content:center; gap:10px; padding:13px; border:1.5px solid var(--c-line); border-radius: var(--r-md); font-weight:600; font-size:14px; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.auth-social__btn:hover{ border-color: rgba(17,17,17,0.24); transform: translateY(-1px); }
.auth-foot{ text-align:center; margin-top: 26px; font-size: 14px; color: var(--c-muted); }
.auth-foot a{ color: var(--c-primary); font-weight: 600; }

.auth-demo-note{
  display:flex; gap:12px; align-items:flex-start;
  background: #FFF6EE; border: 1px solid #FFE0BE; border-radius: var(--r-md);
  padding: 14px 16px; margin-bottom: 26px; font-size: 13px; line-height: 1.55; color: #8A4A0E;
}
.auth-demo-note .icon{ flex-shrink:0; margin-top: 1px; color: var(--c-primary); }
.auth-demo-note b{ display:block; margin-bottom: 2px; color: #6E3A08; }

.role-select{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.role-card{
  display:flex; flex-direction:column; gap: 10px;
  padding: 20px 18px; border-radius: var(--r-lg);
  border: 1.5px solid var(--c-line); cursor: pointer;
  transition: all .25s var(--ease); text-align:left; background: var(--c-white);
}
.role-card input{ position:absolute; opacity:0; pointer-events:none; }
.role-card__icon{ width: 42px; height:42px; border-radius: 12px; background:#FFF1E6; color: var(--c-primary); display:flex; align-items:center; justify-content:center; }
.role-card strong{ font-size: 14.5px; }
.role-card span{ font-size: 12.5px; color: var(--c-muted); line-height:1.4; }
.role-card:hover{ border-color: rgba(255,106,0,0.4); }
.role-card.is-active{ border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(255,106,0,0.12); }

.auth-visual-card{ position: relative; z-index:1; width: 100%; max-width: 380px; }

/* =================================================================
   АККОРДЕОН (FAQ)
================================================================= */
.accordion{ display:flex; flex-direction:column; gap: 12px; max-width: 780px; }
.accordion__item{ border: 1.5px solid var(--c-line); border-radius: var(--r-lg); overflow:hidden; background: var(--c-white); transition: border-color .25s var(--ease); }
.accordion__item.is-open{ border-color: rgba(255,106,0,0.35); }
.accordion__q{
  display:flex; align-items:center; justify-content:space-between; gap: 16px;
  width:100%; text-align:left; padding: 20px 24px; font-family: var(--f-display); font-weight: 700; font-size: 16px;
  cursor:pointer;
}
.accordion__q .icon{ flex-shrink:0; transition: transform .3s var(--ease); color: var(--c-primary); }
.accordion__item.is-open .accordion__q .icon{ transform: rotate(180deg); }
.accordion__a{ max-height:0; overflow:hidden; transition: max-height .35s var(--ease); }
.accordion__a-inner{ padding: 0 24px 22px; color: var(--c-muted); font-size: 14.5px; line-height: 1.7; }

/* =================================================================
   ЦЕНЫ (для бизнеса)
================================================================= */
.pricing-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.pricing-card{
  display:flex; flex-direction:column; gap: 20px;
  background: var(--c-white); border: 1.5px solid var(--c-line); border-radius: var(--r-xl);
  padding: 34px 30px; position: relative; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pricing-card:hover{ transform: translateY(-6px); box-shadow: var(--sh-lg); }
.pricing-card--featured{ border-color: transparent; background: var(--grad-dark); color: var(--c-white); }
.pricing-card__badge{ position:absolute; top:-13px; right: 28px; background: var(--grad-primary); color:#fff; font-size:12px; font-weight:700; padding: 6px 14px; border-radius: var(--r-pill); }
.pricing-card__name{ font-family: var(--f-display); font-weight:800; font-size: 20px; }
.pricing-card__price{ font-family: var(--f-display); font-weight:800; font-size: 40px; letter-spacing:-0.02em; }
.pricing-card__price small{ font-family: var(--f-body); font-weight:500; font-size: 14px; opacity:.6; }
.pricing-card__desc{ font-size: 13.5px; color: var(--c-muted); line-height:1.6; }
.pricing-card--featured .pricing-card__desc{ color: var(--c-muted-dark); }
.pricing-card__list{ display:flex; flex-direction:column; gap: 12px; flex:1; }
.pricing-card__list li{ display:flex; gap:10px; align-items:flex-start; font-size:13.5px; }
.pricing-card__list .icon{ color: var(--c-primary); flex-shrink:0; margin-top:2px; }

/* =================================================================
   БЛОГ / НОВОСТИ
================================================================= */
.post-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card{ display:flex; flex-direction:column; background: var(--c-white); border:1px solid var(--c-line); border-radius: var(--r-lg); overflow:hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.post-card:hover{ transform: translateY(-5px); box-shadow: var(--sh-md); }
.post-card__media{ height: 176px; position:relative; background: var(--grad-primary); display:flex; align-items:center; justify-content:center; }
.post-card__media .icon{ width:40px; height:40px; color: rgba(255,255,255,0.85); }
.post-card__tag{ position:absolute; top:14px; left:14px; background: rgba(255,255,255,0.92); color: var(--c-ink); font-size:11.5px; font-weight:700; padding:5px 11px; border-radius: var(--r-pill); }
.post-card__body{ padding: 22px 22px 24px; display:flex; flex-direction:column; gap: 10px; flex:1; }
.post-card__meta{ font-size: 12.5px; color: var(--c-muted); }
.post-card__title{ font-family: var(--f-display); font-weight: 800; font-size: 17px; line-height: 1.3; }
.post-card__excerpt{ font-size: 13.5px; color: var(--c-muted); line-height: 1.6; flex:1; }
.post-card__more{ font-size: 13px; font-weight: 700; color: var(--c-primary); display:inline-flex; align-items:center; gap:6px; }

.post-card--featured{ grid-column: span 2; }
.post-card--featured .post-card__media{ height: 100%; min-height: 260px; }
.post-card--featured{ display:grid; grid-template-columns: 1.1fr 1fr; }
.post-card--featured .post-card__body{ justify-content:center; }
.post-card--featured .post-card__title{ font-size: 22px; }

/* =================================================================
   DASHBOARD SHELL (личный кабинет / бизнес / админ)
================================================================= */
.dash-shell{ display:flex; min-height: 100vh; background: var(--c-paper); }

.dash-sidebar{
  width: var(--sidebar-w); flex-shrink:0;
  background: var(--c-white); border-right: 1px solid var(--c-line);
  display:flex; flex-direction:column;
  position: sticky; top:0; height: 100vh; overflow-y:auto;
  z-index: 50;
}
.dash-sidebar__head{ padding: 22px 22px 16px; display:flex; align-items:center; justify-content:space-between; }
.dash-sidebar__nav{ padding: 6px 14px; display:flex; flex-direction:column; gap: 2px; flex:1; }
.dash-sidebar__label{ font-size: 11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:#B4B4BC; padding: 18px 12px 8px; }
.dash-link{
  display:flex; align-items:center; gap: 12px;
  padding: 11px 12px; border-radius: 12px;
  font-size: 14px; font-weight: 600; color: var(--c-muted);
  transition: background .2s var(--ease), color .2s var(--ease);
  position: relative;
}
.dash-link .icon{ flex-shrink:0; width:19px; height:19px; }
.dash-link:hover{ background: rgba(17,17,17,0.04); color: var(--c-ink); }
.dash-link.is-active{ background: #FFF1E6; color: var(--c-primary); }
.dash-link__badge{ margin-left:auto; background: var(--c-primary); color:#fff; font-size:10.5px; font-weight:700; padding: 2px 7px; border-radius: var(--r-pill); }
.dash-sidebar__foot{ padding: 16px; border-top: 1px solid var(--c-line); }
.dash-user{ display:flex; align-items:center; gap:12px; padding: 10px; border-radius: 14px; transition: background .2s var(--ease); cursor:pointer; }
.dash-user:hover{ background: rgba(17,17,17,0.04); }
.dash-user__name{ font-size: 13.5px; font-weight:700; }
.dash-user__role{ font-size: 12px; color: var(--c-muted); }

.dash-main{ flex:1; min-width:0; }
.dash-topbar{
  height: var(--topbar-h); display:flex; align-items:center; justify-content:space-between; gap: 20px;
  padding: 0 32px; background: rgba(247,248,250,0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-line); position: sticky; top:0; z-index:40;
}
.dash-topbar__title{ font-family: var(--f-display); font-weight:800; font-size: 20px; letter-spacing:-0.01em; }
.dash-topbar__search{ position:relative; flex:1; max-width: 380px; }
.dash-topbar__search .icon{ position:absolute; left:14px; top:50%; transform:translateY(-50%); color:#B4B4BC; }
.dash-topbar__search input{ width:100%; padding: 10px 16px 10px 42px; border-radius: var(--r-pill); border:1.5px solid var(--c-line); background: var(--c-white); font-size:13.5px; }
.dash-topbar__search input:focus{ outline:none; border-color: var(--c-primary); }
.dash-topbar__actions{ display:flex; align-items:center; gap: 10px; }
.dash-menu-btn{ display:none; }

.dash-burger{ display:none; }

.dash-content{ padding: 30px 32px 70px; max-width: 1320px; }
.dash-page{ display:none; animation: fadeInUp .4s var(--ease); }
.dash-page.is-active{ display:block; }
@keyframes fadeInUp{ from{ opacity:0; transform: translateY(10px); } to{ opacity:1; transform:none; } }

.dash-page__head{ display:flex; align-items:flex-end; justify-content:space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.dash-page__title{ font-family: var(--f-display); font-weight:800; font-size: 26px; letter-spacing:-0.01em; }
.dash-page__sub{ color: var(--c-muted); font-size: 14px; margin-top:4px; }

.stat-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.stat-card{
  background: var(--c-white); border:1px solid var(--c-line); border-radius: var(--r-lg);
  padding: 22px; display:flex; flex-direction:column; gap: 12px;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.stat-card:hover{ box-shadow: var(--sh-md); transform: translateY(-3px); }
.stat-card__top{ display:flex; align-items:center; justify-content:space-between; }
.stat-card__icon{ width:38px; height:38px; border-radius:11px; display:flex; align-items:center; justify-content:center; background:#FFF1E6; color: var(--c-primary); }
.stat-card__delta{ font-size:12px; font-weight:700; display:flex; align-items:center; gap:3px; }
.stat-card__delta--up{ color: var(--c-success); }
.stat-card__delta--down{ color: var(--c-danger); }
.stat-card__value{ font-family: var(--f-display); font-weight:800; font-size: 28px; letter-spacing:-0.01em; }
.stat-card__label{ font-size: 13px; color: var(--c-muted); }

.panel{ background: var(--c-white); border:1px solid var(--c-line); border-radius: var(--r-lg); padding: 26px; margin-bottom: 22px; }
.panel__head{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom: 20px; flex-wrap:wrap; }
.panel__title{ font-family: var(--f-display); font-weight: 800; font-size: 17px; }

.table-wrap{ overflow-x:auto; border-radius: var(--r-lg); border: 1px solid var(--c-line); }
.data-table{ width:100%; border-collapse: collapse; min-width: 620px; background: var(--c-white); }
.data-table th{ text-align:left; font-size:12px; text-transform:uppercase; letter-spacing:.04em; color:#9A9AA4; font-weight:700; padding: 14px 18px; background:#FBFBFC; border-bottom:1px solid var(--c-line); white-space:nowrap; }
.data-table td{ padding: 15px 18px; font-size: 13.5px; border-bottom:1px solid var(--c-line); vertical-align:middle; }
.data-table tr:last-child td{ border-bottom:none; }
.data-table tr:hover td{ background: #FBFBFC; }
.data-table__user{ display:flex; align-items:center; gap:10px; }
.data-table__actions{ display:flex; gap:6px; justify-content:flex-end; }

.empty-state{ text-align:center; padding: 70px 24px; color: var(--c-muted); }
.empty-state .icon{ width:44px; height:44px; margin:0 auto 16px; color:#D3D3D8; }
.empty-state h3{ font-family: var(--f-display); color: var(--c-ink); font-size:17px; margin-bottom:6px; }
.empty-state p{ font-size: 13.5px; max-width: 360px; margin: 0 auto; }

.offer-mini-card{ display:flex; gap:14px; align-items:center; padding: 14px; border-radius: var(--r-md); transition: background .2s var(--ease); }
.offer-mini-card:hover{ background: #FBFBFC; }
.offer-mini-card__icon{ width:48px; height:48px; border-radius:13px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.offer-mini-card__title{ font-weight:700; font-size:14px; }
.offer-mini-card__meta{ font-size:12.5px; color:var(--c-muted); }

.progress{ height:8px; border-radius: var(--r-pill); background: rgba(17,17,17,0.07); overflow:hidden; }
.progress__bar{ height:100%; border-radius: var(--r-pill); background: var(--grad-primary); }

/* =================================================================
   AI-ЧАТ (бизнес-помощник)
================================================================= */
.chat-shell{ display:flex; flex-direction:column; height: calc(100vh - var(--topbar-h) - 60px); max-height: 720px; background: var(--c-white); border:1px solid var(--c-line); border-radius: var(--r-xl); overflow:hidden; }
.chat-head{ display:flex; align-items:center; gap:14px; padding: 18px 24px; border-bottom:1px solid var(--c-line); }
.chat-head__avatar{ width:44px; height:44px; border-radius:14px; background: var(--grad-dark); display:flex; align-items:center; justify-content:center; color: var(--c-primary-2); flex-shrink:0; }
.chat-head__name{ font-weight:800; font-size:15px; }
.chat-head__status{ font-size:12.5px; color: var(--c-success); display:flex; align-items:center; gap:6px; }
.chat-head__status::before{ content:""; width:7px; height:7px; border-radius:50%; background: var(--c-success); }

.chat-messages{ flex:1; overflow-y:auto; padding: 26px 24px; display:flex; flex-direction:column; gap: 18px; }
.chat-msg{ display:flex; gap: 12px; max-width: 82%; }
.chat-msg__avatar{ width:32px; height:32px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; color:#fff; }
.chat-msg__bubble{ padding: 13px 16px; border-radius: 18px; font-size: 14px; line-height:1.6; }
.chat-msg__bubble ul{ margin: 6px 0 0 2px; padding-left: 16px; list-style: disc; }
.chat-msg--ai{ align-self:flex-start; }
.chat-msg--ai .chat-msg__avatar{ background: var(--grad-dark); }
.chat-msg--ai .chat-msg__bubble{ background: #F2F2F4; border-bottom-left-radius: 4px; }
.chat-msg--user{ align-self:flex-end; flex-direction:row-reverse; }
.chat-msg--user .chat-msg__avatar{ background: var(--grad-primary); }
.chat-msg--user .chat-msg__bubble{ background: var(--grad-primary); color:#fff; border-bottom-right-radius: 4px; }

.chat-typing{ display:inline-flex; gap:4px; padding: 4px 2px; }
.chat-typing span{ width:6px; height:6px; border-radius:50%; background:#B4B4BC; animation: typingBounce 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2){ animation-delay:.15s; }
.chat-typing span:nth-child(3){ animation-delay:.3s; }
@keyframes typingBounce{ 0%,60%,100%{ transform: translateY(0); opacity:.5; } 30%{ transform: translateY(-4px); opacity:1; } }

.chat-suggestions{ display:flex; gap:10px; padding: 0 24px 16px; flex-wrap:wrap; }
.chat-suggest{ font-size:12.5px; font-weight:600; padding: 9px 14px; border-radius: var(--r-pill); background:#F2F2F4; color: var(--c-ink); transition: background .2s var(--ease); }
.chat-suggest:hover{ background:#E7E7EA; }

.chat-input{ display:flex; gap:10px; padding: 16px 20px; border-top:1px solid var(--c-line); align-items:center; }
.chat-input input{ flex:1; border:1.5px solid var(--c-line); border-radius: var(--r-pill); padding: 13px 20px; font-size:14px; }
.chat-input input:focus{ outline:none; border-color: var(--c-primary); }
.chat-input button{ width:46px; height:46px; border-radius:50%; background: var(--grad-primary); color:#fff; display:flex; align-items:center; justify-content:center; flex-shrink:0; box-shadow: 0 8px 20px rgba(255,106,0,0.3); transition: transform .2s var(--ease); }
.chat-input button:hover{ transform: scale(1.06); }

/* =================================================================
   КАРТА ПРЕДЛОЖЕНИЙ
================================================================= */
.map-page-shell{ padding-top: var(--header-h); height: 100vh; display:flex; flex-direction:column; }
.map-toolbar{ display:flex; align-items:center; gap:14px; padding: 16px 24px; border-bottom:1px solid var(--c-line); background: var(--c-white); flex-wrap:wrap; }
.map-toolbar__search{ position:relative; flex:1; min-width: 220px; max-width: 420px; }
.map-toolbar__search .icon{ position:absolute; left:16px; top:50%; transform:translateY(-50%); color:#B4B4BC; }
.map-toolbar__search input{ width:100%; padding:12px 16px 12px 44px; border-radius: var(--r-pill); border:1.5px solid var(--c-line); font-size:14px; }
.map-toolbar__search input:focus{ outline:none; border-color:var(--c-primary); }
.map-filters{ display:flex; gap:10px; overflow-x:auto; padding: 14px 24px; border-bottom:1px solid var(--c-line); background: var(--c-white); scrollbar-width:none; }
.map-filters::-webkit-scrollbar{ display:none; }

.map-body{ flex:1; display:grid; grid-template-columns: 420px 1fr; min-height:0; }
.map-list{ overflow-y:auto; border-right:1px solid var(--c-line); background: var(--c-white); padding: 16px; display:flex; flex-direction:column; gap: 12px; }
.map-list__count{ font-size:13px; color: var(--c-muted); padding: 4px 6px 10px; }

.offer-card{ display:flex; gap:14px; padding: 14px; border-radius: var(--r-lg); border:1.5px solid transparent; cursor:pointer; transition: all .2s var(--ease); }
.offer-card:hover{ background:#FBFBFC; }
.offer-card.is-active{ border-color: rgba(255,106,0,0.4); background:#FFF8F2; }
.offer-card__thumb{ width:76px; height:76px; border-radius:16px; flex-shrink:0; display:flex; align-items:center; justify-content:center; position:relative; }
.offer-card__thumb .icon{ width:26px; height:26px; color:#fff; }
.offer-card__discount{ position:absolute; top:-6px; right:-6px; background: var(--c-ink); color:#fff; font-size:10.5px; font-weight:800; padding:3px 7px; border-radius: var(--r-pill); }
.offer-card__body{ flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
.offer-card__title{ font-weight:700; font-size:14.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.offer-card__cat{ font-size:12px; color: var(--c-muted); }
.offer-card__meta{ display:flex; align-items:center; gap:10px; font-size:12px; color: var(--c-muted); margin-top:2px; flex-wrap:wrap; }
.offer-card__meta b{ color:var(--c-ink); }
.offer-card__price{ display:flex; align-items:baseline; gap:6px; margin-top:2px; }
.offer-card__price b{ font-family: var(--f-display); font-weight:800; font-size:15px; }
.offer-card__price s{ font-size:12px; color:#B4B4BC; }
.offer-card__fav{ align-self:flex-start; flex-shrink:0; }
.offer-card__fav.is-fav{ color: var(--c-primary); }

.map-canvas-wrap{ position:relative; background:#E9EAEE; }
#mapCanvas{ position:absolute; inset:0; width:100%; height:100%; }
.map-canvas-fallback{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:10px; color:#9A9AA4; text-align:center; padding:24px; }
.map-locate-btn{ position:absolute; right:20px; bottom:100px; z-index:5; background:#fff; box-shadow: var(--sh-md); }
.map-popup{ font-family: var(--f-body); }
.map-popup b{ display:block; font-family: var(--f-display); margin-bottom:2px; }

@media (max-width: 980px){
  .map-body{ grid-template-columns: 1fr; }
  .map-canvas-wrap{ height: 46vh; order:-1; }
  .map-list{ border-right:none; border-top:1px solid var(--c-line); }
}

/* =================================================================
   PWA INSTALL BANNER / TOAST
================================================================= */
.pwa-banner{
  position: fixed; left:20px; right:20px; bottom:20px; z-index: 500;
  max-width: 480px; margin: 0 auto;
  display:flex; align-items:center; gap:14px;
  background: var(--c-white); border:1px solid var(--c-line);
  border-radius: var(--r-lg); padding: 16px; box-shadow: var(--sh-lg);
  transform: translateY(140%); opacity:0; transition: transform .45s var(--ease), opacity .45s var(--ease);
  pointer-events:none;
}
.pwa-banner.is-visible{ transform:translateY(0); opacity:1; pointer-events:auto; }
.pwa-banner__icon img{ border-radius:12px; display:block; }
.pwa-banner__text{ flex:1; display:flex; flex-direction:column; gap:2px; }
.pwa-banner__text strong{ font-size:13.5px; }
.pwa-banner__text span{ font-size:12px; color: var(--c-muted); line-height:1.4; }
.pwa-banner__close{ color: var(--c-muted); flex-shrink:0; padding:4px; }

.toast-wrap{ position:fixed; top: calc(var(--header-h) + 16px); right: 20px; z-index: 600; display:flex; flex-direction:column; gap:10px; }
.toast{ display:flex; align-items:center; gap:10px; background: var(--c-ink); color:#fff; padding: 13px 18px; border-radius: var(--r-md); font-size:13.5px; font-weight:600; box-shadow: var(--sh-lg); animation: toastIn .3s var(--ease); }
.toast .icon{ color: var(--c-success); flex-shrink:0; }
@keyframes toastIn{ from{ opacity:0; transform: translateY(-8px); } to{ opacity:1; transform:none; } }

/* =================================================================
   ПРОЧИЕ БЛОКИ КОНТЕНТНЫХ СТРАНИЦ
================================================================= */
.content-block{ max-width: 760px; }
.content-block h2{ font-family: var(--f-display); font-weight:800; font-size: 24px; margin: 40px 0 14px; letter-spacing:-0.01em; }
.content-block h2:first-child{ margin-top:0; }
.content-block p{ color: var(--c-muted); font-size:15px; line-height:1.75; margin-bottom: 14px; }
.content-block ul{ list-style: disc; padding-left: 22px; color: var(--c-muted); font-size:15px; line-height:1.8; margin-bottom:14px; }
.content-block strong{ color: var(--c-ink); }

.value-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:22px; }
.value-card{ padding: 26px; border-radius: var(--r-lg); background: var(--c-white); border:1px solid var(--c-line); }
.value-card__icon{ width:44px; height:44px; border-radius:13px; background:#FFF1E6; color:var(--c-primary); display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.value-card h3{ font-family: var(--f-display); font-size:16px; margin-bottom:8px; }
.value-card p{ font-size:13.5px; color: var(--c-muted); line-height:1.6; }

.timeline{ display:flex; flex-direction:column; gap:0; max-width: 640px; }
.timeline__item{ display:flex; gap:20px; padding-bottom: 34px; position:relative; }
.timeline__item::before{ content:""; position:absolute; left:9px; top:26px; bottom:0; width:2px; background: var(--c-line); }
.timeline__item:last-child::before{ display:none; }
.timeline__dot{ width:20px; height:20px; border-radius:50%; background: var(--grad-primary); flex-shrink:0; margin-top:2px; box-shadow: 0 0 0 4px #FFF1E6; }
.timeline__year{ font-family: var(--f-display); font-weight:800; font-size:14px; color: var(--c-primary); }
.timeline__text{ font-size:14px; color: var(--c-muted); margin-top:4px; line-height:1.6; }

.team-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:22px; }
.team-card{ text-align:center; }
.team-card__avatar{ width:88px; height:88px; border-radius:50%; margin:0 auto 14px; display:flex; align-items:center; justify-content:center; font-family:var(--f-display); font-weight:800; font-size:22px; color:#fff; }
.team-card strong{ display:block; font-size:14.5px; }
.team-card span{ font-size:12.5px; color:var(--c-muted); }

.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items:start; }
.contact-info{ display:flex; flex-direction:column; gap:20px; }
.contact-info__item{ display:flex; gap:16px; align-items:flex-start; }
.contact-info__icon{ width:46px; height:46px; border-radius:13px; background:#FFF1E6; color:var(--c-primary); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.contact-info__item strong{ display:block; font-size:14.5px; margin-bottom:2px; }
.contact-info__item span, .contact-info__item a{ font-size:13.5px; color: var(--c-muted); }
.contact-map-stub{ height:220px; border-radius: var(--r-lg); background: var(--c-paper); border:1px solid var(--c-line); display:flex; align-items:center; justify-content:center; color:#B4B4BC; margin-top: 6px; }

.news-hero-card{ display:grid; grid-template-columns: 1.1fr 1fr; gap:0; border-radius: var(--r-xl); overflow:hidden; border:1px solid var(--c-line); margin-bottom: 40px; }
.news-hero-card__media{ background: var(--grad-dark); display:flex; align-items:center; justify-content:center; min-height: 280px; }
.news-hero-card__media .icon{ width:52px; height:52px; color: rgba(255,143,31,0.85); }
.news-hero-card__body{ padding: 40px; display:flex; flex-direction:column; justify-content:center; gap:12px; }

/* =================================================================
   ТЁМНАЯ ТЕМА АДМИН-ПАНЕЛИ (admin.tochkavygody.ru)
   Скоуп через переопределение CSS-переменных внутри .dash-shell--dark —
   светлая тема основного сайта (style.css) при этом не меняется.
================================================================= */
.dash-shell--dark{
  --c-white: #1A1A1D;
  --c-paper: #101012;
  --c-ink: #F2F2F4;
  --c-muted: #9A9AA4;
  --c-line: rgba(255,255,255,0.09);
  background: var(--c-paper);
  color: var(--c-ink);
}
.dash-shell--dark .dash-sidebar{ background:#141416; border-right-color: rgba(255,255,255,0.08); }
.dash-shell--dark .dash-sidebar__foot{ border-top-color: rgba(255,255,255,0.08); }
.dash-shell--dark .dash-topbar{ background: rgba(16,16,18,0.85); border-bottom-color: rgba(255,255,255,0.08); }
.dash-shell--dark .dash-topbar__search input{ background:#1E1E21; border-color: rgba(255,255,255,0.1); color:#fff; }
.dash-shell--dark .dash-link:hover{ background: rgba(255,255,255,0.06); color:#fff; }
.dash-shell--dark .dash-link.is-active{ background: rgba(255,106,0,0.16); color:#FF8F1F; }
.dash-shell--dark .dash-sidebar__label{ color:#66666F; }
.dash-shell--dark .dash-user:hover{ background: rgba(255,255,255,0.06); }
.dash-shell--dark .icon-btn{ background: rgba(255,255,255,0.07); color:#fff; }
.dash-shell--dark .icon-btn:hover{ background: rgba(255,255,255,0.13); }
.dash-shell--dark .stat-card__icon{ background: rgba(255,106,0,0.16); color:#FF8F1F; }
.dash-shell--dark .data-table th{ background:#18181B; color:#77777F; border-bottom-color: rgba(255,255,255,0.08); }
.dash-shell--dark .data-table td{ border-bottom-color: rgba(255,255,255,0.06); }
.dash-shell--dark .data-table tr:hover td{ background:#1E1E21; }
.dash-shell--dark .offer-mini-card:hover{ background:#1E1E21; }
.dash-shell--dark .empty-state .icon{ color:#3A3A40; }
.dash-shell--dark .badge--muted{ background: rgba(255,255,255,0.08); color:#9A9AA4; }
.dash-shell--dark .chip{ background:#1A1A1D; border-color: rgba(255,255,255,0.1); color:#fff; }
.dash-shell--dark .chip:hover{ border-color: rgba(255,255,255,0.25); }
.dash-shell--dark .form-input, .dash-shell--dark .form-textarea, .dash-shell--dark .form-select{ background:#1A1A1D; border-color: rgba(255,255,255,0.1); color:#fff; }
.dash-shell--dark .form-input:disabled{ opacity:.5; }
.dash-shell--dark .switch__track{ background: rgba(255,255,255,0.14); }
.dash-shell--dark .skeleton{ background:#1E1E21; }
.dash-shell--dark .map-canvas-wrap{ background:#1A1A1D; }
.dash-shell--dark ::placeholder{ color:#6A6A72; }

/* =================================================================
   RESPONSIVE
================================================================= */
@media (max-width: 1080px){
  .pricing-grid{ grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .post-grid{ grid-template-columns: 1fr 1fr; }
  .post-card--featured{ grid-column: span 2; grid-template-columns: 1fr; }
  .stat-grid{ grid-template-columns: 1fr 1fr; }
  .value-grid{ grid-template-columns: 1fr 1fr; }
  .team-grid{ grid-template-columns: 1fr 1fr; }
  .auth-shell{ grid-template-columns: 1fr; }
  .auth-shell__visual{ display:none; }
  .contact-grid{ grid-template-columns: 1fr; }
  .news-hero-card{ grid-template-columns: 1fr; }
  .news-hero-card__media{ min-height: 200px; }
}

@media (max-width: 860px){
  .dash-sidebar{ position: fixed; left:-100%; top:0; width: min(84vw, 320px); transition: left .3s var(--ease); box-shadow: var(--sh-lg); }
  .dash-sidebar.is-open{ left:0; }
  .dash-burger{ display:flex; }
  .dash-topbar{ padding: 0 16px; }
  .dash-topbar__search{ display:none; }
  .dash-content{ padding: 22px 16px 60px; }
  .stat-grid{ grid-template-columns: 1fr 1fr; }
  .sidebar-overlay{ display:none; position:fixed; inset:0; background:rgba(17,17,17,0.4); z-index:49; }
  .sidebar-overlay.is-visible{ display:block; }
}

@media (max-width: 720px){
  .post-grid{ grid-template-columns: 1fr; }
  .value-grid{ grid-template-columns: 1fr; }
  .team-grid{ grid-template-columns: 1fr 1fr; }
  .form-row{ grid-template-columns: 1fr; }
  .role-select{ grid-template-columns: 1fr; }
  .stat-grid{ grid-template-columns: 1fr 1fr; }
  .page-hero{ padding: calc(var(--header-h) + 40px) 0 40px; }
  .auth-shell__form{ padding: calc(var(--header-h) + 24px) 20px 40px; }
  .chat-msg{ max-width: 92%; }
  .pwa-banner{ left:12px; right:12px; bottom:12px; }
}
