:root {
  --ink: #172a34;
  --muted: #5e727c;
  --paper: #f4f7f5;
  --white: #fff;
  --ice: #dceef1;
  --blue: #0b6273;
  --deep: #083d4a;
  --orange: #ef8f45;
  --line: #c8d7d9;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(19, 52, 61, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; overflow-x: clip; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
img { display: block; width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .2em; }
p { margin: 0 0 1.25rem; }
h1, h2, h3 { margin: 0; line-height: 1.04; letter-spacing: -.035em; }
h1 { font-size: clamp(3rem, 7vw, 6.8rem); max-width: 920px; }
h2 { font-size: clamp(2.4rem, 5vw, 4.6rem); }
h3 { font-size: clamp(1.65rem, 3vw, 2.65rem); margin-bottom: 1.5rem; }
.skip-link { position: fixed; top: -80px; left: 1rem; z-index: 20; padding: .7rem 1rem; background: var(--white); }
.skip-link:focus { top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 10; min-height: 76px; padding: 0 clamp(1rem, 4vw, 4rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: rgba(244,247,245,.9); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(8,61,74,.12); }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: .08em; font-size: .84rem; }
.brand small { display: block; color: var(--muted); letter-spacing: 0; font-size: .68rem; font-weight: 500; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: var(--white); background: var(--deep); border-radius: 50%; font-size: 1rem; }
nav { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 2rem); }
nav a { color: var(--ink); text-decoration: none; font-size: .85rem; font-weight: 650; }
.nav-db { padding: .58rem .9rem; color: var(--white); background: var(--deep); border-radius: 999px; }
.section, .hero { width: min(1440px, calc(100% - clamp(2rem, 8vw, 8rem))); margin-inline: auto; }
.hero { min-height: calc(100vh - 76px); padding: clamp(4rem, 9vw, 9rem) 0 5rem; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; overflow: clip; }
.hero-copy, .hero-image { min-width: 0; max-width: 100%; }
.eyebrow { margin-bottom: 1.25rem; color: var(--blue); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; }
.hero-lead { max-width: 770px; margin: 2rem 0; color: var(--muted); font-size: clamp(1.1rem, 1.7vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2.4rem 0 3.5rem; }
.button { display: inline-flex; padding: .85rem 1.2rem; border-radius: 999px; text-decoration: none; font-weight: 750; }
.button-primary { color: var(--white); background: var(--blue); }
.button-quiet { color: var(--ink); border: 1px solid var(--line); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.5rem; margin: 0; }
.hero-stats div { max-width: 130px; }
.hero-stats dt { font-size: 1.8rem; font-weight: 800; }
.hero-stats dd { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.hero-image { position: relative; margin: 0; }
.hero-image::before { content: ""; position: absolute; inset: -9% -10% 18% 18%; z-index: -1; background: var(--ice); border-radius: 48% 52% 43% 57%; transform: rotate(8deg); }
.hero-image img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 48% 48% 30px 30px; box-shadow: var(--shadow); }
figcaption { margin-top: .6rem; color: var(--muted); font-size: .75rem; }
.section { padding: clamp(5rem, 11vw, 10rem) 0; }
.section-heading { max-width: 820px; margin-bottom: clamp(2.5rem, 5vw, 5rem); }
.overview-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 8vw, 8rem); align-items: start; }
.standfirst { font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.4; letter-spacing: -.015em; }
.image-pair { display: grid; grid-template-columns: .72fr 1.28fr; gap: 1.25rem; margin-top: 4rem; }
.image-pair figure { margin: 0; }
.image-pair img { height: 560px; object-fit: cover; border-radius: var(--radius); }
.image-pair figure:first-child img { object-position: center; }
.project { border-top: 1px solid var(--line); }
.prose-columns { columns: 2 360px; column-gap: clamp(3rem, 8vw, 8rem); font-size: 1.08rem; }
.prose-columns p { break-inside: avoid; }
.image-triptych { display: grid; grid-template-columns: 1fr 1.15fr .85fr; gap: 1rem; margin: 4rem 0; }
.image-triptych img { height: 390px; object-fit: cover; border-radius: 18px; }
.image-triptych img:nth-child(2) { padding: 1rem; background: var(--white); object-fit: contain; }
.question-card { max-width: 920px; margin: 5rem auto 0; padding: clamp(2rem, 6vw, 5rem); color: var(--white); background: var(--deep); border-radius: var(--radius); }
.question-card span { color: #9fd7de; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; }
.question-card p { margin: 1rem 0 0; font-size: clamp(1.8rem, 4vw, 3.7rem); line-height: 1.12; letter-spacing: -.03em; }
.timeline-section { width: 100%; max-width: none; padding-inline: clamp(1rem, 4vw, 4rem); color: var(--ink); background: var(--white); }
.timeline-intro { width: min(1300px, 100%); margin: 0 auto 5rem; display: grid; grid-template-columns: 1fr .8fr; gap: 4rem; align-items: end; }
.timeline-intro .section-heading { margin: 0; }
.timeline-intro > p { color: var(--muted); font-size: 1.15rem; }
.timeline-layout { width: min(1300px, 100%); margin: auto; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(2rem, 7vw, 7rem); }
.timeline-nav { position: sticky; top: 104px; align-self: start; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.timeline-nav > p { padding-left: 1rem; color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; }
.timeline-nav a { display: grid; grid-template-columns: 52px 1fr; gap: .4rem; padding: .3rem 0 .3rem 1rem; color: var(--muted); text-decoration: none; font-size: .76rem; border-left: 2px solid transparent; transform: translateX(-1px); }
.timeline-nav a:hover { color: var(--blue); border-left-color: var(--orange); }
.timeline-nav b { color: var(--ink); }
.timeline-nav .database-link { margin-top: 1rem; padding-block: .8rem; background: var(--ice); }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 9px; width: 1px; background: var(--line); }
.timeline-entry { position: relative; padding: 0 0 clamp(6rem, 11vw, 10rem) 4rem; }
.timeline-entry::before { content: ""; position: absolute; top: .3rem; left: 3px; width: 13px; height: 13px; background: var(--white); border: 3px solid var(--orange); border-radius: 50%; }
.date { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.2rem; }
.date span { color: var(--orange); font-size: 1.15rem; font-weight: 850; }
.date strong { color: var(--muted); font-size: .84rem; text-transform: uppercase; letter-spacing: .11em; }
.entry-content { max-width: 920px; }
.entry-content > p { max-width: 780px; font-size: 1.04rem; }
.gallery { display: grid; gap: .75rem; margin: 2.5rem 0; }
.gallery img { height: 270px; object-fit: cover; border-radius: 12px; }
.gallery-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-data { grid-template-columns: repeat(2, 1fr); padding: .75rem; background: #f7f9f8; border: 1px solid #e4ebea; border-radius: 16px; }
.gallery-data img, .gallery-plots img { height: 360px; object-fit: contain; background: var(--white); }
.data-figure { margin: 2.5rem 0; padding: 1rem; background: #f7f9f8; border: 1px solid #e4ebea; border-radius: 16px; }
.data-figure img { max-height: 650px; object-fit: contain; }
.photo-feature { margin: 2.5rem 0; }
.photo-feature img { max-height: 600px; object-fit: cover; border-radius: 16px; }
.inline-cta { display: inline-flex; gap: 2rem; margin-top: 1rem; padding: 1rem 1.4rem; color: var(--white); background: var(--blue); border-radius: 999px; text-decoration: none; font-weight: 750; }
footer { padding: clamp(5rem, 10vw, 9rem) clamp(1rem, 5vw, 5rem) 2rem; color: var(--white); background: var(--deep); }
.footer-intro { width: min(1300px, 100%); margin: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 6rem; }
.footer-intro .eyebrow { grid-column: 1 / -1; color: #9fd7de; margin-bottom: 0; }
.footer-intro p:last-child { color: #c6d8dc; font-size: 1.1rem; }
.partner-grid { width: min(1300px, 100%); margin: 5rem auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.15); }
.partner-grid a { min-height: 210px; padding: 1.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.35rem; color: #d9e7e9; background: var(--deep); text-align: center; text-decoration: none; font-size: .78rem; }
.partner-grid a:hover { background: #0b4c5a; }
.partner-grid img { width: min(170px, 100%); height: 88px; padding: .65rem; object-fit: contain; object-position: center; background: var(--white); border-radius: 8px; }
.partner-grid a[href*="klinikamarka"] img { background: #153f59; }
.footer-bottom { width: min(1300px, 100%); margin: auto; padding-top: 2rem; display: flex; justify-content: space-between; gap: 2rem; color: #9eb8be; border-top: 1px solid rgba(255,255,255,.2); font-size: .78rem; }
.footer-bottom div { display: flex; gap: 1.5rem; }
.footer-bottom a { color: var(--white); text-decoration: none; }

@media (max-width: 900px) {
  nav a:not(.nav-db) { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-image { max-width: 620px; }
  .hero-image img { aspect-ratio: 16 / 10; border-radius: var(--radius); }
  .overview-grid, .timeline-intro, .footer-intro { grid-template-columns: 1fr; }
  .image-pair img { height: 400px; }
  .image-triptych { grid-template-columns: 1fr 1fr; }
  .image-triptych img:last-child { display: none; }
  .timeline-layout { grid-template-columns: 1fr; }
  .timeline-nav { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 1rem; border-left: 0; border-bottom: 1px solid var(--line); }
  .timeline-nav > p { display: none; }
  .timeline-nav a { min-width: 120px; grid-template-columns: 1fr; padding: .5rem; border: 0; }
  .timeline-nav .database-link { margin: 0; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .site-header { min-height: 66px; }
  .brand small { display: none; }
  .section, .hero { width: min(100% - 2rem, 1440px); }
  .hero { padding-top: 3rem; }
  .hero-stats { gap: 1.4rem; }
  .image-pair { grid-template-columns: 1fr; }
  .image-pair img { height: 330px; }
  .image-triptych { grid-template-columns: 1fr; }
  .image-triptych img { height: 310px; }
  .image-triptych img:nth-child(n+2) { display: none; }
  .timeline-section { padding-inline: 1rem; }
  .timeline-entry { padding-left: 2.25rem; }
  .gallery-3, .gallery-4, .gallery-data { grid-template-columns: 1fr; }
  .gallery img, .gallery-data img, .gallery-plots img { height: auto; max-height: 480px; }
  .date { align-items: flex-start; flex-direction: column; gap: .15rem; }
  .partner-grid { grid-template-columns: 1fr 1fr; }
  .partner-grid a { min-height: 175px; padding: 1rem; }
  .footer-bottom { flex-direction: column; }
  .footer-bottom div { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
