@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --ink: #17383e;
  --muted: #667c7d;
  --line: #e4eae6;
  --paper: #f7f8f5;
  --mint: #e9f0eb;
  --card: #fff;
  --green: #176b5a;
  --green-dark: #0f5145;
  --green-ink: #14816b;
  --deep: #173e46;
  --bad: #8f2d2d;
  --bad-bg: #fdecec;
  --ok: #176b5a;
  --ok-bg: #e5f3ed;
  --hold: #85590f;
  --hold-bg: #fff5e3;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.6 'DM Sans', system-ui, sans-serif; color: var(--ink); background: var(--paper); }
a { color: var(--green-ink); }
h1, h2, h3 { font-family: Manrope, 'DM Sans', sans-serif; letter-spacing: -0.02em; }

/* Header */
header.top {
  position: relative; z-index: 50;
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  padding: 12px 5%; background: #fff; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand .logo { width: 38px; height: 38px; background: #d9ede5; color: #1d6758; border-radius: 12px; display: grid; place-items: center; font: 800 17px Manrope, sans-serif; }
.brand-name b { display: block; font: 800 15px Manrope, sans-serif; letter-spacing: 2px; }
.brand-name small { display: block; font-size: 8px; letter-spacing: 1.8px; color: #799096; margin-top: 2px; }
header.top > span { color: var(--muted); font-size: 12px; flex: 1; min-width: 120px; }
header.top nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
header.top nav a { text-decoration: none; color: #486167; font-size: 12.5px; font-weight: 600; }
header.top nav a:hover { color: var(--green-ink); }
.staff-nav { display: flex; gap: 12px; padding-left: 14px; border-left: 1px solid var(--line); }
.staff-nav a { font-size: 11.5px !important; color: #7a8f90 !important; }

main { max-width: 960px; margin: 0 auto; padding: 32px 20px 72px; }
main.wide { max-width: none; padding: 0 0 72px; }
h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; margin: 8px 0 10px; }
.eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: 2px; color: #32806c; text-transform: uppercase; }
.lede { color: var(--muted); margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 16px 0; }
.card h2 { margin: 0 0 6px; font-size: 19px; }
.k { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); border: 1px solid #c8d6d0; border-radius: 8px; padding: 9px 11px; background: #fff; min-width: 0; }
textarea { min-height: 140px; width: 100%; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
button, .btn {
  font: inherit; font-size: 13.5px; font-weight: 700;
  background: var(--green); color: #fff; border: 0; border-radius: 6px;
  padding: 10px 16px; cursor: pointer; text-decoration: none; display: inline-block;
}
button:hover, .btn:hover { background: var(--green-dark); }
button.ghost, a.ghost { background: #fff; color: var(--deep); border: 1px solid #9aafaa; }
button.ghost:hover, a.ghost:hover { background: var(--mint); }
button:disabled { opacity: 0.6; cursor: wait; }
.hits { list-style: none; margin: 8px 0 0; padding: 0; }
.hits button { width: 100%; text-align: left; background: #fff; color: var(--ink); border: 1px solid var(--line); margin-top: 6px; font-weight: 500; }
.ok, .bad, .hold { border-radius: 10px; padding: 10px 12px; }
.ok { background: var(--ok-bg); color: var(--ok); }
.bad { background: var(--bad-bg); color: var(--bad); }
.hold { background: var(--hold-bg); color: var(--hold); }
code { font-size: 0.92em; }
.staff { margin-top: 28px; color: var(--muted); font-size: 14px; }
.narrow { max-width: 600px; }
.stack { display: grid; gap: 12px; }
.stack label input { width: 100%; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 9px; background: #eef3f0; color: var(--muted); }
.pill.yes { background: var(--ok-bg); color: var(--ok); }
.pill.no { background: var(--bad-bg); color: var(--bad); }
.steps-line { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 10px 0 0; }
.steps-line li { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: #eef3f0; color: var(--muted); }
.steps-line li.done { background: var(--ok-bg); color: var(--ok); }
.steps-line li.now { background: var(--green); color: #fff; }
details.notes { margin-top: 28px; color: var(--muted); font-size: 14px; }
details.notes summary { cursor: pointer; }
table.plain { width: 100%; border-collapse: collapse; font-size: 14px; }
table.plain th, table.plain td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plain th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.mail { display: grid; grid-template-columns: 260px 1fr; gap: 14px; align-items: start; }
.mail .list { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mail .list button { display: block; width: 100%; text-align: left; background: #fff; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 12px; font-weight: 500; }
.mail .list button.on { background: var(--ok-bg); }
.mail .list small { display: block; color: var(--muted); font-size: 12px; }
.mail .read { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; min-height: 220px; }
.mail .read .meta { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.mail .read .big { font-size: 28px; letter-spacing: 0.2em; font-weight: 700; }
.code-input { font-size: 22px; letter-spacing: 0.3em; width: 10ch; text-align: center; }
.stack label input.code-input { width: 10ch; }
[hidden] { display: none !important; }

/* Home */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 520px; background: var(--mint); }
.hero-text { padding: 72px 8% 56px 11%; align-self: center; }
.hero h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.06; letter-spacing: -2px; margin: 18px 0; }
.hero h1 i { font-style: normal; color: #38816d; }
.hero p { color: var(--muted); max-width: 540px; line-height: 1.8; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-stats { display: flex; gap: 32px; margin-top: 44px; color: #6d8280; font-size: 11px; }
.hero-stats b { display: block; color: #1c4a4b; font: 700 22px Manrope, sans-serif; }
.hero-art {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(255,255,255,.22) 0 90px, transparent 91px),
    radial-gradient(circle at 18% 78%, rgba(255,255,255,.12) 0 140px, transparent 141px),
    linear-gradient(150deg, #1d6758 0%, #173e46 60%, #0f2c31 100%);
}
.hero-art .cross { position: absolute; right: 16%; top: 22%; width: 120px; height: 120px; opacity: .9; }
.hero-art .cross::before, .hero-art .cross::after { content: ''; position: absolute; background: #d9ede5; border-radius: 10px; }
.hero-art .cross::before { left: 42px; top: 0; width: 36px; height: 120px; }
.hero-art .cross::after { top: 42px; left: 0; width: 120px; height: 36px; }
.hero-art .overlay { position: absolute; bottom: 48px; left: 48px; color: #fff; }
.hero-art .overlay span { font-size: 10px; letter-spacing: 2px; }
.hero-art .overlay b { display: block; font: 700 30px/1.2 Manrope, sans-serif; margin-top: 10px; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; padding: 52px 8%; background: #fff; }
.quick > div { border-right: 1px solid var(--line); padding-right: 32px; }
.quick > div:last-child { border: 0; }
.quick small { color: #39816c; letter-spacing: 1.5px; font-size: 10px; font-weight: 700; }
.quick h3 { font-size: 19px; margin: 14px 0 6px; }
.quick p { color: #758989; font-size: 13px; }
.quick a { color: #1b7561; font-weight: 700; font-size: 12.5px; text-decoration: none; }
.band { padding: 0 8%; }
.notice-band { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 56px 8%; background: var(--deep); color: #e6f0ec; }
.notice-band h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; margin: 10px 0 0; color: #fff; }
.notice-band p { color: #b9cfc9; line-height: 1.8; }
.notice-band .eyebrow { color: #8fd3bd; }
.lab-start { border: 2px dashed #d9b46a; background: #fffbea; }
.lab-start .grid > div { background: #fff; border: 1px solid #efe2b8; border-radius: 12px; padding: 14px 16px; }
.lab-start h3 { margin: 6px 0; font-size: 17px; }
.lab-start p { color: var(--muted); font-size: 13.5px; }

/* Doctors and specialities */
.doctor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.doctor { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.doctor .avatar { width: 56px; height: 56px; border-radius: 50%; background: #d9ede5; color: #1d6758; display: grid; place-items: center; font: 800 20px Manrope, sans-serif; }
.doctor small { display: block; margin-top: 14px; color: #39816c; font-size: 10px; letter-spacing: 1.4px; font-weight: 700; }
.doctor h3 { margin: 6px 0; font-size: 18px; }
.doctor p { color: #758989; font-size: 13px; margin: 0 0 12px; }
.doctor a { color: #1b7561; font-weight: 700; font-size: 12.5px; text-decoration: none; }
.special-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.special { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; text-decoration: none; color: var(--ink); }
.special span { color: #39816c; font-weight: 700; font-size: 12px; }
.special b { flex: 1; font: 700 17px Manrope, sans-serif; }
.special i { font-style: normal; color: #39816c; }
.special:hover { border-color: #9fcab9; }

footer.site { background: #fff; border-top: 1px solid var(--line); padding: 32px 8%; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; }
footer.site p { margin: 0; }

@media (max-width: 820px) {
  .grid, .doctor-grid, .special-grid, .quick, .notice-band, .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 260px; }
  .hero-text { padding: 48px 6%; }
  .quick > div { border: 0; padding: 0; }
  .mail { grid-template-columns: 1fr; }
  .staff-nav { border: 0; padding: 0; }
}
