/* АНО «ЦМОК» — стили сайта, версия 2.1 (светлая)
   Концепция: светлая «карта мониторинга» — страна по федеральным округам
   за матовым стеклом, рамка видоискателя, крупная гротескная типографика. */

:root {
  --paper: #F4F7FB;
  --paper-2: #EAF0F7;
  --white: #FFFFFF;
  --ink: #0F2340;
  --text: #24344D;
  --muted: #51617A;
  --line: #D8E0EA;
  --line-soft: #E6ECF3;
  --red: #C71417;
  --red-dark: #A01013;
  --blue: #2A5DA8;
  --blue-dark: #1C4580;
  --tint: #E4ECF6;

  --map-1: #C6D5E9;
  --map-2: #D2DEEE;
  --map-3: #BFD0E6;
  --map-4: #D5E0EF;
  --map-5: #C9D8EB;
  --map-6: #B9CBE3;
  --map-7: #CFDBEC;
  --map-8: #C3D3E8;
  --map-hover: #E9A9AB;

  --radius: 14px;
  --radius-sm: 8px;
  --font: "Onest", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --display: "Unbounded", "Onest", "Segoe UI", system-ui, sans-serif;
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-variant-numeric: lining-nums;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, p { margin: 0; }

h1, h2 {
  hyphens: auto;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink);
}

h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; }

h3 { font-size: 20px; line-height: 1.3; font-weight: 600; text-wrap: balance; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink); font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: 32px; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 30px;
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: rgba(255, 255, 255, 0.6); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: var(--header-h);
}

.brand {
  display: flex; align-items: center; gap: 14px; flex-shrink: 0;
  margin: 0; padding: 4px 8px 4px 0;
  border: 0; border-radius: 10px; background: transparent;
  color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.brand:hover .brand-text { color: var(--ink); }
.brand-caret {
  width: 12px; height: 12px; flex-shrink: 0;
  fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 200ms ease;
}
.brand[aria-expanded="true"] .brand-caret { transform: rotate(180deg); }

/* панель «О центре» под шапкой */
.about-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(15, 35, 64, 0.14);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.about-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  padding-block: 36px 40px;
  padding-right: 88px;
}
.about-title { margin-bottom: 14px; font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); }
.about-main p:not(.about-title) { max-width: 620px; color: var(--text); }
.about-main p + p { margin-top: 10px; }
.about-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.about-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.about-facts li { display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.about-facts strong { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.about-facts li:last-child strong { color: var(--red); }
.about-facts span { font-size: 14px; color: var(--muted); }
.about-close {
  position: absolute; top: 16px; right: 24px;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: var(--paper); cursor: pointer;
}
.about-close svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.about-close:hover { background: var(--line-soft); }
.brand-logo { width: auto; height: 68px; }
.brand-text {
  max-width: 190px; padding-left: 14px;
  border-left: 1px solid var(--line);
  font-size: 12px; line-height: 1.3; color: var(--muted);
}

.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; margin-right: 8px; font-size: 15px; font-weight: 500; }
.header-cta { flex-shrink: 0; }
.site-nav > a { color: var(--text); white-space: nowrap; }
.site-nav > a:hover { color: var(--red); }

.nav-contacts { display: flex; align-items: center; gap: 20px; margin-left: 8px; }
.nav-phone { display: none; color: var(--ink); font-weight: 600; white-space: nowrap; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  border: 0; background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; border-radius: 1px; background: var(--ink); transition: transform 180ms ease, opacity 180ms ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero: градиент от тёмно-синего к небесно-голубому ---------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: 88px 48px;
  color: var(--white);
  background:
    radial-gradient(60% 55% at 88% 18%, rgba(120, 170, 230, 0.45) 0%, rgba(120, 170, 230, 0) 70%),
    radial-gradient(45% 40% at 8% 100%, rgba(199, 20, 23, 0.10) 0%, rgba(199, 20, 23, 0) 70%),
    linear-gradient(175deg, #0B1F3E 0%, #143A6E 34%, #2F67A8 62%, #9CC0E6 84%, #F4F7FB 100%);
}

/* тонкая сетка мониторинга, гаснет к низу */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.6) 50%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.6) 50%, transparent 85%);
  pointer-events: none;
}

/* рамка видоискателя */
.frame { position: absolute; width: 30px; height: 30px; border: 0 solid rgba(255, 255, 255, 0.5); pointer-events: none; }
.frame-tl { top: 20px; left: 20px; border-top-width: 2px; border-left-width: 2px; }
.frame-tr { top: 20px; right: 20px; border-top-width: 2px; border-right-width: 2px; }
.frame-bl { bottom: 20px; left: 20px; border-bottom-width: 2px; border-left-width: 2px; border-color: rgba(15, 35, 64, 0.35); }
.frame-br { bottom: 20px; right: 20px; border-bottom-width: 2px; border-right-width: 2px; border-color: rgba(15, 35, 64, 0.35); }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.hero-copy { max-width: 760px; min-width: 0; }
.hero-emblem {
  order: 2;
  justify-self: end;
  align-self: start;
  width: 100%;
  max-width: 480px;
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(5, 20, 45, 0.35));
}

.hero-org { margin-bottom: 22px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, 0.72); }

.hero h1 {
  margin-bottom: 26px;
  color: var(--white);
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.hero-lead { max-width: 620px; margin-bottom: 36px; font-size: clamp(17px, 1.5vw, 19px); color: #D6E3F3; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-outline { border-color: rgba(255, 255, 255, 0.7); color: var(--white); background: rgba(255, 255, 255, 0.08); }
.hero .btn-outline:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 96px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(15, 35, 64, 0.14);
  overflow: hidden;
  color: var(--ink);
}
.hero-facts li { display: flex; flex-direction: column; gap: 6px; padding: 24px 28px; border-left: 1px solid var(--line); }
.hero-facts li:first-child { border-left: 0; }
.hero-facts strong { font-family: var(--display); font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.hero-facts li:nth-child(2) strong { color: var(--red); }
.hero-facts span { font-size: 15px; color: var(--muted); }

/* ---------- Баннер преимущества ---------- */

.edge { padding-block: 96px; background: var(--white); border-bottom: 1px solid var(--line); }
.edge-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.edge-label { margin-bottom: 18px; font-size: 15px; font-weight: 600; color: var(--red); }
.edge h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; }
.edge-body > p { margin-bottom: 28px; font-size: 18px; color: var(--text); }
.edge-points { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.edge-points li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--muted); }
.edge-points strong { color: var(--ink); font-weight: 700; }
.edge-sectors {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 0; padding: 0; list-style: none;
}
.edge-sectors li {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  font-size: 15px; font-weight: 600; line-height: 1.25; text-align: center; color: var(--ink);
}

/* ---------- Sections ---------- */

.section { padding-block: 112px; }
.section-white { background: var(--white); }

.section-head { margin-bottom: 52px; max-width: 760px; }
.section-head.split {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 20px 56px; max-width: none;
}
.section-head.split > h2 { flex: 1 1 420px; }
.section-head.split > .section-lead,
.section-head.split > .section-lead-group { flex: 1 1 420px; }
.section-lead-group { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }

.works-cta {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 14px 18px 14px 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--tint); color: var(--ink);
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.works-cta:hover { border-color: var(--blue); background: #DCE7F5; color: var(--ink); transform: translateY(-1px); }
.works-cta-text { display: flex; flex-direction: column; line-height: 1.3; }
.works-cta-text strong { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.works-cta-text span { font-size: 13px; color: var(--muted); }
.works-cta-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px;
  background: var(--red); color: var(--white); font-weight: 700; font-variant-numeric: tabular-nums;
}
.works-cta-arrow { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.section-lead { font-size: 18px; color: var(--muted); }

/* ---------- Services ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service {
  display: flex; flex-direction: column; gap: 14px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.service > p { font-size: 15px; color: var(--muted); }

.service-lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 36px;
  row-gap: 12px;
  align-items: start;
  padding: 40px;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.service-lead .icon { grid-row: 1 / span 2; stroke: #FFFFFF; width: 44px; height: 44px; }
.service-lead h3 { font-family: var(--display); font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.01em; color: var(--white); }
.service-lead-text { grid-column: 2; display: flex; flex-direction: column; gap: 12px; }
.service-lead-text p { color: #C9D5E6; font-size: 16px; }
.service-lead-text p:first-child { color: var(--white); font-weight: 500; }
.service-lead ul {
  grid-column: 3; grid-row: 1 / span 2;
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column;
}
.service-lead li { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 15px; color: #E6EDF6; }
.service-lead li:first-child { border-top: 0; padding-top: 0; }

.icon { width: 36px; height: 36px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Выполненные работы (раскрывающиеся) ---------- */

.works { margin-top: 56px; }
.works-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 18px; }
.works-head h3 { font-family: var(--display); font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.01em; }
.works-head p { font-size: 15px; color: var(--muted); }

.work-group { border-top: 1px solid var(--line); background: var(--white); }
.work-group:first-of-type { border-top: 2px solid var(--ink); }
.work-group:last-of-type { border-bottom: 1px solid var(--line); }
.work-group summary {
  display: flex; align-items: center; gap: 16px;
  min-height: 64px; padding: 14px 20px;
  list-style: none; cursor: pointer;
  font-weight: 600; font-size: 17px; color: var(--ink);
  transition: background-color 160ms ease;
}
.work-group summary::-webkit-details-marker { display: none; }
.work-group summary:hover { background: var(--paper); }
.work-title { flex: 1 1 auto; }
.work-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 28px; padding: 0 10px;
  border-radius: 999px; background: var(--tint);
  font-size: 14px; font-weight: 600; color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.work-group summary::after {
  content: "";
  width: 10px; height: 10px; flex-shrink: 0;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 200ms ease;
}
.work-group[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.work-group[open] summary { background: var(--paper); }

.work-body { padding: 4px 20px 24px; }
.work-note { max-width: 820px; margin-bottom: 14px; font-size: 15px; color: var(--muted); }
.work-list { margin: 0; padding: 0; list-style: none; }
.work-list li {
  display: grid; grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr); gap: 4px 24px;
  padding: 12px 0; border-top: 1px solid var(--line-soft);
  font-size: 15px; color: var(--text);
}
.work-list li:first-child { border-top: 0; }
.work-region { font-weight: 600; color: var(--ink); }

/* ---------- Courts ---------- */

.courts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0; padding: 0; list-style: none;
  border-top: 2px solid var(--ink);
}
.court { display: flex; flex-direction: column; gap: 10px; padding: 28px 28px 8px 0; }
.court + .court { padding-left: 28px; border-left: 1px solid var(--line); }
.court-name { font-family: var(--display); font-size: 18px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); }
.court-top .court-name { color: var(--red); }
.court p:not(.court-name) { font-size: 15px; color: var(--muted); }
.court .text-link { margin-top: 4px; font-size: 15px; }

/* ---------- Results ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  padding: 44px;
  border-radius: var(--radius);
  background: var(--tint);
  margin-bottom: 20px;
}
.feature-meta { margin-bottom: 16px; font-size: 14px; font-weight: 600; color: var(--red); }
.feature h3 { font-family: var(--display); font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; line-height: 1.18; letter-spacing: -0.015em; }
.feature-body { display: flex; flex-direction: column; gap: 14px; color: var(--text); }

.cases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.case { display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.case-place { font-size: 13px; font-weight: 600; color: var(--blue); }
.case h3 { font-size: 18px; }
.case p:not(.case-place) { font-size: 15px; color: var(--muted); }

/* ---------- Timeline & award ---------- */

.timeline {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px;
  margin: 0; padding: 0; list-style: none;
  border-top: 2px solid var(--ink);
}
.timeline li { position: relative; padding-top: 24px; }
.timeline li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.timeline li:last-child::before { background: var(--red); }
.timeline p:not(.timeline-year) { font-size: 15px; color: var(--muted); }
.timeline-year { margin-bottom: 8px; font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.timeline-year.accent { color: var(--red); }

.award {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center;
  margin-top: 64px; padding: 28px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
}
.award img { width: 100%; border-radius: 8px; }
.award h3 { margin-bottom: 12px; font-size: 22px; }
.award p { color: var(--muted); }

/* ---------- Publications ---------- */

.pubs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pub { display: flex; flex-direction: column; gap: 10px; }
.pub h3 { font-size: 18px; }
.pub-type { font-size: 13px; font-weight: 600; color: var(--blue); }
.pub-cover {
  display: flex; align-items: center; justify-content: center;
  height: 380px; margin-bottom: 10px; padding: 32px;
  border-radius: var(--radius); background: var(--paper-2);
}
.pub-cover img { width: auto; max-height: 100%; border-radius: 4px; box-shadow: 0 16px 32px rgba(15, 35, 64, 0.22); }
.pub-cover-text { flex-direction: column; gap: 8px; background: var(--ink); color: var(--white); font-family: var(--display); font-size: 28px; font-weight: 600; text-align: center; }
.pub-cover-sub { font-family: var(--font); font-size: 14px; font-weight: 500; color: #C9D5E6; }

/* ---------- Leader ---------- */

.leader-inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.leader-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
#leader h2 { margin-bottom: 6px; }
.leader-role { margin-bottom: 28px; font-size: 18px; color: var(--muted); }
.leader-list { margin: 0 0 36px; padding: 0; list-style: none; }
.leader-list li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--text); }
.leader-list li:last-child { border-bottom: 1px solid var(--line); }
.awards-title { margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.awards { display: flex; flex-wrap: wrap; gap: 12px; }
.awards a { display: block; overflow: hidden; border-radius: 6px; border: 1px solid var(--line); transition: transform 160ms ease; }
.awards a:hover { transform: translateY(-2px); }
.awards img { width: 96px; height: 132px; object-fit: cover; object-position: top; }

/* ---------- Contact ---------- */

.contact-inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.contact-copy h2 { margin-bottom: 18px; }
.contact-copy .section-lead { margin-bottom: 36px; font-size: 17px; }
.contact-list { display: flex; flex-direction: column; gap: 6px; font-style: normal; }
.contact-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 22px; }
.contact-list .contact-line a { font-size: clamp(20px, 2vw, 26px); font-weight: 700; color: var(--ink); white-space: nowrap; }
.contact-list .contact-line a:hover { color: var(--red); }
.contact-address { color: var(--muted); }

.contact-form {
  display: flex; flex-direction: column; gap: 20px;
  padding: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.contact-form input[type="text"], .contact-form select, .contact-form textarea {
  width: 100%; min-height: 50px; padding: 0 14px;
  border: 1px solid #C3CDD9; border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink); font: inherit; font-weight: 400;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.contact-form textarea { padding: 12px 14px; resize: vertical; min-height: 132px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(42, 93, 168, 0.18);
}
.contact-form [aria-invalid="true"] { border-color: var(--red); }
.contact-form .consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--blue); }
.consent.invalid span { color: var(--red); }
.contact-form .btn { align-self: flex-start; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-size: 15px; }
.form-status.ok { color: #1D6B3A; font-weight: 600; }
.form-status.err { color: var(--red); font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer { padding-block: 56px; background: var(--paper-2); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px 48px; }
.footer-inner a { color: var(--text); }
.footer-inner a:hover { color: var(--red); }
.footer-logo { width: auto; height: 100px; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.culture-link { display: inline-flex; align-items: center; gap: 8px; }
.culture-link img { width: 28px; height: 28px; border-radius: 6px; box-shadow: 0 2px 6px rgba(15, 35, 64, 0.2); }
.footer-contacts { display: flex; flex-direction: column; gap: 4px; font-style: normal; }
.footer-contacts strong { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.footer-contacts .contact-line { gap: 2px 18px; }
.footer-contacts .contact-line a { font-weight: 600; color: var(--ink); }
.footer-contacts .footer-reqs { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Inner pages ---------- */

.page-hero { padding-block: 72px 56px; background: radial-gradient(120% 120% at 90% 0%, #FFFFFF 0%, var(--paper-2) 100%); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 900px; font-size: clamp(30px, 4.2vw, 52px); line-height: 1.1; }
.page-hero p:not(.kicker) { max-width: 760px; margin-top: 20px; font-size: 18px; color: var(--muted); }
.page-hero .kicker { margin-bottom: 14px; font-size: 15px; font-weight: 500; color: var(--muted); }
.breadcrumbs { margin-bottom: 20px; font-size: 14px; color: var(--muted); }
.breadcrumbs a { color: var(--blue); }

.prose { max-width: 820px; padding-block: 72px 112px; }
.prose p, .prose li { font-size: 17px; color: var(--text); }
.prose p + p { margin-top: 16px; }
.prose h2 { margin: 56px 0 24px; font-size: clamp(24px, 2.6vw, 32px); }
.prose h2:first-child { margin-top: 0; }

.numbered { margin: 0; padding: 0; list-style: none; counter-reset: item; display: flex; flex-direction: column; gap: 12px; }
.numbered li { position: relative; padding: 18px 20px 18px 64px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.numbered li::before { position: absolute; top: 18px; left: 20px; counter-increment: item; content: counter(item, decimal-leading-zero); font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--red); }

.callout { margin-top: 24px; padding: 32px; border-radius: var(--radius); background: var(--tint); }
.callout p { color: var(--text) !important; }
.callout .callout-lead { color: var(--ink) !important; font-weight: 600; font-size: 19px !important; }

.policy h2 { font-family: var(--font); font-size: 21px; font-weight: 700; letter-spacing: 0; margin: 40px 0 14px; }
.policy p { font-size: 16px; }
.policy p + p { margin-top: 10px; }

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
  :root { --header-h: 152px; }
  .header-inner { flex-wrap: wrap; gap: 0 16px; padding-block: 8px 0; min-height: 0; }
  .brand { order: 1; margin-right: auto; }
  .header-cta { order: 2; }
  .site-nav {
    order: 3;
    flex: 1 0 100%;
    gap: 6px;
    margin: 8px -32px 0;
    padding: 8px 32px 10px;
    overflow-x: auto;
    scrollbar-width: none;
    border-top: 1px solid var(--line-soft);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 28px), transparent 100%);
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav > a {
    display: inline-flex; align-items: center; flex-shrink: 0;
    min-height: 40px; padding: 0 16px;
    border: 1px solid var(--line); border-radius: 999px; background: var(--white);
    font-size: 15px;
  }
  .site-nav > a:hover { border-color: var(--red); }

  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-lead { grid-template-columns: auto minmax(0, 1fr); }
  .service-lead ul { grid-column: 2; grid-row: auto; margin-top: 12px; }
  .service-lead li:first-child { border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 12px; }
  .courts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .court:nth-child(3) { padding-left: 0; border-left: 0; }
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
}

@media (max-width: 1024px) {
  .brand-logo { height: 56px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .edge-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-emblem { order: -1; justify-self: end; max-width: 300px; }
  .hero-org { display: none; }

  .hero { padding-block: 56px 40px; }
  .hero-facts { margin-top: 64px; }

  .feature, .leader-inner, .contact-inner, .award, .about-inner { grid-template-columns: minmax(0, 1fr); }
  .about-inner { gap: 28px; }
  .feature { gap: 20px; }
  .pubs { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .leader-photo { max-width: 560px; }
}

@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  :root { --header-h: 128px; }
  .brand-logo { height: 48px; }
  .site-nav {
    flex-wrap: nowrap; justify-content: space-between;
    margin-inline: -16px; padding: 6px 8px 8px; gap: 0;
    -webkit-mask-image: none; mask-image: none;
  }
  .site-nav > a {
    min-height: 40px; padding: 0 2px;
    border: 0; border-radius: 6px; background: transparent;
    font-size: clamp(9.5px, 2.75vw, 12.5px); font-weight: 600; letter-spacing: -0.015em;
  }
  .site-nav > a:hover { color: var(--red); }
  .about-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 24px 28px; padding-right: 16px; }
  .about-title { font-size: 19px; padding-right: 48px; }
  .about-close { top: 14px; right: 12px; }
  .section { padding-block: 64px; }
  .section-head { margin-bottom: 32px; }
  .section-head.split > h2, .section-head.split > .section-lead, .section-head.split > .section-lead-group { flex-basis: 100%; }
  .works-cta { width: 100%; }
  .works-cta-text { flex: 1 1 auto; }
  .section-lead { font-size: 16px; }

  .frame { width: 20px; height: 20px; }
  .frame-tl, .frame-tr { top: 10px; }
  .frame-bl, .frame-br { bottom: 10px; }
  .frame-tl, .frame-bl { left: 8px; }
  .frame-tr, .frame-br { right: 8px; }

  .hero h1 { font-size: 30px; line-height: 1.08; }
  .hero-inner { display: block; }
  .hero-emblem { float: right; width: 116px; max-width: none; margin: 4px 0 6px 12px; }
  .hero h1 br { display: none; }
  .hero-copy::before { content: ""; display: table; }
  .works { margin-top: 40px; }
  .work-group summary { padding: 14px 4px; font-size: 16px; }
  .work-body { padding: 4px 4px 20px; }
  .work-list li { grid-template-columns: minmax(0, 1fr); }
  .edge { padding-block: 64px; }
  .edge-sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .edge-sectors li { min-height: 52px; padding: 6px 10px; font-size: 14px; border-radius: 14px; }
  .edge-body > p { font-size: 16px; }
  .footer-logo { height: 84px; }
  .hero-actions .btn { width: 100%; }
  .hero::before { background-size: 44px 44px; }
  .hero-facts { grid-template-columns: minmax(0, 1fr); margin-top: 48px; }
  .hero-facts li { border-left: 0; border-top: 1px solid var(--line); padding: 18px 20px; }
  .hero-facts li:first-child { border-top: 0; }

  .services { grid-template-columns: minmax(0, 1fr); }
  .service, .service-lead { padding: 24px; }
  .service-lead { grid-template-columns: minmax(0, 1fr); }
  .service-lead .icon { grid-row: auto; }
  .service-lead-text, .service-lead ul { grid-column: 1; }

  .courts { grid-template-columns: minmax(0, 1fr); }
  .court, .court + .court { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }

  .feature { padding: 26px 22px; }
  .cases { grid-template-columns: minmax(0, 1fr); }
  .case { padding: 22px; }

  .timeline { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 2px solid var(--ink); padding-left: 20px; row-gap: 24px; }
  .timeline li { padding-top: 0; }
  .timeline li::before { top: 6px; left: -27px; }

  .award { margin-top: 40px; padding: 16px; gap: 20px; }
  .pub-cover { height: 320px; }

  .contact-form { padding: 22px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .contact-form .btn { align-self: stretch; }

  .page-hero { padding-block: 48px 40px; }
  .prose { padding-block: 48px 72px; }
  .numbered li { padding: 16px 16px 16px 56px; }
  .numbered li::before { left: 16px; top: 16px; }
}
