@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@500;600;700;800&display=swap");

:root {
  --ink: #10231d;
  --forest: #0a6b41;
  --leaf: #32a852;
  --moss: #d7ead9;
  --gold: #f4c430;
  --gold-ink: #9b7300;
  --paper: #f6f8f3;
  --white: #ffffff;
  --muted: #64736b;
  --line: rgba(16, 35, 29, .12);
  --shadow: 0 22px 60px rgba(16, 35, 29, .12);
  --radius: 8px;
  --font-body: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --font-title: "Manrope", "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  height: auto !important;
  overflow-y: auto !important;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  height: auto !important;
  overflow-y: auto !important;
  overflow-x: hidden;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  background: var(--paper);
}

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

p,
h1,
h2,
h3,
h4,
span,
strong,
a {
  overflow-wrap: anywhere;
}

h1,
h2,
.brand strong,
.section-heading h2,
.page-hero h1,
.about-hero h3 {
  font-family: var(--font-title);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 1001;
  width: 100%;
  background: #0d3325;
  color: #fff;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  min-height: 36px;
  margin: 0 auto;
  align-items: center;
  font-size: 12px;
}

.topbar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar-right {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
}

.topbar-right a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.topbar-right a:hover {
  color: var(--gold);
}

.nav-frame {
  position: sticky;
  top: 36px;
  left: 0;
  z-index: 1000;
  display: flex;
  width: 100%;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px max(18px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

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

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

.brand strong {
  color: var(--forest);
  font-size: 18px;
  line-height: 1.05;
}

.brand small {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #21392f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

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

.main-nav a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: var(--forest);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

.nav-search {
  position: relative;
}

.nav-search-toggle,
.nav-search-panel button,
.rk-button,
.contact-form button,
.search-page-form button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  background: var(--forest);
  font-weight: 800;
}

.nav-search-toggle {
  width: 46px;
}

.nav-search-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: flex;
  width: min(360px, 46vw);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease;
}

.nav-search.is-open .nav-search-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-search input,
.search-page-form input,
.footer-newsletter input,
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.nav-search input {
  height: 46px;
  border: 0;
  padding: 0 14px;
}

.nav-search-panel button {
  width: 52px;
  border-radius: 0;
}

.cse-hero {
  position: relative;
  padding: 74px 0 74px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(11, 54, 39, .95), rgba(10, 107, 65, .78)),
    url("../img/rukenova-profile.jpeg") center / cover no-repeat;
}

.cse-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 10px;
  background: linear-gradient(90deg, var(--leaf), var(--gold), var(--forest));
  content: "";
}

.cse-hero-inner,
.section,
.contact,
.page-hero,
.about-hero,
.detail-layout,
.footer-top,
.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.cse-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 380px;
  gap: 42px;
  align-items: end;
}

.cse-hero h1 {
  max-width: 760px;
  margin: 12px 0 18px;
  color: #fff;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1;
}

.cse-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
}

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

.rk-button,
.ghost-button {
  min-height: 50px;
  padding: 0 22px;
}

.rk-button {
  background: var(--gold);
  color: var(--ink);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: var(--radius);
  color: #fff;
  font-weight: 800;
}

.cse-hero-panel,
.content-card,
.service-card,
.value-grid article,
.intro-grid article,
.contact-panel,
.contact-form,
.about-hero,
.org-grid article,
.detail-content,
.service-table-wrap,
.gallery-card,
.empty-state-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 36px rgba(16, 35, 29, .08);
}

.cse-hero-panel {
  padding: 28px;
  color: var(--ink);
}

.cse-hero-panel img {
  width: 132px;
  height: 132px;
  margin-bottom: 18px;
  object-fit: contain;
}

.cse-hero-panel strong {
  display: block;
  color: var(--forest);
  font-size: 18px;
  line-height: 1.15;
}

.cse-hero-panel p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.signal-strip {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(980px, calc(100% - 32px));
  margin: -28px auto 76px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.signal-strip article,
.signal-item {
  display: block;
  padding: 26px 28px;
  border-right: 1px solid var(--line);
}

.signal-strip article:last-child,
.signal-item:last-child {
  border-right: 0;
}

.signal-item {
  transition: background .2s ease, transform .2s ease;
}

.signal-item:hover {
  background: rgba(215, 234, 217, .48);
  transform: translateY(-2px);
}

.signal-strip strong {
  display: block;
  color: var(--forest);
  font-size: 30px;
  line-height: 1;
}

.signal-strip span,
.section-kicker,
.section-heading span,
.content-card small,
.service-pill,
.page-hero span {
  color: var(--gold-ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.section,
.contact {
  margin-bottom: 82px;
}

#axes-section,
#team-section {
  scroll-margin-top: 150px;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: clamp(20px, 2.5vw, 32px);
  line-height: 1.12;
}

.intro-grid,
.service-grid,
.content-grid,
.value-grid,
.team-grid,
.org-grid {
  display: grid;
  gap: 18px;
}

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

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

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

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

.intro-grid article,
.service-card,
.content-card,
.value-grid article,
.team-card,
.org-grid article {
  padding: 24px;
}

.intro-grid i,
.service-card i,
.card-icon i,
.value-grid i {
  color: var(--forest);
  font-size: 34px;
}

.service-card {
  display: flex;
  min-height: 285px;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}

.service-card:hover,
.content-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.service-card h2,
.content-card h3,
.intro-grid h3,
.value-grid h3,
.team-card h3 {
  margin: 16px 0 10px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.service-card p,
.content-card p,
.intro-grid p,
.value-grid p,
.team-card p,
.contact-panel p,
.richtext,
.detail-content,
.org-grid span {
  font-size: 13px;
}

.service-card p,
.content-card p,
.intro-grid p,
.value-grid p,
.team-card p,
.contact-panel p,
.richtext,
.detail-content,
.org-grid span {
  color: var(--muted);
}

.service-arrow,
.text-link {
  display: inline-flex;
  margin-top: auto;
  color: var(--forest);
  font-weight: 900;
}

.content-card-media,
.content-card img,
.team-card img,
.gallery-card img {
  display: block;
  width: 100%;
  height: 190px;
  border-radius: calc(var(--radius) - 2px);
  object-fit: cover;
  background: var(--moss);
}

.team-card {
  display: flex;
  flex-direction: column;
}

.team-card .team-photo,
.team-card .team-photo-placeholder {
  height: 230px;
}

.team-card .team-photo {
  object-fit: contain;
  object-position: center top;
  padding: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.team-card .team-photo-placeholder {
  width: 100%;
}

.team-card strong {
  display: block;
  color: var(--forest);
  font-size: 13px;
  line-height: 1.35;
}

.team-card p {
  display: -webkit-box;
  min-height: 58px;
  overflow: hidden;
  margin-bottom: 16px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.profile-toggle {
  margin-top: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.profile-dialog {
  width: min(780px, calc(100% - 32px));
  max-width: none;
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  background: transparent;
}

.profile-dialog::backdrop {
  background: rgba(16, 35, 29, .56);
  backdrop-filter: blur(3px);
}

.profile-dialog-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.profile-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  background: var(--forest);
  cursor: pointer;
  place-items: center;
}

.profile-dialog-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.profile-dialog-media img,
.profile-dialog-media .team-photo-placeholder {
  display: block;
  width: 100%;
  height: 300px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: #fff;
}

.profile-dialog-media img {
  object-fit: contain;
  object-position: center top;
  padding: 8px;
}

.profile-dialog-media .team-photo-placeholder {
  display: grid;
  background: var(--moss);
}

.profile-dialog-content h3 {
  margin: 10px 48px 8px 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.12;
}

.profile-dialog-content strong {
  display: block;
  margin-bottom: 14px;
  color: var(--forest);
  font-size: 14px;
}

.profile-dialog-content p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.home-news-section {
  margin-top: -36px;
  margin-bottom: 56px;
}

.article-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 360px);
  gap: 18px;
  overflow: hidden;
}

.news-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
}

.news-card .content-card-media,
.news-card-placeholder {
  flex: 0 0 190px;
}

.news-card-placeholder {
  display: grid;
  width: 100%;
  border-radius: calc(var(--radius) - 2px);
  background: var(--moss);
  place-items: center;
}

.news-card-placeholder i {
  color: var(--forest);
  font-size: 34px;
}

.news-card h3 {
  display: -webkit-box;
  min-height: 54px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-card p {
  display: -webkit-box;
  min-height: 78px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

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

.carousel-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.carousel-actions span {
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: rgba(10, 107, 65, .24);
}

.carousel-actions span:first-child {
  background: var(--forest);
}

.card-icon {
  display: grid;
  width: 58px;
  height: 58px;
  border-radius: var(--radius);
  background: var(--moss);
  place-items: center;
}

.page-main {
  padding-top: 34px;
}

.page-hero {
  display: grid;
  min-height: 300px;
  margin-bottom: 56px;
  padding: 42px;
  align-content: end;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(11, 54, 39, .94), rgba(10, 107, 65, .86)),
    url("../img/rukenova-profile.jpeg") center / cover no-repeat;
}

.page-hero img {
  width: 86px;
  height: 86px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  object-fit: contain;
  background: #fff;
}

.page-hero h1 {
  max-width: 780px;
  margin: 10px 0 0;
  color: #fff;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.08;
}

.about-hero,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: center;
  margin-bottom: 64px;
  padding: 34px;
}

.about-hero img,
.detail-media img {
  width: 100%;
  max-height: 360px;
  border-radius: var(--radius);
  object-fit: contain;
  background: #fff;
}

.about-hero h3 {
  margin: 8px 0 14px;
  color: var(--ink);
  font-size: clamp(21px, 2.8vw, 32px);
  line-height: 1.12;
}

.publication-page {
  padding-bottom: 72px;
}

.publication-detail {
  min-width: 0;
}

.publication-detail-hero {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.publication-detail-media {
  position: relative;
  min-height: clamp(170px, 24vw, 280px);
  background: #e9f0e9;
}

.publication-detail-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(16, 35, 29, 0) 45%, rgba(16, 35, 29, .36));
  pointer-events: none;
}

.publication-detail-media img {
  width: 100%;
  height: 100%;
  min-height: clamp(170px, 24vw, 280px);
  object-fit: cover;
}

.publication-detail-heading {
  padding: clamp(24px, 4vw, 48px);
}

.publication-detail-heading h1 {
  max-width: 900px;
  margin: 10px 0 14px;
  color: var(--ink);
  font-size: clamp(22px, 3.4vw, 36px);
  line-height: 1.08;
}

.publication-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.publication-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.publication-meta i {
  color: var(--forest);
}

.publication-detail-heading .lead {
  max-width: 760px;
  margin: 0;
  color: #415048;
  font-size: clamp(14px, 1.7vw, 17px);
  line-height: 1.75;
}

.publication-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
  width: min(1040px, calc(100% - 24px));
  margin: 0 auto 64px;
}

.publication-body {
  margin: 0 clamp(24px, 4vw, 48px) clamp(24px, 4vw, 44px);
  padding-top: clamp(22px, 3vw, 34px);
  border-top: 1px solid var(--line);
}

.publication-body .richtext {
  color: #2f4037;
  font-size: 15px;
  line-height: 1.85;
}

.publication-body .richtext > *:first-child {
  margin-top: 0;
}

.publication-body .richtext > *:last-child {
  margin-bottom: 0;
}

.publication-body .richtext p,
.publication-body .richtext ul,
.publication-body .richtext ol,
.publication-body .richtext blockquote,
.publication-body .richtext table {
  margin: 0 0 20px;
}

.publication-body .richtext h2,
.publication-body .richtext h3,
.publication-body .richtext h4 {
  margin: 30px 0 12px;
  color: var(--ink);
  font-family: var(--font-title);
  line-height: 1.2;
}

.publication-body .richtext img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.publication-body .richtext a {
  color: var(--forest);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.publication-comments {
  margin: 0 clamp(24px, 4vw, 48px) clamp(24px, 4vw, 44px);
  padding-top: clamp(22px, 3vw, 34px);
  border-top: 1px solid var(--line);
}

.publication-comments h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.comment-list {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.comment-card,
.empty-comments {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(246, 248, 243, .78);
}

.comment-card strong,
.comment-card small {
  display: block;
}

.comment-card strong {
  color: var(--ink);
  font-size: 14px;
}

.comment-card small {
  margin: 3px 0 10px;
  color: var(--muted);
  font-size: 11px;
}

.comment-card p {
  margin: 0;
  color: #2f4037;
  font-size: 13px;
  line-height: 1.65;
}

.comment-form {
  display: grid;
  gap: 12px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
}

.comment-form button {
  min-height: 46px;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  background: var(--forest);
  font-weight: 800;
}

.publication-actions {
  display: flex;
  justify-content: flex-start;
  margin: 0 clamp(24px, 4vw, 48px) clamp(24px, 4vw, 44px);
}

.recent-posts-aside {
  position: sticky;
  top: 142px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 14px 34px rgba(16, 35, 29, .08);
}

.recent-posts-aside h2 {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.recent-post-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.recent-post-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.recent-post-card img,
.recent-post-icon {
  width: 72px;
  height: 62px;
  border-radius: calc(var(--radius) - 2px);
  object-fit: cover;
  background: var(--moss);
}

.recent-post-icon {
  display: grid;
  place-items: center;
}

.recent-post-icon i {
  color: var(--forest);
  font-size: 24px;
}

.recent-post-card small {
  display: block;
  margin-bottom: 5px;
  color: var(--gold-ink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.recent-post-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.org-grid article strong {
  display: block;
  margin-bottom: 8px;
  color: var(--forest);
  font-size: 17px;
}

.contact {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 20px;
}

.contact-panel,
.contact-form {
  padding: 28px;
}

.contact-panel h3 {
  margin: 10px 0 18px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.18;
}

.contact-panel p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form input,
.contact-form textarea,
.footer-newsletter input {
  padding: 13px 14px;
}

.contact-form button {
  background: var(--forest);
}

.training-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.training-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: var(--radius);
  background: var(--moss);
}

.partner-strip,
.promo-marquee {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 20px;
}

.partner-track,
.promo-marquee-track,
.home-carousel {
  display: grid;
  grid-auto-flow: column;
  gap: 14px;
  overflow: hidden;
}

.partner-track {
  grid-auto-columns: 168px;
}

.promo-marquee-track,
.home-carousel {
  grid-auto-columns: minmax(150px, 1fr);
}

.partner-logo {
  display: grid;
  min-height: 84px;
  width: 168px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  place-items: center;
}

.partner-logo img {
  max-width: 82%;
  max-height: 54px;
  object-fit: contain;
}

.promo-marquee-shell {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(16, 35, 29, .08);
}

.promo-marquee-label {
  display: grid;
  min-height: 54px;
  color: #fff;
  background: var(--forest);
  font-weight: 900;
  place-items: center;
  text-transform: uppercase;
}

.promo-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 18px;
  color: var(--ink);
}

.home-news-marquee {
  margin-top: -44px;
  margin-bottom: 56px;
}

.home-news-marquee .promo-marquee-shell {
  border: 1px solid var(--line);
}

.promo-text {
  font-size: 13px;
  line-height: 1.25;
}

.promo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.footer-rich {
  position: relative;
  padding: 52px 0 28px;
  color: #fff;
  background: #0d3325;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 0;
}

.footer-brand img {
  width: 78px;
  height: 78px;
  margin-bottom: 14px;
  border-radius: var(--radius);
  object-fit: contain;
  background: #fff;
}

.footer-brand h3,
.footer-links h4,
.footer-newsletter h4 {
  margin: 0 0 14px;
  color: #fff;
}

.footer-brand,
.footer-links,
.footer-newsletter {
  position: relative;
  padding-right: 28px;
}

.footer-top > * + * {
  padding-left: 28px;
  border-left: 2px solid rgba(255, 255, 255, .28);
}

.footer-top > * + *::before {
  position: absolute;
  top: 0;
  left: -2px;
  width: 2px;
  height: 42px;
  background: var(--gold);
  content: "";
}

.footer-links h4,
.footer-newsletter h4 {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(244, 196, 48, .72);
}

.footer-brand p,
.footer-links a,
.footer-newsletter p,
.footer-bottom span {
  color: rgba(255, 255, 255, .82);
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-newsletter form {
  display: grid;
  gap: 10px;
}

.footer-newsletter button {
  min-height: 46px;
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--gold);
  font-weight: 800;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.social-link {
  display: grid;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
  place-items: center;
}

.search-page-form {
  display: flex;
  gap: 10px;
}

.search-page-form input {
  min-height: 52px;
  padding: 0 16px;
}

.pagination-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .main-nav {
    gap: 12px;
    font-size: 10px;
  }

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

  .footer-top,
  .cse-hero-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: auto;
  }

  .topbar-inner {
    width: calc(100% - 20px);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    min-height: 56px;
    padding: 0;
    line-height: 1.2;
  }

  .topbar-left {
    display: none;
  }

  .topbar-right {
    justify-content: flex-start;
    gap: 2px 10px;
    font-size: 10px;
  }

  .topbar-right a {
    max-width: 100%;
    white-space: normal;
  }

  .topbar span {
    gap: 6px;
  }

  .nav-frame {
    top: 56px;
    min-height: 76px;
    padding: 8px 10px;
  }

  .brand {
    min-width: 0;
    max-width: calc(100% - 58px);
  }

  .brand img {
    width: 56px;
    height: 56px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small,
  .nav-search {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 10px;
    display: grid;
    width: min(320px, calc(100vw - 20px));
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
  }

  .menu-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 10px;
    border-bottom: 1px solid var(--line);
  }

  .cse-hero {
    padding-top: 46px;
  }

  .cse-hero-inner,
  .intro-grid,
  .content-grid,
  .team-grid,
  .org-grid,
  .footer-top,
  .about-hero,
  .detail-layout,
  .contact {
    grid-template-columns: 1fr;
  }

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

  .cse-hero p {
    font-size: 13px;
  }

  .signal-strip {
    grid-template-columns: 1fr;
    margin-bottom: 48px;
  }

  .signal-strip article,
  .signal-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-grid,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .partner-track {
    grid-auto-columns: 140px;
  }

  .partner-logo {
    width: 140px;
    min-height: 76px;
  }

  .page-main {
    padding-top: 28px;
  }

  .page-hero,
  .section,
  .contact,
  .about-hero,
  .detail-layout {
    width: calc(100% - 24px);
  }

  .section {
    margin-bottom: 48px;
  }

  .page-hero,
  .about-hero {
    padding: 24px;
  }

  .publication-detail {
    width: 100%;
    margin-bottom: 0;
  }

  .publication-detail-media,
  .publication-detail-media img {
    min-height: 230px;
  }

  .publication-detail-heading {
    padding: 24px;
  }

  .publication-detail-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    width: calc(100% - 24px);
    margin-top: 20px;
  }

  .profile-dialog {
    width: calc(100% - 24px);
  }

  .profile-dialog-panel {
    padding: 22px;
  }

  .profile-dialog-grid {
    grid-template-columns: 1fr;
  }

  .profile-dialog-media img,
  .profile-dialog-media .team-photo-placeholder {
    height: 260px;
  }

  .publication-body {
    margin: 0 22px 22px;
    padding-top: 22px;
  }

  .publication-comments {
    margin: 0 22px 22px;
    padding-top: 22px;
  }

  .publication-body .richtext {
    font-size: 14px;
    line-height: 1.75;
  }

  .recent-posts-aside {
    position: static;
    padding: 20px;
  }

  .home-news-marquee {
    margin-top: -32px;
    margin-bottom: 42px;
  }

  .home-news-section {
    margin-top: -28px;
    margin-bottom: 44px;
  }

  .article-carousel {
    grid-auto-columns: minmax(248px, 82vw);
  }

  .news-card {
    min-height: 410px;
  }

  .promo-marquee-shell {
    grid-template-columns: 1fr;
  }

  .promo-marquee-label {
    min-height: 38px;
  }

  .promo-pill {
    min-height: 48px;
    padding: 0 14px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-top > * + * {
    margin-top: 22px;
    padding-top: 22px;
    padding-left: 0;
    border-top: 2px solid rgba(255, 255, 255, .28);
    border-left: 0;
  }

  .footer-top > * + *::before {
    top: -2px;
    left: 0;
    width: 54px;
    height: 2px;
  }

  .search-page-form {
    flex-direction: column;
  }

  .rk-button,
  .ghost-button,
  .contact-form button {
    width: 100%;
  }
}
