/**
 * Интерьер AS-PRO: табы, стеклянные карточки объектов, пульт графика, footer.
 */
:root {
  --int-bg: #060d18;
  --int-surface: rgba(12, 22, 40, 0.72);
  --int-glass: rgba(255, 255, 255, 0.06);
  --int-border: rgba(148, 163, 184, 0.18);
  --int-accent: #7c6cf0;
  --int-accent-line: #8b7cf8;
  --int-text: #e8edf5;
  --int-muted: #94a3b8;
  --int-warn: #f59e0b;
  --int-danger: #f87171;
  --int-ok: #34d399;
}

.interior-page {
  background: var(--int-bg);
  color: var(--int-text);
  min-height: 100vh;
  min-height: 100dvh;
}

.interior-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.25rem 5rem;
}

/* Табы */
.interior-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  border-bottom: 1px solid var(--int-border);
  margin-bottom: 1.25rem;
  padding-bottom: 0;
}

.interior-tab {
  position: relative;
  padding: 0.75rem 0.15rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--int-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.interior-tab:hover {
  color: var(--int-text);
}

.interior-tab.is-active {
  color: var(--int-text);
  font-weight: 600;
}

.interior-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--int-accent-line);
  border-radius: 3px 3px 0 0;
}

.interior-fx-strip {
  font-size: 0.8rem;
  color: var(--int-muted);
  margin: -0.5rem 0 1rem;
  padding: 0.35rem 0;
}

.interior-fx-strip strong {
  color: var(--int-text);
  font-weight: 600;
}

.interior-fx-up {
  color: var(--int-warn);
}

/* Footer: тариф + не навязчиво */
.interior-footer.workspace-quota-footer {
  left: max(1rem, env(safe-area-inset-left));
  right: auto;
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  max-width: min(420px, calc(100vw - 5rem));
}

.interior-footer {
  position: fixed;
  z-index: 30;
  right: 1rem;
  bottom: max(5.5rem, calc(env(safe-area-inset-bottom) + 4.5rem));
  max-width: min(360px, calc(100vw - 2rem));
  padding: 0.55rem 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--int-muted);
  background: rgba(8, 14, 26, 0.88);
  border: 1px solid var(--int-border);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.interior-footer a {
  color: #67e8f9;
  text-decoration: none;
}

.interior-footer a:hover {
  text-decoration: underline;
}

.interior-footer strong {
  color: #cbd5e1;
}

.interior-footer--warn {
  border-color: rgba(245, 158, 11, 0.35);
}

/* Стеклянная карточка объекта */
.object-glass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.object-glass-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 20px;
  padding: 1.1rem 1.15rem 1rem;
  background: var(--int-glass);
  border: 1px solid var(--int-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s;
  overflow: hidden;
  min-height: 220px;
}

.object-glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 124, 248, 0.45);
  box-shadow: 0 20px 50px rgba(59, 80, 180, 0.2);
}

.object-glass-card__stack {
  position: absolute;
  inset: 12px 12px auto 12px;
  height: 88px;
  pointer-events: none;
}

.object-glass-card__layer {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  filter: blur(1px) saturate(0.85);
  transform: translateY(calc(var(--layer-i) * -6px)) scale(calc(1 - var(--layer-i) * 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.object-glass-card__layer--empty {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  opacity: 0.5;
}

.object-glass-card__title {
  position: relative;
  z-index: 2;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  padding-top: 52px;
}

.object-glass-card__meta {
  position: relative;
  z-index: 2;
  font-size: 0.75rem;
  color: var(--int-muted);
}

.object-glass-card__finance {
  position: relative;
  z-index: 2;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--int-border);
  font-size: 0.72rem;
  display: grid;
  gap: 0.25rem;
}

.object-glass-card__finance-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.object-glass-card__progress {
  position: relative;
  z-index: 2;
  margin-top: 0.5rem;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.object-glass-card__progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #059669, #06b6d4);
  border-radius: 4px;
}

.object-glass-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  font-size: 0.65rem;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--int-muted);
}

/* Пульт объекта */
.object-hero {
  background: var(--int-surface);
  border: 1px solid var(--int-border);
  border-radius: 20px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
}

.object-hero__headline {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.object-hero__sub {
  font-size: 0.85rem;
  color: var(--int-muted);
  margin: 0 0 1rem;
}

.object-hero__status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.object-hero__status--on_track {
  background: rgba(52, 211, 153, 0.15);
  color: var(--int-ok);
}

.object-hero__status--overdue {
  background: rgba(248, 113, 113, 0.12);
  color: var(--int-danger);
}

.object-hero__status--at_risk {
  background: rgba(245, 158, 11, 0.12);
  color: var(--int-warn);
}

.object-hero__status--no_schedule {
  background: rgba(148, 163, 184, 0.12);
  color: var(--int-muted);
}

.object-notices {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.object-notices li {
  font-size: 0.82rem;
  padding: 0.45rem 0.65rem;
  margin-bottom: 0.35rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--int-border);
}

.object-notices li[data-level="warn"] {
  border-left-color: var(--int-warn);
}

.object-hero-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.object-hero-timeline__row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
}

.object-hero-timeline__bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  overflow: hidden;
}

.object-hero-timeline__fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #22d3ee);
  border-radius: 6px;
}

.object-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.object-detail-tab {
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  font-size: 0.82rem;
  border: 1px solid var(--int-border);
  background: transparent;
  color: var(--int-muted);
  cursor: pointer;
}

.object-detail-tab.is-active {
  background: rgba(124, 108, 240, 0.2);
  border-color: rgba(124, 108, 240, 0.5);
  color: var(--int-text);
}

.object-panel {
  display: none;
}

.object-panel.is-active {
  display: block;
}

.object-finance-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid var(--int-border);
  font-size: 0.8rem;
}

.object-finance-bar dt {
  color: var(--int-muted);
  font-weight: 400;
}

.object-finance-bar dd {
  margin: 0;
  font-weight: 600;
}

@media (max-width: 640px) {
  .interior-footer {
    left: 0.75rem;
    right: 0.75rem;
    max-width: none;
    font-size: 0.875rem;
  }
}
