:root {
  --brand-primary: #1094AB;
  --brand-yellow: #FCB421;
  --brand-light: #64C4D0;
  --brand-deep: #0B6170;
  --brand-dark: #073D47;
  --brand-pale: #EAF8FA;
  --card-white: #FFFFFF;
  --ink: #17333A;
  --muted: #668087;
  --border: #CFE4E8;
  --soft-background: #F5FBFC;
  --danger: #9F1239;
  --success: #166534;
  --inaesp-blue: #1094AB;
  --inaesp-blue-strong: #0B7587;
  --inaesp-yellow: #FCB421;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(100, 196, 208, 0.24), transparent 27%),
    radial-gradient(circle at 88% 82%, rgba(252, 180, 33, 0.13), transparent 25%),
    linear-gradient(145deg, #F7FCFD 0%, #EEF9FB 48%, #FFFFFF 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.page-frame {
  min-height: 100vh;
}

.public-main {
  width: 100%;
}

.public-hero {
  width: min(1320px, calc(100% - 64px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(430px, 1.06fr);
  align-items: center;
  gap: clamp(30px, 4.5vw, 68px);
}

.public-hero__brand {
  position: relative;
  isolation: isolate;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 5vw, 68px);
  border: 1px solid rgba(16, 148, 171, 0.16);
  border-radius: 34px;
  color: var(--brand-dark);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(234, 248, 250, 0.93)),
    var(--brand-pale);
  box-shadow: 0 28px 70px rgba(7, 61, 71, 0.11);
}

.public-hero__brand::before,
.public-hero__brand::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
}

.public-hero__brand::before {
  width: 330px;
  height: 330px;
  top: -115px;
  right: -110px;
  background: rgba(100, 196, 208, 0.3);
}

.public-hero__brand::after {
  width: 190px;
  height: 190px;
  left: -72px;
  bottom: -62px;
  background: rgba(252, 180, 33, 0.18);
}

.public-hero__eyebrow,
.search-card__eyebrow {
  margin: 0;
  color: var(--brand-primary);
  font-size: clamp(0.78rem, 1vw, 0.96rem);
  font-weight: 850;
  letter-spacing: 0.2em;
  line-height: 1.3;
  text-transform: uppercase;
}

.public-hero__eyebrow {
  margin-bottom: 28px;
}

.public-hero__identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(28px, 4vw, 42px);
}

.inaesp-signature {
  flex: 0 0 auto;
  width: clamp(210px, 20vw, 286px);
  max-width: 62%;
}

.inaesp-signature img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(7, 61, 71, 0.1));
}

.public-hero__title {
  position: relative;
  display: flex;
  flex-direction: column;
  width: fit-content;
  color: var(--brand-dark);
  font-size: clamp(3rem, 5.1vw, 4.8rem);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 0.98;
  white-space: nowrap;
}

.public-hero__title::after {
  content: "";
  width: 78px;
  height: 7px;
  margin-top: 24px;
  border-radius: 999px;
  background: var(--brand-yellow);
}

.public-hero__title strong {
  margin-top: 0.08em;
  color: var(--brand-primary);
  font-weight: 800;
}

.search-card {
  position: relative;
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  justify-self: end;
  padding: clamp(40px, 4.2vw, 60px);
  border: 1px solid rgba(16, 148, 171, 0.14);
  border-radius: 28px;
  background: var(--card-white);
  box-shadow:
    0 32px 72px rgba(7, 61, 71, 0.13),
    0 4px 16px rgba(7, 61, 71, 0.06);
}

.search-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--brand-primary) 0 45%, var(--brand-light) 45% 78%, var(--brand-yellow) 78% 100%);
}

.search-card__header {
  margin-bottom: 34px;
}

.search-card__eyebrow {
  letter-spacing: 0.12em;
}

.search-card h1 {
  margin: 20px 0 12px;
  color: var(--brand-dark);
  font-size: clamp(2.1rem, 3vw, 2.8rem);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.search-card__description {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.13rem);
  line-height: 1.6;
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.search-field-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.search-field-group label {
  color: #284B53;
  font-size: 0.94rem;
  font-weight: 760;
  line-height: 1.45;
}

.search-field-group input {
  width: 100%;
  height: 62px;
  border: 2px solid var(--border);
  border-radius: 13px;
  padding: 0 18px;
  color: var(--ink);
  background: #FFFFFF;
  outline: none;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease;
}

.search-field-group input:hover {
  border-color: #A9D3DA;
}

.search-field-group input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(16, 148, 171, 0.12);
  background: #FCFFFF;
}

.captcha-simulation {
  width: 100%;
  min-height: 78px;
  border: 1px solid #CFE4E8;
  border-radius: 11px;
  background: #F8FCFD;
  box-shadow: 0 2px 7px rgba(7, 61, 71, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px 12px 18px;
}

.captcha-simulation__check {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #24454D;
  font-size: 0.94rem;
  font-weight: 550;
}

.captcha-simulation__check input {
  width: 27px;
  height: 27px;
  margin: 0;
  accent-color: var(--brand-primary);
  cursor: pointer;
}

.captcha-simulation__mark {
  width: 66px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0;
  color: var(--brand-primary);
  font-size: 0.47rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.captcha-simulation__mark svg {
  width: 34px;
  height: 34px;
}

.captcha-simulation__mark small {
  color: #809398;
  font-size: 0.43rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: lowercase;
}

.consult-button {
  width: 100%;
  min-height: 64px;
  border: 0;
  border-bottom: 4px solid var(--brand-yellow);
  border-radius: 13px;
  padding: 14px 24px 12px;
  color: #FFFFFF;
  background: linear-gradient(180deg, #18A2BA 0%, var(--brand-primary) 100%);
  box-shadow: 0 14px 28px rgba(16, 148, 171, 0.24);
  font-size: 1.06rem;
  font-weight: 850;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    filter 150ms ease;
}

.consult-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 17px 32px rgba(16, 148, 171, 0.3);
  filter: saturate(1.06) brightness(1.02);
}

.consult-button:active {
  transform: translateY(0);
}

.consult-button:focus-visible {
  outline: 3px solid rgba(252, 180, 33, 0.48);
  outline-offset: 3px;
}

.feedback {
  margin: 18px 0 0;
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #C9E3E8;
  border-radius: 10px;
  background: #F5FBFC;
  color: #365B64;
  font-size: 0.9rem;
  line-height: 1.45;
}

.feedback[data-kind="error"] {
  border-color: #FECACA;
  background: #FFF1F2;
  color: var(--danger);
}

.feedback[data-kind="success"] {
  border-color: #BBF7D0;
  background: #F0FDF4;
  color: var(--success);
}

.search-card__notice {
  margin-top: 30px;
  padding: 15px 16px;
  border-left: 4px solid var(--brand-yellow);
  border-radius: 0 10px 10px 0;
  color: #5F7D84;
  background: #F2FAFB;
  font-size: 0.86rem;
  line-height: 1.65;
}

.search-card__notice strong {
  color: var(--brand-deep);
  font-weight: 800;
}

.results-section,
.details-section {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto 54px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid rgba(16, 148, 171, 0.15);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(7, 61, 71, 0.14);
  scroll-margin-top: 24px;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 14px;
}

.section-heading-row h2 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 1rem;
  font-weight: 800;
}

.text-action {
  border: 0;
  background: transparent;
  color: var(--brand-primary);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: var(--brand-yellow);
  text-underline-offset: 4px;
}

.results-table-wrap {
  border: 1px solid #BFDDE2;
  border-radius: 10px 10px 0 0;
  overflow-x: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.results-table thead {
  background: var(--brand-primary);
  color: #FFFFFF;
  text-align: left;
}

.results-table th,
.results-table td {
  border-right: 1px solid #C7E0E4;
  border-bottom: 1px solid #C7E0E4;
  padding: 0.78rem 0.82rem;
  vertical-align: middle;
}

.results-table th:last-child,
.results-table td:last-child {
  border-right: 0;
}

.results-table tbody tr:nth-child(odd) {
  background: #FFFFFF;
}

.results-table tbody tr:nth-child(even) {
  background: #F0F9FA;
}

.results-table tbody tr:hover {
  background: #FFF7E1;
}

.results-table__action {
  width: 46px;
  text-align: center;
}

.open-detail-button {
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border: 0;
  border-radius: 50%;
  background: var(--brand-yellow);
  color: var(--brand-dark);
  box-shadow: 0 4px 10px rgba(252, 180, 33, 0.22);
}

.open-detail-button svg {
  width: 1.1rem;
  height: 1.1rem;
}

.pagination {
  min-height: 2.55rem;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid #BFDDE2;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: #FBFEFE;
}

.pagination button {
  min-width: 2rem;
  height: 2rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--brand-deep);
  font-weight: 750;
  font-size: 0.8rem;
}

.pagination button[aria-current="page"] {
  border-color: #9FD1D8;
  border-radius: 5px;
  background: #EAF8FA;
  color: var(--brand-dark);
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.details-titlebar {
  min-height: 3.15rem;
  padding: 0.65rem 1rem;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand-primary));
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.details-titlebar h2 {
  margin: 0;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  font-weight: 750;
  line-height: 1.35;
}

.details-titlebar button {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
}

.details-titlebar button:hover,
.details-titlebar button:focus-visible {
  color: var(--brand-yellow);
  outline: none;
}

.details-pattern {
  padding: 1.3rem;
  border-radius: 0 0 10px 10px;
  background-color: #F4FBFC;
  background-image:
    radial-gradient(circle at 15px 15px, rgba(16, 148, 171, 0.08) 0 2px, transparent 2.5px),
    linear-gradient(45deg, transparent 47%, rgba(100, 196, 208, 0.07) 48% 52%, transparent 53%);
  background-size: 30px 30px, 45px 45px;
}

.details-card {
  border: 3px double #C7E1E5;
  background: rgba(255, 255, 255, 0.98);
  padding: clamp(1.35rem, 4vw, 2.1rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 6vw, 4.5rem);
  box-shadow: inset 0 0 0 1px #EAF5F7;
}

.details-column {
  display: flex;
  flex-direction: column;
  gap: 1.45rem;
}

.detail-item {
  position: relative;
  padding-left: 0.9rem;
}

.detail-item::before {
  content: "⌄";
  position: absolute;
  left: 0;
  top: -0.1rem;
  color: var(--brand-light);
  font-size: 0.8rem;
}

.detail-item span {
  display: block;
  color: #779198;
  font-size: 0.78rem;
  line-height: 1.35;
}

.detail-item strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--brand-deep);
  font-size: 0.98rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1060px) {
  .public-hero {
    width: min(760px, calc(100% - 40px));
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 52px 0 64px;
  }

  .public-hero__brand {
    min-height: auto;
    padding: 44px;
  }

  .public-hero__identity {
    flex-direction: row;
    align-items: center;
  }

  .inaesp-signature {
    width: 185px;
    max-width: 36%;
  }

  .public-hero__title {
    font-size: clamp(2.8rem, 8vw, 4.15rem);
  }

  .search-card {
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 680px) {
  .public-hero {
    width: min(100% - 28px, 620px);
    gap: 22px;
    padding: 24px 0 38px;
  }

  .public-hero__brand {
    padding: 30px 26px 32px;
    border-radius: 24px;
  }

  .public-hero__eyebrow {
    width: 100%;
    margin-bottom: 20px;
    font-size: 0.72rem;
    text-align: center;
  }

  .public-hero__identity {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .inaesp-signature {
    width: 122px;
    max-width: 42%;
    margin-inline: auto;
  }

  .public-hero__title {
    width: 100%;
    align-items: center;
    text-align: center;
    font-size: clamp(2rem, 10vw, 2.7rem);
    white-space: normal;
  }

  .public-hero__title::after {
    width: 60px;
    height: 6px;
    margin-top: 18px;
  }

  .search-card {
    padding: 32px 24px 28px;
    border-radius: 22px;
  }

  .search-card__header {
    margin-bottom: 27px;
  }

  .search-card__eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .search-card h1 {
    margin-top: 17px;
    font-size: 2rem;
  }

  .search-form {
    gap: 19px;
  }

  .search-field-group label {
    font-size: 0.89rem;
  }

  .search-field-group input,
  .consult-button {
    min-height: 58px;
    height: 58px;
  }

  .captcha-simulation {
    min-height: 74px;
  }

  .search-card__notice {
    margin-top: 24px;
  }

  .results-section,
  .details-section {
    width: calc(100% - 28px);
    padding: 14px;
    border-radius: 16px;
  }

  .results-table {
    min-width: 520px;
  }

  .details-pattern {
    padding: 0.7rem;
  }

  .details-card {
    grid-template-columns: 1fr;
    gap: 1.45rem;
  }
}

@media (max-width: 440px) {
  .public-hero__brand {
    padding: 26px 22px 28px;
  }

  .inaesp-signature {
    width: 112px;
    max-width: 40%;
  }

  .public-hero__title {
    font-size: 2rem;
  }

  .search-card {
    padding: 29px 20px 25px;
  }

  .captcha-simulation {
    padding-left: 13px;
  }

  .captcha-simulation__check {
    gap: 9px;
    font-size: 0.86rem;
  }
}
