:root {
  --ink: #102d43;
  --ink-soft: #31566b;
  --paper: #eef7f8;
  --paper-soft: #fbfeff;
  --line: #c6dfe6;
  --gold: #c7a05a;
  --red: #8f2d2d;
  --blue: #063a5b;
  --blue-soft: #1d81b3;
  --sky: #61bbe4;
  --sky-soft: #d8f2fb;
  --sea-glass: #76c7c8;
  --white: #ffffff;
  --shadow: 0 18px 46px rgba(6, 58, 91, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content: 1480px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(97, 187, 228, 0.28), transparent 34rem),
    radial-gradient(circle at 82% 8%, rgba(199, 160, 90, 0.16), transparent 26rem),
    linear-gradient(180deg, #f7fcfd 0%, #eaf6f8 42%, #fbfeff 100%);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.62;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
p,
li,
a,
span,
td,
th {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.icon-link span,
.requisites td,
.footer a,
.news-video__fallback a {
  overflow-wrap: anywhere;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(238, 247, 248, 0.92);
  border-bottom: 1px solid rgba(97, 187, 228, 0.30);
  backdrop-filter: blur(16px);
}

.topbar__inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.brand__mark,
.seal-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(199, 160, 90, 0.88);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: center;
}

.brand__mark {
  position: relative;
  overflow: hidden;
  color: transparent;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0;
}

.brand__mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("bl-emblem.png") center / contain no-repeat;
}

.seal-placeholder {
  color: var(--blue);
  background: linear-gradient(145deg, var(--sky-soft), rgba(255, 255, 255, 0.86));
}

.brand__name {
  display: block;
  color: var(--blue);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.15;
  white-space: nowrap;
}

.brand__note {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.nav a {
  position: relative;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--blue);
  font-size: 15px;
  line-height: 1.25;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--blue-soft);
  color: var(--paper-soft);
  outline: none;
}

.nav a.is-current,
.nav a[aria-current="page"] {
  color: var(--blue);
  background: rgba(216, 242, 251, 0.78);
  box-shadow: inset 0 0 0 1px rgba(29, 129, 179, 0.28), 0 8px 18px rgba(6, 58, 91, 0.08);
}

.nav a.is-current::after,
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
}

.nav a.is-current:hover,
.nav a.is-current:focus-visible,
.nav a[aria-current="page"]:hover,
.nav a[aria-current="page"]:focus-visible {
  color: var(--paper-soft);
  background: var(--blue-soft);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 84% 18%, rgba(216, 242, 251, 0.30), transparent 20rem),
    radial-gradient(circle at 76% 76%, rgba(199, 160, 90, 0.25), transparent 24rem),
    linear-gradient(120deg, rgba(6, 58, 91, 0.99), rgba(29, 129, 179, 0.92) 58%, rgba(97, 187, 228, 0.78));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(150deg, transparent 0 54%, rgba(255, 255, 255, 0.08) 54% 55%, transparent 55%),
    repeating-linear-gradient(170deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 34px);
  opacity: 0.72;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -28% 42%;
  height: 360px;
  background: rgba(216, 242, 251, 0.13);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--content);
  margin: 0 auto;
  padding: 92px 24px 86px;
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(320px, 0.64fr);
  gap: 36px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-title {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.hero-title h1 {
  max-width: none;
  font-size: clamp(34px, 3.7vw, 50px);
  line-height: 1;
}

.hero-emblem {
  flex: 0 0 clamp(104px, 9vw, 132px);
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(216, 242, 251, 0.56);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}

.hero-emblem img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--sky-soft);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--gold);
}

.subpage-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 84% 20%, rgba(216, 242, 251, 0.26), transparent 20rem),
    linear-gradient(120deg, rgba(6, 58, 91, 0.99), rgba(29, 129, 179, 0.88) 68%, rgba(97, 187, 228, 0.70));
}

.subpage-hero__inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 62px 24px 58px;
}

.subpage-hero h1 {
  max-width: 920px;
  font-size: clamp(38px, 5.6vw, 68px);
}

.subpage-hero .lead {
  max-width: 880px;
}

.subpage-hero--kcps {
  position: relative;
  overflow: hidden;
}

.subpage-hero--kcps::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 84% 50%, rgba(199, 160, 90, 0.20), transparent 15rem),
    linear-gradient(112deg, transparent 0 52%, rgba(216, 242, 251, 0.10) 52% 53%, transparent 53% 61%, rgba(255, 255, 255, 0.08) 61% 62%, transparent 62%);
  pointer-events: none;
}

.subpage-hero--kcps .subpage-hero__inner {
  position: relative;
  z-index: 1;
  padding-right: clamp(220px, 24vw, 330px);
}

.kcps-hero-orbit {
  position: absolute;
  top: 50%;
  right: max(24px, calc((100vw - var(--content)) / 2 + 24px));
  width: clamp(190px, 18vw, 260px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: clamp(7px, 0.8vw, 12px);
  border: 2px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(6, 58, 91, 0.50), rgba(97, 187, 228, 0.10)) padding-box,
    conic-gradient(from 210deg, rgba(216, 242, 251, 0.20), rgba(199, 160, 90, 0.90), rgba(255, 255, 255, 0.34), rgba(216, 242, 251, 0.10), rgba(199, 160, 90, 0.70), rgba(216, 242, 251, 0.20)) border-box;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.20);
  transform: translateY(-50%);
  isolation: isolate;
}

.kcps-hero-orbit::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: 18%;
  bottom: 18%;
  left: -56%;
  right: 48%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(216, 242, 251, 0.20) 34%, rgba(199, 160, 90, 0.34) 72%, transparent);
  filter: blur(0.5px);
  transform: rotate(-12deg);
}

.kcps-hero-orbit::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(216, 242, 251, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.kcps-hero-mark {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.22));
}

.content-block {
  max-width: 860px;
}

.content-block p,
.content-block li {
  color: var(--ink-soft);
  font-size: 18px;
}

.content-block ul {
  padding-left: 22px;
}

.content-block--wide {
  max-width: 100%;
}

.kcps-profile {
  overflow: hidden;
  padding: 0;
}

.kcps-profile__cover {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 2;
  object-fit: cover;
}

.kcps-profile__body {
  display: block;
  padding: 24px 26px;
  text-align: left;
}

.kcps-profile__avatar {
  display: block;
  width: 152px;
  height: 152px;
  margin: -76px auto 18px;
  border: 8px solid var(--paper-soft);
  border-radius: 28px;
  object-fit: cover;
  background: var(--white);
  box-shadow: 0 20px 44px rgba(6, 58, 91, 0.20);
}

.kcps-profile__body h3 {
  font-size: clamp(28px, 3vw, 38px);
}

.kcps-profile__body p {
  margin-top: 0;
}

.kcps-profile__summary {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.48;
}

.kcps-profile__list {
  padding: 0 22px 22px;
}

.kcps-profile__list div:first-child {
  padding-top: 16px;
  border-top: 1px solid rgba(29, 129, 179, 0.16);
}

.kcps-facts {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.kcps-facts div {
  padding: 14px 16px;
  border-left: 4px solid var(--blue-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(216, 242, 251, 0.36);
  color: var(--ink-soft);
}

.partner-card {
  display: block;
  padding: 30px;
  border-color: rgba(29, 129, 179, 0.30);
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.95), transparent 15rem),
    radial-gradient(circle at 92% 8%, rgba(199, 160, 90, 0.18), transparent 16rem),
    linear-gradient(135deg, rgba(251, 254, 255, 0.96), rgba(216, 242, 251, 0.72));
}

.partner-card > * {
  position: relative;
  z-index: 1;
}

.partner-card::after {
  content: "";
  position: absolute;
  right: -72px;
  bottom: -92px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(29, 129, 179, 0.10);
}

.partner-card__eyebrow {
  margin-bottom: 22px;
}

.partner-card__body {
  display: grid;
  grid-template-columns: minmax(210px, 0.62fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.partner-card__text h3 {
  font-size: clamp(28px, 3vw, 40px);
}

.partner-card__text p {
  margin-top: 14px;
  font-size: 18px;
}

.partner-logo {
  display: block;
  width: 100%;
  max-width: 240px;
  justify-self: center;
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 48px rgba(6, 58, 91, 0.16);
}

.page-note {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 4px solid var(--blue-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(97, 187, 228, 0.12);
  color: var(--ink-soft);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 820px;
  font-size: clamp(44px, 7vw, 82px);
  letter-spacing: -0.04em;
}

h2 {
  color: var(--blue);
  font-size: clamp(34px, 4.4vw, 58px);
  letter-spacing: -0.035em;
}

h3 {
  color: var(--blue);
  font-size: 24px;
}

.lead {
  max-width: 780px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.1vw, 23px);
}

.hero__actions,
.actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.button--primary {
  color: var(--blue);
  background: linear-gradient(135deg, var(--paper-soft), var(--sky-soft));
}

.button--secondary {
  color: var(--paper-soft);
  border-color: rgba(216, 242, 251, 0.56);
  background: rgba(216, 242, 251, 0.10);
}

.hero-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.18);
}

.hero-card .media-placeholder {
  min-height: 360px;
}

.home-masthead {
  border-bottom: 1px solid rgba(97, 187, 228, 0.28);
  background: linear-gradient(180deg, rgba(251, 254, 255, 0.96), rgba(238, 247, 248, 0.92));
}

.home-masthead__inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 22px 24px 0;
}

.home-masthead__brand {
  display: grid;
  grid-template-columns: clamp(160px, 16vw, 240px) minmax(0, 1fr);
  gap: clamp(22px, 3.2vw, 46px);
  align-items: center;
  padding-bottom: 26px;
}

.home-masthead__emblem {
  margin: 0;
  background: transparent;
}

.home-masthead__emblem img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(6, 58, 91, 0.16));
}

.home-masthead .eyebrow {
  margin-bottom: 10px;
  color: var(--blue-soft);
}

.home-masthead h1 {
  max-width: none;
  color: var(--blue);
  font-size: clamp(38px, 4.3vw, 58px);
}

.home-masthead__lead {
  max-width: 980px;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.7vw, 21px);
}

.home-masthead__strip {
  min-height: 70px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background:
    linear-gradient(105deg, rgba(6, 58, 91, 0.96), rgba(29, 129, 179, 0.72)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0 1px, transparent 1px 34px);
}

.home-masthead__strip a {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 14px 18px;
  color: var(--white);
  border-left: 1px solid rgba(216, 242, 251, 0.18);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.home-masthead__strip a:hover,
.home-masthead__strip a:focus-visible {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.88);
}

.media-placeholder {
  min-height: 260px;
  border: 1px solid rgba(216, 242, 251, 0.18);
  border-radius: 22px;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(6, 58, 91, 0.86), rgba(29, 129, 179, 0.72));
  box-shadow: 0 16px 34px rgba(6, 58, 91, 0.12);
  overflow: hidden;
}

.media-placeholder--light {
  min-height: 160px;
  color: var(--ink-soft);
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.92), transparent 40%),
    linear-gradient(145deg, rgba(251, 254, 255, 0.98), rgba(232, 244, 247, 0.94));
  border-color: rgba(29, 129, 179, 0.14);
}

.media-placeholder:has(img) {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: 0 18px 42px rgba(6, 58, 91, 0.16);
}

.text-media-card {
  min-height: 160px;
  display: block;
  padding: 20px 22px;
  border: 1px solid rgba(29, 129, 179, 0.18);
  border-left: 4px solid var(--blue-soft);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(251, 254, 255, 0.98), rgba(216, 242, 251, 0.48)),
    linear-gradient(115deg, rgba(6, 58, 91, 0.06), rgba(199, 160, 90, 0.08));
  box-shadow: 0 14px 32px rgba(6, 58, 91, 0.10);
}

.text-media-card .small-label,
.text-media-card p {
  margin: 0;
}

.text-media-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 20px;
  line-height: 1.18;
}

.text-media-card p:not(.small-label) {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.5;
}

.text-media-card p + p {
  margin-top: 10px;
}

.home-news-card .text-media-card {
  min-height: 220px;
  margin-bottom: 16px;
}

.card > .text-media-card:first-child {
  margin-bottom: 16px;
}

.section {
  max-width: var(--content);
  margin: 0 auto;
  padding: 76px 24px;
}

.section--tight {
  padding-top: 44px;
}

.section--structure-flow {
  padding-top: 34px;
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 0.52fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.section__intro {
  margin: 0;
  color: var(--ink-soft);
  font-size: 19px;
}

.news-home {
  max-width: var(--content);
  margin: 0 auto;
  padding: 34px 24px 78px;
}

.announcement-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(320px, 0.5fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 34px;
  padding: 24px;
  border: 1px solid rgba(29, 129, 179, 0.24);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(251, 254, 255, 0.94), rgba(216, 242, 251, 0.68)),
    linear-gradient(115deg, rgba(199, 160, 90, 0.10), transparent 62%);
  box-shadow: var(--shadow);
}

.announcement-panel--compact {
  margin-bottom: 24px;
}

.announcement-panel h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.announcement-panel p:not(.small-label) {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.announcement-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  color: var(--white);
  text-decoration: none;
  background:
    linear-gradient(115deg, rgba(6, 58, 91, 0.98), rgba(29, 129, 179, 0.86) 72%, rgba(199, 160, 90, 0.78)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0 1px, transparent 1px 28px);
  box-shadow: 0 16px 40px rgba(6, 58, 91, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.announcement-list {
  display: grid;
  gap: 12px;
}

.announcement-card:hover,
.announcement-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 52px rgba(6, 58, 91, 0.24);
  outline: none;
}

.announcement-card__date {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(216, 242, 251, 0.56);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.announcement-card strong {
  font-size: 22px;
  line-height: 1.12;
}

.announcement-card span:last-child {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.42;
}

.news-home__head,
.theme-digest__head {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.52fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 26px;
}

.news-main-column .news-home__head {
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 44px;
  align-items: start;
}

.news-main-column {
  min-width: 0;
}

.featured-news {
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(6, 58, 91, 0.14);
}

.featured-news .news-meta,
.home-news-card .news-meta {
  gap: 10px;
  margin-bottom: 16px;
  font-size: 14px;
}

.featured-news .news-meta span:first-child,
.home-news-card .news-meta span:first-child {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(29, 129, 179, 0.24);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(216, 242, 251, 0.74);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.featured-news h3 {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: clamp(28px, 3vw, 40px);
}

.featured-news h3 a,
.home-news-card h3 a,
.mini-structure a {
  color: inherit;
  text-decoration: none;
}

.featured-news__media {
  height: clamp(320px, 33vh, 360px);
  min-height: 0;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
}

.featured-news p {
  max-width: 860px;
  color: var(--ink-soft);
  font-size: 18px;
}

.home-news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 32px;
}

.home-news-card {
  padding: 22px;
  border: 1px solid rgba(29, 129, 179, 0.22);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 252, 255, 0.92)),
    linear-gradient(135deg, rgba(216, 242, 251, 0.42), transparent 58%);
  box-shadow: 0 16px 36px rgba(6, 58, 91, 0.10);
}

.home-news-card h3 {
  margin-bottom: 16px;
  font-size: clamp(22px, 2.2vw, 30px);
}

.home-news-card .media-placeholder {
  min-height: 220px;
  margin-bottom: 16px;
}

.home-news-card p {
  margin: 0;
  color: var(--ink-soft);
}

.news-more-row {
  margin-top: 34px;
}

.news-sidebar {
  display: grid;
  gap: 22px;
}

.news-sidebar--events {
  gap: 14px;
}

.side-banner {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 18px 20px;
  overflow: hidden;
  border-radius: var(--radius-md);
  color: var(--white);
  text-decoration: none;
  box-shadow: var(--shadow);
  background:
    linear-gradient(115deg, rgba(6, 58, 91, 0.96), rgba(29, 129, 179, 0.84)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.11) 0 1px, transparent 1px 24px);
}

.side-banner--kcps {
  background: linear-gradient(115deg, #073355, #0b7fb3 72%, #61bbe4);
}

.side-banner--documents {
  background: linear-gradient(115deg, #102d43, #1d81b3 68%, #c7a05a);
}

.side-banner--contacts {
  background: linear-gradient(115deg, #063a5b, #27627e 64%, #76c7c8);
}

.side-banner span {
  color: var(--sky-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.side-banner strong {
  font-size: 20px;
  line-height: 1.15;
}

.sidebar-card,
.theme-card {
  padding: 22px;
  border: 1px solid rgba(97, 187, 228, 0.28);
  border-radius: var(--radius-md);
  background: rgba(251, 254, 255, 0.86);
  box-shadow: var(--shadow);
}

.sidebar-card p,
.theme-card p {
  color: var(--ink-soft);
}

.sidebar-card--note {
  background: rgba(216, 242, 251, 0.36);
}

.sidebar-card--announcements {
  background:
    linear-gradient(135deg, rgba(251, 254, 255, 0.94), rgba(216, 242, 251, 0.52)),
    linear-gradient(115deg, rgba(199, 160, 90, 0.10), transparent 62%);
}

.sidebar-card--announcements h3 {
  margin-bottom: 8px;
}

.news-sidebar--events .announcement-card {
  padding: 16px 18px;
  box-shadow: 0 12px 30px rgba(6, 58, 91, 0.14);
}

.news-sidebar--events .announcement-card strong {
  font-size: 18px;
}

.news-sidebar--events .announcement-card span:last-child {
  font-size: 15px;
}

.sidebar-events__all {
  justify-self: stretch;
  text-align: center;
}

.mini-structure {
  display: grid;
  gap: 14px;
}

.mini-structure > div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.mini-structure .seal-placeholder,
.mini-structure .seal-image {
  width: 54px;
  height: 54px;
  font-size: 10px;
}

.mini-structure a {
  color: var(--blue);
  font-weight: 700;
  line-height: 1.25;
}

.theme-digest {
  margin-top: 56px;
  padding-top: 46px;
  border-top: 1px solid rgba(6, 58, 91, 0.14);
}

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

.theme-card {
  min-height: 100%;
}

.theme-card h3 {
  min-height: 2.2em;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid > *,
.news-layout > *,
.home-news-grid > *,
.theme-grid > *,
.news-full-card > *,
.footer__inner > * {
  min-width: 0;
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(97, 187, 228, 0.26);
  border-radius: var(--radius-md);
  background: rgba(251, 254, 255, 0.82);
  box-shadow: var(--shadow);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--sky), var(--gold));
}

.card p {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.small-label {
  margin: 0 0 10px;
  color: #0f719d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.structure-flow {
  display: grid;
  gap: 16px;
}

.structure-node {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(97, 187, 228, 0.34);
  border-radius: var(--radius-md);
  background: var(--paper-soft);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.structure-node:hover,
.structure-node:focus-visible {
  border-color: rgba(29, 129, 179, 0.58);
  box-shadow: 0 20px 52px rgba(6, 58, 91, 0.18);
  transform: translateY(-2px);
  outline: none;
}

.structure-node:hover .structure-node__link,
.structure-node:focus-visible .structure-node__link {
  color: var(--blue);
}

.structure-node .seal-placeholder {
  width: 76px;
  height: 76px;
  font-size: 11px;
}

.seal-image {
  width: 76px;
  height: 76px;
  object-fit: contain;
  padding: 5px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.society-card__emblem {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: contain;
  padding: 14px;
  margin: 0 0 18px;
  border-radius: var(--radius-md);
  background: #040620;
  border: 1px solid rgba(199, 160, 90, 0.28);
}

.structure-node__link {
  color: var(--blue-soft);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.structure-arrow {
  width: 1px;
  height: 22px;
  margin-left: 55px;
  background: linear-gradient(var(--sky), var(--gold));
}

.news-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.filter-button {
  border: 1px solid rgba(6, 58, 91, 0.18);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
}

.filter-button.is-active {
  color: var(--paper-soft);
  background: var(--blue-soft);
}

.news-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  padding: 0;
}

.news-card .media-placeholder {
  min-height: 150px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-width: 0 0 1px;
}

.news-card__body {
  padding: 20px;
}

.news-card h3 a {
  color: inherit;
  text-decoration: none;
}

.news-card__image,
.featured-news__image,
.home-news-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__image {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.image--mirror-x {
  transform: scaleX(-1);
}

.featured-news__image,
.home-news-card__image {
  min-height: 0;
  border-radius: inherit;
}

.featured-news__image {
  object-position: center 42%;
}

.news-full-list {
  display: grid;
  gap: 28px;
}

.news-full-card {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.56fr);
  gap: 26px;
  align-items: stretch;
  padding: 28px;
}

.news-full-card h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 3vw, 42px);
}

.news-full-card p {
  color: var(--ink-soft);
  font-size: 18px;
}

.news-full-card__media {
  display: grid;
  gap: 12px;
  align-content: stretch;
}

.news-full-card__main-image {
  display: block;
  width: 100%;
  min-height: 260px;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.photo-viewer-trigger {
  cursor: zoom-in;
  transition: filter 0.18s ease, outline-color 0.18s ease, transform 0.18s ease;
}

.photo-viewer-trigger:hover,
.photo-viewer-trigger:focus-visible {
  filter: brightness(1.04);
  outline: 3px solid rgba(29, 129, 179, 0.44);
  outline-offset: 4px;
}

html.photo-viewer-open,
html.video-viewer-open,
html.photo-viewer-open body {
  overflow: hidden;
}

html.video-viewer-open body {
  overflow: hidden;
}

.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(22px, 4vw, 46px);
  background: rgba(6, 27, 42, 0.88);
  backdrop-filter: blur(10px);
}

.photo-viewer[hidden] {
  display: none;
}

.photo-viewer__figure {
  display: grid;
  gap: 14px;
  justify-items: center;
  margin: 0;
}

.photo-viewer__image {
  display: block;
  max-width: min(880px, 86vw);
  max-height: 76vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.34);
}

.photo-viewer__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: min(880px, 86vw);
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

.photo-viewer__counter {
  color: var(--sky-soft);
  font-weight: 700;
}

.photo-viewer__close,
.photo-viewer__nav {
  position: fixed;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(216, 242, 251, 0.44);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(251, 254, 255, 0.92);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.photo-viewer__close:focus-visible,
.photo-viewer__nav:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

.photo-viewer__close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
}

.photo-viewer__nav {
  top: 50%;
  width: 50px;
  height: 50px;
  transform: translateY(-50%);
  font-size: 38px;
  line-height: 1;
}

.photo-viewer__nav--prev {
  left: clamp(14px, 3vw, 34px);
}

.photo-viewer__nav--next {
  right: clamp(14px, 3vw, 34px);
}

.photo-viewer.is-single .photo-viewer__nav {
  display: none;
}

.video-viewer-trigger {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 8px 12px;
  border: 1px solid rgba(216, 242, 251, 0.62);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(251, 254, 255, 0.94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.video-viewer-trigger:focus-visible,
.video-viewer-caption-trigger:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

.video-viewer-caption-trigger {
  cursor: zoom-in;
}

.video-viewer {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: clamp(22px, 4vw, 46px);
  background: rgba(6, 27, 42, 0.90);
  backdrop-filter: blur(10px);
}

.video-viewer[hidden] {
  display: none;
}

.video-viewer__panel {
  display: grid;
  gap: 14px;
  width: min(1080px, 88vw);
}

.video-viewer__frame {
  overflow: hidden;
  border-radius: 18px;
  background: #071d2c;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.34);
}

.video-viewer__frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.video-viewer__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  line-height: 1.35;
  text-align: center;
}

.video-viewer__caption strong {
  color: var(--white);
}

.video-viewer__counter {
  color: var(--sky-soft);
  font-weight: 700;
}

.video-viewer__close,
.video-viewer__repeat,
.video-viewer__nav {
  position: fixed;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(216, 242, 251, 0.44);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(251, 254, 255, 0.92);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.video-viewer__close:focus-visible,
.video-viewer__repeat:focus-visible,
.video-viewer__nav:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

.video-viewer__close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
}

.video-viewer__repeat {
  top: 20px;
  right: 76px;
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 800;
}

.video-viewer__nav {
  top: 50%;
  width: 50px;
  height: 50px;
  transform: translateY(-50%);
  font-size: 38px;
  line-height: 1;
}

.video-viewer__nav--prev {
  left: clamp(14px, 3vw, 34px);
}

.video-viewer__nav--next {
  right: clamp(14px, 3vw, 34px);
}

.video-viewer.is-single .video-viewer__nav {
  display: none;
}

.news-poster-image {
  display: block;
  width: 100%;
  max-height: 680px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.news-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.news-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.news-detail-media .news-full-card__main-image {
  max-height: 720px;
}

.media-feed {
  display: grid;
  gap: 18px;
}

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

.media-feed--video .media-feed__grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 320px));
  justify-content: start;
}

.media-feed__item {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(29, 129, 179, 0.24);
  border-radius: var(--radius-md);
  background: rgba(251, 254, 255, 0.88);
  box-shadow: var(--shadow);
}

.media-feed__item[hidden] {
  display: none;
}

.media-feed__item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.media-feed__item figcaption,
.media-feed__caption {
  padding: 16px 18px 18px;
}

.media-feed__item strong,
.media-feed__caption strong {
  display: block;
  color: var(--blue);
  font-size: 18px;
  line-height: 1.25;
}

.media-feed__item span,
.media-feed__caption span {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.45;
}

.media-feed__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.media-feed__status {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.media-feed__actions [hidden] {
  display: none;
}

.media-feed__actions[hidden] {
  display: none;
}

@media (max-width: 980px) {
  .media-feed__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .partner-card__body {
    grid-template-columns: 1fr;
  }

  .partner-logo {
    max-width: 220px;
  }
}

@media (max-width: 680px) {
  .media-feed__grid {
    grid-template-columns: 1fr;
  }
}

.news-video {
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-md);
  background: #071d2c;
  box-shadow: var(--shadow);
}

.media-feed--video .news-video {
  cursor: zoom-in;
}

.media-feed--video .news-video iframe {
  pointer-events: none;
}

.news-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.news-video__fallback {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: grid;
  gap: 5px;
  padding: 18px 96px 18px 18px;
  color: var(--white);
  background: linear-gradient(0deg, rgba(5, 20, 31, 0.88), rgba(5, 20, 31, 0.52) 64%, transparent);
  pointer-events: none;
}

.news-video__fallback strong,
.news-video__fallback span,
.news-video__fallback a {
  max-width: 34rem;
}

.news-video__fallback strong {
  color: var(--white);
  font-size: 16px;
  line-height: 1.25;
}

.news-video__fallback span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.35;
}

.news-video__fallback a {
  width: fit-content;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  pointer-events: auto;
}

.news-video__caption {
  margin-top: 10px;
  color: var(--ink-muted);
  font-size: 14px;
}

.photo-ribbon-card {
  grid-template-columns: 1fr;
}

.photo-ribbon-card__intro {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.28fr);
  gap: 24px;
  align-items: end;
}

.photo-ribbon-card .news-gallery {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.photo-ribbon-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.photo-ribbon-tags li {
  padding: 8px 11px;
  border: 1px solid rgba(29, 129, 179, 0.24);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(216, 242, 251, 0.66);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.news-fact-card {
  min-height: 100%;
  padding: 22px;
  border: 1px solid rgba(29, 129, 179, 0.24);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(216, 242, 251, 0.72), rgba(255, 255, 255, 0.88)),
    linear-gradient(180deg, rgba(199, 160, 90, 0.14), transparent 46%);
  box-shadow: var(--shadow);
}

.news-fact-card h3 {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 22px;
}

.news-fact-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.news-fact-list div {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(29, 129, 179, 0.16);
}

.news-fact-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.news-fact-list dt {
  margin-bottom: 4px;
  color: var(--blue-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-fact-list dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.48;
}

.source-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue-soft);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.news-full-card .source-link {
  display: none;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--blue-soft);
  font-size: 13px;
  font-weight: 700;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(97, 187, 228, 0.18);
  font-size: 12px;
}

.notice {
  padding: 18px 20px;
  border: 1px solid rgba(29, 129, 179, 0.24);
  border-radius: var(--radius-md);
  color: var(--ink-soft);
  background: rgba(216, 242, 251, 0.38);
}

.requisites {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--paper-soft);
  box-shadow: var(--shadow);
}

.requisites th,
.requisites td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(97, 187, 228, 0.24);
  text-align: left;
  vertical-align: top;
}

.requisites th {
  width: 34%;
  color: var(--blue);
  background: rgba(216, 242, 251, 0.46);
}

.footer {
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, var(--blue), #082f4c 72%, #0b5c83);
}

.footer__inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 42px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.5fr);
  gap: 26px;
}

.footer a {
  color: var(--sky-soft);
}

.footer h2,
.footer h3 {
  color: var(--white);
}

.nowrap {
  white-space: nowrap;
}

.icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.icon-link__mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: var(--blue-soft);
  box-shadow: 0 10px 24px rgba(6, 58, 91, 0.16);
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.icon-link__mark--mail {
  background: linear-gradient(145deg, var(--blue), var(--blue-soft));
}

.icon-link__mark--vk {
  background: #2787f5;
}

.icon-link__mark--tg {
  background: #229ed9;
}

.icon-link__mark--phone {
  background: linear-gradient(145deg, var(--blue-soft), var(--sky));
}

.icon-link__mark--map {
  background: linear-gradient(145deg, #f0b429, var(--gold));
}

.muted {
  color: var(--ink-soft);
}

.hidden,
.is-expired-announcement {
  display: none !important;
}

@media (max-width: 1200px) {
  .topbar__inner {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .nav a {
    padding: 8px 10px;
  }

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

  .news-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 30px;
  }

  .news-full-card {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.52fr);
  }

  .photo-ribbon-card .news-gallery {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .grid--4,
  .theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-layout {
    grid-template-columns: 1fr;
  }

  .news-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sidebar-card {
    grid-column: auto;
  }
}

@media (max-width: 980px) {
  .topbar__inner,
  .hero__inner,
  .section__head,
  .news-home__head,
  .theme-digest__head,
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .topbar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    justify-content: stretch;
  }

  .nav a {
    display: grid;
    place-items: center;
    min-height: 40px;
    text-align: center;
    white-space: normal;
  }

  .hero-title h1 {
    font-size: clamp(30px, 6vw, 48px);
  }

  .hero-emblem {
    flex-basis: clamp(96px, 13vw, 112px);
  }

  .grid--4,
  .grid--3,
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-layout {
    grid-template-columns: 1fr;
  }

  .news-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-full-card {
    grid-template-columns: 1fr;
  }

  .photo-ribbon-card__intro {
    grid-template-columns: 1fr;
  }

  .photo-ribbon-card .news-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sidebar-card {
    grid-column: span 2;
  }

  .theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .subpage-hero__inner {
    padding-top: 52px;
    padding-bottom: 50px;
  }

  .subpage-hero h1 {
    font-size: clamp(34px, 8vw, 54px);
  }

  .content-block p,
  .content-block li,
  .news-full-card p,
  .featured-news p {
    font-size: 17px;
  }

  .news-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-ribbon-card .news-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .topbar__inner {
    padding: 12px 16px;
  }

  .brand__note {
    display: none;
  }

  .brand__name {
    max-width: calc(100vw - 96px);
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand__name::before {
    font-size: 12px;
    letter-spacing: 0.04em;
  }

  .nav a {
    padding: 8px 10px;
    font-size: 14px;
  }

  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kcps-profile__body {
    padding: 20px 18px;
  }

  .kcps-profile__avatar {
    width: 124px;
    height: 124px;
    margin-top: -62px;
    border-width: 7px;
    border-radius: 24px;
  }

  .partner-card {
    padding: 24px;
  }

  .partner-card__body {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .partner-logo {
    max-width: 220px;
  }

  .subpage-hero--kcps .subpage-hero__inner {
    padding-right: 16px;
  }

  .kcps-hero-orbit {
    position: relative;
    top: auto;
    right: auto;
    width: 132px;
    margin: 24px 0 0 auto;
    padding: 6px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
    transform: none;
  }

  .hero__inner,
  .section,
  .news-home {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero__inner {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .hero-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero-emblem {
    flex-basis: auto;
    width: 92px;
    padding: 8px;
    border-radius: 18px;
  }

  .hero-title h1 {
    font-size: clamp(23px, 6.4vw, 30px);
    letter-spacing: -0.035em;
  }

  .hero-card .media-placeholder {
    min-height: 240px;
  }

  .grid--4,
  .grid--3,
  .grid--2,
  .announcement-panel,
  .home-news-grid,
  .news-sidebar,
  .news-full-card,
  .theme-grid {
    grid-template-columns: 1fr;
  }

  .announcement-panel {
    padding: 20px;
  }

  .announcement-list {
    gap: 10px;
  }

  .news-full-card {
    padding: 20px;
  }

  .news-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-ribbon-card .news-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-masthead__inner {
    padding: 22px 16px 0;
  }

  .home-masthead__brand {
    grid-template-columns: 1fr;
    gap: 14px;
    justify-items: start;
  }

  .home-masthead__emblem {
    width: min(48vw, 170px);
  }

  .home-masthead h1 {
    font-size: clamp(30px, 8.4vw, 38px);
  }

  .home-masthead__strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
  }

  .home-masthead__strip a {
    min-width: 0;
    padding: 12px;
    font-size: 13px;
  }

  .featured-news__media {
    min-height: 260px;
  }

  .home-news-card .media-placeholder {
    min-height: 180px;
  }

  .sidebar-card {
    grid-column: auto;
  }

  .structure-node {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .structure-node__link {
    grid-column: 2;
  }

  .seal-placeholder {
    width: 58px;
    height: 58px;
  }

  .structure-node .seal-placeholder {
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 420px) {
  .topbar__inner,
  .subpage-hero__inner,
  .hero__inner,
  .section,
  .news-home,
  .footer__inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand__mark {
    width: 52px;
    height: 52px;
    border-radius: 0;
  }

  .brand__name {
    max-width: calc(100vw - 92px);
    font-size: 14px;
    letter-spacing: 0.05em;
  }

  .nav {
    gap: 6px;
  }

  .nav a {
    min-height: 38px;
    padding: 7px 8px;
    font-size: 13px;
  }

  .home-masthead h1,
  .subpage-hero h1 {
    font-size: clamp(26px, 8.6vw, 34px);
    line-height: 1.12;
  }

  h2 {
    font-size: clamp(25px, 8vw, 34px);
    line-height: 1.14;
  }

  h3 {
    font-size: 21px;
  }

  .lead,
  .home-masthead__lead,
  .section__intro {
    font-size: 17px;
  }

  .content-block p,
  .content-block li,
  .news-full-card p,
  .featured-news p {
    font-size: 16px;
  }

  .card,
  .hero-card,
  .news-full-card,
  .sidebar-card,
  .theme-card {
    padding: 18px;
  }

  .news-gallery,
  .news-sidebar {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .icon-link {
    align-items: flex-start;
    max-width: 100%;
  }

  .photo-viewer {
    padding: 58px 12px 86px;
  }

  .video-viewer {
    padding: 72px 12px 92px;
  }

  .photo-viewer__image {
    max-width: 92vw;
    max-height: 66vh;
    border-radius: 14px;
  }

  .photo-viewer__caption {
    max-width: 92vw;
    font-size: 13px;
  }

  .video-viewer__panel {
    width: 94vw;
  }

  .video-viewer__caption {
    font-size: 13px;
  }

  .photo-viewer__close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .video-viewer__close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .video-viewer__repeat {
    top: 12px;
    left: 12px;
    right: auto;
    min-height: 40px;
    padding: 0 14px;
  }

  .photo-viewer__nav {
    top: auto;
    bottom: 18px;
    width: 44px;
    height: 44px;
    transform: none;
    font-size: 34px;
  }

  .video-viewer__nav {
    top: auto;
    bottom: 18px;
    width: 44px;
    height: 44px;
    transform: none;
    font-size: 34px;
  }

  .photo-viewer__nav--prev {
    left: calc(50% - 58px);
  }

  .video-viewer__nav--prev {
    left: calc(50% - 58px);
  }

  .photo-viewer__nav--next {
    right: calc(50% - 58px);
  }

  .video-viewer__nav--next {
    right: calc(50% - 58px);
  }
}

@media (max-width: 360px) {
  .home-masthead h1,
  .subpage-hero h1 {
    font-size: clamp(25px, 8vw, 30px);
  }

  h2 {
    font-size: clamp(24px, 7.6vw, 30px);
  }

  .home-masthead__strip {
    grid-template-columns: 1fr;
  }

  .subpage-hero__inner,
  .hero__inner {
    padding-top: 42px;
    padding-bottom: 42px;
  }

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

  .media-placeholder--light,
  .home-news-card .media-placeholder,
  .featured-news__media {
    min-height: 150px;
  }
}
