/* Портал GuardDoc: левый бар + основной контент */
#portal-root {
  min-height: 100vh;
}

.portal-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 100%;
}

@media (min-width: 900px) {
  .portal-shell {
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: stretch;
  }
}

.portal-sidebar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 18px 24px;
  background: rgba(5, 14, 28, 0.65);
}

@media (min-width: 900px) {
  .portal-sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    min-height: 100vh;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 28px 16px 40px;
  }
}

.portal-sidebar-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-sidebar-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}

.portal-sidebar-sub {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(200, 216, 245, 0.82);
}

.portal-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.portal-side-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(244, 247, 255, 0.92) !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.portal-side-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff !important;
}

.portal-main {
  padding: 24px 18px 56px;
}

@media (min-width: 900px) {
  .portal-main {
    padding: 32px 32px 64px;
  }
}

.portal-eco-hero {
  display: grid;
  gap: 14px;
  padding: 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(18, 45, 88, 0.75) 0%, rgba(10, 28, 52, 0.55) 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

.portal-eco-brand {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(158, 197, 255, 0.95);
}

.portal-eco-hero h1 {
  margin: 0;
  font-size: clamp(1.4rem, 2.8vw, 1.95rem);
  line-height: 1.22;
  color: #fff;
  font-weight: 800;
}

.portal-eco-lead {
  margin: 0;
  color: rgba(244, 247, 255, 0.9);
  line-height: 1.6;
  font-size: 15px;
  max-width: 62ch;
}

.portal-eco-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.portal-eco-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #f4f7ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.portal-eco-btn.primary {
  background: #f4f7ff;
  color: #0b1f3d;
  border-color: #f4f7ff;
}

.portal-eco-btn .ext {
  opacity: 0.6;
  font-size: 12px;
}

.portal-eco-extras {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.portal-eco-extras-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(232, 240, 255, 0.95);
}

.portal-eco-extras-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.portal-eco-extras-list a {
  font-weight: 600;
}

.portal-eco-section {
  margin-top: 28px;
}

.portal-eco-section h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.portal-eco-prose {
  margin: 0;
  color: rgba(244, 247, 255, 0.88);
  line-height: 1.55;
  font-size: 14px;
}

.portal-eco-prose + .portal-eco-prose {
  margin-top: 10px;
}

.portal-eco-apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.portal-app-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 18px;
  background: rgba(8, 24, 48, 0.45);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
}

.portal-app-card h3 {
  margin: 0;
  font-size: 16px;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-weight: 800;
}

.portal-app-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.portal-app-tag.live {
  background: rgba(52, 211, 153, 0.16);
  border-color: rgba(52, 211, 153, 0.4);
  color: #b8f5d9;
}

.portal-app-tag.soon {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fde9b0;
}

.portal-app-tag.planned {
  background: rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
}

.portal-app-tag.platform {
  background: rgba(96, 165, 250, 0.15);
  border-color: rgba(96, 165, 250, 0.35);
  color: #dbeafe;
}

.portal-app-card .summary {
  margin: 0;
  font-size: 14px;
  color: rgba(244, 247, 255, 0.9);
  line-height: 1.45;
}

.portal-app-card .detail {
  margin: 0;
  font-size: 13px;
  color: rgba(244, 247, 255, 0.75);
  line-height: 1.5;
  flex: 1 1 auto;
}

.portal-app-card .portal-eco-btn {
  align-self: flex-start;
  margin-top: 4px;
}

.portal-eco-demo {
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 14px;
  padding: 20px;
  background: rgba(12, 36, 72, 0.4);
}

.portal-eco-demo h2 {
  margin: 0 0 10px;
}

.portal-eco-demo ul {
  margin: 10px 0 0;
  padding-left: 1.15rem;
  color: rgba(244, 247, 255, 0.86);
  line-height: 1.45;
  font-size: 14px;
}

.portal-eco-demo-cta {
  margin: 16px 0 0;
}

.portal-eco-foot {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(244, 247, 255, 0.6);
  max-width: 70ch;
}

.portal-eco-loading,
.portal-eco-error {
  text-align: center;
  padding: 48px 16px;
  color: rgba(244, 247, 255, 0.85);
}

.portal-eco-error {
  color: #fecaca;
}

.portal-sidebar-panel {
  margin-top: 16px;
  padding: 12px 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 18, 40, 0.55);
}

.portal-sidebar-panel--demo {
  border-color: rgba(251, 191, 36, 0.28);
  background: rgba(40, 32, 8, 0.25);
}

.portal-sidebar-panel-title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(200, 220, 255, 0.95);
}

.portal-sidebar-panel-text {
  margin: 0 0 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(232, 240, 255, 0.88);
}

.portal-sidebar-panel-text:last-child {
  margin-bottom: 0;
}

.portal-eco-actions--triple {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.portal-eco-btn--demo {
  background: linear-gradient(165deg, rgba(251, 191, 36, 0.25) 0%, rgba(245, 158, 11, 0.12) 100%) !important;
  border-color: rgba(253, 224, 120, 0.45) !important;
  color: #fff7e6 !important;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset;
}

.portal-eco-btn--demo:hover {
  background: linear-gradient(165deg, rgba(251, 191, 36, 0.38) 0%, rgba(245, 158, 11, 0.2) 100%) !important;
}

.portal-eco-btn--outline {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: rgba(244, 247, 255, 0.95) !important;
}

.portal-inline-more {
  font-size: 12.5px;
  font-weight: 600;
  color: #9ec5ff !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.portal-inline-more:hover {
  color: #dbeafe !important;
  text-decoration: underline !important;
}

/* Юридический подвал (редактируется в CMS → footer_legal) */
.portal-legal-foot {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  line-height: 1.55;
  color: rgba(244, 247, 255, 0.68);
  max-width: 960px;
}

.portal-legal-copy {
  margin: 0 0 14px;
  font-size: 11px;
  color: rgba(244, 247, 255, 0.55);
}

.portal-legal-columns {
  display: grid;
  gap: 14px 24px;
}

@media (min-width: 720px) {
  .portal-legal-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.portal-legal-h {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(200, 220, 255, 0.9);
}

.portal-legal-p {
  margin: 0;
  white-space: pre-wrap;
}

.portal-legal-extra {
  margin: 14px 0 0;
  font-size: 12px;
}

.portal-legal-link {
  color: #9ec5ff;
  text-decoration: none;
}

.portal-legal-link:hover {
  text-decoration: underline;
  color: #dbeafe;
}

/* Страницы /about/{slug} */
.portal-about-back {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 18, 40, 0.45);
}

.portal-about-article {
  max-width: 820px;
}

.portal-about-header {
  margin-bottom: 20px;
}

.portal-about-title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.2;
  color: #f5f8ff;
}

.portal-about-ver {
  display: inline-block;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.portal-about-ver--success {
  background: rgba(34, 197, 94, 0.2);
  color: #bbf7d0;
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.portal-about-ver--neutral {
  background: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.portal-about-ver--warning {
  background: rgba(251, 191, 36, 0.15);
  color: #fde68a;
  border: 1px solid rgba(253, 224, 120, 0.35);
}

.portal-about-h2 {
  margin: 22px 0 10px;
  font-size: 1.15rem;
  color: rgba(232, 240, 255, 0.96);
}

.portal-about-p {
  margin: 0 0 12px;
}

.portal-about-badge {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.portal-about-badge--success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.28);
  color: #bbf7d0;
}

.portal-about-badge--neutral {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
}

.portal-about-badge--warning {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(253, 224, 120, 0.28);
  color: #fde68a;
}

.portal-about-figure {
  margin: 18px 0;
  padding: 0;
}

.portal-about-figtitle {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 14px;
  color: rgba(232, 240, 255, 0.95);
}

.portal-about-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-about-figcap {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(200, 215, 245, 0.85);
  line-height: 1.45;
}

.portal-about-ul {
  margin: 10px 0 14px;
  padding-left: 1.2rem;
  color: rgba(244, 247, 255, 0.88);
  line-height: 1.45;
  font-size: 14px;
}

/* HTML из CMS (body_html), как тело новости в GuardSchool */
.portal-about-prose-body {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(232, 240, 255, 0.92);
  word-break: break-word;
}

.portal-about-prose-body h2,
.portal-about-prose-body h3 {
  margin: 1.1em 0 0.45em;
  font-size: 1.12rem;
  color: rgba(240, 245, 255, 0.96);
}

.portal-about-prose-body p {
  margin: 0 0 0.75em;
}

.portal-about-prose-body ul,
.portal-about-prose-body ol {
  margin: 0.5em 0 0.85em;
  padding-left: 1.25rem;
}

.portal-about-prose-body a {
  color: #9ec5ff;
  text-decoration: none;
}

.portal-about-prose-body a:hover {
  text-decoration: underline;
}

.portal-about-prose-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 12px 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
