@font-face{font-family:Onest;font-style:normal;font-display:swap;font-weight:400;src:url(/fonts/onest-cyrillic-400-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Onest;font-style:normal;font-display:swap;font-weight:400;src:url(/fonts/onest-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Onest;font-style:normal;font-display:swap;font-weight:500;src:url(/fonts/onest-cyrillic-500-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Onest;font-style:normal;font-display:swap;font-weight:500;src:url(/fonts/onest-latin-500-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Onest;font-style:normal;font-display:swap;font-weight:600;src:url(/fonts/onest-cyrillic-600-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Onest;font-style:normal;font-display:swap;font-weight:600;src:url(/fonts/onest-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Onest;font-style:normal;font-display:swap;font-weight:700;src:url(/fonts/onest-cyrillic-700-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Onest;font-style:normal;font-display:swap;font-weight:700;src:url(/fonts/onest-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* Екзотопедія — styles. Fonts (@font-face) are prepended at build time. */
:root {
  --head: #1d4a66;
  --band: #e6eff6;
  --band-line: #c3d3e0;
  --bg: #fff;
  --soft: #f5f5f3;
  --ink: #1c1d1f;
  --text: #3b3d41;
  --mute: #5f6266;
  --line: #e6e6e3;
  --link: #1a4fd6;
  --green: #1d6f53;
  --red: #b42d29;
  --red-soft: #fdf0ef;
  --red-line: #f1d3d1;
  --radius: 14px;
  --w: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 Onest, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid #4d90c4; outline-offset: 2px; border-radius: 4px; }
.w { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 50; background: #fff; padding: 8px 14px; border-radius: 8px; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
h1 { font-size: 46px; font-weight: 700; letter-spacing: -.025em; line-height: 1.08; margin: 12px 0 14px; }
h2 { font-size: 24px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; margin: 52px 0 14px; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.35; margin: 28px 0 8px; }

/* Header */
.site-head { background: var(--head); color: #fff; position: relative; z-index: 20; }
.site-head .w { display: flex; align-items: center; gap: 32px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; color: #fff; flex: none; }
.nav { display: flex; gap: 24px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: #fff; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: rgba(255,255,255,.55); }
.nav a[aria-current] { border-bottom-color: #fff; }
.head-search { margin-left: auto; position: relative; width: 280px; }
.head-search .field { display: flex; align-items: center; gap: 8px; background: #fff; color: #4a4d52; border-radius: 10px; padding: 0 12px; height: 40px; }
.head-search input { border: 0; outline: 0; font: inherit; font-size: 15px; color: var(--ink); width: 100%; background: transparent; }
.head-search input::placeholder { color: #5f6266; }
.head-search .search-results { position: absolute; right: 0; top: 46px; width: 380px; }
.langs { display: flex; flex: none; border: 1px solid rgba(255,255,255,.35); border-radius: 9px; overflow: hidden; margin-left: -12px; }
.langs a { color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .03em; padding: 0 10px; height: 32px; display: grid; place-items: center; opacity: .75; }
.langs a:hover { opacity: 1; background: rgba(255,255,255,.1); }
.langs a[aria-current] { background: #fff; color: var(--head); opacity: 1; }
.head-btns { display: none; gap: 6px; }
.nav-langs { display: none; }
.head-btns a, .head-btns button { color: #fff; background: none; border: 0; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; border-radius: 8px; }
@media (max-width: 900px) {
  .nav, .head-search { display: none; }
  .head-btns { display: flex; }
  .site-head .w > .langs { display: none; }
  .head-btns { margin-left: auto; }
  .site-head.open .nav-langs { display: block; padding: 14px 0 10px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav-langs .langs { margin: 0; display: inline-flex; }
  .site-head.open .nav-langs .langs a { height: 40px; padding: 0 18px; font-size: 14px; border-bottom: 0; text-decoration: none; }
  .site-head.open .nav { display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 64px; background: var(--head); padding: 4px 24px 16px; border-top: 1px solid rgba(255,255,255,.15); }
  .site-head.open .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .site-head.open .nav a[aria-current] { border-bottom-color: rgba(255,255,255,.12); text-decoration: underline; text-underline-offset: 5px; }
}

/* Band (top of every page) */
.band { background: var(--band); }
.band-in { padding-top: 40px; padding-bottom: 44px; }
.band .lead { margin: 0; }
.crumbs { font-size: 14px; color: var(--mute); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.crumbs li + li::before { content: "/"; margin: 0 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.sub { font-size: 17px; color: var(--mute); margin: -6px 0 18px; }
.sub i { font-style: italic; }
.lead { font-size: 19px; line-height: 1.6; color: var(--text); max-width: 700px; }

/* Article layout */
.layout { display: grid; grid-template-columns: 220px minmax(0, 700px) 1fr; gap: 0 56px; }
.layout > .gut { min-width: 0; }
.article { padding-top: 36px; padding-bottom: 24px; }
.toc { position: sticky; top: 24px; align-self: start; font-size: 14px; color: var(--mute); padding-top: 8px; max-height: calc(100vh - 48px); overflow-y: auto; }
.toc p { color: var(--ink); font-weight: 600; margin: 0 0 10px; }
.toc a { display: block; text-decoration: none; padding: 6px 0 6px 14px; border-left: 2px solid var(--line); line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.on { border-left-color: var(--ink); color: var(--ink); font-weight: 500; }
.toc-m { display: none; }
@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .layout > .gut { display: none; }
  .toc-m { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0 0 8px; font-size: 15px; }
  .toc-m summary { cursor: pointer; font-weight: 600; }
  .toc-m ol { margin: 10px 0 4px; padding-left: 20px; }
  .toc-m li { margin-bottom: 6px; }
  .toc-m a { text-decoration: none; color: var(--text); }
}

/* Prose */
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--mute); }
.prose a, .lead a, .meta a, .faq a, .warn a, .dd a, .check a { color: var(--link); font-weight: 500; text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-thickness .15s; }
.prose a:hover, .lead a:hover, .meta a:hover, .faq a:hover, .warn a:hover, .dd a:hover, .check a:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.prose strong { font-weight: 600; color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 4px 0 18px; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-top: 1px solid var(--line); }
thead th { background: var(--soft); border-top: 0; font-weight: 600; }

/* Meta panel (disease) */
.meta { display: grid; grid-template-columns: 1.2fr 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.meta > div { padding: 16px 18px; border-left: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.meta > div:first-child { border-left: 0; }
.meta .full { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
.meta small, .passport small { display: block; color: var(--mute); font-size: 13px; margin-bottom: 3px; }
.meta .urg { background: var(--red-soft); }
.meta .urg.u-urgent, .meta .urg.u-routine { background: var(--soft); }
.urgline { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.u-emergency .urgline { color: var(--red); }
@media (max-width: 760px) {
  .meta { grid-template-columns: 1fr; }
  .meta > div { border-left: 0; border-top: 1px solid var(--line); }
  .meta > div:first-child { border-top: 0; }
}

/* Passport (species) */
.passport { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.passport > div { padding: 14px 18px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.passport > div:nth-child(-n+2) { border-top: 0; }
.passport > div:nth-child(odd) { border-right: 1px solid var(--line); }
.passport > div:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
@media (max-width: 760px) {
  .passport { grid-template-columns: 1fr; }
  .passport > div { border-right: 0 !important; }
  .passport > div:nth-child(2) { border-top: 1px solid var(--line); }
}

/* Symptoms */
.sym { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sym li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 16px; line-height: 1.45; }
.sym li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-top: 8px; }

/* Do / don't */
.dd { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dd.one { grid-template-columns: 1fr; }
.dd > div { border-radius: var(--radius); padding: 20px 22px; background: var(--soft); }
.dd h3 { font-size: 15px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.dd .yes h3 { color: var(--green); }
.dd .no h3 { color: var(--red); }
.dd ul { list-style: none; padding: 0; margin: 0; font-size: 15.5px; line-height: 1.5; }
.dd li { padding: 8px 0; border-top: 1px solid #e2e2de; }
.dd li:first-child { border-top: 0; padding-top: 0; }

/* Warning (species) */
.warn { background: var(--red-soft); border-radius: var(--radius); padding: 20px 24px 10px; }
.warn h3 { display: flex; gap: 8px; align-items: center; color: var(--red); font-size: 16px; margin: 0 0 10px; }
.warn ul { margin: 0 0 10px; padding-left: 20px; font-size: 16px; }
.warn li { margin-bottom: 6px; }

/* Checklist (guide) */
.check { background: var(--soft); border-radius: var(--radius); padding: 20px 24px; }
.check ul { list-style: none; padding: 0; margin: 0; }
.check li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid #e2e2de; font-size: 16px; line-height: 1.5; }
.check li:first-child { border-top: 0; padding-top: 0; }
.check li svg { flex: none; color: var(--green); margin-top: 3px; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 600; font-size: 16.5px; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--mute); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 14px; color: var(--text); }
.faq details > div p { margin: 0 0 10px; }

/* Tiles and tags */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tiles.two { grid-template-columns: repeat(2, 1fr); }
.tile { display: flex; flex-direction: column; gap: 10px; justify-content: space-between; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 600; line-height: 1.35; min-height: 104px; }
.tile:hover { border-color: #9aa3ab; }
.tile small { color: var(--mute); font-weight: 400; font-size: 14px; line-height: 1.45; }
.tile-d { min-height: 0; justify-content: flex-start; }
.page .tile { background: #f3f7fa; border-color: #dce7ef; }
.page .tile:hover { background: #eaf1f7; border-color: var(--band-line); }
.tile .latin { color: var(--mute); font-style: italic; font-weight: 400; font-size: 14px; }
.tag { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--mute); }
.tag.u-emergency { background: var(--red-soft); color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14px; text-decoration: none; background: #fff; }
.chips a:hover { border-color: #9aa3ab; }
.more { font-size: 15px; font-weight: 600; color: var(--link); text-decoration: none; }
.more:hover { text-decoration: underline; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 56px 0 18px; }
.sec-head h2 { margin: 0; }
.byline { margin: 14px 0 0; font-size: 14px; color: var(--mute); }
.byline a { color: var(--link); }
.updated { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); }
.updated a { color: var(--link); }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  h1 { font-size: 34px; }
  h2 { margin-top: 40px; }
  .band-in { padding-top: 28px; padding-bottom: 32px; }
  .lead { font-size: 18px; }
  .sym, .dd, .tiles, .tiles.two { grid-template-columns: 1fr; }
  .sec-head { margin-top: 44px; }
}

/* Home */
.hero { padding: 60px 0 64px; max-width: 760px; }
.hero h1 { font-size: 52px; margin: 0 0 18px; }
.hero .lead { margin: 0 0 28px; }
.bigsearch { position: relative; max-width: 600px; }
.bigsearch .field { display: flex; align-items: center; gap: 12px; background: #fff; border: 1.5px solid var(--band-line); border-radius: 14px; padding: 0 18px; height: 58px; color: var(--head); }
.bigsearch input { border: 0; outline: 0; font: inherit; font-size: 17px; width: 100%; color: var(--ink); background: transparent; }
.bigsearch input::placeholder { color: #5f6266; }
.bigsearch .field:focus-within { border-color: var(--head); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; font-size: 14px; color: var(--mute); }
.quick a { border: 1px solid var(--band-line); border-radius: 999px; padding: 6px 14px; text-decoration: none; color: var(--ink); background: #fff; }
.quick a:hover { border-color: var(--head); }
.groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.g { border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; }
.g .ic { width: 64px; height: 64px; border-radius: 14px; background: var(--band); color: var(--head); display: grid; place-items: center; margin-bottom: 16px; }
.g h3 { font-size: 19px; margin: 0 0 4px; letter-spacing: -.01em; }
.g h3 a { text-decoration: none; }
.g h3 a:hover { color: var(--link); }
.g .n { font-size: 14px; color: var(--mute); margin-bottom: 14px; }
.g ul { list-style: none; padding: 0; margin: 0 0 16px; font-size: 15px; }
.g li { padding: 5px 0; }
.g li a { text-decoration: none; color: var(--link); }
.g li a:hover { text-decoration: underline; }
.g .more { margin-top: auto; }
@media (max-width: 1000px) { .groups { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .hero { padding: 32px 0 40px; } .hero h1 { font-size: 34px; } .groups { grid-template-columns: 1fr; } }

/* Hubs and indexes */
.page { padding-top: 8px; padding-bottom: 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; }
.filters button { font: inherit; font-size: 14px; font-weight: 500; padding: 8px 16px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--head); border-color: var(--head); color: #fff; }

/* Search results */
.search-results { list-style: none; margin: 6px 0 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(20, 40, 60, .12); max-height: 420px; overflow-y: auto; position: absolute; left: 0; right: 0; z-index: 30; color: var(--ink); }
.search-results:empty { display: none; }
.search-results a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; text-decoration: none; font-size: 15px; line-height: 1.35; }
.search-results a:hover, .search-results a:focus { background: var(--band); outline: 0; }
.search-results small { color: var(--mute); white-space: nowrap; font-size: 13px; padding-top: 2px; }
.search-results .empty { padding: 10px 12px; color: var(--mute); font-size: 15px; }

/* Footer */
.site-foot { background: var(--head); margin-top: 72px; padding: 40px 0 48px; font-size: 14px; color: rgba(255,255,255,.78); }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.foot-cols p { margin: 0; line-height: 1.6; max-width: 380px; }
.foot-cols b { display: block; color: #fff; margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.foot-cols a { display: block; color: #fff; text-decoration: none; padding: 3px 0; }
.foot-cols a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .foot-cols { grid-template-columns: 1fr 1fr; } .foot-cols > div:first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-head, .site-foot, .toc, .toc-m { display: none; } .band { background: none; } }
.article-main > .toc-m + section > h2:first-child { margin-top: 8px; }

/* 404 */
.e404 { padding-bottom: 48px; }
.code404 { font-size: 15px; font-weight: 600; letter-spacing: .12em; color: var(--head); background: #fff; border: 1px solid var(--band-line); border-radius: 999px; display: inline-block; padding: 4px 14px; margin: 0 0 18px; }
.page404 { padding-bottom: 72px; }
.g404 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 40px; }
.g404 a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; font-weight: 500; line-height: 1.3; }
.g404 a:hover { border-color: var(--head); }
.g404 .ic { width: 52px; height: 52px; flex: none; border-radius: 12px; background: var(--band); color: var(--head); display: grid; place-items: center; }
@media (max-width: 860px) { .g404 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .g404 { grid-template-columns: 1fr; } .hero.e404 h1 { font-size: 34px; } }

/* Фото статті */
.hero-img { margin: 0 0 28px; }
.hero-img img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; background: #e9eef1; }
@media (max-width: 800px) { .hero-img { margin-bottom: 22px; } .hero-img img { border-radius: 10px; } }
@media (max-width: 900px) { .site-head.open .nav .nav-langs .langs a[aria-current] { text-decoration: none; } }
