:root{color-scheme:light;--navy:#212156;--ink:#19204a;--yellow:#ffc000;--line:#e3e4ef;--paper:#f7f7fb}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);background:#fff;font-family:TildaSans,Arial,sans-serif;line-height:1.5}
button,input{font:inherit}
a{color:inherit}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}
.wrap{width:min(1160px,calc(100% - 40px));margin:auto}
.footer__inner{display:flex;align-items:center;justify-content:space-between;gap:24px}
.back:hover{color:#b2202b}
.hero{background:var(--navy);color:#fff}
.hero__inner{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:clamp(28px,6vw,90px);align-items:center;padding:72px 0}
.back{display:inline-block;margin-bottom:50px;color:#d5d7ed;text-decoration:none}
.eyebrow{text-transform:uppercase;font-size:13px;font-weight:800;letter-spacing:.12em;color:var(--yellow)}
h1{max-width:780px;font-size:clamp(40px,5.7vw,76px);line-height:1.07;letter-spacing:-.045em;margin:18px 0 24px}
.hero__intro{font-size:clamp(17px,1.5vw,20px);max-width:650px;color:#e2e2f0}
.hero__actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:34px}
.button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 22px;background:var(--yellow);border:2px solid var(--yellow);border-radius:100px;color:#171738;text-decoration:none;font-weight:700;text-align:center}
.button:hover{filter:brightness(1.08)}
.button--ghost{color:#fff;background:transparent;border-color:#fff}
.hero__cover{display:block;box-shadow:0 20px 50px rgba(0,0,0,.35);transform:rotate(2deg);transition:transform .2s}
.hero__cover:hover{transform:rotate(0)}
.hero__cover img{width:100%;height:auto;display:block}
.catalogue{padding:72px 0 100px}
.catalogue__intro{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:26px}
.catalogue__intro h2{font-size:clamp(28px,3vw,42px);line-height:1.14;margin:8px 0 0}
.catalogue__intro>p{color:#586079;margin:0 0 4px}
.search-label{display:block;font-weight:700;margin-bottom:9px}
#paper-search{width:100%;padding:16px 18px;border:1px solid #b9bed1;border-radius:10px;color:var(--ink);background:#fff}
#paper-search::placeholder{color:#737b91}
.filters{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 12px}
.filters-label{display:none}
.filters button{border:1px solid #d7d9e6;border-radius:100px;padding:9px 15px;background:#fff;color:var(--ink);cursor:pointer}
.filters button:hover{border-color:var(--navy)}
.filters button.active{color:#fff;background:var(--navy);border-color:var(--navy)}
.result-count{color:#586079;margin:0 0 42px;font-size:14px}
.topic{scroll-margin-top:30px;margin-bottom:54px}
.topic__heading{display:flex;align-items:center;gap:14px;border-bottom:2px solid var(--navy);margin-bottom:18px;padding-bottom:12px}
.topic__heading h2{font-size:clamp(24px,2.4vw,32px);line-height:1.2;margin:0}
.topic__heading span{display:inline-flex;width:30px;height:30px;border-radius:100%;align-items:center;justify-content:center;background:var(--yellow);font-size:14px;font-weight:800;flex:none}
.papers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.paper{display:flex;flex-direction:column;min-width:0;background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:24px;transition:border-color .2s,transform .2s}
.paper:hover{border-color:var(--yellow);transform:translateY(-2px)}
.paper__meta{display:flex;justify-content:space-between;gap:12px;color:#5f6680;font-size:14px}
.paper__meta span:last-child{white-space:nowrap}
.paper h3{font-size:19px;line-height:1.35;margin:16px 0 24px;overflow-wrap:anywhere}
.paper h3 a{text-decoration:none}
.paper h3 a:hover{text-decoration:underline;text-decoration-color:var(--yellow);text-underline-offset:4px}
.paper__open{color:#9b6810;font-weight:700;text-decoration:none;margin-top:auto;align-self:flex-start}
.paper__open:hover{text-decoration:underline}
.no-results{text-align:center;background:var(--paper);padding:36px;border-radius:12px}
[hidden]{display:none!important}
footer{background:var(--navy);color:#fff;padding:28px 0}
footer p{margin:0}
footer a{color:var(--yellow)}
@media(max-width:700px){
  .wrap{width:calc(100% - 32px)}
  .hero__inner{grid-template-columns:1fr;padding:38px 0 42px}
  .back{margin-bottom:28px;font-size:16px;text-decoration:underline;text-underline-offset:4px}
  h1{font-size:clamp(36px,10vw,46px);line-height:1.1}
  .hero__intro{font-size:17px;line-height:1.6}
  .hero__actions{margin-top:26px}
  .hero__cover{display:none}
  .catalogue{padding:42px 0 68px}
  .catalogue__intro{display:block;margin-bottom:22px}
  .catalogue__intro>p{margin-top:12px}
  .catalogue__intro h2{font-size:30px;line-height:1.2}
  .search-label{font-size:16px}
  #paper-search{min-height:52px;font-size:16px}
  .filters-label{display:flex;justify-content:space-between;gap:12px;margin:24px 0 8px;font-size:16px;font-weight:700}
  .filters-label span{color:#5f6680;font-size:14px;font-weight:400;white-space:nowrap}
  .filters{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;margin:0 0 14px;padding:2px 0 10px}
  .filters button{flex:0 0 auto;max-width:230px;min-height:48px;white-space:normal;text-align:left;line-height:1.3}
  .result-count{font-size:15px;margin-bottom:32px}
  .topic{margin-bottom:44px}
  .topic__heading{gap:10px}
  .topic__heading h2{font-size:25px;line-height:1.25}
  .papers{grid-template-columns:1fr;gap:14px}
  .paper{padding:20px}
  .paper__meta{flex-wrap:wrap;gap:4px 12px;font-size:15px;line-height:1.45}
  .paper h3{font-size:20px;line-height:1.42;margin:16px 0 18px}
  .paper__open{display:inline-flex;align-items:center;min-height:44px;color:var(--navy);font-size:16px;text-decoration:underline;text-decoration-color:var(--yellow);text-decoration-thickness:2px;text-underline-offset:4px}
  .footer__inner{align-items:flex-start;flex-direction:column}
}
