:root {
  --paper: #FFFFFF;
  --paper-2: #F6F6F3;
  --ink: #121413;
  --ink-soft: #3E4441;
  --muted: #787D79;
  --line: #E5E4DF;
  --line-strong: #C7C6BF;
  --accent: #2438FF;
  --accent-soft: #EAECFF;
  --white: #FFFFFF;

  --sans: "Manrope", "Noto Sans SC", -apple-system, "PingFang SC", sans-serif;
  --serif: "Instrument Serif", "Noto Serif SC", "Songti SC", Georgia, serif;
  --display: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;

  --wrap: 1160px;
  --pad: 40px;
  --radius: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
p, h1, h2, h3, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- section shell ---------- */
.section { padding: 108px 0; }
main > .section:first-child { padding-top: 92px; }
.section-tint { background: var(--paper-2); }

h2 {
  font-family: var(--display);
  font-size: clamp(29px, 3.4vw, 43px);
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: -.012em;
  text-wrap: balance;
}

.section-head { max-width: 760px; }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 0;
  align-items: start;
  margin-top: 40px;
}
.about-head { padding-right: 56px; }
.about-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 52px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}
.fact {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 6px;
  padding: 0;
}
.fact-num {
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: .005em;
}
.fact-label {
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--muted);
}

.about-body {
  padding-left: 64px;
  border-left: 1px solid var(--line);
}
.about-text {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-soft);
  max-width: 34em;
}
.about-body .about-text:first-child {
  margin-top: 4px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
}
.about-text + .about-text { margin-top: 18px; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.news-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.news-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 44px -32px rgba(16, 18, 17, .34);
}
.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.news-cat {
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 9px;
  border-radius: 5px;
}
.news-date {
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.news-card h3 {
  margin-top: 4px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -.018em;
  text-wrap: balance;
}
.news-card > p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.news-read {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 12px;
  color: var(--muted);
  transition: color .25s var(--ease);
}
.news-read svg {
  width: 13px;
  height: 13px;
  transition: transform .25s var(--ease);
}
.news-card:hover .news-read { color: var(--ink); }
.news-card:hover .news-read svg { transform: translateX(3px); }

/* ---------- footer ---------- */
.footer {
  background: var(--white);
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding: 26px 0;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  font-size: 11.5px;
  letter-spacing: .01em;
  color: var(--muted);
}
.footer-legal { display: flex; gap: 20px; margin-left: auto; }
.footer-legal a { transition: color .2s var(--ease); }
.footer-legal a:hover { color: var(--ink); }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-motion .reveal { opacity: 1; transform: none; animation: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .about-grid { margin-top: 30px; }
}

@media (max-width: 860px) {
  :root { --pad: 24px; }
  .section { padding: 72px 0; }
  main > .section:first-child { padding-top: 64px; }
  h2 { line-height: 1.38; }
  .about-grid { margin-top: 32px; grid-template-columns: minmax(0, 1fr); }
  .about-head { padding-right: 0; }
  .about-facts { gap: 12px; margin-top: 32px; padding-top: 16px; }
  .fact { gap: 5px; }
  .fact-num { font-size: 23px; }
  .fact-label { font-size: 11px; letter-spacing: .06em; }
  .about-body {
    margin-top: 36px;
    padding: 30px 0 0;
    border-left: none;
    border-top: 1px solid var(--line);
  }
  .about-body .about-text:first-child { margin-top: 0; font-size: 16px; }
  .about-text + .about-text { margin-top: 16px; }
  .news-grid { grid-template-columns: 1fr; margin-top: 34px; }
  .news-card { padding: 24px 22px 22px; }
  .footer-legal { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
