:root {
  --bg: #eef3f9;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --line: rgba(25, 65, 118, 0.14);
  --text: #17314e;
  --muted: #5b6f86;
  --primary: #194176;
  --primary-strong: #12345e;
  --accent: #2e5b93;
  --accent-soft: rgba(25, 65, 118, 0.12);
  --success: #1f5b52;
  --shadow: 0 24px 60px rgba(18, 52, 94, 0.16);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(25, 65, 118, 0.16), transparent 28%),
    radial-gradient(circle at right 18%, rgba(59, 99, 152, 0.14), transparent 26%),
    linear-gradient(180deg, #edf3f9 0%, #f7faff 42%, #e9f0f8 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 88%);
}

.hero,
.section,
.footer {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.hero {
  position: relative;
  padding: 2rem 0 1rem;
}

.hero__backdrop {
  position: absolute;
  inset: 1.25rem 0 0;
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(18, 52, 94, 0.98), rgba(25, 65, 118, 0.97)),
    linear-gradient(135deg, rgba(96, 135, 186, 0.16), transparent 40%);
  box-shadow: var(--shadow);
}

.hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 36px;
  background:
    radial-gradient(circle at top right, rgba(110, 150, 204, 0.2), transparent 24%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 42%);
}

.hero__content {
  position: relative;
  padding: 1.6rem 3rem 3rem;
  color: #f7f5ef;
}

.top-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: fit-content;
  margin: 0 0 1.4rem auto;
  padding: 0.65rem 1rem;
  gap: 0.9rem;
  border-radius: 999px;
  background: rgba(7, 24, 42, 0.24);
  border: 1px solid rgba(247, 245, 239, 0.12);
  box-shadow: 0 10px 28px rgba(7, 31, 50, 0.16);
  backdrop-filter: blur(14px);
}

.top-menu > * {
  position: relative;
}

.top-menu > * + * {
  padding-left: 1rem;
}

.top-menu__link {
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: rgba(247, 245, 239, 0.84);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
  transition: color 180ms ease, opacity 180ms ease;
}

.top-menu__link--active,
.top-menu__label--active {
  color: #f7f5ef;
}

.top-menu__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-bottom: 0.9rem;
  margin-bottom: -0.9rem;
}

.top-menu__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  color: rgba(247, 245, 239, 0.84);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
  transition: color 180ms ease, opacity 180ms ease;
}

.top-menu__label::after {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.85;
}

.top-menu__submenu {
  position: absolute;
  top: calc(100% + 0.1rem);
  right: 0;
  min-width: 250px;
  padding: 0.45rem 0;
  border-radius: 18px;
  background: rgba(8, 24, 40, 0.98);
  border: 1px solid rgba(247, 245, 239, 0.1);
  box-shadow: 0 18px 38px rgba(7, 31, 50, 0.32);
  display: none;
  z-index: 20;
}

.top-menu__submenu-link {
  display: flex;
  align-items: center;
  padding: 0.78rem 1rem;
  color: rgba(247, 245, 239, 0.88);
  font-size: 0.9rem;
  line-height: 1.4;
  transition: background-color 180ms ease, color 180ms ease;
}

.top-menu__submenu-link--current {
  color: #f7f5ef;
}

.top-menu__item--has-submenu:hover .top-menu__submenu {
  display: block;
}

.top-menu__link:hover,
.top-menu__link:focus-visible,
.top-menu__item--has-submenu:hover .top-menu__label {
  color: #f7f5ef;
  opacity: 1;
}

.top-menu__submenu-link:hover,
.top-menu__submenu-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #f7f5ef;
}

.hero__identity {
  display: grid;
  grid-template-columns: minmax(300px, 390px) 1fr;
  gap: 1.75rem;
  align-items: stretch;
}

.brand-mark {
  width: 100%;
  border-radius: 36px;
  background: #ffffff;
  border: 1px solid rgba(12, 61, 99, 0.14);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(7, 31, 50, 0.18);
  padding: 1.25rem 1.5rem;
  min-height: 210px;
  height: 100%;
}

.brand-mark img {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hero__titles {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-mark__fallback {
  display: none;
  width: 78%;
  height: 78%;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(183, 138, 46, 0.24), rgba(183, 138, 46, 0.06));
  border: 1px solid rgba(183, 138, 46, 0.35);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: "Merriweather", serif;
  letter-spacing: 0.08em;
}

.brand-mark__fallback span {
  font-size: 1rem;
}

.brand-mark__fallback small {
  font-family: "Source Sans 3", sans-serif;
  letter-spacing: 0.3em;
  margin-top: 0.25rem;
}

.eyebrow,
.section-tag,
.search-box span,
.footer__note span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  font-size: 0.76rem;
}

.eyebrow {
  color: rgba(247, 245, 239, 0.74);
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: "Merriweather", serif;
  line-height: 1.12;
}

.hero h1 {
  margin-top: 0.7rem;
  font-size: clamp(2.15rem, 4vw, 4.1rem);
  max-width: 15ch;
  text-wrap: balance;
}

.hero p,
.section-heading p,
.info-card p,
.footer p {
  margin: 0;
  line-height: 1.65;
}

.hero__titles p {
  margin-top: 1rem;
  max-width: 62ch;
  color: rgba(247, 245, 239, 0.84);
  font-size: 1.08rem;
}

.hero__summary {
  max-width: none;
}

.hero__summary span {
  display: block;
  white-space: nowrap;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--primary {
  color: #0d2333;
  background: linear-gradient(180deg, #d8b56a, #bb8b2a);
}

.button--secondary {
  color: #f7f5ef;
  border: 1px solid rgba(247, 245, 239, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.info-card h3,
.access-card h3,
.footer strong {
  display: block;
}

.section {
  padding: 2.8rem 0;
}

.section-heading {
  display: grid;
  gap: 0.8rem;
}

.section-heading--row {
  grid-template-columns: 1fr minmax(260px, 320px);
  align-items: end;
  gap: 1rem;
}

.section-tag {
  color: var(--accent);
}

.section h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  max-width: 18ch;
}

.section-heading p {
  max-width: 66ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.section--intro .section-heading {
  max-width: none;
}

.section--intro h2 {
  max-width: none;
}

.section--intro h2 span {
  display: block;
  white-space: nowrap;
}

.section--intro .section-heading p {
  max-width: none;
}

.section--intro .section-heading p span {
  display: block;
  white-space: nowrap;
}

.hero--internal .hero__content {
  padding-bottom: 2.3rem;
}

.internal-hero {
  display: grid;
  gap: 0.9rem;
}

.internal-hero h1,
.internal-page__titles h1 {
  max-width: none;
}

.hero__summary--page {
  max-width: none;
}

.hero__identity--internal {
  margin-top: 0.75rem;
}

.internal-main {
  display: grid;
}

.section--embed {
  padding-top: 1.4rem;
}

.embed-card {
  border-radius: 30px;
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px rgba(7, 31, 50, 0.08);
  backdrop-filter: blur(12px);
}

.embed-card__header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

.embed-card__header h2 {
  max-width: none;
}

.embed-card__support {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
  max-width: none;
}

.embed-card__support a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.embed-card__support a:hover,
.embed-card__support a:focus-visible {
  text-decoration: underline;
}

.embed-frame-shell {
  overflow: hidden;
  border-radius: 18px;
  border: 0;
  background: transparent;
  min-height: 1060px;
}

.embed-frame {
  width: 100%;
  height: 1060px;
  border: 0;
  background: #ffffff;
  display: block;
}

.section--ouvidoria {
  padding-top: 1.4rem;
}

.section--faq {
  padding-top: 1.4rem;
}

.section--maintenance {
  padding-top: 1.4rem;
}

.maintenance-main {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.section--maintenance-logo {
  padding-bottom: 0.8rem;
}

.maintenance-logo-shell {
  width: 100%;
  margin: 0 auto;
}

.maintenance-logo-card {
  min-height: 0;
  height: auto;
  padding: 1.7rem 1.85rem;
  border-radius: 28px;
}

.maintenance-logo-card img {
  width: min(100%, 480px);
  margin: 0 auto;
}

.maintenance-layout {
  display: grid;
  gap: 1.4rem;
}

.maintenance-panel {
  padding: 1.75rem 1.85rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 20px 44px rgba(7, 31, 50, 0.08);
  backdrop-filter: blur(12px);
}

.maintenance-panel--notice {
  display: grid;
  gap: 0.95rem;
}

.maintenance-panel--notice h2,
.maintenance-panel h3 {
  max-width: none;
}

.maintenance-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.maintenance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.2rem;
}

.maintenance-panel--status {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(25, 65, 118, 0.92), rgba(18, 52, 94, 0.95)),
    linear-gradient(135deg, rgba(96, 135, 186, 0.16), transparent 40%);
  color: #f7f5ef;
}

.maintenance-panel--status::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 181, 106, 0.22), transparent 68%);
}

.maintenance-panel--status h3,
.maintenance-panel--status p {
  position: relative;
  z-index: 1;
}

.maintenance-panel--status p {
  color: rgba(247, 245, 239, 0.82);
}

.maintenance-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(247, 245, 239, 0.12);
  color: #f7f5ef;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.maintenance-status::before {
  content: "";
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: #d8b56a;
  box-shadow: 0 0 0 5px rgba(216, 181, 106, 0.14);
}

.faq-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
}

.faq-chat__launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #245299, #183e75);
  color: #f8f6f0;
  box-shadow: 0 16px 34px rgba(18, 52, 94, 0.28);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.faq-chat__launcher-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0c45a, #cf9d2c);
  box-shadow: 0 8px 18px rgba(207, 157, 44, 0.35);
  overflow: hidden;
}

.faq-chat__launcher-icon img {
  display: block;
  width: 24px;
  height: 24px;
}

.faq-chat__panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(390px, calc(100vw - 1.5rem));
  height: min(640px, calc(100vh - 7rem));
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(244, 250, 255, 0.98);
  border: 1px solid rgba(25, 65, 118, 0.14);
  box-shadow: 0 28px 70px rgba(7, 31, 50, 0.24);
  backdrop-filter: blur(16px);
}

.faq-chat__panel[hidden] {
  display: none !important;
}

.faq-chat.is-open .faq-chat__panel {
  display: grid;
}

.faq-chat__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem 1.35rem 1.1rem;
  background: linear-gradient(135deg, rgba(18, 52, 94, 0.98), rgba(34, 87, 160, 0.96));
  color: #f8f6f0;
}

.faq-chat__header strong,
.faq-chat__header span {
  display: block;
}

.faq-chat__header strong {
  font-size: 1.55rem;
  letter-spacing: 0.03em;
}

.faq-chat__header span {
  margin-top: 0.2rem;
  color: rgba(248, 246, 240, 0.78);
  font-size: 0.92rem;
}

.faq-chat__close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #f8f6f0;
  font: inherit;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.faq-chat__messages {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: 1.15rem;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(236, 248, 252, 0.94), rgba(245, 250, 255, 0.98));
}

.faq-chat__message {
  display: flex;
}

.faq-chat__message--assistant {
  justify-content: flex-start;
}

.faq-chat__message--user {
  justify-content: flex-end;
}

.faq-chat__bubble {
  max-width: 88%;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  line-height: 1.65;
  box-shadow: 0 12px 28px rgba(7, 31, 50, 0.08);
}

.faq-chat__message--assistant .faq-chat__bubble {
  background: #ffffff;
  color: var(--muted);
  border: 1px solid rgba(25, 65, 118, 0.08);
}

.faq-chat__message--assistant .faq-chat__bubble strong {
  color: var(--primary);
}

.faq-chat__message--user .faq-chat__bubble {
  background: linear-gradient(135deg, #245299, #183e75);
  color: #f8f6f0;
}

.faq-chat__bubble a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.faq-chat__suggestions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0 1.1rem 0.9rem;
  background: rgba(244, 250, 255, 0.98);
}

.faq-chat__suggestions[hidden] {
  display: none !important;
}

.faq-chat__chip {
  border: 1px solid rgba(25, 65, 118, 0.14);
  border-radius: 999px;
  background: rgba(25, 65, 118, 0.06);
  color: var(--primary);
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.faq-chat__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
  padding: 1rem 1.1rem 1.15rem;
  background: #ffffff;
  border-top: 1px solid rgba(25, 65, 118, 0.08);
}

.faq-chat__input {
  min-height: 52px;
  border: 1px solid rgba(25, 65, 118, 0.14);
  border-radius: 18px;
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--text);
  background: rgba(223, 245, 245, 0.72);
}

.faq-chat__input:focus {
  outline: none;
  border-color: rgba(25, 65, 118, 0.34);
  box-shadow: 0 0 0 4px rgba(25, 65, 118, 0.08);
}

.faq-chat__send {
  min-width: 92px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #7ac18a, #5ea670);
  color: #f8f6f0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.faq-layout {
  display: grid;
  gap: 1.5rem;
}

.faq-panel,
.faq-item {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(7, 31, 50, 0.06);
  backdrop-filter: blur(10px);
}

.faq-panel {
  padding: 1.6rem;
}

.faq-panel--intro {
  display: grid;
  gap: 0.9rem;
}

.faq-panel--intro h2,
.faq-section__heading h2 {
  margin: 0;
  font-family: "Merriweather", serif;
  line-height: 1.15;
  color: var(--primary);
  max-width: none;
}

.faq-panel--intro p,
.faq-section__heading p,
.faq-item__body {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.faq-section {
  display: grid;
  gap: 0.9rem;
}

.faq-section__heading {
  display: grid;
  gap: 0.45rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid rgba(25, 65, 118, 0.28);
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  overflow: hidden;
}

.faq-item[open] {
  border-color: rgba(25, 65, 118, 0.18);
}

.faq-item__summary {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.9rem;
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.25rem;
  color: var(--text);
  font-weight: 700;
}

.faq-item__summary::-webkit-details-marker {
  display: none;
}

.faq-item__summary::after {
  content: "+";
  margin-left: auto;
  color: var(--primary);
  font-size: 1.25rem;
  line-height: 1;
}

.faq-item[open] .faq-item__summary::after {
  content: "−";
}

.faq-item__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  border-radius: 14px;
  background: rgba(25, 65, 118, 0.08);
  color: var(--primary);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
}

.faq-item__question {
  padding-top: 0.45rem;
}

.faq-item__content {
  padding: 0 1.25rem 1.25rem;
}

.faq-item__body a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.faq-item__body a:hover,
.faq-item__body a:focus-visible {
  text-decoration: underline;
}

.ouvidoria-layout {
  display: grid;
  gap: 1.5rem;
}

.ouvidoria-panel,
.ouvidoria-action__card,
.ouvidoria-box,
.ouvidoria-card {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(7, 31, 50, 0.06);
  backdrop-filter: blur(10px);
}

.ouvidoria-panel {
  padding: 1.6rem;
}

.ouvidoria-panel--intro {
  display: grid;
  gap: 0.9rem;
}

.ouvidoria-panel--intro h2,
.ouvidoria-action__card h2,
.ouvidoria-section__heading h2 {
  margin: 0;
  font-family: "Merriweather", serif;
  line-height: 1.15;
}

.ouvidoria-panel--intro h2,
.ouvidoria-action__card h2 {
  color: var(--primary);
  max-width: none;
}

.ouvidoria-panel--intro p,
.ouvidoria-action__card p,
.ouvidoria-box p,
.ouvidoria-card p,
.ouvidoria-alert {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.ouvidoria-action__card {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.95rem;
  padding: 1.8rem 1.5rem;
}

.button--success {
  color: #f8f6f0;
  background: linear-gradient(180deg, #2f7b4f, #22613e);
}

.ouvidoria-section {
  display: grid;
  gap: 0.9rem;
}

.ouvidoria-section__heading {
  padding-bottom: 0.55rem;
  border-bottom: 2px solid rgba(31, 91, 82, 0.72);
}

.ouvidoria-section__heading h2 {
  color: #244a86;
}

.ouvidoria-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.ouvidoria-card {
  padding: 1.15rem;
}

.ouvidoria-card h3 {
  margin: 0 0 0.6rem;
  color: #244a86;
  font-size: 1.2rem;
}

.ouvidoria-card--wide {
  grid-column: 1 / -1;
}

.ouvidoria-box {
  padding: 1.25rem 1.35rem;
}

.ouvidoria-box--soft {
  background: rgba(255, 255, 255, 0.7);
}

.ouvidoria-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.8;
}

.ouvidoria-contact-list {
  display: grid;
  gap: 1rem;
}

.ouvidoria-contact-list strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.ouvidoria-contact-list a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.ouvidoria-contact-list a:hover,
.ouvidoria-contact-list a:focus-visible {
  text-decoration: underline;
}

.ouvidoria-alert {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border-left: 4px solid #2f7b4f;
  background: rgba(31, 91, 82, 0.08);
}

.ouvidoria-alert strong {
  color: var(--text);
}

.section--downloads {
  padding-top: 1.4rem;
}

.downloads-layout {
  display: grid;
  gap: 1.5rem;
}

.downloads-panel,
.downloads-placeholder {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(7, 31, 50, 0.06);
  backdrop-filter: blur(10px);
}

.downloads-panel {
  padding: 1.6rem;
}

.downloads-panel--intro {
  display: grid;
  gap: 0.9rem;
}

.downloads-panel--intro h2,
.downloads-section__heading h2 {
  margin: 0;
  font-family: "Merriweather", serif;
  line-height: 1.15;
}

.downloads-panel--intro h2 {
  color: var(--primary);
  max-width: none;
  width: 100%;
}

.downloads-panel--intro p,
.downloads-placeholder p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.downloads-section {
  display: grid;
  gap: 0.9rem;
}

.downloads-section__heading {
  padding-bottom: 0.55rem;
  border-bottom: 2px solid rgba(25, 65, 118, 0.28);
}

.downloads-section__heading h2 {
  color: #244a86;
}

.downloads-placeholder {
  padding: 1.35rem 1.45rem;
  display: grid;
  gap: 0.7rem;
}

.downloads-placeholder strong {
  color: var(--text);
}

.downloads-browser {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.downloads-sidebar,
.downloads-content {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(7, 31, 50, 0.06);
  backdrop-filter: blur(10px);
}

.downloads-sidebar {
  padding: 1rem;
  align-self: start;
}

.downloads-sidebar__header {
  padding: 0.3rem 0.25rem 0.8rem;
}

.downloads-sidebar__list {
  display: grid;
  gap: 0.45rem;
}

.downloads-sidebar__link {
  display: block;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.4;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.downloads-sidebar__link:hover,
.downloads-sidebar__link:focus-visible {
  background: rgba(25, 65, 118, 0.08);
  color: var(--primary);
  transform: translateX(2px);
}

.downloads-sidebar__link.is-active {
  background: rgba(25, 65, 118, 0.12);
  color: var(--primary);
}

.downloads-content {
  padding: 1.1rem;
  display: grid;
  gap: 1.25rem;
}

.downloads-toolbar {
  display: grid;
  gap: 0.55rem;
}

.downloads-toolbar h2 {
  margin: 0;
  max-width: none;
}

.downloads-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.downloads-breadcrumbs a {
  color: var(--primary);
  font-weight: 700;
}

.downloads-group {
  display: grid;
  gap: 0.8rem;
}

.downloads-group h3 {
  margin: 0;
  color: var(--primary);
  font-size: 1.15rem;
}

.downloads-folder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.downloads-folder-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(25, 65, 118, 0.06);
  border: 1px solid rgba(25, 65, 118, 0.12);
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.downloads-folder-card strong {
  color: var(--text);
}

.downloads-folder-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.downloads-folder-card:hover,
.downloads-folder-card:focus-visible {
  transform: translateY(-2px);
  background: rgba(25, 65, 118, 0.1);
  border-color: rgba(25, 65, 118, 0.18);
}

.downloads-file-list {
  display: grid;
  gap: 0.7rem;
}

.downloads-file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(25, 65, 118, 0.1);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.downloads-file-item:hover,
.downloads-file-item:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(25, 65, 118, 0.18);
  box-shadow: 0 14px 28px rgba(7, 31, 50, 0.06);
}

.downloads-file-item__meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.downloads-file-item__meta strong,
.downloads-file-item__meta small {
  display: block;
}

.downloads-file-item__meta strong {
  color: var(--text);
  word-break: break-word;
}

.downloads-file-item__meta small {
  color: var(--muted);
  margin-top: 0.2rem;
}

.downloads-file-item__ext {
  flex: 0 0 auto;
  min-width: 52px;
  text-align: center;
  padding: 0.45rem 0.55rem;
  border-radius: 12px;
  background: rgba(25, 65, 118, 0.1);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.downloads-file-item__action {
  flex: 0 0 auto;
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}

.info-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}

.info-card,
.access-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(7, 31, 50, 0.06);
  backdrop-filter: blur(10px);
}

.info-card {
  padding: 1.5rem;
}

.info-card--link {
  display: block;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.info-card--link:hover,
.info-card--link:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(25, 65, 118, 0.24);
  box-shadow: 0 22px 42px rgba(7, 31, 50, 0.1);
}

.info-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.info-card p {
  color: var(--muted);
}

.search-box {
  display: grid;
  gap: 0.5rem;
}

.search-box input {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(25, 65, 118, 0.14);
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-box input:focus {
  border-color: rgba(25, 65, 118, 0.42);
  box-shadow: 0 0 0 4px rgba(25, 65, 118, 0.08);
}

.segment-toggle {
  display: inline-flex;
  padding: 0.35rem;
  gap: 0.35rem;
  margin-top: 1.5rem;
  border-radius: 999px;
  background: rgba(25, 65, 118, 0.07);
  border: 1px solid rgba(25, 65, 118, 0.08);
}

.segment-toggle__button {
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-weight: 700;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}

.segment-toggle__button.is-active {
  background: var(--primary);
  color: #f8f6f0;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.access-card {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  overflow: hidden;
  transform: translateY(12px);
  opacity: 0;
  animation: revealUp 520ms ease forwards;
}

.access-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #4f74a5, var(--accent));
}

.access-card__header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}

.access-card__category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.access-card__category[data-category="cidadao"] {
  background: rgba(31, 91, 82, 0.12);
  color: var(--success);
}

.access-card h3 {
  margin: 0.25rem 0 0;
  font-size: 1.2rem;
}

.access-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.access-card__footer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.access-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--primary);
  color: #f8f6f0;
  font-weight: 700;
}

.access-card__meta {
  color: var(--muted);
  font-size: 0.94rem;
}

.access-empty {
  grid-column: 1 / -1;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(25, 65, 118, 0.18);
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.8rem;
  padding: 1.75rem 2rem 2rem;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(18, 52, 94, 0.98), rgba(25, 65, 118, 0.95)),
    linear-gradient(135deg, rgba(96, 135, 186, 0.16), transparent 40%);
  box-shadow: var(--shadow);
  color: rgba(247, 245, 239, 0.76);
}

.footer strong {
  color: #f8f6f0;
  margin-bottom: 0.45rem;
}

.footer__note {
  max-width: 330px;
}

.footer__note span {
  color: rgba(247, 245, 239, 0.72);
}

.footer__cetif {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 140px;
}

.footer__cetif img {
  width: min(150px, 100%);
  height: auto;
  object-fit: contain;
}

code {
  padding: 0.15rem 0.4rem;
  border-radius: 8px;
  background: rgba(25, 65, 118, 0.08);
  color: var(--primary-strong);
}

.footer code {
  background: rgba(255, 255, 255, 0.1);
  color: #f8f6f0;
}

@keyframes revealUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 960px) {
  .hero__content {
    padding: 2rem;
  }

  .info-panels,
  .downloads-folder-grid,
  .ouvidoria-grid,
  .embed-card__header,
  .section-heading--row,
  .footer {
    grid-template-columns: 1fr;
  }

  .downloads-browser {
    grid-template-columns: 1fr;
  }

  .maintenance-grid {
    grid-template-columns: 1fr;
  }

  .access-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading--row,
  .footer {
    display: grid;
  }
}

@media (max-width: 720px) {
  .hero,
  .section,
  .footer {
    width: min(calc(100% - 1rem), var(--content-width));
  }

  .hero__identity {
    grid-template-columns: 1fr;
    align-items: center;
  }

  .brand-mark {
    width: min(100%, 320px);
    min-height: 0;
    height: auto;
  }

  .hero__content {
    padding: 1.5rem;
  }

  .hero__summary span,
  .section--intro h2 span,
  .section--intro .section-heading p span {
    white-space: normal;
  }

  .embed-card {
    padding: 1rem;
  }

  .ouvidoria-panel,
  .ouvidoria-action__card,
  .ouvidoria-box,
  .ouvidoria-card,
  .downloads-panel,
  .downloads-placeholder,
  .downloads-sidebar,
  .downloads-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .downloads-file-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .downloads-file-item__meta {
    width: 100%;
  }

  .embed-frame-shell,
  .embed-frame {
    min-height: 75vh;
    height: 75vh;
  }

  .top-menu {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 22px;
  }

  .top-menu > * + * {
    padding-left: 0;
  }

  .top-menu__link,
  .top-menu__item {
    width: 100%;
  }

  .top-menu__submenu {
    left: 0;
    right: auto;
    min-width: min(280px, calc(100vw - 3rem));
  }

  .hero__actions,
  .segment-toggle {
    width: 100%;
  }

  .button,
  .segment-toggle__button,
  .access-card__link {
    width: 100%;
  }

  .access-grid {
    grid-template-columns: 1fr;
  }

  .segment-toggle {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .access-card__header,
  .access-card__footer {
    flex-direction: column;
    align-items: start;
  }

  .faq-chat {
    right: 12px;
    left: 12px;
    bottom: 12px;
  }

  .faq-chat__panel {
    right: 0;
    width: 100%;
    height: min(72vh, 620px);
  }

  .faq-chat__launcher {
    margin-left: auto;
  }
}
