:root {
  --ink: #102033;
  --muted: #607089;
  --paper: #fbfcfd;
  --surface: #ffffff;
  --line: #dce3ec;
  --red: #c41932;
  --red-dark: #941326;
  --teal: #087b8b;
  --navy: #12395b;
  --gold: #c89532;
  --shadow: 0 18px 50px rgba(16, 32, 51, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 12px clamp(18px, 4vw, 46px);
  border-bottom: 1px solid rgba(220, 227, 236, 0.85);
  background: rgba(251, 252, 253, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 28px);
  font-size: 0.9rem;
  font-weight: 700;
}

.primary-nav a {
  padding: 8px 0;
  color: #2c3d52;
}

.primary-nav li {
  list-style: none;
}

.primary-nav a:hover {
  color: var(--red);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 800;
  white-space: nowrap;
}

.header-action {
  padding: 0 14px;
  color: var(--surface);
  background: var(--navy);
  font-size: 0.84rem;
}

.button {
  padding: 0 18px;
}

.button-primary {
  color: var(--surface);
  background: var(--red);
}

.button-primary:hover {
  background: var(--red-dark);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--line);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 16, 28, 0.88) 0%, rgba(7, 16, 28, 0.67) 45%, rgba(7, 16, 28, 0.18) 100%),
    linear-gradient(0deg, rgba(7, 16, 28, 0.82), transparent 45%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: 118px 0 110px;
  color: var(--surface);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #8de0e8;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.hero-content p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--max);
  margin: -38px auto 0;
  position: relative;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.quick-strip a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 76px;
  padding: 16px;
  font-weight: 800;
  text-align: center;
}

.quick-strip a + a {
  border-left: 1px solid var(--line);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px 18px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.section-copy p,
.section-heading p {
  color: var(--muted);
  font-size: 1.02rem;
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.principles article,
.news-card,
.service-item,
.team-card,
.rsu-panel,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.principles article {
  padding: 22px;
}

.principles svg,
.service-item svg {
  color: var(--red);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}

.section-heading > p {
  max-width: 520px;
  margin-bottom: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-weight: 800;
}

.news-section {
  max-width: none;
  padding-left: max(18px, calc((100vw - var(--max)) / 2));
  padding-right: max(18px, calc((100vw - var(--max)) / 2));
  background: #eef6f7;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.news-card {
  min-height: 252px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.news-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e7edf2;
}

.news-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.news-date {
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
}

.news-card p {
  color: var(--muted);
}

.news-card .text-link {
  margin-top: auto;
}

.skeleton {
  min-height: 320px;
  background: linear-gradient(90deg, #eef2f6, #ffffff, #eef2f6);
  background-size: 200% 100%;
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  to {
    background-position: -200% 0;
  }
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.service-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 22px;
}

.service-item > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-item svg {
  width: 28px;
  height: 28px;
}

.service-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.service-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--navy);
  background: #f7fafc;
  font-size: 0.86rem;
  font-weight: 800;
}

.service-action:hover {
  border-color: rgba(196, 25, 50, 0.35);
  color: var(--red);
  background: #fff7f8;
}

.service-action svg {
  width: 15px;
  height: 15px;
}

.organs {
  padding-top: 86px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.team-card {
  overflow: hidden;
}

.team-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #e6edf1;
}

.team-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  color: var(--surface);
  background: var(--navy);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 800;
}

.team-card > div:not(.team-placeholder) {
  padding: 18px;
}

.team-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.team-contacts {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 0 !important;
}

.team-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.team-contacts a:hover {
  color: var(--red);
}

.team-contacts svg {
  width: 16px;
  height: 16px;
}

.rsu-panel {
  margin-top: 18px;
  padding: 24px;
}

.rsu-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.rsu-group h4 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 0.96rem;
}

.rsu-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rsu-list span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: #f5f8fb;
  font-weight: 800;
}

.contact-band {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 5vw, 68px);
  padding: 88px max(18px, calc((100vw - var(--max)) / 2));
  color: var(--surface);
  background: var(--navy);
}

.contact-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.contact-methods a,
.contact-methods span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  color: var(--ink);
}

.detail-page {
  background: var(--paper);
}

.detail-hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 84px 18px 70px;
}

.detail-hero h1 {
  color: var(--ink);
  font-size: clamp(2.6rem, 6vw, 5.4rem);
}

.detail-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.12rem;
}

.detail-hero img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #e6edf1;
  box-shadow: var(--shadow);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 22px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px 92px;
}

.detail-content article,
.detail-content aside {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px;
}

.detail-content article p,
.detail-content aside p,
.detail-content li {
  color: var(--muted);
}

.detail-content ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.detail-content li + li {
  margin-top: 8px;
}

.detail-content aside {
  align-self: start;
}

.content-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 84px 18px 96px;
}

.content-page article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(24px, 5vw, 44px);
}

.content-page .entry-meta {
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 800;
}

.content-page .entry-content {
  color: var(--muted);
}

.content-page .entry-content a {
  color: var(--red);
  font-weight: 800;
}

.single-featured {
  margin: 24px 0;
}

.single-featured img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: #314257;
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.check-row {
  display: flex !important;
  grid-template-columns: none;
  align-items: start;
  gap: 10px !important;
  font-weight: 600 !important;
}

.check-row input {
  width: 18px;
  margin-top: 3px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(18px, 4vw, 46px);
  background: #07101c;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer strong {
  color: var(--surface);
}

.site-footer p {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 800;
}

svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke-width: 2.2;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
    justify-self: end;
  }

  .primary-nav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav.is-static {
    display: flex;
    grid-column: auto;
    flex-direction: row;
    justify-content: flex-end;
    border-top: 0;
    padding-top: 0;
  }

  .primary-nav a {
    padding: 12px 0;
  }

  .header-action {
    display: none;
  }

  .quick-strip,
  .intro-grid,
  .news-grid,
  .service-list,
  .team-grid,
  .rsu-groups,
  .contact-band {
    grid-template-columns: 1fr 1fr;
  }

  .detail-hero,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .quick-strip {
    margin-left: 18px;
    margin-right: 18px;
  }

  .quick-strip a:nth-child(3) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading .text-link {
    margin-top: 8px;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 720px;
  }

  .hero-content {
    padding-bottom: 86px;
  }

  .hero-actions,
  .quick-strip,
  .intro-grid,
  .principles,
  .news-grid,
  .service-list,
  .team-grid,
  .rsu-groups,
  .contact-band,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .quick-strip a + a,
  .quick-strip a:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .contact-band {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .site-footer {
    display: grid;
  }

  .primary-nav.is-static {
    display: none;
  }
}
