:root {
  --blue: #00588c;
  --blue-deep: #004f8a;
  --blue-ink: #243263;
  --blue-soft: #e5f3e8;
  --blue-wash: #f3f7f4;
  --green: #05801b;
  --gold: #e9962c;
  --ink: #16191c;
  --muted: #5c676e;
  --line: #e3e8ee;
  --card: #ffffff;
  --bg: #ffffff;
  --shadow: 0 10px 30px rgba(16, 42, 77, 0.06);
  --radius: 16px;
  --header: 76px;
  --max: 1180px;
  --font: "Open Sans", "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
body.a11y-gray { filter: grayscale(1); }
body.a11y-invert { filter: invert(1) hue-rotate(180deg); }
body.a11y-gray.a11y-invert { filter: grayscale(1) invert(1) hue-rotate(180deg); }
body.a11y-links a { text-decoration: underline; outline: 2px solid #f5b400; outline-offset: 2px; }
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font-family: inherit; }
:focus-visible { outline: 3px solid #f5b400; outline-offset: 2px; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { top: 8px; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.wrap-wide { width: min(1220px, calc(100% - 40px)); margin: 0 auto; }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.header.scrolled { border-bottom-color: var(--line); }
.header-bar {
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--blue);
  display: grid;
  place-items: center;
  color: #fff;
}
.brand-name { font-weight: 800; font-size: 1.22rem; letter-spacing: -0.04em; }
.brand-name span { font-weight: 750; color: var(--green); }
.brand-logo { height: 46px; width: auto; max-width: 220px; object-fit: contain; object-position: left center; }

.nav { display: flex; align-items: stretch; gap: 2px; margin-left: 8px; flex: 1; height: 100%; }
.nav-item { position: static; display: flex; align-items: stretch; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0 10px;
  color: #243038;
  font-weight: 600;
  font-size: 0.95rem;
  background: none;
  border: 0;
  cursor: pointer;
  border-radius: 10px;
  text-decoration: none;
}
.nav-link:hover, .nav-item.open .nav-link, .nav-link[aria-current="page"] {
  background: var(--blue-wash);
  text-decoration: none;
  color: var(--blue-ink);
}
.header-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.marca-estado { display: inline-flex; align-items: center; margin-left: 8px; }
.marca-estado img { height: 38px; width: auto; }
.icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  color: #243038;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.icon-btn:hover { background: var(--blue-wash); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.1;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { background: #fff; color: var(--blue); border-color: #c9d7e8; }
.btn-ghost:hover { background: var(--blue-wash); }
.btn-white { background: #fff; color: var(--blue-ink); }
.btn-white:hover { background: #f4f8fc; }
.btn-gov { padding: 10px 12px; font-size: 0.86rem; white-space: nowrap; }
.menu-toggle { display: none; }

.mega {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header);
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(16, 42, 77, 0.08);
  padding: 28px 0 32px;
}
.nav-item.open .mega, .nav-item:hover .mega { display: block; }
.mega-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 280px;
  gap: 28px;
}
.mega-col h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.98rem;
}
.mega-col h3 .material-symbols-outlined { color: var(--blue); }
.mega-col a {
  display: block;
  color: #2a343c;
  padding: 5px 0;
  font-size: 0.92rem;
}
.mega-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 8px;
  font-weight: 700;
}
.mega-aside {
  background: var(--blue-wash);
  border-radius: 18px;
  padding: 18px;
}
.mega-aside strong { display: block; margin-bottom: 6px; }
.mega-aside p { margin: 0 0 14px; color: var(--muted); font-size: 0.92rem; }

.hero { padding: 64px 0 28px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.hero-logo { margin: 0 0 28px; }
.hero-logo img { width: min(460px, 100%); height: auto; }
.hero .lede { color: var(--muted); font-size: 1.05rem; margin: 14px 0 22px; max-width: 520px; }
.searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d5dee8;
  border-radius: 999px;
  padding: 6px 8px 6px 18px;
  background: #fff;
  max-width: 640px;
}
.searchbar:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 88, 140, 0.14); }
.searchbar input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 1rem;
  padding: 10px 0;
  background: transparent;
  min-width: 0;
}
.searchbar button { border: 0; background: transparent; color: var(--muted); cursor: pointer; }

.hero-art { justify-self: end; width: min(560px, 100%); }
.hero-art a { display: block; }
.hero-art img { width: 100%; height: auto; border-radius: 24px; }
.section { padding: 52px 0 28px; }
.section h2 { margin: 0 0 18px; font-size: 1.65rem; letter-spacing: -0.03em; font-weight: 700; }
.section .sub { margin: 0 0 20px; color: var(--muted); }

.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs.spread { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; }
.tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 14px 8px 12px;
  font-weight: 700;
  color: #4d5961;
  cursor: pointer;
  white-space: nowrap;
}
.tabs.spread .tab { text-align: center; }
.tab[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px 20px;
  color: inherit;
  min-height: 0;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.card:hover { text-decoration: none; border-color: #b9cfea; box-shadow: var(--shadow); transform: translateY(-2px); }
.card .material-symbols-outlined { color: var(--blue); font-size: 28px; }
.svc-ico { width: 42px; height: 42px; object-fit: contain; }
.ai-box {
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
  max-width: 640px;
}
.ai-box[hidden] { display: none !important; }
.ai-box .ai-text { margin: 6px 0 12px; color: #243038; }
.overlay-card .ai-box { max-width: none; }
.busca-hero { background: var(--blue); color: #fff; padding: 42px 0 32px; }
.busca-hero h1 { color: #fff; margin: 0; font-size: clamp(1.7rem, 3vw, 2.35rem); letter-spacing: -0.03em; }
.busca-hero .accent { width: 52px; height: 4px; background: #fff; border-radius: 2px; margin: 14px 0 18px; }
.busca-hero .searchbar { background: #fff; max-width: 680px; }
.busca-list { display: grid; gap: 18px; padding: 28px 0 56px; }
.busca-item { border: 1px solid #d5dde6; border-radius: 4px; padding: 26px 26px 18px; background: #fff; }
.busca-item h2 { margin: 0 0 12px; font-size: clamp(1.35rem, 2vw, 1.85rem); letter-spacing: -0.03em; line-height: 1.2; }
.busca-item h2 a { color: var(--ink); }
.busca-item h2 a:hover { color: var(--blue); }
.busca-item p { margin: 0 0 14px; color: #2c3338; }
.busca-item .mais { font-weight: 800; letter-spacing: 0.06em; font-size: 0.82rem; text-transform: uppercase; }
.ai-more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ai-more a { font-size: 0.88rem; font-weight: 700; }
.portal-logo { height: 36px; width: auto; }
.foot-brand { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.foot-brand img { height: 36px; width: auto; }
.mapa-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.mapa-grade a { display: block; padding: 3px 0; color: #314049; font-size: 0.92rem; }
.mapa-grade h3 { margin: 0 0 8px; font-size: 1rem; }
.noticia-foto { width: 100%; max-height: 420px; object-fit: cover; border-radius: 18px; margin-bottom: 16px; }
.form-oficial { width: 100%; height: 1900px; min-height: 720px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: block; margin: 8px 0 24px; }
.ao-vivo { margin: 8px 0 28px; }
.ao-vivo .form-oficial { height: 1900px; }
.card strong { font-size: 1.02rem; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.center { display: flex; justify-content: center; margin-top: 22px; }

.portal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: #e7f2fa;
  border-radius: 16px;
  padding: 20px 28px;
}
.portal .btn { width: auto; }
.portal strong { letter-spacing: 0.01em; font-size: 1.05rem; }
.portal p { margin: 0; color: #314049; }

.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cat {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s, transform .15s;
}
a.cat:hover { text-decoration: none; box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-art { height: 148px; }
.cat-art img { width: 100%; height: 148px; object-fit: cover; }
.cat-body { padding: 16px 16px 18px; }
.cat-body strong { display: block; margin-bottom: 4px; }
.cat-body p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.plate-band {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 22px;
}
.plate-band h2 { font-size: 1.35rem; }
.digits { display: flex; flex-wrap: wrap; gap: 8px; }
.digit {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #c9d8ea;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
  color: var(--ink);
}
.digit[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.plate-result { margin: 10px 0 0; font-weight: 700; min-height: 1.4em; }
.fine { color: var(--muted); font-size: 0.82rem; font-weight: 500; }

.slider { position: relative; }
.slide {
  display: none;
  background: linear-gradient(110deg, #004f8a 0%, #00588c 58%, #05801b 140%);
  color: #fff;
  border-radius: 28px;
  min-height: 280px;
  padding: 42px 64px;
  align-items: center;
  gap: 24px;
  overflow: hidden;
}
.slide.active { display: flex; }
.slide.photo { padding: 0; min-height: 0; background: transparent; display: none; }
.slide.photo.active { display: block; }
.slide.photo img { width: 100%; height: 340px; object-fit: cover; object-position: center; border-radius: 20px; display: block; }
.slide-copy { max-width: 560px; position: relative; z-index: 1; }
.slide h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -0.04em; margin: 0 0 8px; }
.slide p { margin: 0 0 18px; font-size: 1.05rem; }
.slide .btn-white { color: var(--blue-ink); }
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  z-index: 2;
  display: grid;
  place-items: center;
}
.slider-btn.prev { left: 14px; }
.slider-btn.next { right: 14px; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.dots button {
  width: 8px; height: 8px; border-radius: 99px; border: 0; background: #c5d0dc; cursor: pointer; padding: 0;
}
.dots button[aria-current="true"] { width: 22px; background: var(--blue); }

.news-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.news-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  color: inherit;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
a.news-card:hover { text-decoration: none; box-shadow: var(--shadow); }
.news-card img.cover { width: 100%; height: 188px; object-fit: cover; }
.news-card .band { height: 8px; background: var(--blue); }
.news-card .body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kicker { color: var(--blue); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.news-card strong { font-size: 1.05rem; letter-spacing: -0.02em; }
.news-card p { margin: 0; color: var(--muted); }
.news-card .date { margin-top: auto; color: #7b868e; font-size: 0.85rem; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.promo {
  border-radius: 18px;
  padding: 22px;
  background: #0e2744;
  color: #fff;
}
.promo.alt { background: #eef5fc; color: var(--ink); }
.promo h3 { margin: 0 0 6px; font-size: 1.25rem; }
.promo p { margin: 0 0 14px; }

.faq-tabs { margin-bottom: 8px; }
.acc { border: 1px solid var(--line); border-radius: 16px; margin-top: 12px; overflow: hidden; background: #fff; }
.acc button {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: var(--ink);
}
.acc .panel { display: none; padding: 0 20px 18px; color: #2c3840; }
.acc.open .panel { display: block; }
.acc a { font-weight: 700; }

.social {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 8px 0 10px;
}
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink);
}
.social-links a:hover { background: var(--blue-wash); text-decoration: none; }

.footer { background: #f7f9fb; border-top: 1px solid var(--line); padding: 36px 0 18px; margin-top: 10px; }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.footer h3 { margin: 0 0 8px; font-size: 0.95rem; }
.footer a { display: block; color: #314049; padding: 4px 0; font-size: 0.92rem; }
.legal {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.page-head { padding: 28px 0 8px; }
.page-head h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.04em; }
.crumb { color: var(--muted); font-size: 0.88rem; margin-bottom: 8px; }
.crumb a { color: var(--muted); }
.filters { display: flex; gap: 12px; align-items: center; margin: 8px 0 18px; }
.filters .searchbar { flex: 1; max-width: none; }
.list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.list a.card { min-height: 0; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--blue-soft);
  color: var(--blue-ink);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.split { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; padding-bottom: 40px; }
.prose .plate-band { grid-template-columns: 1fr; }
.prose h2, .prose h3, .prose h4, .prose h5 { font-size: 1.15rem; margin: 22px 0 8px; }
.prose a { font-weight: 700; }
.prose a.acao {
  display: inline-flex;
  align-items: center;
  margin: 0 8px 12px 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.prose a.acao[data-voltar] {
  background: #fff;
  color: var(--blue);
  border: 1px solid #c9d7e8;
}
.prose a.acao:hover { text-decoration: none; }
.prose ul, .prose ol { margin: 8px 0 0; padding-left: 18px; }
.prose li { margin: 6px 0; }
.side {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.side p { margin: 0 0 6px; color: var(--muted); font-size: 0.9rem; }
.note {
  background: #f7fafc;
  border-radius: 14px;
  padding: 12px 14px;
  color: #314049;
  font-size: 0.92rem;
}
.empty { padding: 28px; border: 1px dashed #c9d4e0; border-radius: 16px; color: var(--muted); }

.a11y-pop {
  position: absolute;
  right: 20px;
  top: 68px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  min-width: 220px;
  z-index: 50;
}
.a11y-pop.open { display: grid; gap: 4px; }
.a11y-pop button {
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 650;
}
.a11y-pop button:hover, .a11y-pop button[aria-pressed="true"] { background: var(--blue-wash); }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 22, 34, 0.45);
  z-index: 60;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 16px;
}
.overlay.open { display: flex; }
.overlay-card {
  width: min(680px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 16px;
}
.suggest { display: grid; margin-top: 8px; }
.suggest a { padding: 10px 8px; border-top: 1px solid var(--line); color: var(--ink); }
.suggest a:hover { background: var(--blue-wash); text-decoration: none; }

.floaters {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 30;
}
.floaters a {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}
.floaters a:hover { text-decoration: none; transform: translateY(-1px); }
.float-wa { background: #1fa855; }
.float-chat { background: var(--blue); }

.drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  max-height: calc(100vh - var(--header));
  overflow: auto;
  padding: 8px 20px 24px;
}
.drawer.open { display: block; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary { padding: 14px 0; font-weight: 800; cursor: pointer; }
.drawer a { display: block; padding: 7px 0; color: #243038; }

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
  font-size: 22px;
  line-height: 1;
  vertical-align: middle;
}

@media (max-width: 980px) {
  .brand-logo { height: 36px; max-width: 148px; }
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .hero-grid, .cards, .cats, .news-grid, .split, .foot-grid, .duo, .portal, .plate-band, .mega-grid {
    grid-template-columns: 1fr;
  }
  .tabs.spread { display: flex; }
  .portal { flex-direction: column; align-items: flex-start; }
  .cards, .list { grid-template-columns: 1fr 1fr; }
  .hero-art { justify-self: center; }
  .slide { padding: 28px 22px; min-height: 240px; }
  .slider-btn.prev { left: 8px; }
  .slider-btn.next { right: 8px; }
  .side { position: static; }
  .btn-gov span.full { display: none; }
  .marca-estado { margin-left: 4px; }
  .marca-estado img { height: 28px; }
}
@media (max-width: 640px) {
  .wrap, .wrap-wide { width: min(100% - 28px, var(--max)); }
  .cards, .list, .cats, .news-grid { grid-template-columns: 1fr; }
  .slide { flex-direction: column; align-items: flex-start; padding: 28px 52px; }
  .slide svg { display: none; }
  .hero-logo img { width: min(320px, 100%); }
  .header-bar { gap: 8px; }
  .social { flex-direction: column; align-items: flex-start; }
  .legal { flex-direction: column; }
}
.sp-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.sp-steps li { display: flex; gap: 12px; align-items: flex-start; color: #243038; }
.sp-steps span {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}
.consult-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 8px 8px 16px;
}
.consult-viewport {
  position: relative;
  overflow: hidden;
  height: 390px;
  border-radius: 16px;
  background: #fff;
}
.consult-viewport iframe {
  position: absolute;
  top: -236px;
  left: 8px;
  width: 760px;
  height: 980px;
  border: 0;
  background: #fff;
}
.consult-card.result .consult-viewport { height: auto; min-height: 780px; overflow: visible; }
.consult-card.result .consult-viewport iframe {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 1500px;
}
.consult-actions [hidden] { display: none !important; }
.consult-actions { display: flex; justify-content: flex-end; padding: 4px 12px 0; }
.consult-note { margin: 10px 12px 0; }
.consult-hint { display: none; margin: 0 12px 8px; }

.form-grid { display: grid; gap: 14px; max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-weight: 700; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  border: 1px solid #c9d5de;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
}
.field input, .field select { height: 48px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus { outline: 3px solid rgba(0, 88, 140, 0.2); border-color: var(--blue); }
.result {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.result header {
  padding: 16px 18px;
  background: var(--blue-ink);
  color: #fff;
}
.result header strong { display: block; font-size: 1.05rem; }
.result header p { margin: 4px 0 0; color: #d5e4ea; }
.result .body { padding: 16px 18px 18px; }
.result table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.result th, .result td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.result th { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.03em; text-transform: uppercase; }
.blocker {
  background: #f7f4ee;
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 14px 16px;
}
.blocker strong { display: block; margin-bottom: 6px; }
.ok-line { color: var(--green); font-weight: 800; }

body.is-embed { overflow: hidden; background: #fff; }
.embed-shell {
  height: calc(100vh - var(--header));
  display: flex;
  flex-direction: column;
  background: #fff;
}
.embed-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 22px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.embed-bar strong {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}
.embed-shell iframe {
  flex: 1;
  width: 100%;
  border: 0;
  background: #fff;
}
.embed-empty { padding: 28px 22px; color: var(--muted); }

@media (max-width: 820px) {
  .consult-hint { display: block; }
  .consult-viewport { height: 400px; overflow-x: auto; overflow-y: hidden; }
  .consult-viewport iframe { transform: none; top: -236px; left: 8px; width: 760px; }
  .consult-card.result .consult-viewport { overflow: visible; height: auto; }
  .consult-card.result .consult-viewport iframe { transform: none; top: 0; left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .slide { transition: none; }
}
