@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/56fb14f0d495380cc0a0.woff2")
    format("woff2");
}

:root {
  --cream: #fbf6f0;
  --cream-deep: #f1e9de;
  --ink: #242520;
  --muted: #716f69;
  --line: rgba(36, 37, 32, 0.28);
  --blue: #0e5fa8;
  --blue-dark: #073c70;
  --blue-soft: #dceeff;
  --white: #ffffff;
  --radius: 34px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Montserrat", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: min(1440px, calc(100% - 64px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(36, 37, 32, 0.12);
  background: rgba(251, 246, 240, 0.96);
  backdrop-filter: blur(16px);
}

.header-row {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  flex: 0 0 205px;
}

.brand img,
.footer-logo {
  width: 205px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 19px;
  flex: 1;
  font-size: 13px;
  font-weight: 550;
}

.main-nav > a,
.nav-dropdown > a {
  padding-block: 34px;
  transition: color 180ms ease;
}

.main-nav a:hover {
  color: var(--blue);
}

.nav-dropdown {
  position: relative;
}

.nav-submenu {
  position: absolute;
  top: 76px;
  left: -20px;
  min-width: 230px;
  padding: 12px;
  display: grid;
  gap: 2px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(24, 44, 64, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
}

.nav-submenu a {
  padding: 11px 12px;
  border-radius: 10px;
}

.nav-submenu a:hover {
  background: var(--blue-soft);
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 25px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--blue);
}

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

.button-outline {
  border-color: var(--line);
  background: transparent;
}

.button-outline:hover {
  color: var(--white);
  background: var(--ink);
}

.button-light {
  background: var(--white);
  color: var(--blue-dark);
}

.header-cta {
  flex: 0 0 auto;
}

.menu-toggle {
  display: none;
}

.news-hero {
  padding: 36px 0 70px;
}

.news-hero-inner {
  min-height: 690px;
  display: grid;
  grid-template-columns: 0.93fr 1.07fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.news-visual {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 17%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(135deg, var(--blue-dark), var(--blue) 64%, #72b8f1);
}

.news-visual::after {
  content: "";
  position: absolute;
  inset: 32px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 28px;
}

.news-visual > span {
  position: absolute;
  left: 62px;
  bottom: 54px;
  z-index: 2;
  font-size: 14px;
  letter-spacing: 0.14em;
}

.news-mark {
  position: absolute;
  left: 54px;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  font-size: clamp(76px, 9vw, 150px);
  font-weight: 700;
  letter-spacing: -0.07em;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 42% 58% 48% 52%;
  transform: rotate(26deg);
}

.orbit-one {
  width: 440px;
  height: 440px;
  right: -165px;
  top: -80px;
}

.orbit-two {
  width: 280px;
  height: 280px;
  left: -110px;
  bottom: -80px;
}

.news-copy {
  padding: clamp(48px, 7vw, 104px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.news-copy h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(38px, 4.1vw, 68px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.news-copy > p:not(.eyebrow) {
  max-width: 670px;
  margin: 28px 0 36px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.carousel-controls {
  width: 100%;
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.carousel-controls > button,
.board-controls button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.carousel-controls > button:hover,
.board-controls button:hover {
  background: var(--ink);
  color: var(--white);
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 9px;
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c9c5bf;
  cursor: pointer;
}

.carousel-dots .dot-active {
  width: 30px;
  border-radius: 999px;
  background: var(--blue);
}

.section {
  padding-block: 110px;
}

.president-section {
  display: grid;
  grid-template-columns: 70px 1fr minmax(320px, 0.62fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

.section-index {
  align-self: start;
  padding-top: 10px;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.display-title {
  margin: 0;
  font-size: clamp(42px, 5vw, 74px);
  line-height: 1.02;
  font-weight: 430;
  letter-spacing: -0.055em;
}

.lead {
  max-width: 820px;
  margin: 30px 0 0;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.7;
}

.president-name {
  margin: 36px 0 5px;
  font-size: 20px;
  font-weight: 700;
}

.muted {
  margin: 0;
  color: var(--muted);
}

.president-photo {
  min-height: 640px;
  overflow: hidden;
  border-radius: 180px 180px 30px 30px;
  background: #d4d4d4;
}

.president-photo img {
  width: 100%;
  height: 640px;
  object-fit: cover;
  object-position: 50% 15%;
}

.section-heading {
  margin-bottom: 54px;
  display: grid;
  grid-template-columns: 1fr 2.6fr auto;
  gap: 32px;
  align-items: end;
  border-top: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  padding-top: 24px;
}

.section-heading .section-index {
  display: block;
  padding-top: 0;
  margin-bottom: 20px;
}

.section-heading .eyebrow {
  margin: 0;
}

.text-link {
  padding-block: 8px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 650;
}

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

.direction-card {
  min-height: 390px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.42);
  transition:
    transform 200ms ease,
    background 200ms ease;
}

.direction-card:hover {
  transform: translateY(-7px);
  background: var(--white);
}

.card-index {
  margin-bottom: auto;
  color: var(--blue);
  font-size: 14px;
}

.direction-card h3 {
  margin: 54px 0 18px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 520;
  letter-spacing: -0.035em;
}

.direction-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.section-blue {
  background: var(--blue);
  color: var(--white);
}

.join-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(60px, 10vw, 150px);
  align-items: start;
}

.section-index-light,
.eyebrow-light,
.lead-light {
  color: rgba(255, 255, 255, 0.8);
}

.display-title-light {
  max-width: 650px;
}

.join-form {
  padding: 40px;
  display: grid;
  gap: 28px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 30px;
  background: rgba(6, 52, 97, 0.22);
}

.join-form label:not(.consent) {
  display: grid;
  gap: 10px;
}

.join-form label > span {
  font-size: 13px;
}

.join-form input:not([type="checkbox"]) {
  width: 100%;
  min-height: 48px;
  padding: 6px 0;
  color: var(--white);
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  outline: none;
  background: transparent;
  font-size: 18px;
}

.join-form input:not([type="checkbox"]):focus {
  border-bottom-color: var(--white);
}

.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--white);
}

.join-form .button {
  justify-self: start;
}

.form-success {
  margin: 0;
  color: var(--white);
  font-weight: 650;
}

.resident-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.resident-mark {
  min-height: 130px;
  padding: 20px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  color: #4d5358;
  font-size: 18px;
  font-weight: 700;
}

.board-slider {
  position: relative;
}

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

.board-card {
  overflow: hidden;
  border-radius: 120px 120px 26px 26px;
  background: #d1d2d2;
}

.board-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: top center;
}

.board-card > div {
  min-height: 116px;
  margin-top: -26px;
  position: relative;
  padding: 28px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--cream);
}

.board-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.board-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.board-controls {
  margin-top: 28px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.partner-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 16px;
}

.partner-feature {
  min-height: 430px;
  padding: 46px;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  grid-template-rows: auto 1fr;
  gap: 24px 30px;
  align-items: center;
  border-radius: 26px;
  background: var(--blue);
  color: var(--white);
}

.partner-feature p {
  margin: 0;
  font-size: 14px;
}

.partner-feature img {
  width: min(220px, 100%);
  max-height: 95px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.partner-divider {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.35);
}

.partner-feature p:nth-of-type(2),
.partner-feature img:nth-of-type(2) {
  grid-column: 3;
}

.partner-feature p:nth-of-type(2) {
  grid-row: 1;
}

.partner-feature img:nth-of-type(2) {
  grid-row: 2;
  filter: none;
}

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

.partner-mark {
  min-height: 205px;
  padding: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
}

.partner-mark img {
  max-width: 150px;
  max-height: 70px;
  object-fit: contain;
}

.site-footer {
  padding: 72px 0 30px;
  border-top: 1px solid var(--line);
  background: var(--cream-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.5fr 0.8fr;
  gap: 46px;
  align-items: start;
  font-size: 13px;
  line-height: 1.7;
}

.footer-grid p {
  margin: 0;
}

.footer-grid a {
  color: var(--blue);
  font-weight: 650;
}

.footer-note {
  grid-column: 1 / -1;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.subpage-hero {
  padding: 42px 0 38px;
}

.subpage-hero-grid {
  min-height: 410px;
  padding: 56px;
  display: grid;
  grid-template-columns: 72px 1fr minmax(0, 0.72fr);
  gap: 28px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.subpage-hero-grid:has(.subpage-hero-image) {
  padding-right: 26px;
}

.subpage-hero-grid:not(:has(.subpage-hero-image)) > div {
  grid-column: 2 / -1;
}

.subpage-hero-grid .display-title {
  max-width: 870px;
  font-size: clamp(50px, 7vw, 104px);
  text-transform: uppercase;
}

.subpage-hero-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 24px;
}

.inner-layout {
  padding-block: 90px 120px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: start;
}

.side-nav {
  position: sticky;
  top: 125px;
  display: grid;
  border-top: 1px solid var(--line);
}

.side-nav > p {
  margin: 0;
  padding: 18px 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.side-nav-link {
  padding: 15px 0;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 6px;
  align-items: center;
  border-top: 1px solid var(--line);
  font-size: 14px;
  transition:
    color 180ms ease,
    padding 180ms ease;
}

.side-nav-link span {
  color: var(--muted);
  font-size: 11px;
}

.side-nav-link:hover,
.side-nav-link.active {
  padding-left: 8px;
  color: var(--blue);
}

.side-nav-link.active {
  font-weight: 700;
}

.prose-content {
  min-width: 0;
}

.prose-section {
  padding-bottom: 70px;
}

.prose-section + .prose-section {
  padding-top: 70px;
  border-top: 1px solid var(--line);
}

.prose-section h2,
.tour-detail h2,
.contacts-content h2 {
  max-width: 930px;
  margin: 0 0 28px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
  font-weight: 480;
  letter-spacing: -0.045em;
}

.prose-section p {
  max-width: 910px;
  margin: 0 0 20px;
  color: #464842;
  font-size: 17px;
  line-height: 1.78;
}

.prose-lead {
  max-width: 960px;
  margin: 0;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.55;
  letter-spacing: -0.025em;
}

.goal-callout {
  margin: 0 0 80px;
  padding: 44px;
  border-radius: 26px;
  background: var(--blue);
  color: var(--white);
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.content-image {
  width: 100%;
  max-height: 660px;
  object-fit: cover;
  border-radius: 28px;
}

.numbered-list,
.lined-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.numbered-list li {
  padding: 20px 0;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  border-top: 1px solid var(--line);
  font-size: 18px;
  line-height: 1.5;
}

.numbered-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.numbered-list span {
  color: var(--blue);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.lined-list li {
  padding: 18px 0 18px 27px;
  position: relative;
  border-top: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.55;
}

.lined-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.lined-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 29px;
  width: 10px;
  height: 2px;
  background: var(--blue);
}

.document-list {
  margin-top: 54px;
  display: grid;
}

.document-row {
  min-height: 110px;
  padding: 20px 6px;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--line);
  transition:
    padding 180ms ease,
    color 180ms ease;
}

.document-row:last-child {
  border-bottom: 1px solid var(--line);
}

.document-row:hover {
  padding-inline: 16px;
  color: var(--blue);
}

.document-row > span {
  color: var(--muted);
  font-size: 12px;
}

.document-row strong {
  font-size: 24px;
  font-weight: 520;
}

.document-row b {
  font-size: 12px;
}

.direction-detail {
  position: relative;
}

.direction-detail > .section-index {
  display: block;
  margin-bottom: 20px;
  color: var(--blue);
}

.direction-detail .content-image {
  margin-top: 40px;
}

.media-grid {
  display: grid;
  gap: 24px;
}

.media-card {
  padding-bottom: 24px;
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) 1.38fr;
  gap: 34px;
  border-bottom: 1px solid var(--line);
}

.media-card > div:last-child {
  padding: 14px 0 24px;
}

.media-card h2 {
  margin: 0 0 18px;
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1.1;
  font-weight: 480;
  letter-spacing: -0.04em;
}

.media-card p {
  max-width: 760px;
  margin: 0 0 26px;
  color: var(--muted);
  line-height: 1.7;
}

.media-card a {
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 650;
}

.branded-cover {
  min-height: 260px;
  padding: 22px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 22px;
  color: var(--white);
  background:
    radial-gradient(circle at 100% 0, #6fbaff 0, transparent 38%),
    var(--blue);
}

.branded-cover::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -55px;
  top: -44px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 48% 52% 40% 60%;
}

.branded-cover span {
  font-size: clamp(42px, 5vw, 78px);
  font-weight: 720;
  letter-spacing: -0.06em;
}

.branded-cover small {
  position: absolute;
  right: 22px;
  bottom: 24px;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.listing-section {
  padding-block: 80px 120px;
}

.resident-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.resident-card {
  min-height: 470px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 170px 1fr;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--white);
}

.resident-card-mark {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--white);
  background: var(--blue);
}

.resident-card-mark span {
  align-self: flex-start;
  font-size: 12px;
}

.resident-card-mark strong {
  text-align: right;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.resident-card-content {
  padding: 28px;
}

.resident-card-content h2 {
  margin: 0 0 25px;
  font-size: 22px;
  line-height: 1.25;
}

.resident-card dl,
.contacts-content dl {
  margin: 0 0 28px;
  display: grid;
  gap: 18px;
}

.resident-card dl > div,
.contacts-content dl > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 15px;
  align-items: start;
}

.resident-card dt,
.contacts-content dt {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.resident-card dd,
.contacts-content dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.resident-card dd a {
  color: var(--blue);
}

.resident-card .text-link {
  display: inline-block;
}

.event-list {
  display: grid;
  gap: 20px;
}

.event-card {
  padding: 18px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--white);
}

.event-image {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 18px;
  background: var(--blue-soft);
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card h2 {
  margin: 14px 0 20px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  font-weight: 480;
  letter-spacing: -0.045em;
}

.event-card p {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.tour-intro {
  max-width: 980px;
  margin: 0 0 70px;
  font-size: 20px;
  line-height: 1.7;
}

.tour-intro p {
  margin: 0 0 20px;
}

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

.tour-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--white);
  transition: transform 200ms ease;
}

.tour-card:hover {
  transform: translateY(-7px);
}

.tour-card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.tour-card > div {
  padding: 28px;
}

.tour-card h2 {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.13;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.tour-card p {
  margin: 0 0 24px;
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  line-height: 1.65;
}

.tour-card span,
.news-list-card span {
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.tour-detail,
.news-detail {
  padding-block: 54px 120px;
}

.back-link {
  display: inline-block;
  margin-bottom: 50px;
  border-bottom: 1px solid currentColor;
  color: var(--blue);
  font-size: 14px;
  font-weight: 650;
}

.tour-detail > .prose-lead,
.news-detail > .prose-lead {
  margin-bottom: 60px;
}

.tour-detail section {
  max-width: 960px;
  margin-bottom: 48px;
}

.news-detail .branded-cover {
  min-height: 440px;
  margin-bottom: 50px;
}

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

.news-list-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.68fr 1.32fr;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
}

.news-list-card .branded-cover {
  min-height: 100%;
  border-radius: 0;
}

.news-list-card > div:last-child {
  padding: 28px;
}

.news-list-card h2 {
  margin: 0 0 15px;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.news-list-card p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.6;
}

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

.gallery-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--white);
}

.gallery-card:first-child {
  grid-column: 1 / -1;
}

.gallery-card img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.gallery-card:first-child img {
  height: 620px;
}

.gallery-card figcaption {
  padding: 28px;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 18px;
}

.gallery-card figcaption > span {
  color: var(--blue);
  font-size: 12px;
}

.gallery-card h2 {
  margin: 0;
  font-size: clamp(23px, 3vw, 38px);
  line-height: 1.18;
  font-weight: 480;
  letter-spacing: -0.035em;
}

.contacts-section {
  padding-block: 80px 120px;
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) 1.3fr;
  gap: clamp(44px, 8vw, 110px);
}

.contacts-logo-panel {
  min-height: 480px;
  padding: 44px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: var(--blue);
}

.contacts-logo-panel img {
  width: min(310px, 90%);
  filter: brightness(0) invert(1);
}

.contacts-content {
  padding-top: 20px;
}

.contacts-content dl {
  margin-top: 60px;
  border-top: 1px solid var(--line);
}

.contacts-content dl > div {
  padding: 24px 0;
  grid-template-columns: 160px 1fr;
  border-bottom: 1px solid var(--line);
}

.contacts-content dd {
  font-size: 18px;
}

.contacts-content a {
  color: var(--blue);
}

@media (max-width: 1180px) {
  .header-row {
    flex-wrap: wrap;
    padding-block: 16px;
  }

  .header-cta {
    margin-left: auto;
  }

  .menu-toggle {
    width: 48px;
    height: 48px;
    order: 3;
    margin-left: 4px;
    display: grid;
    place-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
  }

  .menu-toggle span:not(.sr-only) {
    width: 20px;
    height: 1px;
    background: var(--ink);
  }

  .main-nav {
    width: 100%;
    flex-basis: 100%;
    display: none;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 0;
    padding: 14px 0 6px;
    border-top: 1px solid var(--line);
  }

  .main-nav-open {
    display: flex;
  }

  .main-nav > a,
  .nav-dropdown > a {
    display: block;
    padding: 12px 4px;
  }

  .nav-submenu {
    position: static;
    min-width: 0;
    padding: 0 0 6px 18px;
    display: grid;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .news-hero-inner {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .board-card img {
    height: 340px;
  }

  .subpage-hero-grid {
    grid-template-columns: 58px 1fr minmax(0, 0.62fr);
    padding: 40px;
  }

  .resident-card dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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

@media (max-width: 860px) {
  .shell {
    width: min(100% - 34px, 720px);
  }

  .header-row {
    min-height: 76px;
  }

  .brand {
    flex-basis: 162px;
  }

  .brand img {
    width: 162px;
  }

  .header-cta {
    min-height: 44px;
    padding-inline: 18px;
    font-size: 12px;
  }

  .news-hero {
    padding-top: 20px;
  }

  .news-hero-inner {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .news-visual {
    min-height: 330px;
  }

  .news-copy {
    padding: 42px 30px;
  }

  .news-copy h1 {
    font-size: clamp(35px, 8vw, 54px);
  }

  .section {
    padding-block: 76px;
  }

  .president-section {
    grid-template-columns: 1fr;
  }

  .president-section > .section-index {
    display: none;
  }

  .president-photo,
  .president-photo img {
    min-height: 0;
    height: 540px;
  }

  .section-heading {
    grid-template-columns: 1fr auto;
  }

  .section-heading > div {
    grid-column: 1 / -1;
  }

  .section-heading .display-title {
    grid-column: 1;
  }

  .direction-grid {
    grid-template-columns: 1fr;
  }

  .direction-card {
    min-height: 300px;
  }

  .join-layout {
    grid-template-columns: 1fr;
    gap: 52px;
  }

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

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

  .board-card:nth-child(n + 3) {
    display: none;
  }

  .partner-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-note {
    grid-column: 1;
  }

  .subpage-hero-grid {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 36px 28px;
  }

  .subpage-hero-grid:has(.subpage-hero-image) {
    padding-right: 28px;
  }

  .subpage-hero-grid:not(:has(.subpage-hero-image)) > div {
    grid-column: 1;
  }

  .subpage-hero-grid .section-index {
    padding: 0;
  }

  .subpage-hero-image {
    height: 330px;
  }

  .inner-layout {
    grid-template-columns: 1fr;
    padding-top: 38px;
  }

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

  .side-nav > p {
    grid-column: 1 / -1;
  }

  .side-nav-link {
    padding-right: 12px;
  }

  .resident-cards,
  .tour-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card:first-child {
    grid-column: 1;
  }

  .gallery-card:first-child img,
  .gallery-card img {
    height: 470px;
  }

  .event-card {
    grid-template-columns: 230px 1fr;
  }

  .contacts-section {
    grid-template-columns: 1fr;
  }

  .contacts-logo-panel {
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  .shell {
    width: calc(100% - 24px);
  }

  .site-header {
    position: relative;
  }

  .header-row {
    gap: 10px;
  }

  .brand {
    flex-basis: 132px;
  }

  .brand img {
    width: 132px;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    margin-left: auto;
  }

  .news-hero-inner,
  .news-visual::after {
    border-radius: 24px;
  }

  .news-visual {
    min-height: 280px;
  }

  .news-mark {
    left: 34px;
  }

  .news-visual > span {
    left: 40px;
    bottom: 36px;
  }

  .news-copy {
    padding: 38px 22px;
  }

  .news-copy > p:not(.eyebrow) {
    font-size: 15px;
  }

  .carousel-controls {
    margin-top: 42px;
  }

  .display-title {
    font-size: clamp(36px, 12vw, 52px);
  }

  .president-photo,
  .president-photo img {
    height: 430px;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading .display-title {
    grid-column: 1;
  }

  .section-heading > .button,
  .section-heading > .text-link {
    justify-self: start;
  }

  .join-form {
    padding: 28px 20px;
  }

  .board-grid {
    grid-template-columns: 1fr;
  }

  .board-card:nth-child(n + 2) {
    display: none;
  }

  .board-card img {
    height: 430px;
  }

  .partner-feature {
    min-height: 0;
    padding: 32px 24px;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .partner-divider {
    display: none;
  }

  .partner-feature p,
  .partner-feature img,
  .partner-feature p:nth-of-type(2),
  .partner-feature img:nth-of-type(2) {
    grid-column: 1;
    grid-row: auto;
  }

  .partner-feature p:nth-of-type(2) {
    margin-top: 20px;
  }

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

  .partner-mark {
    min-height: 140px;
  }

  .subpage-hero-grid .display-title {
    font-size: clamp(40px, 13vw, 62px);
  }

  .side-nav {
    grid-template-columns: 1fr;
  }

  .media-card,
  .event-card,
  .news-list-card {
    grid-template-columns: 1fr;
  }

  .media-card .branded-cover {
    min-height: 210px;
  }

  .event-image {
    width: 100%;
  }

  .news-list-card .branded-cover {
    min-height: 230px;
  }

  .resident-card {
    grid-template-rows: 150px 1fr;
  }

  .resident-card-mark strong {
    font-size: 28px;
  }

  .tour-card img,
  .gallery-card:first-child img,
  .gallery-card img {
    height: 310px;
  }

  .contacts-section {
    padding-top: 40px;
  }

  .contacts-content dl > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Selected direction: editorial manifesto */
:root {
  --cream: #fbf6f0;
  --cream-deep: #eee7df;
  --ink: #242520;
  --muted: #5f615d;
  --line: rgba(36, 37, 32, 0.42);
  --blue: #2b579c;
  --blue-dark: #1b3e73;
  --blue-soft: #dfe7f1;
  --red: #c23a3a;
  --red-dark: #982a2a;
  --white: #ffffff;
  --radius: 2px;
}

body {
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
}

::selection {
  color: var(--white);
  background: var(--red);
}

.shell {
  width: min(1500px, calc(100% - 96px));
}

.site-header {
  background: rgba(251, 246, 240, 0.98);
  border-bottom: 1px solid var(--ink);
  backdrop-filter: blur(12px);
}

.header-row {
  min-height: 96px;
  gap: 28px;
}

.brand {
  flex-basis: 210px;
}

.brand img,
.footer-logo {
  width: 210px;
}

.main-nav {
  gap: clamp(14px, 1.55vw, 26px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.main-nav > a,
.nav-dropdown > a {
  padding-block: 39px;
}

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

.nav-submenu {
  top: 80px;
  left: -16px;
  padding: 8px;
  border: 1px solid var(--ink);
  border-radius: 0;
  box-shadow: 12px 12px 0 rgba(43, 87, 156, 0.18);
}

.nav-submenu a {
  border-radius: 0;
}

.nav-submenu a:hover {
  color: var(--white);
  background: var(--blue);
}

.button {
  min-height: 54px;
  padding-inline: 28px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.button:hover {
  transform: none;
}

.button-primary {
  background: var(--blue);
}

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

.button-primary span {
  margin-left: 36px;
  font-size: 20px;
  font-weight: 400;
  transition: transform 180ms ease;
}

.button-primary:hover span {
  transform: translateX(5px);
}

.header-cta {
  min-height: 50px;
  color: var(--white);
  background: var(--red);
}

.header-cta:hover {
  background: var(--red-dark);
}

.button-outline {
  border-color: var(--ink);
}

.button-outline:hover {
  background: var(--ink);
}

.button-light {
  color: var(--white);
  background: var(--red);
}

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

.news-hero {
  padding: 0;
}

.news-hero-inner {
  min-height: min(720px, calc(100vh - 96px));
  grid-template-columns: minmax(0, 1.08fr) minmax(440px, 0.92fr);
  overflow: hidden;
  border: 0;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  border-radius: 0;
  background: var(--cream);
}

.news-copy {
  min-width: 0;
  padding: clamp(54px, 6vw, 84px) clamp(36px, 5.2vw, 76px) 46px;
  justify-content: flex-start;
}

.eyebrow {
  margin-bottom: 28px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
}

.news-copy > .eyebrow {
  min-height: 46px;
  padding-left: 28px;
  display: flex;
  align-items: center;
  border-left: 4px solid var(--blue);
}

.news-copy h1 {
  max-width: 780px;
  font-size: clamp(48px, 5.25vw, 78px);
  line-height: 0.98;
  font-weight: 760;
  letter-spacing: -0.055em;
}

.news-copy > p:not(.eyebrow) {
  max-width: 610px;
  margin: 30px 0 30px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.58;
}

.news-actions {
  display: flex;
}

.carousel-controls {
  margin-top: auto;
  padding-top: 34px;
  display: grid;
  grid-template-columns: auto minmax(100px, 1fr) 50px 50px;
  gap: 12px;
  align-items: center;
  justify-content: initial;
}

.slide-counter {
  min-width: 150px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  color: var(--ink);
}

.slide-counter strong {
  color: var(--blue);
  font-size: clamp(42px, 4.4vw, 68px);
  line-height: 0.85;
  letter-spacing: -0.06em;
}

.slide-counter span {
  padding-bottom: 3px;
  font-size: 23px;
}

.carousel-controls > button,
.board-controls button {
  width: 50px;
  height: 50px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
}

.carousel-controls > button:hover,
.board-controls button:hover {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.carousel-dots {
  width: min(250px, 100%);
  justify-self: center;
}

.carousel-dots .dot {
  width: 100%;
  height: 2px;
  border-radius: 0;
  background: rgba(36, 37, 32, 0.22);
}

.carousel-dots .dot-active {
  width: 100%;
  background: var(--blue);
}

.news-visual {
  min-height: min(720px, calc(100vh - 96px));
  position: relative;
  isolation: isolate;
  background: var(--red);
}

.news-visual::after {
  display: none;
}

.hero-red-panel {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 46%),
    var(--red);
}

.hero-blue-stripe {
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 -44px;
  width: 150px;
  background: var(--blue);
  clip-path: polygon(54% 0, 100% 0, 46% 100%, 0 100%);
}

.hero-big-number {
  position: absolute;
  z-index: -2;
  top: -22px;
  right: -8px;
  color: rgba(251, 246, 240, 0.96);
  font-size: clamp(180px, 21vw, 330px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.1em;
}

.hero-portrait {
  width: 108%;
  max-width: none;
  height: 102%;
  position: absolute;
  right: -5%;
  bottom: -2%;
  z-index: 2;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(-18px 14px 0 rgba(36, 37, 32, 0.08));
  animation: portraitIn 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes portraitIn {
  from {
    opacity: 0;
    transform: translateX(30px);
    clip-path: inset(0 0 0 30%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    clip-path: inset(0);
  }
}

.section {
  padding-block: 120px;
}

.section-index,
.card-index,
.direction-detail > .section-index,
.gallery-card figcaption > span {
  color: var(--red);
  font-weight: 800;
}

.display-title {
  font-size: clamp(42px, 5.2vw, 78px);
  line-height: 0.99;
  font-weight: 740;
  letter-spacing: -0.055em;
}

.lead {
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.65;
}

.president-section {
  grid-template-columns: 60px minmax(0, 1.2fr) minmax(340px, 0.7fr);
  gap: clamp(34px, 5vw, 78px);
  padding-top: 138px;
}

.president-copy {
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}

.president-photo {
  min-height: 650px;
  position: relative;
  overflow: hidden;
  border: 0;
  border-top: 14px solid var(--red);
  border-left: 14px solid var(--blue);
  border-radius: 0;
  background: #d4d4d4;
}

.president-photo img {
  height: 650px;
}

.president-name {
  margin-top: 40px;
}

.section-heading {
  margin-bottom: 58px;
  padding-top: 22px;
  grid-template-columns: 0.7fr 2.3fr auto;
  border-top: 2px solid var(--ink);
  border-radius: 0;
}

.section-heading .section-index {
  margin-bottom: 18px;
}

.direction-grid {
  gap: 0;
  border: 1px solid var(--ink);
}

.direction-card {
  min-height: 410px;
  padding: 30px;
  border: 0;
  border-right: 1px solid var(--ink);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.28);
}

.direction-card:last-child {
  border-right: 0;
}

.direction-card:nth-child(2) {
  color: var(--white);
  background: var(--blue);
}

.direction-card:nth-child(3) {
  color: var(--white);
  background: var(--red);
}

.direction-card:nth-child(2) .card-index,
.direction-card:nth-child(3) .card-index,
.direction-card:nth-child(2) p,
.direction-card:nth-child(3) p {
  color: rgba(255, 255, 255, 0.82);
}

.direction-card:hover {
  transform: none;
}

.direction-card h3 {
  font-size: clamp(25px, 2.3vw, 35px);
  font-weight: 700;
}

.section-blue {
  position: relative;
  color: var(--white);
  background: var(--ink);
}

.section-blue::before {
  content: "";
  width: clamp(12px, 2vw, 30px);
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--red);
}

.join-layout {
  grid-template-columns: 0.9fr 1.1fr;
}

.join-form {
  padding: 44px;
  gap: 26px;
  color: var(--ink);
  border: 0;
  border-radius: 0;
  background: var(--cream);
}

.join-form input:not([type="checkbox"]) {
  color: var(--ink);
  border-bottom-color: rgba(36, 37, 32, 0.46);
}

.join-form input:not([type="checkbox"]):focus {
  border-bottom-color: var(--blue);
}

.consent {
  color: var(--muted);
}

.consent input {
  accent-color: var(--red);
}

.form-success {
  color: var(--blue);
}

.resident-strip {
  gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.resident-mark {
  min-height: 132px;
  padding: 22px;
  position: relative;
  border: 0;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.26);
}

.resident-mark::before {
  content: "";
  width: 0;
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--red);
  transition: width 180ms ease;
}

.resident-mark:hover::before {
  width: 7px;
}

.board-grid {
  gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.board-card {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: var(--cream);
}

.board-card img {
  height: 440px;
}

.board-card > div {
  min-height: 126px;
  margin: 0;
  padding: 26px 22px;
  border: 0;
  border-top: 7px solid var(--blue);
  border-radius: 0;
  background: var(--cream);
}

.board-card:first-child > div {
  border-top-color: var(--red);
}

.partner-layout {
  gap: 0;
  border: 1px solid var(--ink);
}

.partner-feature {
  min-height: 430px;
  padding: 44px;
  position: relative;
  border-radius: 0;
  background: var(--blue);
}

.partner-feature::before {
  content: "";
  width: 14px;
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--red);
}

.partner-grid {
  gap: 0;
}

.partner-mark {
  min-height: 215px;
  border: 0;
  border-left: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
}

.partner-mark:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.site-footer {
  padding-top: 78px;
  color: rgba(255, 255, 255, 0.86);
  border-top: 14px solid var(--red);
  background: var(--ink);
}

.footer-logo {
  padding: 14px;
  background: var(--cream);
}

.footer-grid a {
  color: var(--white);
}

.footer-note {
  color: rgba(255, 255, 255, 0.58);
  border-top-color: rgba(255, 255, 255, 0.28);
}

.subpage-hero {
  padding: 0;
}

.subpage-hero-grid {
  min-height: 470px;
  padding: 62px;
  position: relative;
  grid-template-columns: 60px minmax(0, 1fr) minmax(360px, 0.72fr);
  border: 0;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  border-radius: 0;
  background:
    linear-gradient(102deg, transparent 0 68%, var(--blue) 68% 70%, var(--red) 70% 100%),
    var(--cream);
}

.subpage-hero-grid:not(:has(.subpage-hero-image)) {
  background:
    linear-gradient(102deg, transparent 0 74%, var(--blue) 74% 76%, var(--red) 76% 100%),
    var(--cream);
}

.subpage-hero-grid .display-title {
  max-width: 920px;
  font-size: clamp(48px, 6.8vw, 104px);
  font-weight: 780;
  text-transform: none;
}

.subpage-hero-image {
  height: 360px;
  position: relative;
  z-index: 1;
  border: 1px solid var(--ink);
  border-radius: 0;
}

.inner-layout {
  padding-block: 96px 130px;
}

.side-nav {
  top: 118px;
  border-top: 2px solid var(--ink);
}

.side-nav-link.active,
.side-nav-link:hover {
  color: var(--red);
}

.prose-section h2,
.tour-detail h2,
.contacts-content h2 {
  font-weight: 730;
}

.goal-callout {
  padding: 46px;
  position: relative;
  border-radius: 0;
  background: var(--blue);
  font-weight: 700;
}

.goal-callout::before {
  content: "";
  width: 12px;
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--red);
}

.content-image {
  border-radius: 0;
}

.numbered-list span,
.document-row:hover,
.tour-card span,
.news-list-card span,
.back-link,
.contacts-content a {
  color: var(--red);
}

.lined-list li::before {
  background: var(--red);
}

.document-row {
  min-height: 116px;
  border-top-color: var(--ink);
}

.document-row:last-child {
  border-bottom-color: var(--ink);
}

.document-row strong,
.media-card h2,
.event-card h2,
.tour-card h2,
.news-list-card h2,
.gallery-card h2 {
  font-weight: 700;
}

.media-grid,
.event-list {
  gap: 0;
}

.media-card {
  padding-block: 26px;
  border-top: 1px solid var(--ink);
  border-bottom: 0;
}

.media-card:last-child {
  border-bottom: 1px solid var(--ink);
}

.branded-cover {
  min-height: 270px;
  border-radius: 0;
  background:
    linear-gradient(104deg, var(--blue) 0 64%, var(--red) 64% 100%);
}

.branded-cover::after {
  width: 100px;
  height: 100%;
  right: 20%;
  top: 0;
  border: 0;
  border-radius: 0;
  background: var(--cream);
  clip-path: polygon(70% 0, 100% 0, 30% 100%, 0 100%);
  opacity: 0.17;
}

.resident-cards,
.tour-grid,
.news-list-grid,
.gallery-grid {
  gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.resident-card,
.tour-card,
.news-list-card,
.gallery-card {
  border: 0;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
}

.resident-card-mark {
  background:
    linear-gradient(102deg, var(--blue) 0 78%, var(--red) 78% 100%);
}

.event-card {
  padding: 0;
  gap: 0;
  border: 1px solid var(--ink);
  border-radius: 0;
}

.event-card > div:last-child {
  padding: 38px;
}

.event-image {
  border-right: 1px solid var(--ink);
  border-radius: 0;
}

.tour-card:hover {
  transform: none;
}

.tour-card > div,
.news-list-card > div:last-child,
.gallery-card figcaption {
  padding: 30px;
}

.tour-card img,
.gallery-card img,
.gallery-card:first-child img {
  border-bottom: 1px solid var(--ink);
}

.news-list-card {
  grid-template-columns: 0.62fr 1.38fr;
}

.gallery-card:first-child {
  grid-column: 1 / -1;
}

.contacts-section {
  gap: 0;
  padding-top: 0;
}

.contacts-logo-panel {
  min-height: 520px;
  position: relative;
  border-radius: 0;
  background: var(--blue);
}

.contacts-logo-panel::after {
  content: "";
  width: 22%;
  position: absolute;
  inset: 0 0 0 auto;
  background: var(--red);
}

.contacts-logo-panel img {
  position: relative;
  z-index: 1;
}

.contacts-content {
  padding: 54px;
  border: 1px solid var(--ink);
  border-left: 0;
}

@media (max-width: 1240px) {
  .shell {
    width: min(100% - 48px, 1120px);
  }

  .header-row {
    flex-wrap: wrap;
    padding-block: 14px;
  }

  .header-cta {
    margin-left: auto;
  }

  .menu-toggle {
    width: 48px;
    height: 48px;
    order: 3;
    margin-left: 0;
    display: grid;
    place-content: center;
    gap: 5px;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: transparent;
  }

  .menu-toggle span:not(.sr-only) {
    width: 20px;
    height: 1px;
    background: var(--ink);
  }

  .main-nav {
    width: 100%;
    flex-basis: 100%;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding-top: 12px;
    border-top: 1px solid var(--ink);
  }

  .main-nav-open {
    display: flex;
  }

  .main-nav > a,
  .nav-dropdown > a {
    display: block;
    padding: 12px 4px;
  }

  .nav-submenu {
    position: static;
    padding: 0 0 8px 18px;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .news-hero-inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  }

  .news-copy {
    padding-inline: 46px;
  }

  .news-copy h1 {
    font-size: clamp(46px, 5.6vw, 66px);
  }

  .subpage-hero-grid {
    grid-template-columns: 52px minmax(0, 1fr) minmax(310px, 0.62fr);
    padding: 44px;
  }
}

@media (max-width: 880px) {
  .shell {
    width: min(100% - 32px, 760px);
  }

  .header-row {
    min-height: 76px;
  }

  .brand,
  .brand img {
    width: 168px;
    flex-basis: 168px;
  }

  .news-hero-inner {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .news-copy {
    min-height: 620px;
    padding: 52px 34px 38px;
  }

  .news-copy h1 {
    font-size: clamp(44px, 8.5vw, 64px);
  }

  .news-visual {
    min-height: 620px;
  }

  .hero-blue-stripe {
    width: 130px;
  }

  .section {
    padding-block: 82px;
  }

  .president-section {
    grid-template-columns: 1fr;
  }

  .president-section > .section-index {
    display: none;
  }

  .president-photo,
  .president-photo img {
    min-height: 0;
    height: 570px;
  }

  .section-heading {
    grid-template-columns: 1fr auto;
  }

  .section-heading > div {
    grid-column: 1 / -1;
  }

  .direction-grid {
    grid-template-columns: 1fr;
  }

  .direction-card {
    min-height: 300px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .direction-card:last-child {
    border-bottom: 0;
  }

  .join-layout,
  .partner-layout,
  .footer-grid,
  .contacts-section {
    grid-template-columns: 1fr;
  }

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

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

  .board-card:nth-child(n + 3) {
    display: none;
  }

  .partner-mark {
    border-left: 0;
    border-top: 1px solid var(--ink);
  }

  .subpage-hero-grid,
  .subpage-hero-grid:not(:has(.subpage-hero-image)) {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 44px 30px;
    background:
      linear-gradient(103deg, transparent 0 82%, var(--blue) 82% 85%, var(--red) 85% 100%),
      var(--cream);
  }

  .subpage-hero-grid:has(.subpage-hero-image) {
    padding-right: 30px;
  }

  .subpage-hero-grid:not(:has(.subpage-hero-image)) > div {
    grid-column: 1;
  }

  .subpage-hero-image {
    width: 88%;
    height: 360px;
  }

  .inner-layout {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

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

  .side-nav > p {
    grid-column: 1 / -1;
  }

  .resident-cards,
  .tour-grid,
  .gallery-grid,
  .news-list-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card:first-child {
    grid-column: 1;
  }

  .event-card {
    grid-template-columns: 230px 1fr;
  }

  .contacts-logo-panel {
    min-height: 350px;
  }

  .contacts-content {
    border-left: 1px solid var(--ink);
  }
}

@media (max-width: 580px) {
  .shell {
    width: calc(100% - 20px);
  }

  .site-header {
    position: relative;
  }

  .brand,
  .brand img {
    width: 142px;
    flex-basis: 142px;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    margin-left: auto;
  }

  .news-copy {
    min-height: 610px;
    padding: 40px 22px 30px;
  }

  .news-copy > .eyebrow {
    min-height: 38px;
    padding-left: 18px;
  }

  .news-copy h1 {
    font-size: clamp(38px, 12.6vw, 56px);
  }

  .news-copy > p:not(.eyebrow) {
    font-size: 15px;
  }

  .button-primary span {
    margin-left: 20px;
  }

  .carousel-controls {
    grid-template-columns: auto 1fr 46px 46px;
  }

  .carousel-controls > button {
    width: 46px;
    height: 46px;
  }

  .carousel-dots {
    display: none;
  }

  .slide-counter {
    min-width: 0;
  }

  .slide-counter strong {
    font-size: 44px;
  }

  .slide-counter span {
    font-size: 18px;
  }

  .news-visual {
    min-height: 470px;
  }

  .hero-big-number {
    top: 10px;
    font-size: 180px;
  }

  .hero-portrait {
    width: 124%;
    right: -19%;
  }

  .display-title {
    font-size: clamp(36px, 12vw, 52px);
  }

  .president-photo,
  .president-photo img {
    height: 450px;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading > .button,
  .section-heading > .text-link {
    justify-self: start;
  }

  .join-form {
    padding: 28px 20px;
  }

  .resident-strip {
    grid-template-columns: 1fr;
  }

  .board-grid {
    grid-template-columns: 1fr;
  }

  .board-card:nth-child(n + 2) {
    display: none;
  }

  .board-card img {
    height: 430px;
  }

  .partner-feature {
    padding: 34px 24px;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .partner-divider {
    display: none;
  }

  .partner-feature p,
  .partner-feature img,
  .partner-feature p:nth-of-type(2),
  .partner-feature img:nth-of-type(2) {
    grid-column: 1;
    grid-row: auto;
  }

  .partner-grid {
    grid-template-columns: 1fr 1fr;
  }

  .partner-mark {
    min-height: 145px;
    border-left: 1px solid var(--ink);
  }

  .subpage-hero-grid .display-title {
    font-size: clamp(38px, 12.5vw, 58px);
  }

  .subpage-hero-image {
    width: 100%;
    height: 310px;
  }

  .side-nav {
    grid-template-columns: 1fr;
  }

  .media-card,
  .event-card,
  .news-list-card {
    grid-template-columns: 1fr;
  }

  .event-card > div:last-child {
    padding: 28px 22px;
  }

  .event-image {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .tour-card img,
  .gallery-card:first-child img,
  .gallery-card img {
    height: 320px;
  }

  .contacts-content {
    padding: 34px 24px;
  }
}

/* Refined direction: visual language related to Santem */
:root {
  --cream: #f8fbff;
  --cream-deep: #eef3ff;
  --ink: #233d80;
  --muted: #68717c;
  --line: rgba(35, 61, 128, 0.17);
  --blue: #5886fd;
  --blue-dark: #233d80;
  --blue-soft: #ecf0fe;
  --red: #fb5b6a;
  --white: #ffffff;
  --radius: 28px;
}

body {
  background: var(--white);
  color: #464d55;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 400;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
}

.shell {
  width: min(1360px, calc(100% - 64px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border: 0;
  border-bottom: 1px solid rgba(35, 61, 128, 0.11);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 28px rgba(35, 61, 128, 0.06);
  backdrop-filter: blur(18px);
}

.header-row {
  min-height: 86px;
  gap: 22px;
}

.brand {
  flex-basis: 184px;
}

.brand img,
.footer-logo {
  width: 184px;
}

.main-nav {
  gap: clamp(12px, 1.3vw, 20px);
  color: var(--ink);
  font-size: 12px;
  font-weight: 550;
}

.main-nav > a,
.nav-dropdown > a {
  padding-block: 32px;
  border: 0;
}

.main-nav > a::after,
.nav-dropdown > a::after {
  display: none;
}

.main-nav a:hover {
  color: var(--blue);
}

.nav-submenu {
  top: 69px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 55px rgba(35, 61, 128, 0.13);
}

.nav-submenu a {
  padding: 11px 12px;
  border-radius: 11px;
}

.nav-submenu a:hover {
  background: var(--blue-soft);
}

.button {
  min-height: 48px;
  padding-inline: 25px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}

.button-primary {
  color: var(--white);
  background: linear-gradient(118deg, #83a4ff -18%, var(--blue) 75%);
  box-shadow: 0 10px 22px rgba(88, 134, 253, 0.22);
}

.button-primary::after {
  display: none;
}

.button-primary:hover {
  background: linear-gradient(118deg, var(--blue) -18%, #3768e8 75%);
}

.header-cta {
  color: var(--white);
  background: linear-gradient(118deg, #ff8792 -18%, var(--red) 78%);
  box-shadow: 0 9px 20px rgba(251, 91, 106, 0.2);
}

.header-cta:hover {
  background: linear-gradient(118deg, var(--red) -18%, #e44453 78%);
}

.button-outline {
  color: var(--ink);
  border-color: rgba(35, 61, 128, 0.24);
  background: transparent;
}

.button-outline:hover {
  color: var(--blue);
  border-color: var(--blue);
  background: var(--white);
}

.button-light {
  color: var(--ink);
  background: var(--white);
}

.mission-hero {
  padding: 34px 0 72px;
  background:
    radial-gradient(circle at 3% 20%, rgba(197, 213, 254, 0.22), transparent 22%),
    var(--white);
}

.mission-hero-inner {
  min-height: 674px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, 0.95fr);
  grid-template-rows: minmax(500px, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(35, 61, 128, 0.14);
  border-radius: 38px;
  background:
    linear-gradient(145deg, rgba(238, 243, 255, 0.82), rgba(255, 255, 255, 0.95) 56%),
    var(--white);
  box-shadow: 0 28px 80px rgba(35, 61, 128, 0.08);
}

.mission-copy {
  position: relative;
  z-index: 3;
  padding: 66px clamp(42px, 5.5vw, 82px) 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mission-kicker {
  width: min(100%, 610px);
  margin: 0 0 27px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mission-kicker::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(88, 134, 253, 0.55), transparent);
}

.mission-kicker span + span {
  color: var(--red);
}

.mission-copy h1 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(40px, 3.8vw, 56px);
  line-height: 1.1;
  font-weight: 520;
  letter-spacing: -0.038em;
}

.mission-copy h1 em {
  display: block;
  color: var(--blue-dark);
  font-style: normal;
  font-weight: 650;
}

.mission-lead {
  max-width: 645px;
  margin: 26px 0 0;
  color: #5c6671;
  font-size: 16px;
  line-height: 1.7;
}

.mission-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.mission-text-link {
  padding: 9px 0;
  color: var(--ink);
  border-bottom: 1px solid rgba(35, 61, 128, 0.35);
  font-size: 13px;
  font-weight: 600;
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.mission-text-link span {
  margin-left: 8px;
  color: var(--red);
}

.mission-text-link:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.mission-visual {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-left: 1px solid rgba(35, 61, 128, 0.12);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.3), rgba(236, 240, 254, 0.72)),
    var(--blue-soft);
}

.mission-visual::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(88, 134, 253, 0.22);
  border-radius: 50% 50% 42% 58% / 62% 44% 56% 38%;
  transform: rotate(-8deg);
}

.mission-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(58px);
  opacity: 0.72;
}

.mission-orb-blue {
  width: 360px;
  height: 360px;
  left: -95px;
  top: 5px;
  background: #c5d5fe;
}

.mission-orb-red {
  width: 260px;
  height: 260px;
  right: -70px;
  top: 88px;
  background: rgba(251, 91, 106, 0.72);
}

.mission-line {
  position: absolute;
  border: 1px solid rgba(35, 61, 128, 0.2);
  border-radius: 50%;
}

.mission-line-one {
  width: 440px;
  height: 290px;
  right: -90px;
  top: 36px;
  transform: rotate(27deg);
}

.mission-line-two {
  width: 330px;
  height: 460px;
  left: -60px;
  bottom: -190px;
  border-color: rgba(251, 91, 106, 0.31);
  transform: rotate(-28deg);
}

.mission-portrait {
  position: absolute;
  z-index: 2;
  right: -2%;
  bottom: -24%;
  width: 97%;
  max-width: none;
  filter: drop-shadow(0 25px 32px rgba(35, 61, 128, 0.16));
}

.mission-caption {
  position: absolute;
  z-index: 4;
  left: 28px;
  bottom: 28px;
  min-width: 230px;
  padding: 16px 20px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.73);
  box-shadow: 0 15px 38px rgba(35, 61, 128, 0.1);
  backdrop-filter: blur(14px);
}

.mission-caption strong {
  font-size: 14px;
  font-weight: 650;
}

.mission-caption span {
  color: #68717c;
  font-size: 11px;
}

.mission-news {
  grid-column: 1 / -1;
  min-height: 132px;
  padding: 23px 28px 23px 34px;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  border-top: 1px solid rgba(35, 61, 128, 0.13);
  background: rgba(255, 255, 255, 0.87);
  backdrop-filter: blur(18px);
}

.mission-news-label {
  align-self: stretch;
  padding-right: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(35, 61, 128, 0.14);
  color: var(--blue);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mission-news-label span:last-child {
  color: var(--red);
  letter-spacing: 0.08em;
}

.mission-news-content {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.mission-news-content strong {
  max-width: 720px;
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.35;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mission-news-content > span {
  width: fit-content;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}

.mission-news-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mission-news-controls > button,
.board-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(35, 61, 128, 0.2);
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.mission-news-controls > button:hover,
.board-controls button:hover {
  color: var(--white);
  border-color: var(--blue);
  background: var(--blue);
}

.mission-news-controls .carousel-dots {
  display: flex;
  gap: 7px;
}

.mission-news-controls .dot {
  width: 6px;
  height: 6px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c5d5fe;
}

.mission-news-controls .dot-active {
  width: 22px;
  border-radius: 999px;
  background: var(--red);
}

.news-hero {
  display: none;
}

.section {
  padding-block: 84px;
}

.section-index {
  color: var(--red);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.display-title {
  max-width: 900px;
  color: var(--ink);
  font-size: clamp(36px, 3.5vw, 52px);
  line-height: 1.16;
  font-weight: 520;
  letter-spacing: -0.032em;
}

.lead {
  margin-top: 25px;
  color: #59636e;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.72;
}

.president-section {
  position: relative;
  grid-template-columns: 44px minmax(0, 1.2fr) minmax(310px, 0.62fr);
  gap: clamp(26px, 4vw, 64px);
}

.president-section::before {
  content: "";
  position: absolute;
  top: 58px;
  right: -34px;
  width: 370px;
  height: 510px;
  border: 1px solid rgba(88, 134, 253, 0.2);
  border-radius: 50%;
  transform: rotate(13deg);
  pointer-events: none;
}

.president-copy {
  max-width: 760px;
}

.president-name {
  margin: 30px 0 5px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
}

.muted {
  color: #77808a;
  font-size: 13px;
}

.president-photo {
  min-height: 540px;
  overflow: hidden;
  border: 12px solid var(--blue-soft);
  border-radius: 200px 200px 34px 34px;
  background: var(--blue-soft);
  box-shadow: 0 22px 55px rgba(35, 61, 128, 0.1);
}

.president-photo img {
  height: 540px;
  object-position: 50% 16%;
  border-radius: 188px 188px 24px 24px;
}

.section-heading {
  margin-bottom: 46px;
  padding-top: 21px;
  grid-template-columns: minmax(170px, 0.72fr) minmax(0, 2.2fr) auto;
  gap: 30px;
  border-top: 1px solid rgba(35, 61, 128, 0.18);
  border-radius: 0;
}

.section-heading .display-title {
  font-size: clamp(34px, 3.1vw, 48px);
}

.text-link {
  color: var(--ink);
  border-bottom: 1px solid rgba(35, 61, 128, 0.4);
  font-size: 13px;
}

.direction-grid {
  gap: 20px;
  border: 0;
}

.direction-card {
  min-height: 310px;
  padding: 34px 32px;
  border: 1px solid rgba(35, 61, 128, 0.14);
  border-radius: 26px;
  color: #59636e;
  background:
    linear-gradient(150deg, rgba(238, 243, 255, 0.72), rgba(255, 255, 255, 0.98) 58%),
    var(--white);
  box-shadow: 0 16px 42px rgba(35, 61, 128, 0.055);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.direction-card:nth-child(2) {
  color: #59636e;
  background:
    radial-gradient(circle at 100% 0%, rgba(251, 91, 106, 0.14), transparent 42%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(238, 243, 255, 0.6));
}

.direction-card:nth-child(3) {
  color: #59636e;
  background:
    radial-gradient(circle at 0% 100%, rgba(88, 134, 253, 0.16), transparent 42%),
    var(--white);
}

.direction-card:nth-child(2) p,
.direction-card:nth-child(3) p {
  color: #59636e;
}

.direction-card:hover {
  transform: translateY(-5px);
  border-color: rgba(88, 134, 253, 0.42);
  box-shadow: 0 24px 52px rgba(35, 61, 128, 0.1);
}

.direction-card .card-index {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(88, 134, 253, 0.3);
  border-radius: 50%;
  color: var(--blue);
  background: var(--white);
  font-size: 10px;
  font-weight: 650;
}

.direction-card h3 {
  max-width: 360px;
  margin-top: 42px;
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.25;
  font-weight: 550;
  letter-spacing: -0.02em;
}

.direction-card p {
  margin-top: 17px;
  line-height: 1.65;
}

.section-blue {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 94% 8%, rgba(251, 91, 106, 0.3), transparent 25%),
    radial-gradient(circle at 4% 95%, rgba(197, 213, 254, 0.24), transparent 30%),
    linear-gradient(135deg, #233d80, #315eaa);
  border: 0;
}

.section-blue::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -170px;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.section-blue::before {
  display: none;
}

.section-blue .display-title {
  max-width: 650px;
  font-size: clamp(36px, 3.1vw, 48px);
}

.join-layout {
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 0.72fr);
  gap: clamp(50px, 8vw, 118px);
}

.display-title-light,
.eyebrow-light,
.lead-light,
.section-index-light {
  color: var(--white);
}

.eyebrow-light {
  opacity: 0.7;
}

.lead-light {
  color: rgba(255, 255, 255, 0.8);
}

.join-form {
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 28px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 70px rgba(12, 31, 75, 0.18);
  backdrop-filter: blur(14px);
}

.join-form label > span:first-child {
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}

.join-form input[type="text"],
.join-form input[type="tel"],
.join-form input:not([type]) {
  min-height: 51px;
  border: 1px solid rgba(35, 61, 128, 0.2);
  border-radius: 13px;
  color: #464d55;
  background: var(--white);
}

.join-form input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(88, 134, 253, 0.12);
}

.join-form .button-light {
  color: var(--white);
  background: linear-gradient(118deg, #83a4ff -18%, var(--blue) 75%);
}

.consent span {
  color: #68717c;
}

.form-success {
  color: #2d8a54;
}

.resident-strip {
  gap: 14px;
  border: 0;
}

.resident-mark {
  min-height: 124px;
  padding: 20px;
  border: 1px solid rgba(35, 61, 128, 0.13);
  border-radius: 20px;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 10%, rgba(197, 213, 254, 0.4), transparent 38%),
    var(--white);
}

.resident-mark:hover {
  border-color: rgba(88, 134, 253, 0.4);
  box-shadow: 0 16px 34px rgba(35, 61, 128, 0.08);
}

.resident-mark::before {
  display: none;
}

.board-grid {
  gap: 18px;
  border: 0;
}

.board-card {
  overflow: hidden;
  border: 1px solid rgba(35, 61, 128, 0.13);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 16px 42px rgba(35, 61, 128, 0.06);
}

.board-card img {
  height: 390px;
  border: 0;
  border-radius: 0;
}

.board-card > div {
  min-height: 132px;
  padding: 24px 23px;
  border-top: 1px solid rgba(35, 61, 128, 0.1);
}

.board-card:first-child > div {
  border-top: 1px solid rgba(35, 61, 128, 0.1);
}

.board-card h3 {
  font-size: 18px;
  font-weight: 600;
}

.board-card p {
  margin-top: 7px;
  color: #77808a;
  line-height: 1.5;
}

.board-controls {
  margin-top: 24px;
}

.partner-feature {
  min-height: 248px;
  padding: 34px 40px;
  overflow: hidden;
  border: 1px solid rgba(35, 61, 128, 0.13);
  border-radius: 26px;
  color: var(--white);
  background:
    radial-gradient(circle at 100% 0%, rgba(251, 91, 106, 0.32), transparent 42%),
    linear-gradient(145deg, #233d80, #3768b4);
}

.partner-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.partner-feature::before {
  display: none;
}

.partner-feature p {
  color: rgba(255, 255, 255, 0.74);
}

.partner-grid {
  gap: 14px;
}

.partner-layout {
  gap: 14px;
  border: 0;
}

.partner-mark {
  min-height: 150px;
  border: 1px solid rgba(35, 61, 128, 0.13);
  border-radius: 20px;
  background: var(--white);
}

.site-footer {
  padding-block: 72px;
  border: 0;
  border-top: 5px solid var(--red);
  color: rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(circle at 78% 15%, rgba(88, 134, 253, 0.28), transparent 25%),
    var(--blue-dark);
}

.footer-grid {
  gap: 42px;
}

.footer-logo {
  padding: 10px;
  border-radius: 14px;
  background: var(--white);
}

.site-footer a {
  color: var(--white);
}

.footer-note {
  color: rgba(255, 255, 255, 0.55);
}

.subpage-hero {
  padding: 34px 0 54px;
  background: var(--white);
}

.subpage-hero-grid {
  position: relative;
  min-height: 390px;
  padding: clamp(48px, 6vw, 82px);
  overflow: hidden;
  border: 1px solid rgba(35, 61, 128, 0.14);
  border-radius: 34px;
  color: #59636e;
  background:
    radial-gradient(circle at 92% 12%, rgba(251, 91, 106, 0.19), transparent 24%),
    radial-gradient(circle at 72% 115%, rgba(88, 134, 253, 0.24), transparent 38%),
    linear-gradient(145deg, var(--blue-soft), var(--white) 64%);
}

.subpage-hero-grid::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 250px;
  right: -80px;
  top: 26px;
  border: 1px solid rgba(35, 61, 128, 0.17);
  border-radius: 50%;
  transform: rotate(24deg);
}

.subpage-hero-grid > div:first-child {
  position: relative;
  z-index: 2;
}

.subpage-hero-grid .display-title {
  max-width: 850px;
  color: var(--ink);
  font-size: clamp(38px, 3.6vw, 52px);
}

.subpage-hero-grid .eyebrow {
  color: var(--blue);
}

.subpage-hero-grid .prose-lead {
  color: #59636e;
}

.subpage-hero-image {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.72);
  border-radius: 140px 140px 28px 28px;
  box-shadow: 0 20px 45px rgba(35, 61, 128, 0.12);
}

.listing-section,
.prose-section {
  padding-block: 76px 100px;
}

.inner-layout {
  gap: 46px;
}

.side-nav {
  padding: 18px;
  border: 1px solid rgba(35, 61, 128, 0.13);
  border-radius: 20px;
  background: var(--blue-soft);
}

.side-nav a {
  padding: 11px 12px;
  border: 0;
  border-radius: 11px;
}

.side-nav a:hover {
  color: var(--blue);
  background: var(--white);
}

.prose-content,
.goal-callout,
.direction-detail,
.news-detail,
.tour-detail,
.contacts-content {
  border-color: rgba(35, 61, 128, 0.14);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 16px 42px rgba(35, 61, 128, 0.055);
}

.goal-callout {
  background:
    radial-gradient(circle at 100% 0%, rgba(251, 91, 106, 0.12), transparent 40%),
    var(--blue-soft);
}

.lined-list li,
.numbered-list li,
.document-row {
  border-color: rgba(35, 61, 128, 0.14);
}

.resident-cards,
.tour-grid,
.gallery-grid,
.news-list-grid {
  gap: 18px;
}

.resident-card,
.tour-card,
.gallery-card,
.news-list-card,
.media-card,
.event-card {
  overflow: hidden;
  border: 1px solid rgba(35, 61, 128, 0.13);
  border-radius: 24px;
  color: #59636e;
  background: var(--white);
  box-shadow: 0 15px 38px rgba(35, 61, 128, 0.055);
}

.resident-card:hover,
.tour-card:hover,
.gallery-card:hover,
.news-list-card:hover,
.media-card:hover,
.event-card:hover {
  border-color: rgba(88, 134, 253, 0.4);
  box-shadow: 0 22px 48px rgba(35, 61, 128, 0.1);
}

.resident-card-mark {
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0%, rgba(251, 91, 106, 0.1), transparent 40%),
    var(--blue-soft);
}

.resident-card-content,
.news-list-card > div,
.media-card > div,
.tour-card > div {
  padding: 27px;
}

.event-image {
  border-color: rgba(35, 61, 128, 0.12);
}

.contacts-section {
  overflow: hidden;
  border: 1px solid rgba(35, 61, 128, 0.14);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 18px 46px rgba(35, 61, 128, 0.07);
}

.contacts-logo-panel {
  background:
    radial-gradient(circle at 20% 80%, rgba(251, 91, 106, 0.19), transparent 36%),
    var(--blue-soft);
}

.contacts-content {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 1180px) {
  .main-nav {
    gap: 11px;
    font-size: 11px;
  }

  .header-cta {
    padding-inline: 18px;
  }

  .mission-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  }

  .mission-copy {
    padding-inline: 48px;
  }

  .mission-copy h1 {
    font-size: clamp(40px, 4.7vw, 56px);
  }

  .mission-news {
    grid-template-columns: 145px minmax(0, 1fr) auto;
    gap: 20px;
  }

  .mission-news-controls .carousel-dots {
    display: none;
  }
}

@media (max-width: 980px) {
  .shell {
    width: min(100% - 40px, 760px);
  }

  .site-header {
    position: sticky;
  }

  .header-row {
    min-height: 76px;
  }

  .main-nav {
    top: 76px;
    border: 1px solid rgba(35, 61, 128, 0.14);
    border-radius: 0 0 22px 22px;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 22px 40px rgba(35, 61, 128, 0.12);
  }

  .main-nav > a,
  .nav-dropdown > a {
    padding-block: 14px;
  }

  .menu-toggle {
    border-color: rgba(35, 61, 128, 0.2);
    border-radius: 50%;
    background: var(--white);
  }

  .mission-hero {
    padding-top: 24px;
  }

  .mission-hero-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto 510px auto;
    border-radius: 30px;
  }

  .mission-copy {
    padding: 58px 52px 44px;
  }

  .mission-visual {
    min-height: 510px;
    border-top: 1px solid rgba(35, 61, 128, 0.12);
    border-left: 0;
  }

  .mission-portrait {
    width: min(680px, 92%);
    right: 3%;
    bottom: -31%;
  }

  .mission-news {
    grid-template-columns: 135px minmax(0, 1fr) auto;
  }

  .president-section {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .president-photo {
    grid-column: 2;
    width: min(100%, 450px);
  }

  .section-heading {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .section-heading > .button,
  .section-heading > .text-link {
    grid-column: 2;
    justify-self: start;
  }

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

  .direction-grid {
    grid-template-columns: 1fr;
  }

  .direction-card {
    min-height: 250px;
  }

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

  .partner-layout,
  .contacts-section {
    grid-template-columns: 1fr;
  }

  .subpage-hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .subpage-hero-image {
    width: min(100%, 440px);
    height: 420px;
  }

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

@media (max-width: 640px) {
  .shell {
    width: calc(100% - 24px);
  }

  .brand,
  .brand img {
    width: 148px;
    flex-basis: 148px;
  }

  .header-cta {
    display: none;
  }

  .mission-hero {
    padding: 14px 0 50px;
  }

  .mission-hero-inner {
    grid-template-rows: auto 410px auto;
    border-radius: 24px;
  }

  .mission-copy {
    padding: 38px 24px 34px;
  }

  .mission-kicker {
    gap: 9px;
    margin-bottom: 21px;
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .mission-copy h1 {
    font-size: clamp(34px, 10.4vw, 45px);
    line-height: 1.12;
  }

  .mission-lead {
    margin-top: 20px;
    font-size: 14px;
  }

  .mission-actions {
    margin-top: 27px;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .mission-visual {
    min-height: 410px;
  }

  .mission-visual::before {
    inset: 20px;
  }

  .mission-portrait {
    width: 120%;
    right: -16%;
    bottom: -25%;
  }

  .mission-caption {
    left: 16px;
    bottom: 16px;
    min-width: 205px;
    padding: 13px 15px;
  }

  .mission-news {
    padding: 20px 22px;
    grid-template-columns: 1fr auto;
    gap: 15px 18px;
  }

  .mission-news-label {
    grid-column: 1 / -1;
    padding: 0 0 13px;
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid rgba(35, 61, 128, 0.13);
  }

  .mission-news-content strong {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .mission-news-controls > button {
    width: 38px;
    height: 38px;
  }

  .mission-news-controls .carousel-dots {
    display: none;
  }

  .section {
    padding-block: 68px;
  }

  .display-title,
  .section-heading .display-title {
    font-size: clamp(31px, 9vw, 40px);
  }

  .president-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .president-section > .section-index {
    display: none;
  }

  .president-photo {
    grid-column: 1;
    width: 100%;
    min-height: 450px;
    border-width: 8px;
  }

  .president-photo img {
    height: 450px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-heading > .button,
  .section-heading > .text-link {
    grid-column: 1;
  }

  .direction-card {
    min-height: 0;
    padding: 28px 24px;
  }

  .direction-card h3 {
    margin-top: 32px;
  }

  .join-form {
    padding: 26px 20px;
    border-radius: 22px;
  }

  .resident-strip,
  .board-grid,
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .board-card:nth-child(n + 2) {
    display: none;
  }

  .partner-feature {
    padding: 28px 23px;
  }

  .subpage-hero {
    padding-top: 14px;
  }

  .subpage-hero-grid {
    padding: 38px 24px;
    border-radius: 24px;
  }

  .subpage-hero-grid .display-title {
    font-size: clamp(34px, 10vw, 46px);
  }

  .subpage-hero-image {
    height: 340px;
    border-width: 7px;
  }

  .resident-cards,
  .tour-grid,
  .gallery-grid,
  .news-list-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-block: 56px;
  }
}

/* Согласованные визуальные правки */

.president-section::before {
  width: 410px;
  height: 410px;
  top: 92px;
  right: -20px;
  border-color: rgba(49, 90, 154, 0.24);
  border-radius: 50%;
}

.president-photo {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 58% 42%, rgba(201, 78, 89, 0.26), transparent 34%),
    radial-gradient(circle at 38% 58%, rgba(74, 121, 186, 0.42), transparent 48%);
  box-shadow: none;
}

.president-photo::before {
  content: "";
  position: absolute;
  inset: 42px 8px 28px 48px;
  border: 1px solid rgba(49, 90, 154, 0.24);
  border-radius: 48% 52% 44% 56% / 55% 43% 57% 45%;
  transform: rotate(-7deg);
}

.president-photo img {
  position: absolute;
  z-index: 2;
  width: 122%;
  max-width: none;
  height: auto;
  right: -20%;
  bottom: -29%;
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 24px 32px rgba(35, 61, 128, 0.18));
}

.direction-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(145deg, var(--sdmo-blue-deep), #4d79bb);
  box-shadow: 0 13px 28px rgba(35, 61, 128, 0.2);
}

.direction-icon::before,
.direction-icon::after,
.direction-icon i {
  display: none;
}

.direction-icon svg {
  display: block;
}

.direction-card h3 {
  margin-top: 30px;
}

.board-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 90% 4%, rgba(201, 78, 89, 0.3), transparent 25%),
    radial-gradient(circle at 4% 100%, rgba(112, 151, 211, 0.27), transparent 31%),
    linear-gradient(135deg, #1f3878, #315fa8);
}

.board-section::before,
.board-section::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.board-section::before {
  width: 520px;
  height: 340px;
  right: -150px;
  top: -90px;
  transform: rotate(24deg);
}

.board-section::after {
  width: 420px;
  height: 520px;
  left: -210px;
  bottom: -350px;
  border-color: rgba(201, 78, 89, 0.28);
}

.board-section .shell {
  position: relative;
  z-index: 2;
}

.board-section .section-heading {
  border-top-color: rgba(255, 255, 255, 0.28);
}

.board-section .board-card {
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 20px 48px rgba(12, 28, 63, 0.23);
}

.board-section .board-controls button {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
}

.resident-brand {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
}

.resident-brand img {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  object-fit: contain;
}

.resident-brand strong {
  min-width: 0;
  color: var(--sdmo-blue-deep);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 650;
}

.resident-brand-mono {
  justify-content: center;
  text-align: center;
}

.resident-brand-mono img {
  filter: grayscale(1) brightness(0) saturate(100%) invert(23%) sepia(28%) saturate(2636%) hue-rotate(184deg) brightness(89%) contrast(91%);
}

.resident-brand-mono strong {
  color: var(--sdmo-blue-deep);
  font-size: 17px;
}

.resident-carousel .resident-mark {
  min-height: 132px;
}

.resident-cards-modal {
  align-items: start;
}

.resident-card,
.resident-card-button {
  min-height: 0 !important;
  height: auto !important;
  align-self: start;
}

.resident-card-button {
  grid-template-columns: 190px minmax(0, 1fr);
}

.resident-card-button .resident-card-mark {
  min-height: 100%;
  padding: 22px;
  gap: 30px;
  justify-content: flex-start;
}

.resident-card-button .resident-card-mark > span {
  color: var(--sdmo-blue);
  font-size: 10px;
}

.resident-card-button .resident-brand {
  align-items: flex-start;
  flex-direction: column;
}

.resident-card-button .resident-brand img {
  width: 62px;
  height: 62px;
  flex-basis: 62px;
}

.resident-card-button .resident-brand strong {
  font-size: 18px;
}

.resident-card-button .resident-card-content {
  padding: 22px 24px 24px;
}

.resident-card-button h2 {
  margin-bottom: 16px;
}

.resident-card-button p {
  margin-top: 10px;
}

.resident-card-button em {
  margin-top: 17px;
}

.resident-modal-mark {
  width: min(100%, 360px);
  padding: 16px 20px;
  border-radius: 18px;
}

.resident-modal-mark .resident-brand img {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
}

.subpage-hero {
  padding: 18px 0 22px;
  background: var(--page-blue);
}

.subpage-hero-grid,
.subpage-hero-grid:not(:has(.subpage-hero-image)) {
  min-height: 138px;
  padding: 24px 34px;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  color: var(--white);
  background:
    radial-gradient(circle at 88% -20%, rgba(201, 78, 89, 0.38), transparent 34%),
    linear-gradient(135deg, #1f397a, #3262aa);
  box-shadow: 0 18px 42px rgba(35, 61, 128, 0.13);
}

.subpage-hero-grid::before {
  width: 330px;
  height: 170px;
  right: -50px;
  top: -34px;
  border-color: rgba(255, 255, 255, 0.2);
}

.subpage-hero-grid .section-index {
  position: relative;
  z-index: 2;
  color: #ff929b;
}

.subpage-hero-grid .eyebrow {
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.72);
}

.subpage-hero-grid .display-title {
  max-width: 1100px;
  color: var(--white);
  font-size: clamp(27px, 2.7vw, 39px);
  line-height: 1.16;
}

.subpage-hero-image {
  display: none;
}

.inner-layout {
  padding-block: 38px 82px;
  align-items: start;
}

.side-nav {
  top: 104px;
}

.prose-content {
  overflow: hidden;
}

.prose-content .prose-section {
  margin: 0;
  padding: 36px 42px !important;
}

.prose-content .prose-section + .prose-section {
  padding-top: 36px !important;
}

.prose-content .prose-section h2 {
  margin-bottom: 20px;
  font-size: clamp(27px, 3vw, 42px);
  line-height: 1.16;
}

.prose-content .prose-section p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.68;
}

.prose-content .prose-lead {
  font-size: clamp(18px, 1.8vw, 25px);
  line-height: 1.58;
}

.goal-callout {
  min-height: 0 !important;
  margin: 0 42px 42px;
  padding: 32px 38px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 22px !important;
  color: var(--white) !important;
  background:
    radial-gradient(circle at 90% 0%, rgba(201, 78, 89, 0.38), transparent 34%),
    linear-gradient(135deg, #203a7c, #3261aa) !important;
  box-shadow: 0 18px 42px rgba(35, 61, 128, 0.18) !important;
  font-size: clamp(25px, 3vw, 39px);
  line-height: 1.2;
  font-weight: 650;
}

.goal-callout::before {
  width: 5px;
  border-radius: 5px 0 0 5px;
  background: var(--sdmo-coral);
}

@media (max-width: 1080px) {
  .resident-card-button {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .president-photo img {
    width: 108%;
    right: -8%;
  }
}

@media (max-width: 820px) {
  .subpage-hero-grid,
  .subpage-hero-grid:not(:has(.subpage-hero-image)) {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .subpage-hero-grid > .section-index {
    display: block;
  }

  .president-photo {
    min-height: 480px;
  }

  .resident-card-button {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .subpage-hero-grid,
  .subpage-hero-grid:not(:has(.subpage-hero-image)) {
    min-height: 112px;
    padding: 22px;
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .subpage-hero-grid > .section-index {
    display: none;
  }

  .subpage-hero-grid .display-title {
    font-size: clamp(25px, 8vw, 34px);
  }

  .president-photo {
    min-height: 420px;
  }

  .president-photo img {
    width: 130%;
    right: -24%;
    bottom: -20%;
  }

  .resident-card-button {
    grid-template-columns: 1fr;
  }

  .resident-card-button .resident-card-mark {
    min-height: 0;
    gap: 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(49, 90, 154, 0.12);
  }

  .resident-card-button .resident-brand {
    align-items: center;
    flex-direction: row;
  }

  .prose-content .prose-section {
    padding: 28px 22px !important;
  }

  .goal-callout {
    margin: 0 22px 28px;
    padding: 26px 24px !important;
  }
}

/* ТЗ 2026: управляемая витрина, мягкая фирменная система */

:root {
  --page-blue: #edf3fb;
  --panel-blue: #dbe8f7;
  --sdmo-blue: #315a9a;
  --sdmo-blue-deep: #233d80;
  --sdmo-coral: #c94e59;
}

body {
  background: var(--page-blue);
}

.hero-slider {
  padding: 28px 0 62px;
  overflow: hidden;
  background:
    radial-gradient(circle at 4% 40%, rgba(49, 90, 154, 0.1), transparent 24%),
    var(--page-blue);
}

.hero-slider-frame {
  position: relative;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(410px, 0.82fr);
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border: 1px solid rgba(35, 61, 128, 0.18);
  border-radius: 42px 42px 110px 42px;
  background:
    radial-gradient(circle at 84% 10%, rgba(201, 78, 89, 0.16), transparent 24%),
    linear-gradient(135deg, #f8fbff 0%, #e1ebf8 100%);
  box-shadow: 0 26px 70px rgba(35, 61, 128, 0.09);
}

.hero-slider-frame::before {
  content: "";
  position: absolute;
  inset: 30px;
  border: 1px solid rgba(49, 90, 154, 0.13);
  border-radius: 34px 34px 94px 34px;
  pointer-events: none;
}

.hero-slider-copy {
  position: relative;
  z-index: 3;
  padding: 78px clamp(42px, 5.2vw, 76px) 48px;
  align-self: center;
}

.hero-slider-label {
  margin: 0 0 27px;
  color: var(--sdmo-blue);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-slider-copy h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(40px, 4vw, 58px);
  line-height: 1.1;
  font-weight: 510;
  letter-spacing: -0.042em;
}

.hero-slider-copy > p:not(.hero-slider-label) {
  max-width: 690px;
  margin: 25px 0 0;
  color: #536577;
  font-size: 16px;
  line-height: 1.72;
}

.hero-slider-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.hero-secondary-link {
  padding: 7px 0;
  border-bottom: 1px solid rgba(49, 90, 154, 0.35);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.hero-secondary-link span {
  margin-left: 8px;
  color: var(--sdmo-coral);
}

.hero-slider-art {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-left: 1px solid rgba(49, 90, 154, 0.13);
}

.hero-slider-art::before,
.hero-slider-art::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(49, 90, 154, 0.2);
  border-radius: 50%;
}

.hero-slider-art::before {
  width: 480px;
  height: 320px;
  right: -110px;
  top: 50px;
  transform: rotate(25deg);
}

.hero-slider-art::after {
  width: 360px;
  height: 520px;
  left: -110px;
  bottom: -250px;
  border-color: rgba(201, 78, 89, 0.26);
  transform: rotate(-30deg);
}

.hero-art-ring {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
}

.ring-blue {
  width: 330px;
  height: 330px;
  left: -80px;
  top: 30px;
  background: rgba(93, 139, 204, 0.34);
}

.ring-coral {
  width: 260px;
  height: 260px;
  right: -45px;
  top: 105px;
  background: rgba(201, 78, 89, 0.42);
}

.hero-slider-art.portrait img {
  position: absolute;
  z-index: 2;
  width: 98%;
  max-width: none;
  right: -1%;
  bottom: -23%;
  filter: drop-shadow(0 24px 30px rgba(35, 61, 128, 0.14));
}

.hero-person-caption {
  position: absolute;
  z-index: 4;
  left: 26px;
  bottom: 26px;
  padding: 15px 19px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(14px);
}

.hero-person-caption strong {
  font-size: 13px;
  font-weight: 650;
}

.hero-person-caption span {
  color: #617082;
  font-size: 10px;
}

.hero-news-mark {
  position: absolute;
  z-index: 2;
  inset: 72px 55px 78px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50% 50% 42% 58% / 60% 42% 58% 40%;
  color: var(--white);
  background: linear-gradient(145deg, var(--sdmo-blue-deep), #567fc0);
  box-shadow: 0 28px 60px rgba(35, 61, 128, 0.2);
  transform: rotate(-4deg);
}

.hero-news-mark span {
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 650;
  letter-spacing: -0.04em;
}

.hero-news-mark small {
  color: #ffb8be;
  font-size: 20px;
}

.hero-slider-controls {
  position: relative;
  z-index: 5;
  grid-column: 1 / -1;
  min-height: 78px;
  padding: 16px 28px 16px 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(49, 90, 154, 0.14);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
}

.hero-slider-controls > span {
  margin-right: 8px;
  color: var(--sdmo-blue);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.hero-slider-controls > button,
.slider-controls button,
.pagination button,
.catalog-side-nav button {
  cursor: pointer;
}

.hero-slider-controls > button,
.slider-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(49, 90, 154, 0.24);
  border-radius: 50%;
  color: var(--sdmo-blue-deep);
  background: rgba(255, 255, 255, 0.82);
}

.hero-dots {
  margin-right: auto;
  display: flex;
  gap: 7px;
}

.hero-dots button {
  width: 7px;
  height: 7px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #a9bdd8;
  cursor: pointer;
}

.hero-dots button.active {
  width: 25px;
  border-radius: 999px;
  background: var(--sdmo-coral);
}

.direction-card {
  min-height: 290px;
}

.direction-icon {
  position: relative;
  width: 56px;
  height: 56px;
  display: block;
  border: 1px solid rgba(49, 90, 154, 0.3);
  border-radius: 50%;
  color: var(--sdmo-blue);
}

.direction-icon::before,
.direction-icon::after,
.direction-icon i {
  content: "";
  position: absolute;
  display: block;
  border: 1px solid currentColor;
}

.direction-icon-1::before {
  width: 24px;
  height: 16px;
  left: 15px;
  top: 18px;
  border-radius: 4px;
}

.direction-icon-1::after {
  width: 12px;
  left: 21px;
  top: 36px;
  border-width: 1px 0 0;
}

.direction-icon-2::before {
  width: 20px;
  height: 25px;
  left: 17px;
  top: 14px;
  border-radius: 11px 11px 5px 5px;
}

.direction-icon-2::after {
  width: 8px;
  height: 8px;
  left: 23px;
  top: 20px;
  border-radius: 50%;
}

.direction-icon-3::before {
  width: 27px;
  height: 27px;
  left: 13px;
  top: 13px;
  border-radius: 50%;
}

.direction-icon-3::after {
  width: 26px;
  left: 14px;
  top: 26px;
  border-width: 1px 0 0;
}

.direction-card h3 {
  margin-top: 34px;
}

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

.join-form .consent,
.join-form .button,
.join-form .form-success {
  grid-column: 1 / -1;
}

.resident-carousel {
  position: relative;
}

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

.compact-controls {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.partner-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.45fr);
}

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

.partner-ticker .partner-mark img {
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 180ms ease, opacity 180ms ease;
}

.partner-ticker .partner-mark:hover img {
  filter: grayscale(0);
  opacity: 1;
}

.subpage-hero {
  padding: 22px 0 34px;
  background: var(--page-blue);
}

.subpage-hero-grid,
.subpage-hero-grid:not(:has(.subpage-hero-image)) {
  min-height: 220px;
  padding: 36px 42px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(240px, 0.42fr);
  align-items: center;
  gap: 24px;
  border-radius: 26px 26px 64px 26px;
  background:
    radial-gradient(circle at 92% 10%, rgba(201, 78, 89, 0.12), transparent 24%),
    linear-gradient(135deg, #e4eef9, #f7faff);
}

.subpage-hero-grid:not(:has(.subpage-hero-image)) {
  grid-template-columns: 34px minmax(0, 1fr);
}

.subpage-hero-grid::before {
  width: 300px;
  height: 160px;
  right: -45px;
  top: 18px;
}

.subpage-hero-grid .display-title {
  max-width: 900px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.18;
}

.subpage-hero-grid .eyebrow {
  margin-bottom: 10px;
}

.subpage-hero-image {
  width: 100%;
  height: 158px;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.7);
  border-radius: 80px 80px 18px 18px;
}

.listing-section {
  padding-block: 52px 96px;
}

.inner-layout {
  padding-top: 52px;
}

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

.resident-card-button {
  width: 100%;
  padding: 0;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  text-align: left;
  cursor: pointer;
}

.resident-card-button .resident-card-mark {
  min-height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(49, 90, 154, 0.12);
}

.resident-card-button .resident-card-mark strong {
  color: var(--sdmo-blue-deep);
  font-size: 20px;
  line-height: 1.22;
}

.resident-card-button .resident-card-content {
  padding: 25px;
}

.resident-card-button h2 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
}

.resident-card-button p {
  margin: 12px 0 0;
  color: #536577;
  font-size: 13px;
  line-height: 1.5;
}

.resident-card-button p span {
  margin-bottom: 3px;
  display: block;
  color: #8794a4;
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.resident-card-button em {
  margin-top: 22px;
  display: inline-block;
  color: var(--sdmo-blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.resident-modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(22, 38, 70, 0.54);
  backdrop-filter: blur(7px);
}

.resident-modal {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 48px);
  padding: 42px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px 30px 72px 30px;
  background: #f8fbff;
  box-shadow: 0 30px 90px rgba(12, 28, 58, 0.3);
}

.resident-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(49, 90, 154, 0.22);
  border-radius: 50%;
  color: var(--sdmo-blue-deep);
  background: var(--white);
  cursor: pointer;
}

.resident-modal-mark {
  width: fit-content;
  margin-bottom: 32px;
  padding: 17px 22px;
  border-radius: 50% 50% 45% 55% / 55% 44% 56% 45%;
  color: var(--sdmo-blue-deep);
  background: var(--panel-blue);
  font-size: 18px;
  font-weight: 650;
}

.resident-modal h2 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  font-weight: 550;
}

.resident-modal dl,
.event-facts {
  margin: 34px 0;
}

.resident-modal dl > div,
.event-facts > div {
  padding: 15px 0;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  border-top: 1px solid rgba(49, 90, 154, 0.16);
}

.resident-modal dt,
.event-facts dt {
  color: #8190a2;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resident-modal dd,
.event-facts dd {
  margin: 0;
  color: #475b70;
  line-height: 1.5;
}

.catalog-with-nav {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 40px;
}

.catalog-side-nav {
  height: fit-content;
  padding: 14px;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(49, 90, 154, 0.14);
  border-radius: 20px;
  background: var(--panel-blue);
}

.catalog-side-nav button {
  padding: 13px 14px;
  border: 0;
  border-radius: 11px;
  color: #536577;
  text-align: left;
  background: transparent;
}

.catalog-side-nav button.active {
  color: var(--sdmo-blue-deep);
  background: var(--white);
  box-shadow: 0 8px 18px rgba(35, 61, 128, 0.07);
}

.catalog-heading {
  margin-bottom: 30px;
}

.catalog-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 530;
}

.event-list {
  padding: 0;
  gap: 18px;
}

.event-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
}

.event-card > div:last-child {
  padding: 30px;
}

.event-card h3 {
  margin: 17px 0 12px;
  color: var(--ink);
  font-size: clamp(21px, 2vw, 29px);
  line-height: 1.28;
  font-weight: 550;
}

.event-card p {
  max-width: 750px;
  color: #596b7d;
  line-height: 1.6;
}

.event-card em {
  margin-top: 17px;
  display: inline-block;
  color: var(--sdmo-blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.event-detail,
.gallery-detail {
  margin-block: 52px 96px;
  padding: clamp(28px, 5vw, 62px);
  border: 1px solid rgba(49, 90, 154, 0.15);
  border-radius: 28px;
  background: #f8fbff;
  box-shadow: 0 18px 45px rgba(35, 61, 128, 0.06);
}

.event-detail .prose-lead {
  max-width: 900px;
  margin-top: 40px;
}

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

.pagination {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.pagination button {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(49, 90, 154, 0.22);
  border-radius: 50%;
  color: var(--sdmo-blue-deep);
  background: transparent;
}

.pagination button.active {
  color: var(--white);
  border-color: var(--sdmo-blue);
  background: var(--sdmo-blue);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
}

.gallery-card,
.gallery-card:first-child {
  display: grid;
  grid-template-rows: 280px auto;
}

.gallery-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
  grid-template-rows: 590px auto;
}

.gallery-card img,
.gallery-card:first-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card > div {
  padding: 22px;
}

.gallery-card > div > span {
  color: var(--sdmo-coral);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.1em;
}

.gallery-card h2 {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.4;
  font-weight: 550;
}

.gallery-card p {
  margin: 18px 0 0;
  color: var(--sdmo-blue);
  font-size: 12px;
  font-weight: 600;
}

.gallery-detail img {
  width: 100%;
  max-height: 780px;
  margin-top: 34px;
  object-fit: contain;
  border-radius: 24px;
  background: var(--panel-blue);
}

.contacts-logo-panel {
  min-height: 520px;
  padding: 0;
}

.contacts-logo-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1080px) {
  .hero-slider-frame {
    grid-template-columns: 1fr;
  }

  .hero-slider-art {
    min-height: 470px;
    border-top: 1px solid rgba(49, 90, 154, 0.13);
    border-left: 0;
  }

  .hero-slider-art.portrait img {
    width: min(680px, 82%);
    right: 7%;
    bottom: -28%;
  }

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

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

  .resident-card-button {
    grid-template-columns: 140px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .hero-slider-frame {
    border-radius: 30px 30px 70px 30px;
  }

  .hero-slider-copy {
    padding: 58px 42px 42px;
  }

  .subpage-hero-grid,
  .subpage-hero-grid:not(:has(.subpage-hero-image)) {
    grid-template-columns: 1fr;
  }

  .subpage-hero-grid > .section-index {
    display: none;
  }

  .subpage-hero-image {
    width: min(100%, 420px);
  }

  .resident-cards-modal {
    grid-template-columns: 1fr;
  }

  .catalog-with-nav {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .catalog-side-nav {
    grid-template-columns: 1fr 1fr;
  }

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

  .event-image {
    min-height: 300px;
  }

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

@media (max-width: 640px) {
  .hero-slider {
    padding-top: 14px;
  }

  .hero-slider-frame {
    min-height: 0;
    border-radius: 24px 24px 52px 24px;
  }

  .hero-slider-frame::before {
    inset: 16px;
    border-radius: 18px 18px 42px 18px;
  }

  .hero-slider-copy {
    padding: 42px 24px 34px;
  }

  .hero-slider-copy h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .hero-slider-copy > p:not(.hero-slider-label) {
    font-size: 14px;
  }

  .hero-slider-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .hero-slider-art {
    min-height: 380px;
  }

  .hero-slider-art.portrait img {
    width: 120%;
    right: -14%;
    bottom: -26%;
  }

  .hero-news-mark {
    inset: 48px 28px 58px;
    padding: 25px;
  }

  .hero-person-caption {
    left: 16px;
    bottom: 16px;
  }

  .hero-slider-controls {
    min-height: 68px;
    padding: 13px 18px;
  }

  .hero-dots {
    display: none;
  }

  .join-form {
    grid-template-columns: 1fr;
  }

  .join-form .consent,
  .join-form .button,
  .join-form .form-success {
    grid-column: 1;
  }

  .resident-carousel .resident-strip,
  .partner-ticker {
    grid-template-columns: 1fr;
  }

  .resident-carousel .resident-mark:nth-child(n + 3),
  .partner-ticker .partner-mark:nth-child(n + 3) {
    display: none;
  }

  .subpage-hero-grid,
  .subpage-hero-grid:not(:has(.subpage-hero-image)) {
    min-height: 0;
    padding: 30px 24px;
    border-radius: 22px 22px 46px 22px;
  }

  .subpage-hero-grid .display-title {
    font-size: clamp(29px, 9vw, 38px);
  }

  .subpage-hero-image {
    height: 150px;
  }

  .resident-card-button {
    grid-template-columns: 1fr;
  }

  .resident-card-button .resident-card-mark {
    min-height: 120px;
    border-right: 0;
    border-bottom: 1px solid rgba(49, 90, 154, 0.12);
  }

  .resident-modal {
    padding: 32px 22px;
    border-radius: 24px 24px 48px 24px;
  }

  .resident-modal dl > div,
  .event-facts > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .catalog-side-nav {
    grid-template-columns: 1fr;
  }

  .event-image {
    min-height: 230px;
  }

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

  .gallery-card:first-child {
    grid-column: auto;
    grid-row: auto;
    grid-template-rows: 380px auto;
  }

  .gallery-card,
  .gallery-card:first-child {
    grid-template-rows: 320px auto;
  }
}

/* Финальный слой согласованных правок */

.direction-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(145deg, var(--sdmo-blue-deep), #4d79bb);
  box-shadow: 0 13px 28px rgba(35, 61, 128, 0.2);
}

.direction-icon::before,
.direction-icon::after,
.direction-icon i {
  display: none;
}

.direction-icon svg {
  display: block;
}

.direction-card h3 {
  margin-top: 30px;
}

.resident-carousel .resident-mark {
  min-height: 132px;
}

.resident-brand {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
}

.resident-brand img {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  object-fit: contain;
}

.resident-brand strong {
  min-width: 0;
  color: var(--sdmo-blue-deep);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 650;
}

.resident-brand-mono {
  justify-content: center;
  text-align: center;
}

.resident-brand-mono img {
  filter: grayscale(1) brightness(0) saturate(100%) invert(23%) sepia(28%) saturate(2636%) hue-rotate(184deg) brightness(89%) contrast(91%);
}

.resident-brand-mono strong {
  color: var(--sdmo-blue-deep);
  font-size: 17px;
}

.resident-cards-modal {
  align-items: start;
}

.resident-card,
.resident-card-button {
  min-height: 0 !important;
  height: auto !important;
  align-self: start;
}

.resident-card-button {
  grid-template-columns: 190px minmax(0, 1fr);
}

.resident-card-button .resident-card-mark {
  min-height: 100%;
  padding: 22px;
  gap: 30px;
  justify-content: flex-start;
}

.resident-card-button .resident-card-mark > span {
  color: var(--sdmo-blue);
  font-size: 10px;
}

.resident-card-button .resident-brand {
  align-items: flex-start;
  flex-direction: column;
}

.resident-card-button .resident-brand img {
  width: 62px;
  height: 62px;
  flex-basis: 62px;
}

.resident-card-button .resident-brand strong {
  font-size: 18px;
}

.resident-card-button .resident-card-content {
  padding: 22px 24px 24px;
}

.resident-card-button h2 {
  margin-bottom: 16px;
}

.resident-card-button p {
  margin-top: 10px;
}

.resident-card-button em {
  margin-top: 17px;
}

.resident-modal-mark {
  width: min(100%, 360px);
  padding: 16px 20px;
  border-radius: 18px;
}

.resident-modal-mark .resident-brand img {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
}

.subpage-hero {
  padding: 18px 0 22px;
  background: var(--page-blue);
}

.subpage-hero-grid,
.subpage-hero-grid:not(:has(.subpage-hero-image)) {
  min-height: 138px;
  padding: 24px 34px;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  color: var(--white);
  background:
    radial-gradient(circle at 88% -20%, rgba(201, 78, 89, 0.38), transparent 34%),
    linear-gradient(135deg, #1f397a, #3262aa);
  box-shadow: 0 18px 42px rgba(35, 61, 128, 0.13);
}

.subpage-hero-grid::before {
  width: 330px;
  height: 170px;
  right: -50px;
  top: -34px;
  border-color: rgba(255, 255, 255, 0.2);
}

.subpage-hero-grid .section-index {
  position: relative;
  z-index: 2;
  color: #ff929b;
}

.subpage-hero-grid .eyebrow {
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.72);
}

.subpage-hero-grid .display-title {
  max-width: 1100px;
  color: var(--white);
  font-size: clamp(27px, 2.7vw, 39px);
  line-height: 1.16;
}

.subpage-hero-image {
  display: none;
}

.inner-layout {
  padding-block: 38px 82px;
  align-items: start;
}

.side-nav {
  top: 104px;
}

.prose-content {
  overflow: hidden;
}

.prose-content .prose-section {
  margin: 0;
  padding: 36px 42px !important;
}

.prose-content .prose-section + .prose-section {
  padding-top: 36px !important;
}

.prose-content .prose-section h2 {
  margin-bottom: 20px;
  font-size: clamp(27px, 3vw, 42px);
  line-height: 1.16;
}

.prose-content .prose-section p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.68;
}

.prose-content .prose-lead {
  font-size: clamp(18px, 1.8vw, 25px);
  line-height: 1.58;
}

.goal-callout {
  min-height: 0 !important;
  margin: 0 42px 42px;
  padding: 32px 38px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 22px !important;
  color: var(--white) !important;
  background:
    radial-gradient(circle at 90% 0%, rgba(201, 78, 89, 0.38), transparent 34%),
    linear-gradient(135deg, #203a7c, #3261aa) !important;
  box-shadow: 0 18px 42px rgba(35, 61, 128, 0.18) !important;
  font-size: clamp(25px, 3vw, 39px);
  line-height: 1.2;
  font-weight: 650;
}

.goal-callout::before {
  width: 5px;
  border-radius: 5px 0 0 5px;
  background: var(--sdmo-coral);
}

@media (max-width: 1080px) {
  .resident-card-button {
    grid-template-columns: 160px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .subpage-hero-grid,
  .subpage-hero-grid:not(:has(.subpage-hero-image)) {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .subpage-hero-grid > .section-index {
    display: block;
  }

  .resident-card-button {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .subpage-hero-grid,
  .subpage-hero-grid:not(:has(.subpage-hero-image)) {
    min-height: 112px;
    padding: 22px;
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .subpage-hero-grid > .section-index {
    display: none;
  }

  .subpage-hero-grid .display-title {
    font-size: clamp(25px, 8vw, 34px);
  }

  .resident-card-button {
    grid-template-columns: 1fr;
  }

  .resident-card-button .resident-card-mark {
    min-height: 0;
    gap: 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(49, 90, 154, 0.12);
  }

  .resident-card-button .resident-brand {
    align-items: center;
    flex-direction: row;
  }

  .prose-content .prose-section {
    padding: 28px 22px !important;
  }

  .goal-callout {
    margin: 0 22px 28px;
    padding: 26px 24px !important;
  }
}
