:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #211b1c;
  background: #f8f6f5;
  line-height: 1.5;
  --accent: #981b35;
  --muted: #5f5558;
  --line: #e5dcdf;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid #b33150; outline-offset: 4px; }

.frame { width: min(70rem, calc(100% - 2.5rem)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5rem; }
.brand { display: inline-block; }
.brand img { display: block; width: 11rem; height: 3.125rem; object-fit: contain; object-position: left; }
.header-help { font-size: .875rem; color: var(--muted); text-decoration: none; text-align: right; }
.header-help strong { color: var(--accent); margin-left: .55rem; white-space: nowrap; }

.portal {
  display: grid;
  grid-template-columns: 1fr 1.04fr;
  margin-top: clamp(1.5rem, 5vw, 4.5rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 55px #4314220d;
}

.intro {
  position: relative;
  display: grid;
  overflow: hidden;
  align-items: center;
  padding: clamp(1.8rem, 5vw, 4rem);
  background: radial-gradient(ellipse at bottom right, #a72947, transparent 65%), #79142b;
  color: #fff;
}

.intro-copy { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 1rem; font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ffdde4; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 1.25rem; font-size: clamp(2.55rem, 5.8vw, 4.8rem); line-height: .99; letter-spacing: -.065em; }
.intro-description { max-width: 27ch; font-size: clamp(1rem, 1.2vw, 1.16rem); color: #fff1f4; }
.intro-note { width: fit-content; margin-top: 2rem; padding-left: 1rem; border-left: 2px solid #ffb4c4; }
.intro-note p { margin: .2rem 0 0; font-size: .9375rem; color: #fff1f4; }

.motif {
  position: absolute;
  right: -10rem;
  bottom: -15rem;
  width: 29rem;
  aspect-ratio: 1;
  border: 1px solid #ffffff3b;
  border-radius: 48% 52% 45% 55%;
  transform: rotate(-26deg);
  box-shadow: 0 0 0 2rem #ffffff0d, 0 0 0 4rem #ffffff0a, 0 0 0 6rem #ffffff08;
}

.consult { padding: clamp(1.8rem, 5vw, 3.6rem); }
.exam-types { display: flex; gap: .25rem; padding: .25rem; margin-bottom: 1.5rem; border-radius: .75rem; background: #f5eff1; }
.exam-types a { flex: 1; min-width: 0; padding: .55rem .45rem; border-radius: .5rem; font-weight: 650; text-align: center; text-decoration: none; }
.exam-types a[aria-current] { color: var(--accent); background: #fff; box-shadow: 0 1px 3px #49132517; }
.consult h2 { margin-bottom: .6rem; font-size: clamp(1.5rem, 3vw, 2.15rem); line-height: 1.15; letter-spacing: -.045em; }
.subtitle { color: var(--muted); margin-bottom: 1.6rem; }
.notice { padding: .75rem 1rem; border: 1px solid #ebccd4; border-radius: .65rem; background: #fcf1f3; color: #72182c; font-size: .9375rem; }

fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
label { display: block; margin: 0 0 .4rem; font-weight: 650; font-size: .9375rem; }
input, button { font: inherit; }
input {
  display: block;
  width: 100%;
  min-height: 3.05rem;
  padding: .65rem .85rem;
  margin: 0 0 1rem;
  border: 1px solid #cfc4c7;
  border-radius: .65rem;
  background: #fff;
  color: inherit;
}
input::placeholder { color: #6d6265; }
input:disabled { background: #f6f3f3; opacity: 1; }
input[type="date"] { min-width: 0; }
.password { position: relative; }
.password:has(.reveal:not([hidden])) input { padding-right: 5.5rem; }
.reveal { position: absolute; top: 0; right: .3rem; height: 100%; padding: 0 .65rem; border: 0; border-radius: .5rem; background: none; color: var(--accent); font-size: .875rem; cursor: pointer; }
.submit {
  width: 100%;
  min-height: 3.15rem;
  margin-top: .35rem;
  border: 0;
  border-radius: .65rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.submit:hover:not(:disabled) { background: #77152a; }
.submit:disabled { background: #e8d9dd; color: #65444d; cursor: default; }

.provider-hint { margin-bottom: .5rem; color: var(--muted); font-size: .9375rem; }
.image-providers { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.image-providers a { padding: .3rem .7rem; border: 1px solid var(--line); border-radius: .5rem; font-size: .9375rem; text-decoration: none; }
.image-providers a[aria-current] { color: var(--accent); border-color: var(--accent); background: #fcf1f3; font-weight: 650; }
.clinux-results > a { color: var(--accent); font-weight: 650; }
.clinux-list { display: grid; gap: .65rem; padding: 0; margin: 0 0 1rem; list-style: none; }
.clinux-list li { padding: .8rem 1rem; border: 1px solid var(--line); border-radius: .65rem; overflow-wrap: anywhere; }
.clinux-list span { display: block; color: var(--muted); font-size: .9rem; }
.clinux-list span:empty { display: none; }
.footer { margin-top: 2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; padding-block: 1rem 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 47rem) {
  .frame { width: min(34rem, calc(100% - 1.5rem)); }
  .portal { grid-template-columns: minmax(0, 1fr); }
  .intro, .consult { padding: clamp(1.2rem, 6vw, 2.5rem); }
  .intro h1 br { display: none; }
  .intro-note { margin-top: 1.1rem; }
  .header-help strong { display: block; margin-left: 0; }
}
