/*
Theme Name: SahaMediatsiya
Text Domain: sahamediatsiya
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 7.4
*/

:root {
  --saha-ink: #16355f;
  --saha-ink-soft: #4a5d77;
  --saha-accent: #1f5a93;
  --saha-accent-light: #4f8fe0;
  --saha-shadow: 0 12px 30px rgba(22, 53, 95, 0.12), 0 2px 8px rgba(22, 53, 95, 0.05);
}

body {
  margin: 0;
}

.wp-site-blocks {
  --wp--style--block-gap: 0 !important;
  padding-top: 0;
  padding-bottom: 0;
}

.wp-site-blocks > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.wp-site-blocks > * + * {
  margin-block-start: 0 !important;
}

.wp-block-template-part {
  margin: 0 !important;
}

.wp-block-group.alignfull,
.alignfull {
  margin-block-start: 0;
  margin-block-end: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.wp-block-columns,
.wp-block-post-template,
.wp-block-post {
  margin-block-start: 0;
  margin-block-end: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.wp-block-group > :where(h1, h2, h3, h4, h5, h6, p, ul, ol) {
  margin-block-start: 0;
  margin-top: 0;
}

.wp-block-button.is-style-fill .wp-block-button__link {
  background: var(--saha-accent);
  color: #ffffff;
  border-radius: 999px;
  text-decoration: none;
}

.wp-block-button.is-style-fill .wp-block-button__link:hover {
  background: #2a6ab0;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--saha-accent);
  border: 1px solid rgba(31, 90, 147, 0.4);
  border-radius: 999px;
  text-decoration: none;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: rgba(31, 90, 147, 0.08);
}

.site-header {
  position: relative;
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 0%, rgba(79, 143, 224, 0.35), transparent 55%),
    linear-gradient(180deg, #1f5a93 0%, #16355f 100%);
  margin: 0 !important;
  padding: 24px 0 24px;
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 64px;
  background-image: url("/wp-content/themes/sahamediatsiya/assets/patterns/head-ornament.svg");
  background-repeat: repeat-x;
  background-position: center top;
  background-size: auto 64px;
  opacity: 0.35;
  pointer-events: none;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background-image: url("/wp-content/themes/sahamediatsiya/assets/patterns/head-white-zigzag.svg");
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: auto 100%;
  opacity: 0.5;
  pointer-events: none;
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.site-header__inner {
  gap: 24px;
}

.site-header__brand {
  gap: 12px;
}

.site-header__brand .wp-block-site-title,
.site-header__brand .site-header__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.site-header__brand .wp-block-site-title a,
.site-header__brand .site-header__title a {
  color: #ffffff;
  text-decoration: none;
}

.site-header__brand .wp-block-site-tagline,
.site-header__brand .site-header__tagline {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.site-header__nav {
  gap: 20px;
  align-items: center;
}

.site-header .wp-block-group,
.site-header .wp-block-navigation,
.site-header .wp-block-buttons,
.site-header .wp-block-site-title,
.site-header .wp-block-site-tagline,
.site-header .site-header__title,
.site-header .site-header__tagline,
.site-header .wp-block-site-logo {
  margin-block-start: 0;
  margin-block-end: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.site-header .wp-block-navigation ul {
  margin: 0;
  padding: 0;
  gap: 16px;
}

.site-header .wp-block-navigation a {
  color: #ffffff;
  text-decoration: none;
  position: relative;
}

.site-header .wp-block-navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-header .wp-block-navigation a:hover::after {
  transform: scaleX(1);
}

.site-header .wp-block-button.is-style-fill .wp-block-button__link {
  background: #ffffff;
  color: #1f5a93;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.site-header .wp-block-button.is-style-fill .wp-block-button__link:hover {
  background: #e7f1ff;
}

body.front-page .site-header,
body.home .site-header {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--wp-admin--admin-bar--height, 0px);
  background: transparent;
  padding-bottom: 12px;
  z-index: 10;
  border-bottom: none;
  box-shadow: none;
}

body.admin-bar.front-page .site-header,
body.admin-bar.home .site-header {
  top: 32px;
}

body.admin-bar #wpadminbar {
  position: fixed;
  top: 0;
  z-index: 99999;
}

body.front-page .site-header::after,
body.home .site-header::after {
  opacity: 0;
}

body.front-page .newsbar,
body.home .newsbar {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

body.front-page .news-hero,
body.home .news-hero {
  flex: 1 1 auto;
  min-height: 0;
}

body.front-page .news-hero .wp-block-post-template,
body.home .news-hero .wp-block-post-template {
  height: 100%;
}

body.front-page .news-hero__cover,
body.home .news-hero__cover {
  height: 100%;
  min-height: clamp(360px, 55svh, 720px);
}

body.front-page .news-section,
body.home .news-section {
  flex: 0 0 auto;
}

body.front-page .news-hero__cover::before,
body.home .news-hero__cover::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(31, 90, 147, 0.5) 0%, rgba(31, 90, 147, 0) 100%);
  z-index: 1;
  pointer-events: none;
}

body.front-page .news-hero__cover .wp-block-cover__inner-container,
body.home .news-hero__cover .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
  padding-top: clamp(96px, 10vh, 140px);
}

.hero-section {
  position: relative;
  color: #ffffff;
  padding: 88px 0 96px;
  background:
    radial-gradient(circle at 15% 15%, rgba(79, 143, 224, 0.45), transparent 55%),
    linear-gradient(180deg, #1f5a93 0%, #1b4377 100%);
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 64px;
  background-image: url("/wp-content/themes/sahamediatsiya/assets/patterns/hero-ornament-white.svg");
  background-repeat: repeat-x;
  background-position: center top;
  background-size: auto 64px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-section__grid {
  align-items: center;
  gap: 48px;
}

.hero-section__content h1 {
  margin: 0 0 16px;
  font-size: 2.6rem;
  line-height: 1.1;
}

.hero-section__content p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
}

.hero-section__badges {
  gap: 10px;
  margin-bottom: 24px;
}

.hero-badge {
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.85rem;
}

.hero-section__actions {
  gap: 12px;
}

.hero-section__actions .wp-block-button__link {
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.hero-section__actions .is-style-fill .wp-block-button__link {
  background: #ffffff;
  color: #1f5a93;
}

.hero-section__actions .is-style-outline .wp-block-button__link {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.hero-section__media {
  text-align: right;
}

.hero-illustration img {
  width: 100%;
  max-width: 420px;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.25));
}

.mediation-section {
  position: relative;
  padding: 80px 0 88px;
  background:
    radial-gradient(circle at 90% 0%, rgba(79, 143, 224, 0.12), transparent 40%),
    linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

.mediation-section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 48px;
  background-image: url("/wp-content/themes/sahamediatsiya/assets/patterns/hero-ornament-black.svg");
  background-repeat: repeat-x;
  background-position: center top;
  background-size: auto 48px;
  opacity: 0.06;
  pointer-events: none;
}

.mediation-section__inner {
  position: relative;
  z-index: 1;
}

.mediation-intro {
  align-items: center;
  gap: 48px;
}

.mediation-intro__content {
  display: grid;
  gap: 16px;
}

.mediation-intro__content .mediation-section__title {
  max-width: none;
  margin-bottom: 0;
}

.mediation-intro__media {
  display: flex;
  justify-content: center;
}

.mediation-intro__rule {
  border: none;
  height: 1px;
  margin: 6px 0 2px;
  background: linear-gradient(90deg, rgba(31, 90, 147, 0.25), rgba(31, 90, 147, 0));
}

.mediation-illustration {
  margin: 0;
  width: min(520px, 100%);
  aspect-ratio: 4 / 3;
  border-radius: 26px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--saha-shadow);
}

.mediation-illustration img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mediation-benefits {
  margin-top: 32px;
  display: grid;
  gap: 18px;
}

.mediation-benefits h3 {
  margin: 0;
  font-size: 1.6rem;
  color: var(--saha-ink);
}

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

.mediation-benefits__grid .mediation-card {
  padding: 18px 18px 20px;
}

.mediation-benefits__grid .mediation-card__title {
  font-size: 1rem;
}

.mediation-audience {
  margin-top: 28px;
  padding: 26px 28px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(22, 53, 95, 0.08);
  box-shadow: var(--saha-shadow);
}

.mediation-audience h2 {
  margin: 0 0 16px;
  font-size: 1.7rem;
  color: var(--saha-ink);
}

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

.mediation-audience__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.mediation-audience__list li {
  position: relative;
  padding-left: 22px;
  color: var(--saha-ink);
  font-weight: 600;
}

.mediation-audience__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--saha-accent);
  box-shadow: 0 4px 10px rgba(31, 90, 147, 0.3);
}

.mediation-audience__note {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(31, 90, 147, 0.06), rgba(79, 143, 224, 0.12));
  border: 1px solid rgba(31, 90, 147, 0.18);
}

.mediation-audience__note-title {
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--saha-ink);
}

.mediation-section__title {
  max-width: 720px;
  margin-bottom: 32px;
}

.mediation-section__title h2 {
  margin: 0 0 12px;
  font-size: 2rem;
  color: var(--saha-ink);
}

.mediation-section__title p {
  margin: 0;
  color: var(--saha-ink-soft);
}

.mediation-section__title p + p {
  margin-top: 12px;
}

.mediation-cards {
  gap: 24px;
}

.mediation-cards > .wp-block-column {
  min-width: 220px;
  flex: 1 1 220px;
}

.mediation-card {
  height: 100%;
  padding: 22px 22px 24px;
  border-radius: 18px;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: var(--saha-shadow);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.mediation-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 18px 44px rgba(22, 53, 95, 0.18),
    0 4px 12px rgba(22, 53, 95, 0.08);
}

.mediation-card__title {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--saha-ink);
}

.mediation-card p {
  margin: 0;
  color: var(--saha-ink-soft);
}

.mediation-section__actions {
  margin-top: 24px;
}

.mediation-section__actions .wp-block-button__link {
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--saha-accent);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.mediation-section__actions .wp-block-button__link:hover {
  background: #2a6ab0;
}

.mediation-about {
  margin-top: 48px;
}

.mediation-ornament {
  border: none;
  height: 48px;
  margin: 40px 0 0;
  background-image: url("/wp-content/themes/sahamediatsiya/assets/patterns/hero-ornament-black.svg");
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 48px;
  opacity: 0.06;
}

.mediation-divider {
  position: relative;
  border: none;
  height: 72px;
  margin: 28px 0 0;
  background: linear-gradient(180deg, rgba(246, 249, 255, 0) 0%, rgba(246, 249, 255, 1) 100%);
  overflow: hidden;
}

.mediation-divider::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/wp-content/themes/sahamediatsiya/assets/patterns/hero-ornament-black.svg");
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: auto 48px;
  opacity: 0.08;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
  pointer-events: none;
}

.newsbar {
  background: #f6f8fb;
  position: relative;
}

.news-hero {
  margin: 0;
  position: relative;
  z-index: 1;
}

.news-hero .wp-block-post-template {
  margin: 0;
}

.news-hero__cover {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

.news-hero__cover .wp-block-cover__image-background,
.news-hero__cover img.wp-block-cover__image-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.05);
  transform: scale(1.02);
}

.news-hero__cover .wp-block-cover__background {
  background:
    radial-gradient(
      circle at center,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.92) 55%,
      rgba(0, 0, 0, 0.98) 100%
    ) !important;
}

.news-hero__cover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(180px, 22vh, 280px);
  background: linear-gradient(
    180deg,
    rgba(22, 53, 95, 0) 0%,
    rgba(22, 53, 95, 0.25) 45%,
    rgba(22, 53, 95, 0.95) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.news-hero__cover .wp-block-cover__inner-container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 24px;
  min-height: inherit;
  display: flex;
  align-items: center;
}

.news-hero__content {
  max-width: 640px;
  display: grid;
  gap: 14px;
  color: #ffffff;
  padding: 32px 0;
}

.news-hero__title {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.05;
  font-weight: 700;
  text-shadow: 0 14px 24px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-hero__title a {
  display: block;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-hero__title a:hover {
  text-decoration: underline;
}

.news-hero__date {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.news-hero__button {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  background: #ffffff;
  color: #16355f;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  justify-self: start;
}

.news-hero__button:hover {
  transform: translateY(-1px);
  background: #eaf2ff;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.news-section {
  position: relative;
  padding: 0 0 56px;
  display: flow-root;
  background-image:
    linear-gradient(
      180deg,
      rgba(22, 53, 95, 0) 0%,
      rgba(243, 247, 255, 0.2) 40%,
      rgba(243, 247, 255, 0.85) 100%
    ),
    radial-gradient(circle at 10% 20%, rgba(79, 143, 224, 0.22), transparent 60%),
    linear-gradient(180deg, #16355f 0%, #16355f 100%);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center bottom, left top, left top;
  background-size: 100% 360px, auto, auto;
}

.news-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    url("/wp-content/themes/sahamediatsiya/assets/patterns/ah.svg"),
    url("/wp-content/themes/sahamediatsiya/assets/patterns/scales.svg"),
    url("/wp-content/themes/sahamediatsiya/assets/patterns/hero-discuss.svg"),
    url("/wp-content/themes/sahamediatsiya/assets/patterns/head-ornament.svg");
  background-repeat: no-repeat;
  background-size: 220px, 180px, 140px, 200px;
  background-position:
    6% 14%,
    88% 18%,
    70% 78%,
    18% 70%;
  opacity: 0.18;
  mix-blend-mode: screen;
  pointer-events: none;
}

.news-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 10px;
  background-image: url("/wp-content/themes/sahamediatsiya/assets/patterns/head-white-zigzag.svg");
  background-repeat: repeat-x;
  background-position: center top;
  background-size: auto 100%;
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}

.news-section .wp-block-query {
  margin: 0;
}

.news-grid {
  position: relative;
  z-index: 3;
  transform: translateY(-126px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.news-grid .wp-block-post-template {
  grid-column: 1 / span 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-auto-rows: 1fr;
}

.news-grid .wp-block-post-template > li {
  list-style: none;
  margin: 0;
  height: 100%;
}

.news-sponsors {
  margin-top: 28px;
  gap: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 24px 8px;
}

.news-sponsors__logo {
  margin: 0;
}

.news-sponsors__logo img {
  height: 90px;
  width: auto;
  max-width: 320px;
  filter: brightness(0) invert(1) saturate(0.2) drop-shadow(0 6px 18px rgba(0, 0, 0, 0.25));
  opacity: 0.8;
}

.news-card {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(10, 20, 35, 0.18), 0 2px 8px rgba(10, 20, 35, 0.12);
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 0;
}

.news-card--cta {
  grid-column: 4 / span 1;
  background: linear-gradient(160deg, rgba(12, 18, 32, 0.92) 0%, rgba(17, 28, 54, 0.88) 60%, rgba(22, 36, 64, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 26px 50px rgba(6, 10, 20, 0.35);
  color: #ffffff;
  padding: 16px;
  overflow: hidden;
  height: 100%;
  align-self: stretch;
  justify-self: stretch;
  margin: 0;
}

.news-card__cta-inner {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.news-card__cta-text {
  flex: 1 1 auto;
}

.news-card__cta-kicker {
  margin: 0 0 6px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.6);
}

.news-card__cta-title {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.2;
  color: #ffffff;
}

.news-card__cta-desc {
  margin: 0 0 12px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.news-card--cta .wp-block-button__link {
  background: #2a6ab0;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 10px;
}

.news-card--cta .wp-block-button__link:hover {
  background: #3a7bc2;
}

.news-card__cta-icon {
  margin: 0;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.news-card__cta-icon img {
  width: 60%;
  height: auto;
  filter: brightness(0) invert(1) saturate(0) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
  opacity: 0.9;
}

.news-card__media {
  margin: 0 0 2px;
  aspect-ratio: 2 / 1;
  border-radius: 10px;
  overflow: hidden;
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.news-card__cat {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.news-card__cat a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.news-card__cat a:not(:first-child) {
  display: none;
}

.news-card__cat a[href*="/category/novosti/"],
.news-card__cat a[href*="/category/%D0%BD%D0%BE%D0%B2%D0%BE%D1%81%D1%82%D0%B8/"] {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.news-card__cat a[href*="/category/meropriyatiya/"],
.news-card__cat a[href*="/category/%D0%BC%D0%B5%D1%80%D0%BE%D0%BF%D1%80%D0%B8%D1%8F%D1%82%D0%B8%D1%8F/"] {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.news-card__cat a[href*="/category/mediaciya/"],
.news-card__cat a[href*="/category/mediatsiya/"],
.news-card__cat a[href*="/category/%D0%BC%D0%B5%D0%B4%D0%B8%D0%B0%D1%86%D0%B8%D1%8F/"] {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.news-card__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__title a {
  color: inherit;
  text-decoration: none;
}

.news-card__title a:hover {
  text-decoration: underline;
}

.news-card__date {
  margin: 0;
  margin-top: auto;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.news-grid .wp-block-post:first-child .news-card {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 44px rgba(10, 20, 35, 0.2), 0 4px 12px rgba(10, 20, 35, 0.14);
}

.news-grid .wp-block-post:first-child .news-card__title {
  font-size: 1.05rem;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(22, 53, 95, 0.16);
}

.news-card:hover .news-card__media img {
  transform: scale(1.03);
}

.news-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(22, 53, 95, 0.18);
  outline: 2px solid rgba(31, 90, 147, 0.25);
  outline-offset: 2px;
}

.about-section {
  position: relative;
  padding: 88px 0 96px;
  background:
    linear-gradient(180deg, rgba(22, 53, 95, 0.5) 0%, rgba(22, 53, 95, 0) 100%),
    radial-gradient(circle at 85% 10%, rgba(79, 143, 224, 0.18), transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center top, 85% 10%, left top;
  background-size: 100% 220px, auto, auto;
  overflow: hidden;
}

.about-section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 48px;
  background-image: url("/wp-content/themes/sahamediatsiya/assets/patterns/hero-ornament-black.svg");
  background-repeat: repeat-x;
  background-position: center top;
  background-size: auto 48px;
  opacity: 0.04;
  pointer-events: none;
}

.about-section__inner {
  position: relative;
  z-index: 1;
}

.about-grid {
  gap: 36px;
  align-items: center;
}

.about-content h2 {
  margin: 0 0 16px;
  font-size: 2.1rem;
  color: var(--saha-ink);
}

.about-content p {
  margin: 0 0 16px;
  color: var(--saha-ink-soft);
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
}

.about-list li {
  position: relative;
  padding-left: 28px;
  color: var(--saha-accent);
  font-weight: 600;
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f5a93 0%, #4f8fe0 100%);
  box-shadow: 0 4px 10px rgba(31, 90, 147, 0.3);
}

.about-actions {
  gap: 12px;
}

.about-cards {
  display: grid;
  gap: 18px;
}

.about-card {
  padding: 20px 22px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--saha-shadow);
}

.about-card__title {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--saha-ink);
}

.about-card p {
  margin: 0;
  color: var(--saha-ink-soft);
}

.about-stack {
  position: relative;
  padding: 88px 0 96px;
  display: grid;
  gap: 32px;
  background:
    linear-gradient(180deg, rgba(22, 53, 95, 0.12) 0%, rgba(22, 53, 95, 0) 100%),
    radial-gradient(circle at 10% 0%, rgba(79, 143, 224, 0.18), transparent 45%),
    linear-gradient(180deg, #f3f7ff 0%, #ffffff 55%, #eef4ff 100%);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center top, 10% 0%, left top;
  background-size: 100% 240px, auto, auto;
  overflow: hidden;
}

.about-slice {
  max-width: 1100px;
  margin: 0 auto;
}

.about-slice h2 {
  margin: 0 0 12px;
  font-size: 2rem;
  color: var(--saha-ink);
}

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

.about-slice__head {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.about-intro__grid {
  gap: 32px;
  align-items: flex-start;
}

.about-intro__lead {
  font-size: 1.05rem;
  color: var(--saha-ink);
}

.about-intro__note {
  margin-top: 10px;
  font-size: 0.9rem;
  color: rgba(22, 53, 95, 0.7);
}

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

.about-stat {
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(22, 53, 95, 0.08);
  box-shadow: var(--saha-shadow);
}

.about-stat__value {
  margin: 0 0 4px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--saha-ink);
}

.about-stat__label {
  margin: 0;
  font-size: 0.85rem;
  color: var(--saha-ink-soft);
}

.about-stat--wide {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(31, 90, 147, 0.06), rgba(79, 143, 224, 0.12));
}

.about-timeline {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

.about-timeline__item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: start;
}

.about-timeline__year {
  margin: 0;
  padding: 10px 0;
  text-align: center;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(22, 53, 95, 0.08);
  font-weight: 700;
  color: var(--saha-ink);
}

.about-timeline__title {
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--saha-ink);
}

.about-timeline__text {
  margin: 0;
  color: var(--saha-ink-soft);
}

.about-ornament {
  border: none;
  height: 48px;
  margin: 0;
  background-image: url("/wp-content/themes/sahamediatsiya/assets/patterns/hero-ornament-black.svg");
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 48px;
  opacity: 0.06;
}

.about-team {
  gap: 16px;
  margin-top: 16px;
}

.about-team-card {
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(22, 53, 95, 0.08);
  box-shadow: var(--saha-shadow);
}

.about-team-card__title {
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--saha-ink);
}

.about-team-card__role {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--saha-ink-soft);
}

.about-team-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.about-team-tags li {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  color: var(--saha-ink);
  background: #f1f6ff;
  border: 1px solid rgba(22, 53, 95, 0.1);
}

.about-team-actions {
  margin-top: 16px;
}

.about-testimonials {
  gap: 16px;
  margin-top: 16px;
}

.about-quote {
  margin: 0;
  padding: 18px 20px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(22, 53, 95, 0.08);
  box-shadow: var(--saha-shadow);
}

.about-quote p {
  margin: 0 0 10px;
  color: var(--saha-ink);
}

.about-quote cite {
  font-style: normal;
  color: var(--saha-ink-soft);
}

.about-cta {
  padding: 22px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(31, 90, 147, 0.08), rgba(79, 143, 224, 0.16));
  border: 1px solid rgba(31, 90, 147, 0.2);
}

.about-cta__layout {
  gap: 24px;
  align-items: center;
}

.about-cta__contacts {
  display: grid;
  gap: 8px;
}

.about-cta__label {
  margin: 0 0 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(22, 53, 95, 0.6);
}

.about-cta__contacts a {
  color: var(--saha-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(22, 53, 95, 0.2);
}

.about-cta__contacts a:hover {
  color: var(--saha-accent);
  border-bottom-color: rgba(31, 90, 147, 0.5);
}
.about-cta__actions .wp-block-button__link {
  padding: 12px 22px;
  border-radius: 999px;
}

.site-footer {
  position: relative;
  color: #ffffff;
  background:
    radial-gradient(circle at 10% 0%, rgba(79, 143, 224, 0.35), transparent 45%),
    linear-gradient(180deg, #1f5a93 0%, #16355f 100%);
  padding: 72px 0 28px;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 64px;
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0)),
    url("/wp-content/themes/sahamediatsiya/assets/patterns/hero-ornament-white.svg");
  background-repeat: repeat-x;
  background-position: center top;
  background-size: auto 64px;
  opacity: 0.4;
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background-image: url("/wp-content/themes/sahamediatsiya/assets/patterns/head-white-zigzag.svg");
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: auto 100%;
  opacity: 0.35;
  pointer-events: none;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
}

.footer-grid {
  gap: 32px;
}

.footer-brand {
  max-width: 380px;
  gap: 16px;
}

.footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.footer-links h4,
.footer-contacts h4 {
  margin-bottom: 12px;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.footer-links ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-links a,
.footer-contacts a,
.site-footer__bottom a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-links a:hover,
.footer-contacts a:hover,
.site-footer__bottom a:hover {
  color: #cfe4ff;
  border-bottom-color: rgba(207, 228, 255, 0.7);
}

.footer-contacts p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.85);
}

.footer-social {
  gap: 12px;
}

.footer-social .wp-block-social-link {
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.site-footer__bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 900px) {
  body.admin-bar.front-page .site-header,
  body.admin-bar.home .site-header {
    top: 46px;
  }

  .site-header {
    padding: 24px 0 28px;
  }

  .site-header__nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-section {
    padding: 64px 0 72px;
  }

  .hero-section__grid {
    gap: 32px;
  }

  .hero-section__content h1 {
    font-size: 2.1rem;
  }

  .hero-illustration img {
    max-width: 320px;
    margin: 0 auto;
  }

  .mediation-section {
    padding: 64px 0 72px;
  }

  .mediation-intro {
    gap: 28px;
  }

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

  .mediation-audience {
    padding: 22px 20px;
  }

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

  .mediation-audience__note {
    grid-column: 1 / -1;
  }

  .mediation-divider {
    height: 56px;
  }

  .news-section {
    padding: 0 0 48px;
  }

  .news-grid {
    transform: translateY(-72px);
  }

  .news-hero__cover {
    min-height: clamp(320px, 55svh, 560px);
  }

  .news-hero__content {
    padding: 24px 0;
  }

  .news-hero__title {
    font-size: clamp(1.9rem, 6vw, 2.8rem);
  }

  .news-hero__button {
    padding: 10px 20px;
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-grid .wp-block-post-template {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-card--cta {
    grid-column: 1 / -1;
  }

  .news-sponsors {
    gap: 24px;
  }

  .news-sponsors__logo img {
    height: 64px;
  }

  .about-section {
    padding: 64px 0 72px;
  }

  .about-stack {
    padding: 64px 0 72px;
    gap: 22px;
  }

  .about-intro__stats {
    grid-template-columns: 1fr;
  }

  .about-timeline__item {
    grid-template-columns: 1fr;
  }

  .about-cta__layout {
    gap: 16px;
  }

  .site-footer {
    padding-top: 56px;
  }

  .site-footer__bottom {
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .mediation-benefits__grid {
    grid-template-columns: 1fr;
  }

  .mediation-audience {
    padding: 20px 18px;
  }

  .mediation-audience__grid {
    grid-template-columns: 1fr;
  }

  .mediation-illustration {
    aspect-ratio: 3 / 2;
  }

  .news-section {
    padding: 0 0 32px;
  }

  .news-grid {
    transform: translateY(-56px);
  }

  .news-hero__cover {
    min-height: clamp(260px, 50svh, 440px);
  }

  .news-hero__content {
    padding: 20px 0;
  }

  .news-hero__title {
    font-size: 1.8rem;
  }

  .news-hero__button {
    width: 100%;
    justify-content: center;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-grid .wp-block-post-template {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .news-sponsors {
    gap: 16px;
  }

  .news-sponsors__logo img {
    height: 52px;
  }
}

