/* orenidc.ru — общий локальный стиль. Внешние шрифты и CDN не используются. */
:root {
  --ink: #152231;
  --muted: #5c6875;
  --line: #dce3e9;
  --surface: #ffffff;
  --surface-soft: #f4f7f9;
  --accent: #24557a;
  --accent-dark: #173b57;
  --accent-soft: #e8f0f5;
  --highlight: #e69a34;
  --success: #287a54;
  --warning: #9b641d;
  --radius: 18px;
  --shadow: 0 16px 40px rgba(21, 34, 49, .09);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
body.theme-ed {
  --accent: #174d78;
  --accent-dark: #0e3351;
  --accent-soft: #e6eff6;
  --highlight: #e69a34;
}
body.theme-svk {
  --accent: #36328a;
  --accent-dark: #24205f;
  --accent-soft: #eeedfa;
  --highlight: #f0a23b;
}
body.theme-proekt {
  --accent: #175d64;
  --accent-dark: #0d4147;
  --accent-soft: #e4f1f1;
  --highlight: #d99232;
}
body.theme-portal {
  --accent: #274a67;
  --accent-dark: #19364e;
  --accent-soft: #e9f0f5;
  --highlight: #e49a37;
}

img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent-dark); }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: #fff;
  background: var(--accent-dark);
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 850px); margin-inline: auto; }

.utility-bar {
  color: #eaf1f6;
  background: var(--accent-dark);
  font-size: 14px;
}
.utility-bar .container {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.utility-bar a { color: #fff; text-decoration: none; }
.utility-bar a:hover { text-decoration: underline; }

.site-header {
  position: relative;
  z-index: 50;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--line);
}
.header-main {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 14px 4px 14px 4px;
  box-shadow: inset -8px -8px 0 rgba(255,255,255,.08);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.03em;
}
.brand-name { display: block; font-weight: 780; font-size: 18px; line-height: 1.2; }
.brand-note { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.35; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 11px 12px;
  border-radius: 9px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent-dark); background: var(--accent-soft); }
.nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(120deg, var(--accent-dark), var(--accent) 72%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 55%;
  opacity: .18;
  background-image:
    linear-gradient(30deg, transparent 48%, #fff 49%, #fff 51%, transparent 52%),
    linear-gradient(150deg, transparent 48%, #fff 49%, #fff 51%, transparent 52%);
  background-size: 54px 94px;
}
.hero .container { position: relative; z-index: 1; padding-block: clamp(64px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 64px; align-items: end; }
.eyebrow {
  margin: 0 0 15px;
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero h1, .page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.04;
  letter-spacing: -.04em;
}
.hero-lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.88);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note {
  padding: 22px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}
.hero-note strong { display: block; margin-bottom: 6px; font-size: 19px; }
.hero-note p { margin: 0; color: rgba(255,255,255,.82); font-size: 15px; }

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border: 2px solid transparent;
  border-radius: 11px;
  font-weight: 760;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: var(--accent-dark); background: #fff; }
.btn-primary:hover { color: var(--accent-dark); background: #f4f7f9; }
.btn-secondary { color: #fff; border-color: rgba(255,255,255,.55); background: transparent; }
.btn-secondary:hover { color: #fff; border-color: #fff; }
.btn-accent { color: #fff; background: var(--accent); }
.btn-accent:hover { color: #fff; background: var(--accent-dark); }

.page-hero { color: #fff; background: linear-gradient(120deg, var(--accent-dark), var(--accent)); }
.page-hero .container { padding-block: 58px 64px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); }
.page-hero p { max-width: 780px; margin: 18px 0 0; color: rgba(255,255,255,.84); font-size: 19px; }
.breadcrumbs { margin: 0 0 20px; font-size: 14px; }
.breadcrumbs a { color: #fff; }
.breadcrumbs span { color: rgba(255,255,255,.72); }

.section { padding-block: clamp(56px, 7vw, 88px); }
.section-soft { background: var(--surface-soft); }
.section-tight { padding-block: 38px; }
.section-head { max-width: 780px; margin-bottom: 34px; }
.section-head h2, .content h2 { margin: 0 0 14px; font-size: clamp(29px, 4vw, 42px); line-height: 1.15; letter-spacing: -.025em; }
.section-head p { margin: 0; color: var(--muted); font-size: 18px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 26px rgba(21,34,49,.04);
}
.card h2, .card h3 { margin: 0 0 10px; line-height: 1.25; }
.card h3 { font-size: 21px; }
.card p { margin: 0; color: var(--muted); }
.card p + p, .card p + a { margin-top: 16px; }
.card-link { display: inline-flex; margin-top: 18px; font-weight: 750; }
.card-accent { border-top: 5px solid var(--highlight); }
.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 19px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 12px;
  font-weight: 850;
}

.fact-strip { border-bottom: 1px solid var(--line); background: #fff; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 25px 28px; border-right: 1px solid var(--line); }
.fact:first-child { padding-left: 0; }
.fact:last-child { border-right: 0; }
.fact strong { display: block; color: var(--accent-dark); font-size: 20px; }
.fact span { color: var(--muted); font-size: 14px; }

.content { padding-block: 56px 80px; }
.content h2 { margin-top: 48px; font-size: 30px; }
.content h2:first-child { margin-top: 0; }
.content h3 { margin-top: 32px; font-size: 22px; }
.content p, .content li { color: #334250; }
.content ul, .content ol { padding-left: 1.35em; }
.content li + li { margin-top: 8px; }
.lead { color: var(--ink) !important; font-size: 21px; }

.notice {
  padding: 22px 24px;
  color: #263744;
  background: var(--accent-soft);
  border-left: 5px solid var(--accent);
  border-radius: 0 12px 12px 0;
}
.notice h2, .notice h3 { margin-top: 0; }
.notice p:last-child { margin-bottom: 0; }
.notice-warning { background: #fff6e8; border-left-color: var(--highlight); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-active { color: var(--success); background: #e7f5ed; }
.status-finished { color: #5d6570; background: #edf0f2; }
.status-empty { color: var(--warning); background: #fff3de; }

.discussion-list { display: grid; gap: 16px; }
.discussion-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.discussion-item h3 { margin: 0 0 5px; font-size: 20px; }
.discussion-item p { margin: 0; color: var(--muted); font-size: 15px; }
.empty-state { padding: 36px; text-align: center; border: 1px dashed #aab8c4; border-radius: var(--radius); background: #fff; }
.empty-state h3 { margin: 10px 0 6px; }
.empty-state p { max-width: 620px; margin: 0 auto; color: var(--muted); }

.files-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 15px; }
.files-table th, .files-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.files-table th { color: var(--accent-dark); background: var(--accent-soft); }
.files-table a { font-weight: 750; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.table-wrap .files-table { margin: 0; min-width: 680px; }

.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; }
.contact-list { margin: 0; }
.contact-list div { padding: 17px 0; border-bottom: 1px solid var(--line); }
.contact-list div:first-child { padding-top: 0; }
.contact-list dt { color: var(--muted); font-size: 13px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.contact-list dd { margin: 4px 0 0; font-size: 18px; font-weight: 650; }

.org-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.org-card { position: relative; overflow: hidden; min-height: 310px; padding: 30px; color: #fff; border-radius: 22px; text-decoration: none; box-shadow: var(--shadow); }
.org-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; bottom: -70px; border: 28px solid rgba(255,255,255,.12); border-radius: 50%; }
.org-card:hover { color: #fff; transform: translateY(-3px); transition: transform .18s ease; }
.org-card-ed { background: linear-gradient(145deg, #0e3351, #1e628f); }
.org-card-svk { background: linear-gradient(145deg, #24205f, #514da8); }
.org-card-proekt { background: linear-gradient(145deg, #0d4147, #24737a); }
.org-card .org-code { display: inline-grid; place-items: center; width: 52px; height: 52px; background: rgba(255,255,255,.14); border-radius: 13px; font-weight: 850; }
.org-card h2 { margin: 56px 0 10px; font-size: 27px; line-height: 1.2; }
.org-card p { margin: 0; color: rgba(255,255,255,.8); }
.org-card .go { position: absolute; left: 30px; bottom: 27px; font-weight: 760; }

.site-footer { color: #dce7ee; background: #142838; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 40px; padding-block: 48px; }
.site-footer h2, .site-footer h3 { margin: 0 0 12px; color: #fff; font-size: 17px; }
.site-footer p { margin: 0; color: #b9c7d1; font-size: 14px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: #fff; font-size: 14px; }
.footer-bottom { padding-block: 17px; border-top: 1px solid rgba(255,255,255,.12); color: #9fb0bc; font-size: 13px; }

.text-muted { color: var(--muted); }
.text-small { font-size: 14px; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 12px 20px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(21,34,49,.1); }
  .site-nav.is-open { display: block; }
  .site-nav ul { align-items: stretch; flex-direction: column; }
  .site-nav a { padding: 12px 14px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-note { max-width: 620px; }
  .cards, .org-cards { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .container, .narrow { width: min(calc(100% - 28px), var(--container)); }
  .utility-bar .container { min-height: 42px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 0; padding-block: 6px; }
  .utility-bar .utility-note { display: none; }
  .header-main { min-height: 78px; gap: 12px; }
  .brand { min-width: 0; gap: 10px; }
  .brand-mark { width: 44px; height: 44px; flex-basis: 44px; border-radius: 11px 3px 11px 3px; font-size: 15px; }
  .brand-name { font-size: 15px; }
  .brand-note { display: none; }
  .hero .container { padding-block: 58px 64px; }
  .hero::after { inset-left: 25%; }
  .hero h1 { font-size: clamp(36px, 12vw, 52px); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .facts, .grid-2, .grid-3, .cards, .org-cards, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .fact { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .org-card { min-height: 280px; }
  .discussion-item { grid-template-columns: 1fr; }
  .section { padding-block: 52px; }
  .card { padding: 23px; }
  .footer-grid { gap: 28px; padding-block: 40px; }
}

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

@media print {
  .utility-bar, .site-nav, .nav-toggle, .hero-actions, .site-footer { display: none !important; }
  body { color: #000; font-size: 12pt; }
  .site-header { border-bottom: 1px solid #999; }
  .hero, .page-hero { color: #000; background: #fff; }
  .hero-lead, .page-hero p { color: #333; }
  .section, .content { padding-block: 22px; }
  a { color: #000; text-decoration: underline; }
}
