﻿.portal-header,
.portal-footer,
.portal-page {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.portal-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(16px);
}

.portal-header__inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1b5e20;
  font-size: 1.1rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.portal-brand img {
  width: 38px;
  height: 38px;
  padding: 4px;
  border-radius: 9px;
  background: #f0fdf4;
}

.portal-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 1;
  flex-wrap: wrap;
}

.portal-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  color: #374151;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.portal-nav a:hover,
.portal-nav a[aria-current="page"] {
  color: #1b5e20;
  background: #e8f5e9;
  text-decoration: none;
}

.portal-main-band {
  background: #f8fffe;
}

.portal-footer {
  background: #111827;
  color: #d1d5db;
  margin-top: 64px;
  padding: 34px 16px;
}

.portal-footer__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.portal-footer__brand {
  color: #fff;
  font-weight: 850;
}

.portal-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.portal-footer a {
  color: #a7f3d0;
  font-weight: 700;
  text-decoration: none;
}

.portal-footer a:hover { text-decoration: underline; }

.portal-legacy-hidden {
  display: none !important;
}

.portal-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 24px;
}

.portal-page h1 {
  margin: 0 0 12px;
  color: #1f2937;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  font-weight: 800;
}

.portal-page .lead {
  max-width: 760px;
  color: #4b5563;
  font-size: 1.1rem;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.portal-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.portal-card h2,
.portal-card h3 {
  margin: 0 0 10px;
  color: #1b5e20;
  font-weight: 800;
}

.portal-card p { color: #4b5563; }

.portal-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.portal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 12px;
  color: #fff;
  background: #2e7d32;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.portal-button.secondary {
  color: #1b5e20;
  background: #e8f5e9;
}

[data-lang-panel] { display: none; }
[data-lang-panel].is-active { display: block; }

@media (max-width: 820px) {
  .portal-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .portal-nav {
    justify-content: flex-start;
  }
}
