:root {
  --navy: #12284a;
  --navy-deep: #0e1f3a;
  --gold: #f6b221;
  --ink: #1f2736;
  --muted: #596170;
  --paper: #f4f4f5;
  --panel: #d9dfe8;
  --white: #ffffff;
  --blue-btn: #005ea2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.top-gov-bar {
  background: #f6f7f8;
  font-size: 14px;
  padding: 8px 16px;
  color: #2b3c59;
}

.main-header {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  color: var(--white);
}

.header-inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}

.seal {
  width: 66px;
  border-radius: 25%;
  border: 2px solid var(--gold);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #ffffff;
}

.seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 4px;
  display: block;
}

.brand-text p {
  margin: 0;
  font-size: 15px;
  opacity: 0.9;
}

.brand-text h1 {
  margin: 0;
  letter-spacing: 0.06em;
  font-family: "Merriweather", serif;
  font-size: 40px;
}

.header-actions {
  display: flex;
  gap: 14px;
}

.header-actions a,
.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

.nav-bar {
  background: #272727;
}

.nav-links {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.crumbs-wrap {
  background: #eceef2;
  border-bottom: 1px solid #dbdee5;
}

.container {
  width: min(800px, 92vw);
  margin: 0 auto;
}

.crumbs {
  color: #36527b;
  font-size: 18px;
  padding: 16px 0;
}

.hero {
  padding: 28px 0 34px;
  background: #f7f7f8;
}

.hero h2,
h3,
.lead {
  font-family: "Merriweather", serif;
}

.hero h2 {
  color: var(--navy);
  font-size: clamp(36px, 6vw, 54px);
  margin: 0 0 16px;
}

.hero h2,
.privacy-block h3,
.search-block h3 {
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.hero h2::after,
.privacy-block h3::after,
.search-block h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 8px;
  background:
    linear-gradient(var(--gold), var(--gold)) top left / 44px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom left / 44px 2px no-repeat;
}

.share-row {
  display: inline-block;
  background: #0f638f;
  color: var(--white);
  padding: 8px 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.share-row:hover,
.share-row:focus-visible {
  background: #0b4f73;
}

.share-feedback {
  margin: 8px 0 0;
  min-height: 20px;
  color: #2b3c59;
  font-size: 14px;
}

.privacy-block {
  background: var(--panel);
  padding: 42px 0;
}

.privacy-block h3,
.intro-block h3,
.search-block h3 {
  color: var(--navy);
  font-size: clamp(32px, 4vw, 48px);
  margin: 0 0 10px;
  font-size: 25px;
}

.privacy-block p {
  margin: 0;
  color: #25364f;
  font-size: 28px;
  line-height: 1.35;
    font-size: 12px;
}

.intro-block {
  padding: 42px 0;
}

.lead {
  font-size: clamp(30px, 3.3vw, 46px);
  color: #2a3040;
  line-height: 1.2;
  margin: 0 0 20px;
}

.warn {
  margin: 0 0 20px;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 700;
  font-style: italic;
}

.last-updated {
  color: var(--muted);
  font-size: 32px;
  font-style: italic;
  margin: 0;
}

.search-block {
  background: #ededed;
  padding: 46px 0;
}

.search-row {
  display: flex;
  gap: 10px;
}

.search-row input {
  flex: 1;
  border: 1px solid #9ea5b0;
  padding: 12px;
  font-size: 20px;
}

.search-row button {
  border: none;
  background: var(--blue-btn);
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  padding: 12px 22px;
  cursor: pointer;
}

.search-note {
  margin-top: 26px;
  color: #555f6f;
  font-size: 24px;
}

.status-line {
  color: #0e548c;
  font-size: 21px;
  min-height: 28px;
}

.log-panel {
  margin-top: 14px;
  background: #ffffff;
  border: 1px solid #ced5df;
  padding: 12px;
}

.log-panel h4 {
  margin: 0 0 8px;
  color: #153a66;
  font-family: "Merriweather", serif;
}

.log-feed {
  max-height: 220px;
  overflow: auto;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
  background: #0f1f3a;
  color: #e6edfb;
  padding: 8px;
}

.log-line {
  margin: 0 0 4px;
  word-break: break-word;
}

.log-line.error {
  color: #ffadb3;
}

.results-wrap {
  background: var(--panel);
  padding: 44px 0 80px;
}

.result-meta {
  font-size: 22px;
  color: #3b4452;
  margin-bottom: 18px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.card {
  background: var(--white);
  border: 1px solid #d7dbe2;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #e3e6ec;
}

.card-body {
  padding: 12px;
}

.card h4 {
  font-size: 16px;
  margin: 0 0 8px;
  color: #0f2d56;
  word-break: break-word;
}

.card p {
  margin: 0;
  color: #3f4652;
  font-size: 14px;
  line-height: 1.35;
}

.card button {
  margin-top: 10px;
  border: 0;
  background: #0f638f;
  color: var(--white);
  padding: 8px;
  width: 100%;
  cursor: pointer;
}

.image-modal {
  width: min(980px, 92vw);
  border: 0;
  padding: 14px;
}

.image-modal::backdrop {
  background: rgba(6, 10, 18, 0.7);
}

.image-modal img {
  width: 100%;
  height: auto;
}

.close-modal {
  float: right;
  border: 0;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

mark {
  background: #ffef95;
}

@media (max-width: 800px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions,
  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .privacy-block p,
  .lead,
  .warn,
  .last-updated,
  .search-note,
  .status-line,
  .result-meta {
    font-size: clamp(18px, 4.5vw, 24px);
  }
}
