:root {
  --paper: #fefbf7;
  --paper-soft: #f8f2e9;
  --ink: #181716;
  --muted: #68645f;
  --line: #d9d3cb;
  --red: #d4141f;
  --ochre: #efbd58;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--red); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--red); }

.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.site-header { padding: 18px 0 8px; }
.header-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.home-header .header-row { justify-content: flex-end; }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand-home { display: block; width: 118px; flex: 0 0 118px; line-height: 0; text-decoration: none; }
.brand-home img { display: block; width: 100%; }
.main-nav { display: flex; gap: 22px; flex-wrap: wrap; font-family: Georgia, "Times New Roman", serif; font-size: 1.02rem; }
.main-nav a { text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--red); color: var(--ink); }
.langs { display: flex; gap: 10px; padding-left: 20px; border-left: 1px solid var(--line); font-size: .9rem; }
.langs a { text-decoration: none; }
.langs .active { color: var(--red); font-weight: 700; }
.langs .pending { color: var(--muted); }

.hero { padding: 22px 0 42px; }
.hero-grid { display: grid; grid-template-columns: minmax(330px, .9fr) minmax(420px, 1.1fr); gap: 74px; align-items: center; }
.logo-wrap { max-width: 520px; }
.logo-wrap img { display: block; width: 100%; }
.hero-copy h1,
.page-title,
.section-title,
.feature h2,
.next-title,
.identity-copy h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.025em;
}
.hero-copy h1 { font-size: clamp(2.8rem, 5vw, 5.2rem); line-height: .98; margin: 0 0 24px; }
.hero-copy p { font-size: clamp(1.08rem, 1.7vw, 1.32rem); color: #383532; max-width: 720px; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--ochre); display: inline-block; }

.features { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.feature { padding: 34px 34px 34px 0; min-height: 190px; }
.feature + .feature { border-left: 1px solid var(--line); padding-left: 42px; }
.feature-head { display: flex; align-items: center; gap: 20px; margin-bottom: 14px; }
.feature h2 { margin: 0; font-size: 1.8rem; }
.feature p { margin: 0; color: #4f4b47; max-width: 340px; }
.icon { width: 62px; height: 62px; flex: 0 0 62px; }
.icon svg { width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.icon .red { stroke: var(--red); }
.icon .ochre { stroke: var(--ochre); fill: var(--ochre); }
.icon .red-fill { fill: var(--red); stroke: var(--ink); }

.pilot-strip { padding: 28px 0 30px; }
.pilot-strip h2 { font-family: Georgia, serif; font-size: 1.7rem; font-weight: 500; margin: 0 0 4px; }
.pilot-strip p { margin: 0; color: #4f4b47; }

.page-main { padding: 34px 0 72px; }
.page-intro { max-width: 860px; margin-bottom: 54px; }
.page-title { font-size: clamp(3rem, 6vw, 5.7rem); line-height: 1; margin: 10px 0 24px; }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.35rem); color: #3d3936; }
.content { max-width: 890px; }
.content h2 { font-family: Georgia, serif; font-weight: 500; font-size: 2rem; margin: 48px 0 12px; }
.content h3 { font-family: Georgia, serif; font-weight: 600; font-size: 1.35rem; margin: 32px 0 8px; }
.content p { margin: 0 0 1.15em; }
.content ul { padding-left: 1.25rem; }
.content li { margin-bottom: .55rem; }
.principle-list { border-top: 1px solid var(--line); margin-top: 38px; }
.principle { display: grid; grid-template-columns: 90px 260px 1fr; gap: 26px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.principle-num { font-family: Georgia, serif; color: var(--red); font-size: 1.2rem; }
.principle h2 { font-size: 1.5rem; margin: 0; }
.principle p { margin: 0; color: #4a4642; }
.note { border-left: 4px solid var(--ochre); padding: 4px 0 4px 22px; margin: 30px 0; color: #393532; }
.workflow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin: 34px 0 42px; }
.step { border-top: 3px solid var(--red); padding-top: 12px; }
.step:nth-child(even) { border-top-color: var(--ochre); }
.step strong { display: block; font-family: Georgia, serif; font-size: 1.05rem; }
.step span { color: var(--muted); font-size: .92rem; }
.doc-list { border-top: 1px solid var(--line); }
.doc-item { display: grid; grid-template-columns: 250px 1fr; gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.doc-item h2 { font-size: 1.35rem; margin: 0; }
.doc-item p { margin: 0; color: #4f4b47; }

.document-link { display: inline-block; margin-top: .35rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--red); }
.document-link:hover { color: var(--red); }
.contact-address { font-weight: 600; text-decoration-color: var(--red); }

.collab-paths { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 42px; border-top: 1px solid var(--line); margin-top: 36px; }
.collab-item { padding: 25px 0; border-bottom: 1px solid var(--line); }
.collab-item h2 { font-size: 1.45rem; margin: 0 0 8px; }
.collab-item p { margin: 0; color: #4f4b47; }
.organisation { margin-top: 46px; padding-top: 26px; border-top: 3px solid var(--ink); }
.organisation-label { color: var(--red); text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 700; }
.organisation h2 { font-size: 1.8rem; margin: 8px 0 6px; }
.udmurt-greeting { margin-top: 52px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; gap: 26px; align-items: baseline; flex-wrap: wrap; }
.udmurt-greeting strong { font-family: Georgia, serif; font-size: 1.6rem; font-weight: 500; }
.udmurt-greeting span { color: var(--muted); }

.identity-panel {
  margin: 54px 0 12px;
  padding: 38px 42px;
  background: var(--paper-soft);
  border-top: 2px solid var(--ochre);
  display: grid;
  grid-template-columns: minmax(180px, 290px) 1fr;
  gap: 50px;
  align-items: center;
}
.identity-logo { max-width: 280px; margin: 0 auto; }
.identity-logo img { display: block; width: 100%; }
.identity-copy h2 { font-size: 2rem; margin: 0 0 16px; }
.identity-copy p { margin: 0 0 1em; color: #46423e; }

.pilot-goals { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 34px 0 40px; }
.pilot-goal { padding: 24px 26px 24px 0; }
.pilot-goal + .pilot-goal { border-left: 1px solid var(--line); padding-left: 30px; }
.pilot-goal .goal-label { color: var(--red); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.pilot-goal h2 { font-family: Georgia, serif; font-weight: 500; font-size: 1.55rem; margin: 7px 0 8px; }
.pilot-goal p { margin: 0; color: #4f4b47; }

.next-read { margin-top: 66px; padding: 30px 0 8px; border-top: 1px solid var(--line); max-width: 900px; }
.next-label { color: var(--red); font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.next-title { display: inline-block; font-size: clamp(2rem, 3vw, 2.8rem); margin: 8px 0 8px; text-decoration: none; }
.next-title:hover { color: var(--red); }
.next-read p { margin: 0; max-width: 720px; color: var(--muted); }
.next-arrow { color: var(--red); }

.site-footer { padding: 22px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-family: Georgia, serif; font-size: .94rem; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-mark { display: inline-flex; gap: 9px; align-items: center; }
.footer-mark::before { content: ""; width: 34px; height: 4px; background: linear-gradient(90deg,var(--red) 0 55%,var(--ochre) 55% 100%); }

@media (max-width: 980px) {
  .header-row { align-items: flex-start; }
  .header-actions { gap: 14px 20px; }
  .brand-home { width: 100px; flex-basis: 100px; }
  .pilot-goals { grid-template-columns: 1fr; }
  .pilot-goal { padding: 22px 0; }
  .pilot-goal + .pilot-goal { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
}

@media (max-width: 860px) {
  .header-row, .home-header .header-row { justify-content: flex-start; flex-wrap: wrap; }
  .header-actions { width: 100%; justify-content: flex-start; }
  .hero-grid { grid-template-columns: 1fr; gap: 14px; }
  .logo-wrap { max-width: 430px; margin-inline: auto; }
  .hero-copy { text-align: left; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { padding: 26px 0; }
  .feature + .feature { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .principle { grid-template-columns: 54px 1fr; }
  .principle p { grid-column: 2; }
  .workflow { grid-template-columns: repeat(2, 1fr); }
  .doc-item { grid-template-columns: 1fr; gap: 4px; }
  .collab-paths { grid-template-columns: 1fr; }
  .identity-panel { grid-template-columns: 1fr; gap: 24px; padding: 30px; }
  .identity-logo { max-width: 240px; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .site-header { padding-top: 14px; }
  .brand-home { width: 88px; flex-basis: 88px; }
  .main-nav { gap: 12px 16px; font-size: .96rem; }
  .langs { border-left: 0; padding-left: 0; width: 100%; }
  .hero { padding-top: 4px; }
  .hero-copy h1 { font-size: 2.55rem; }
  .page-title { font-size: 3rem; }
  .workflow { grid-template-columns: 1fr; }
  .principle { grid-template-columns: 42px 1fr; gap: 14px; }
  .feature-head { align-items: flex-start; }
  .identity-panel { padding: 26px 20px; }
}
