/**
 * Кабинет бизнеса /biz — claim + правка NAP.
 * Визуальный язык как hub/admin: Fraunces brand, зелёный акцент.
 */
:root {
  --ink: #1a241c;
  --ink-soft: #4a5c50;
  --paper: #eef5f0;
  --card: #fff;
  --line: #c5d4ca;
  --accent: #1f6b4a;
  --danger: #9b2c2c;
  --font: "DM Sans", system-ui, sans-serif;
  --brand: "Fraunces", Georgia, serif;
}

* {
  box-sizing: border-box;
}

body.biz {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, #d4e8da 0%, transparent 55%),
    linear-gradient(165deg, #eef5f0 0%, #e2ebe4 100%);
}

.biz-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.biz-brand {
  font-family: var(--brand);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--accent);
  text-decoration: none;
}

.biz-tag {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.biz-nav {
  margin-left: auto;
  display: flex;
  gap: 1rem;
}

.biz-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.biz-nav a:hover {
  color: var(--accent);
}

.biz-main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

.biz-hero h1 {
  font-family: var(--brand);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.biz-lead {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.biz-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
}

.biz-card h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.biz-row {
  display: flex;
  gap: 0.5rem;
}

.biz-row input {
  flex: 1;
}

.biz-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

input,
textarea {
  font: inherit;
  font-weight: 400;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  padding: 0.55rem 0.95rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.biz-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  margin-top: 0.75rem;
}

.biz-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.biz-actions .biz-ghost {
  margin-top: 0;
}

.biz-check {
  flex-direction: row;
  align-items: center;
  font-weight: 400;
}

.biz-check input {
  width: auto;
}

.biz-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.biz-firm {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  text-align: left;
  background: #f5faf6;
  color: var(--ink);
  border: 1px solid var(--line);
  width: 100%;
}

.biz-firm span {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 400;
}

.biz-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  background: #e0efe6;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.biz-firm-label {
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.biz-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 400;
  line-height: 1.4;
}

.biz-msg {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--accent);
}

.biz-msg.is-error {
  color: var(--danger);
}

.biz-foot {
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.biz-extras {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.biz-extras h3 {
  margin: 1.25rem 0 0.6rem;
  font-size: 1rem;
  font-weight: 700;
}

.biz-extras h3:first-child {
  margin-top: 0;
}

.biz-mini-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.biz-mini-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  background: #f5faf6;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
}

.biz-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.biz-media-grid figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.biz-media-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #eef2ee;
}

.biz-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.biz-stats > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  background: #f5faf6;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.biz-stats strong {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.biz-stats span {
  font-size: 0.75rem;
  color: var(--ink-soft);
  line-height: 1.3;
}

.biz-stats .biz-delta {
  font-size: 0.7rem;
  color: var(--ink-soft);
}

.biz-stats .biz-delta.up {
  color: #1a7a45;
}

.biz-stats .biz-delta.down {
  color: #a33;
}

#stats-days .biz-ghost.is-on {
  border-color: var(--accent);
  color: var(--accent);
  background: #e8f3ec;
}

.biz-series {
  margin-top: 0.85rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafcfa;
}

.biz-series-label {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
}

.biz-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 56px;
}

.biz-bars span {
  flex: 1;
  min-width: 4px;
  background: #9fc4ad;
  border-radius: 2px 2px 0 0;
}

.biz-bars span.is-peak {
  background: var(--accent);
}

.biz-complete {
  margin-top: 0.85rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.biz-complete-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.biz-complete ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 0.75rem;
  font-size: 0.8rem;
}

.biz-complete li.ok {
  color: #1a7a45;
}

.biz-complete li.miss {
  color: var(--ink-soft);
}

.biz-demand {
  margin: 0.5rem 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}
.biz-demand-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  align-items: baseline;
  margin-bottom: 0.55rem;
}
.biz-demand-head strong {
  font-size: 1.35rem;
  font-family: var(--brand);
  color: var(--accent);
}
.biz-demand-list,
.biz-demand-tips {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}
.biz-demand-list li {
  margin: 0.25rem 0;
}
.biz-demand-list em {
  color: var(--ink-soft);
  font-style: normal;
  font-size: 0.78rem;
}
.biz-demand-tips {
  margin-top: 0.65rem;
  color: var(--ink-soft);
  list-style: none;
  padding-left: 0;
}
.biz-demand-tips li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: center;
  margin: 0.45rem 0;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: rgba(31, 107, 74, 0.06);
}
.biz-demand-act {
  margin-left: auto;
  border: 0;
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  background: var(--accent, #1f6b4a);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
}
.biz-demand-act:hover {
  filter: brightness(1.05);
}
.biz-focus-pulse {
  outline: 2px solid var(--accent, #1f6b4a);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(31, 107, 74, 0.18);
  transition: box-shadow 0.3s ease;
}

@media (max-width: 520px) {
  .biz-row {
    flex-direction: column;
  }
  .biz-demand-act {
    margin-left: 0;
    width: 100%;
  }
}
