/* =========================================================
   SYMBIONT — System Pages: Search / 404 / Search Modal
   ========================================================= */

.sym-system-page,
.sym-system-page * {
  box-sizing: border-box;
}

.sym-system-page {
  padding: 120px 0 80px;
}

.sym-system-page__inner {
  width: min(92vw, 1160px);
  margin: 0 auto;
}

.sym-system-hero {
  padding: 44px;
  border-radius: 34px;
  border: 1px solid var(--sym-border);
  background:
    radial-gradient(circle at 0% 0%, rgba(0,240,181,.12), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(130,90,255,.10), transparent 34%),
    var(--sym-card-bg);
  box-shadow: var(--sym-shadow-soft);
}

.sym-system-label {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 10px 5px;
  border-radius: 999px;
  border: 1px solid rgba(0,220,175,.38);
  color: rgba(0,220,175,.96);
  font-family: Tektur, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sym-system-hero h1 {
  margin: 0;
  max-width: 820px;
  font-family: Tektur, sans-serif;
  font-size: clamp(42px, 7vw, 88px);
  line-height: .95;
  font-weight: 500;
  letter-spacing: .01em;
}

.sym-system-hero p {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: 20px;
  line-height: 1.45;
  color: var(--sym-text-muted);
}

.sym-system-search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 32px;
}

.sym-system-search-form input,
.sym-search-modal__form input {
  min-height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid var(--sym-border);
  background: var(--sym-card-bg);
  color: var(--sym-text);
  font-size: 16px;
  outline: none;
}

.sym-system-search-form button,
.sym-search-modal__form button,
.sym-system-btn {
  min-height: 56px;
  padding: 0 24px;
  border-radius: 18px;
  border: 1px solid rgba(0,220,175,.46);
  background: #00d7a8;
  color: #06110f;
  font-family: Tektur, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
}

.sym-search-results {
  margin-top: 42px;
}

.sym-search-results h2 {
  font-family: Tektur, sans-serif;
  font-size: 28px;
  font-weight: 500;
}

.sym-search-results__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.sym-search-card,
.sym-404-card {
  min-height: 170px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--sym-border);
  background: var(--sym-card-bg);
  text-decoration: none !important;
  color: var(--sym-text) !important;
  transition: .18s ease;
}

.sym-search-card:hover,
.sym-404-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0,220,175,.38);
  box-shadow: 0 18px 40px rgba(0,0,0,.14);
}

.sym-search-card__type {
  display: inline-flex;
  margin-bottom: 12px;
  color: rgba(0,220,175,.94);
  font-family: Tektur, sans-serif;
  font-size: 10px;
  text-transform: uppercase;
}

.sym-search-card h3 {
  margin: 0;
  font-family: Tektur, sans-serif;
  font-size: 22px;
  font-weight: 500;
}

.sym-search-card p {
  margin: 12px 0 0;
  color: var(--sym-text-muted);
  line-height: 1.4;
}

.sym-system-empty {
  margin-top: 24px;
  padding: 30px;
  border-radius: 24px;
  border: 1px solid var(--sym-border);
  background: var(--sym-card-bg);
}

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

.sym-system-btn.is-secondary {
  background: transparent;
  color: var(--sym-text);
}

.sym-404-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.sym-404-card {
  min-height: 120px;
  display: flex;
  align-items: flex-end;
  font-family: Tektur, sans-serif;
  font-size: 22px;
}

/* Search Modal */

.sym-search-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  padding: 18px;
  background:
    radial-gradient(circle at 10% 0%, rgba(0,240,181,.18), transparent 34%),
    radial-gradient(circle at 90% 10%, rgba(130,90,255,.16), transparent 36%),
    rgba(14,18,21,.96);
  backdrop-filter: blur(22px);
}

.sym-search-modal.is-open {
  display: block;
}

.sym-search-modal__panel {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 36px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(circle at 0% 0%, rgba(0,240,181,.12), transparent 34%),
    rgba(255,255,255,.035);
}

.sym-search-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.055);
  color: rgba(0,240,181,.92);
  font-size: 28px;
  cursor: pointer;
}

.sym-search-modal__content {
  width: min(92vw, 820px);
}

.sym-search-modal__label {
  display: inline-flex;
  margin-bottom: 16px;
  color: rgba(0,240,181,.96);
  font-family: Tektur, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
}

.sym-search-modal__content h2 {
  margin: 0;
  color: #fff;
  font-family: Tektur, sans-serif;
  font-size: clamp(44px, 8vw, 96px);
  line-height: .92;
  font-weight: 500;
}

.sym-search-modal__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 30px;
}

.sym-search-modal__form input {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.12);
}

@media (max-width: 760px) {
  .sym-system-page {
    padding: 80px 0 60px;
  }

  .sym-system-hero {
    padding: 28px;
  }

  .sym-system-search-form,
  .sym-search-modal__form {
    grid-template-columns: 1fr;
  }

  .sym-search-results__grid,
  .sym-404-grid {
    grid-template-columns: 1fr;
  }
}
/* Mobile search modal compact */
@media (max-width: 760px) {
  .sym-search-modal {
    padding: 14px !important;
  }

  .sym-search-modal__panel {
    min-height: calc(100vh - 28px) !important;
    border-radius: 26px !important;
    padding: 22px !important;
  }

  .sym-search-modal__content {
    width: 100% !important;
  }

  .sym-search-modal__content h2 {
    font-size: clamp(42px, 14vw, 64px) !important;
  }

  .sym-search-modal__form input,
  .sym-search-modal__form button {
    width: 100% !important;
    min-height: 54px !important;
    border-radius: 18px !important;
  }
}
/* 404 cards center text */
.sym-404-card {
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}
/* =========================================================
   SYMBIONT — Search page visual polish
   ========================================================= */

.sym-search-page .sym-system-page__inner {
  width: min(92vw, 1040px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.sym-search-page .sym-system-hero,
.sym-search-page .sym-search-results {
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.sym-search-page .sym-system-hero h1 {
  font-size: clamp(40px, 5.4vw, 68px) !important;
}

.sym-search-results h2 {
  font-size: 22px !important;
  line-height: 1.15 !important;
  margin-bottom: 18px !important;
}

.sym-search-results__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.sym-search-card {
  min-height: 190px !important;
  padding: 20px !important;
}

.sym-search-card__type {
  font-size: 8px !important;
  letter-spacing: .06em !important;
}

.sym-search-card h3 {
  font-size: 17px !important;
  line-height: 1.08 !important;
}

.sym-search-card p {
  font-size: 14px !important;
  line-height: 1.35 !important;
}

@media (max-width: 900px) {
  .sym-search-results__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .sym-search-page .sym-system-page__inner {
    width: min(90vw, 420px) !important;
  }

  .sym-search-results__grid {
    grid-template-columns: 1fr !important;
  }

  .sym-search-card {
    min-height: auto !important;
  }
}
/* =========================================================
   SYMBIONT — Search page hard center fix
   ========================================================= */

/* убираем влияние стандартного контейнера темы на системную страницу */
body:has(.sym-search-page) main,
body:has(.sym-search-page) .wp-site-blocks,
body:has(.sym-search-page) .entry-content,
body:has(.sym-search-page) .wp-block-post-content,
body:has(.sym-search-page) .wp-block-group {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* сама страница */
.sym-search-page {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}

/* внутренний контейнер строго по центру */
.sym-search-page .sym-system-page__inner {
  width: min(92vw, 1040px) !important;
  max-width: 1040px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

/* hero и результаты не могут уехать */
.sym-search-page .sym-system-hero,
.sym-search-page .sym-search-results,
.sym-search-page .sym-search-results__grid {
  width: 100% !important;
  max-width: 100% !important;
}

/* заголовок страницы тоже центрируем относительно общего контейнера */
body:has(.sym-search-page) h1.wp-block-post-title,
body:has(.sym-search-page) .wp-block-post-title {
  width: min(92vw, 1040px) !important;
  max-width: 1040px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
/* =========================================================
   SYMBIONT — Search page final centering reset
   ========================================================= */

body:has(.sym-search-page) .wp-block-post-title {
  display: none !important;
}

body:has(.sym-search-page) .entry-content,
body:has(.sym-search-page) .wp-block-post-content,
body:has(.sym-search-page) .wp-block-group,
body:has(.sym-search-page) main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body:has(.sym-search-page) .entry-content > p:empty {
  display: none !important;
}

.sym-search-page {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;

  display: block !important;
  padding: 120px 0 90px !important;
}

.sym-search-page .sym-system-page__inner {
  width: min(88vw, 920px) !important;
  max-width: 920px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.sym-search-page .sym-system-hero {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto 34px !important;
}

.sym-search-page .sym-search-results {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

.sym-search-results__grid {
  width: 100% !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 900px) {
  .sym-search-page {
    padding: 90px 0 70px !important;
  }

  .sym-search-page .sym-system-page__inner {
    width: min(90vw, 640px) !important;
  }

  .sym-search-results__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .sym-search-page .sym-system-page__inner {
    width: min(90vw, 420px) !important;
  }

  .sym-search-results__grid {
    grid-template-columns: 1fr !important;
  }
}
/* =========================================================
   SYMBIONT — Search button pink hover/click FX
   ========================================================= */

.sym-system-search-form button {
  position: relative !important;
  overflow: hidden !important;

  background: #f3b8ef !important;
  color: #10151a !important;
  border: 1px solid rgba(255, 170, 245, .7) !important;

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease,
    color .18s ease !important;

  box-shadow:
    0 8px 22px rgba(243, 184, 239, .18) !important;
}

.sym-system-search-form button::before {
  content: "" !important;
  position: absolute !important;
  inset: -60% auto -60% -45% !important;

  width: 32% !important;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.65),
    transparent
  ) !important;

  transform: rotate(24deg) !important;
  transition: left .62s ease !important;
}

.sym-system-search-form button:hover {
  background: #ff7bea !important;
  color: #120916 !important;

  transform: translateY(-2px) scale(1.03) !important;

  box-shadow:
    0 12px 34px rgba(255, 123, 234, .36),
    0 0 28px rgba(255, 123, 234, .24) !important;
}

.sym-system-search-form button:hover::before {
  left: 125% !important;
}

.sym-system-search-form button:active {
  transform: translateY(0) scale(.96) !important;

  box-shadow:
    0 4px 14px rgba(255, 123, 234, .24) !important;
}
/* =========================================================
   SYMBIONT — 404 ERROR FEST PAGE
   ========================================================= */

.sym-error-fest-page {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 120px 0 90px !important;
}

.sym-error-fest-page .sym-system-page__inner {
  width: min(90vw, 1160px) !important;
  max-width: 1160px !important;
  margin: 0 auto !important;
}

.sym-error-fest-hero {
  position: relative;
  overflow: hidden;

  padding: 48px;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,.10);

  background:
    radial-gradient(circle at 12% 0%, rgba(255, 0, 130, .20), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(0, 240, 181, .18), transparent 36%),
    radial-gradient(circle at 50% 100%, rgba(130, 90, 255, .18), transparent 38%),
    rgba(18, 22, 26, .92);

  box-shadow:
    0 28px 90px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.07);
}

.sym-error-fest-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,.035) 0px,
      rgba(255,255,255,.035) 1px,
      transparent 1px,
      transparent 7px
    );

  opacity: .45;
  mix-blend-mode: screen;
}

.sym-error-fest-code {
  position: absolute;
  right: 28px;
  top: 22px;

  color: rgba(255, 80, 190, .72);
  font-family: Tektur, sans-serif;
  font-size: clamp(48px, 9vw, 132px);
  font-weight: 600;
  line-height: .8;
  letter-spacing: .03em;

  text-shadow:
    0 0 18px rgba(255, 0, 170, .24),
    2px 0 rgba(0, 240, 181, .34),
    -2px 0 rgba(80, 120, 255, .26);

  opacity: .42;
}

.sym-error-fest-hero h1 {
  position: relative;
  z-index: 2;

  max-width: 820px;
  margin: 0;

  color: #fff;
  font-family: Tektur, sans-serif;
  font-size: clamp(42px, 7vw, 86px);
  line-height: .95;
  font-weight: 500;
  letter-spacing: .01em;
}

.sym-error-fest-hero p {
  position: relative;
  z-index: 2;

  max-width: 760px;
  margin: 24px 0 0;

  color: rgba(255,255,255,.72);
  font-size: 18px;
  line-height: 1.5;
}

.sym-error-fest-grid,
.sym-error-fest-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.sym-error-fest-card {
  min-height: 220px;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid var(--sym-border);

  background:
    radial-gradient(circle at 100% 0%, rgba(0,240,181,.10), transparent 34%),
    var(--sym-card-bg);

  box-shadow: var(--sym-shadow-soft);
}

.sym-error-fest-card span {
  display: inline-flex;
  margin-bottom: 18px;

  color: rgba(255, 80, 190, .88);
  font-family: Tektur, sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.sym-error-fest-card h3,
.sym-error-fest-archive h2 {
  margin: 0;
  font-family: Tektur, sans-serif;
  font-weight: 500;
}

.sym-error-fest-card h3 {
  font-size: 26px;
}

.sym-error-fest-card p {
  margin: 14px 0 0;
  color: var(--sym-text-muted);
  line-height: 1.45;
}

.sym-error-fest-archive {
  margin-top: 42px;
}

.sym-error-fest-archive h2 {
  font-size: 32px;
}

@media (max-width: 760px) {
  .sym-error-fest-page {
    padding: 90px 0 70px !important;
  }

  .sym-error-fest-hero {
    padding: 30px;
    border-radius: 28px;
  }

  .sym-error-fest-code {
    position: relative;
    right: auto;
    top: auto;
    margin-bottom: 18px;
    font-size: 58px;
    opacity: .65;
  }

  .sym-error-fest-grid,
  .sym-error-fest-archive-grid,
  .sym-404-grid {
    grid-template-columns: 1fr !important;
  }

  .sym-error-fest-hero p {
    font-size: 16px;
  }
}
/* =========================================================
   SYMBIONT — 404 ERROR FEST v2 polish
   ========================================================= */

body:has(.sym-error-fest-page) .wp-block-post-title {
  display: none !important;
}

.sym-error-fest-page {
  padding-top: 110px !important;
}

.sym-error-fest-hero {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.sym-error-fest-hero::after {
  content: "ARTIFACT #404 / SIGNAL FOUND / DZHURA LOADING / ERROR FEST";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;

  color: rgba(0,240,181,.32);
  font-family: Tektur, sans-serif;
  font-size: 11px;
  letter-spacing: .12em;
  white-space: nowrap;
  overflow: hidden;
}

.sym-error-fest-code {
  opacity: .72 !important;
  color: rgba(255, 66, 207, .82) !important;
  animation: symErrorGlitch 3.8s infinite steps(1);
}

@keyframes symErrorGlitch {
  0%, 92%, 100% {
    transform: translate(0,0);
    text-shadow:
      0 0 18px rgba(255,0,170,.24),
      2px 0 rgba(0,240,181,.34),
      -2px 0 rgba(80,120,255,.26);
  }
  93% {
    transform: translate(2px,-1px);
    text-shadow:
      5px 0 rgba(0,240,181,.44),
      -5px 0 rgba(255,0,170,.38);
  }
  95% {
    transform: translate(-2px,1px);
  }
}

.sym-error-fest-hero h1 {
  max-width: 880px !important;
  text-shadow:
    0 0 18px rgba(255,255,255,.08),
    2px 0 rgba(0,240,181,.22),
    -2px 0 rgba(255,0,170,.18);
}

.sym-error-fest-hero p {
  max-width: 820px !important;
}

.sym-error-fest-card {
  position: relative;
  overflow: hidden;
}

.sym-error-fest-card::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #00f0b5;
  box-shadow: 0 0 18px rgba(0,240,181,.7);
}

.sym-error-fest-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,240,181,.42);
  box-shadow:
    0 22px 46px rgba(0,0,0,.20),
    0 0 26px rgba(0,240,181,.12);
}

.sym-error-fest-card span {
  color: rgba(255, 66, 207, .96) !important;
}

.sym-error-fest-archive h2 {
  margin-bottom: 18px;
}

.sym-error-fest-archive-grid .sym-404-card:nth-child(3) {
  border-color: rgba(255, 66, 207, .32);
  background:
    radial-gradient(circle at 100% 0%, rgba(255,66,207,.12), transparent 38%),
    var(--sym-card-bg);
}

.sym-system-btn.is-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 16px 38px rgba(0,240,181,.28),
    0 0 28px rgba(0,240,181,.18);
}

.sym-system-btn.is-secondary:hover {
  border-color: rgba(255,66,207,.42);
  color: rgba(255,66,207,.96);
  box-shadow: 0 0 24px rgba(255,66,207,.14);
}

@media (max-width: 760px) {
  .sym-error-fest-hero {
    min-height: auto;
  }

  .sym-error-fest-hero::after {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 26px;
    white-space: normal;
    line-height: 1.4;
  }
}
/* =========================================================
   SYMBIONT — 404 ERROR FEST Secret Drop
   ========================================================= */

.sym-error-fest-drop {
  position: relative;
  overflow: hidden;

  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;

  margin-top: 28px;
  padding: 30px;

  border-radius: 28px;
  border: 1px solid rgba(255, 66, 207, .26);

  background:
    radial-gradient(circle at 0% 0%, rgba(255, 66, 207, .16), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(0, 240, 181, .14), transparent 36%),
    var(--sym-card-bg);

  box-shadow:
    0 22px 60px rgba(0,0,0,.16),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.sym-error-fest-drop::before {
  content: "DOWNLOAD_UNLOCKED";
  position: absolute;
  right: 24px;
  top: 18px;

  color: rgba(255, 66, 207, .18);
  font-family: Tektur, sans-serif;
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}

.sym-error-fest-drop h2 {
  position: relative;
  z-index: 2;

  margin: 0;

  font-family: Tektur, sans-serif;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 500;
  line-height: .98;
}

.sym-error-fest-drop p {
  position: relative;
  z-index: 2;

  max-width: 700px;
  margin: 16px 0 0;

  color: var(--sym-text-muted);
  font-size: 17px;
  line-height: 1.45;
}

.sym-error-fest-drop__actions {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 230px;
}

@media (max-width: 760px) {
  .sym-error-fest-drop {
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .sym-error-fest-drop__actions {
    min-width: 0;
  }

  .sym-error-fest-drop__actions .sym-system-btn {
    width: 100%;
    justify-content: center;
  }
}