@font-face {
  font-family: Manrope;
  src: url("manrope-cyrillic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Manrope;
  src: url("manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  color-scheme: light;
  --background: #f7f8fc;
  --paper: #fff;
  --ink: #251c3a;
  --muted: #5e566f;
  --accent: #6f47ea;
  --link: #5633bc;
  --accent-active: #542ec9;
  --soft: #ede8fb;
  --edge: #e3deee;
  --width: 76rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.3rem; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--ink);
  font: 500 1rem/1.6 Manrope, system-ui, sans-serif;
}
body > main { flex: 1; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { color: var(--accent-active); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
svg { width: 1.35rem; height: 1.35rem; flex: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.14; font-weight: 800; letter-spacing: -.034em; }
h1 { font-size: clamp(2.15rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); }
h3 { font-size: 1.26rem; }
.container { width: min(var(--width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 5; inset: .5rem auto auto .5rem; padding: .7rem 1rem; border-radius: .5rem; background: var(--paper); }
.site-header { background: var(--paper); border-bottom: 1px solid var(--edge); }
.header-inner, .header-inner nav, .brand, .brand a { display: flex; align-items: center; }
.header-inner { min-height: 4.65rem; justify-content: space-between; gap: 1rem; }
.brand { gap: 1rem; }
.brand img, .footer-brand img { width: 7.25rem; height: auto; }
.brand-section { border-left: 1px solid var(--edge); padding-left: 1rem; font-weight: 750; }
.brand-section, .header-inner nav a { color: var(--ink); text-decoration: none; }
.header-inner nav { gap: 1.5rem; }
.header-search { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .5rem; }
.header-search:hover { background: var(--soft); }
.account-link { display: flex; align-items: center; gap: .5rem; border: 1px solid var(--edge); border-radius: .7rem; padding: .45rem .8rem; white-space: nowrap; font-weight: 750; }
.header-inner nav a:hover { color: var(--link); }

.home { padding-block: 1.8rem 4rem; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 24rem;
  padding: clamp(2rem, 5.4vw, 4.5rem) clamp(1.3rem, 5vw, 4rem);
  border: 1px solid #e9e0fd;
  border-radius: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(112deg, #fcfaff 3%, #f5efff 56%, #eae2ff 100%);
}
.hero-copy { width: min(100%, 43rem); position: relative; z-index: 1; }
.hero h1 { margin-bottom: 1rem; letter-spacing: -.065em; }
.hero h1 span { color: var(--link); white-space: nowrap; }
.hero-copy > p { max-width: 33rem; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.18rem); margin-bottom: 1.75rem; }
.hero-art { position: absolute; width: 47%; max-width: 37rem; right: 1%; top: 49%; transform: translateY(-50%); object-fit: contain; pointer-events: none; }
.search-form {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .4rem;
  padding-left: .9rem;
  min-height: 3.55rem;
  width: min(100%, 39rem);
  border-radius: .9rem;
  border: 1px solid #d9cdef;
  background: var(--paper);
}
.search-form > svg { color: var(--link); }
.search-form input { flex: 1; width: 100%; min-width: 0; color: var(--ink); padding-block: .5rem; border: 0; background: transparent; }
.search-form input::placeholder { color: #645a75; }
.search-form input:focus { outline: none; }
.search-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px #6f47ea36; }
.search-form button, .primary-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.65rem; padding: .6rem 1.12rem;
  border: 1px solid transparent; border-radius: .65rem;
  color: #fff; background: var(--accent-active); text-decoration: none; font-weight: 780; text-align: center;
}
.search-form button:hover, .primary-button:hover { background: #432398; color: #fff; }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: 1rem; font-size: .875rem; }
.quick span { color: var(--muted); margin-right: .05rem; }
.quick a { padding: .33rem .66rem; background: #ffffffd7; border: 1px solid var(--edge); border-radius: .55rem; text-decoration: none; font-weight: 730; }
.quick a:hover { border-color: var(--accent); text-decoration: underline; }
.topics { margin-top: 3rem; }
.topics h2 { margin-bottom: 1.2rem; }
.topics-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .85rem; }
.topic-card { grid-column: span 2; display: flex; flex-direction: column; gap: .65rem; min-height: 12.15rem; padding: 1.3rem; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--edge); border-radius: 1.2rem; }
.topic-card:nth-child(n+4) { grid-column: span 3; }
.topic-card:hover { border-color: #aa92ea; color: var(--ink); box-shadow: 0 8px 28px #3312720b; }
.topic-icon { display: grid; place-items: center; width: 2.55rem; height: 2.55rem; margin-bottom: .16rem; border-radius: .7rem; background: var(--soft); color: var(--link); }
.topic-card p { color: var(--muted); }
.topic-footer { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: auto; padding-top: .35rem; color: var(--link); font-size: .86rem; font-weight: 770; }
.topic-footer svg, .article-list svg { width: 1rem; height: 1rem; }

.faq { display: grid; grid-template-columns: minmax(13rem, 1fr) 2fr; gap: 1.25rem; margin-top: 3.6rem; }
.faq-list { border-top: 1px solid var(--edge); }
.faq details { border-bottom: 1px solid var(--edge); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 780; padding: .95rem 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.45rem; font-weight: 500; color: var(--link); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 1.7rem 1rem 0; color: var(--muted); }
.faq-answer a { display: inline-block; margin-top: .45rem; font-weight: 730; }
.support { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .95rem; margin-top: 3.4rem; padding: 1.5rem; border-radius: 1.15rem; border: 1px solid #e3d9f8; background: #f1ebff; }
.support h2 { font-size: 1.34rem; margin-bottom: .22rem; }
.support p { color: var(--muted); }
.support-icon { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: .75rem; background: var(--paper); color: var(--link); align-self: center; }
.site-footer { border-top: 1px solid var(--edge); background: var(--paper); }
.footer-inner, .footer-inner nav, .footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.footer-inner { min-height: 6rem; justify-content: space-between; padding-block: 1.2rem; }
.footer-brand span, .footer-inner a { font-size: .875rem; color: var(--muted); }
.footer-inner nav a { text-decoration: none; }
.footer-inner nav a:hover { text-decoration: underline; }

.site-content { padding-block: 1.4rem 4rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: .36rem .65rem; margin-bottom: 1.6rem; font-size: .875rem; color: var(--muted); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.reading-grid { display: grid; grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr); gap: clamp(1.4rem, 4vw, 3.2rem); align-items: start; }
.section-nav { padding-top: .35rem; }
.section-nav ul { list-style: none; padding: 0; margin: 0; }
.section-nav > ul { display: grid; gap: .35rem; }
.section-nav a { display: block; color: var(--ink); text-decoration: none; padding: .58rem .65rem; border-radius: .5rem; font-weight: 720; font-size: .9rem; line-height: 1.45; }
.section-nav a:hover { color: var(--link); background: var(--soft); }
.section-nav .active-category > a, .section-nav [aria-current="page"] { color: var(--link); background: var(--soft); }
.section-nav li ul { margin: .55rem 0 .75rem .65rem; padding-left: .45rem; border-left: 1px solid var(--edge); }
.section-nav li ul a { font-weight: 620; }
.article, .category-body { max-width: 56rem; }
.article h1, .category-body h1, .search-page h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.standfirst { margin-top: .9rem; color: var(--muted); font-size: 1.12rem; }
.on-this-page { margin-top: 1.65rem; padding: .95rem 1.2rem; border-left: 3px solid var(--accent); background: var(--soft); border-radius: .25rem .7rem .7rem .25rem; }
.on-this-page ul { padding-left: 1.3rem; margin: .25rem 0; }
.on-this-page a { text-decoration: none; }
.on-this-page a:hover { text-decoration: underline; }
.article-sections > section { margin-top: 1.9rem; }
.article-sections h2, .sources h2, .related h2 { font-size: clamp(1.45rem, 3vw, 1.94rem); margin-bottom: .65rem; }
.article-sections p, .article-sections li { max-width: 72ch; }
.article-sections p + p { margin-top: .7rem; }
.article-sections ol, .sources ul { padding-left: 1.55rem; margin: .52rem 0; }
.article-sections li { padding-left: .25rem; margin: .43rem 0; }
.article-sections li::marker { color: var(--link); font-weight: 780; }
.article-image { margin: 1.25rem 0; border: 1px solid var(--edge); border-radius: .8rem; background: var(--paper); padding: 1rem; width: fit-content; max-width: min(100%, 33rem); }
.article-image img { object-fit: contain; max-height: 31rem; margin-inline: auto; }
.article-image figcaption { margin-top: .55rem; font-size: .875rem; color: var(--muted); }
.sources, .related { margin-top: 2.25rem; }
.sources ul { overflow-wrap: anywhere; }
.article-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .65rem; }
.article-list a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .95rem 1rem; border: 1px solid var(--edge); border-radius: .75rem; background: var(--paper); color: var(--ink); text-decoration: none; }
.article-list a:hover { border-color: #a890eb; color: var(--link); }
.article-list small { display: block; color: var(--muted); font-size: .9rem; margin-top: .16rem; }
.article-list svg { color: var(--link); }
.search-page { max-width: 49rem; }
.search-page .search-form { width: 100%; margin-block: 1.3rem 1rem; }
.search-filter:not([hidden]) { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin-bottom: 1rem; }
.search-filter label { font-weight: 720; }
.search-filter select { padding: .4rem; border-radius: .5rem; border: 1px solid var(--edge); background: var(--paper); color: var(--ink); max-width: 100%; }
#search-status { color: var(--muted); }
.empty { padding: 1rem; border: 1px solid var(--edge); border-radius: .75rem; background: var(--paper); }
.empty p { margin-top: .35rem; color: var(--muted); }

@media (max-width: 980px) {
  .hero-art { width: 37%; right: -5%; top: 27%; opacity: .9; }
  .hero-copy { width: min(100%, 36rem); }
  .hero h1 { max-width: 35rem; }
  .hero .search-form { max-width: min(100%, 31rem); }
}
@media (max-width: 720px) {
  .home { padding-top: 1rem; }
  .header-inner { min-height: 3.9rem; }
  .header-inner nav { gap: .4rem; }
  .header-topics { display: none; }
  .brand { gap: .55rem; }
  .brand img, .footer-brand img { width: 5.7rem; }
  .brand-section { padding-left: .55rem; font-size: .875rem; }
  .account-link { padding: .4rem .5rem; font-size: .875rem; }
  .account-link svg { display: none; }
  .hero { min-height: 0; display: block; padding: 1.65rem 1rem 1.1rem; }
  .hero-art { position: static; transform: none; width: min(65%, 15rem); margin: .5rem 0 -.15rem auto; }
  .hero h1 { font-size: clamp(2.05rem, 8vw, 3.1rem); }
  .hero-copy > p { margin-bottom: 1.15rem; }
  .quick { gap: .38rem; }
  .quick span { display: block; width: 100%; }
  .quick a { font-size: .84rem; }
  .topics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-card, .topic-card:nth-child(n+4) { grid-column: span 1; min-height: 0; padding: .9rem; }
  .topic-card:last-child { grid-column: span 2; }
  .topic-card h3 { font-size: 1.06rem; }
  .topic-card p { font-size: .9rem; }
  .faq, .reading-grid { grid-template-columns: minmax(0, 1fr); }
  .faq { margin-top: 2.6rem; gap: .9rem; }
  .section-nav { display: none; }
  .support { grid-template-columns: auto 1fr; padding: 1.05rem; margin-top: 2.4rem; }
  .support .primary-button { grid-column: 1 / -1; width: fit-content; max-width: 100%; }
}
@media (max-width: 385px) {
  .search-form { gap: .3rem; padding-left: .5rem; }
  .search-form button { padding-inline: .62rem; }
  .search-form > svg { width: 1rem; }
}
@media (max-width: 340px) {
  .header-search { display: none; }
}
