/* =========================================================
   SYMBIONT — Header v4.3 Split Bento Navigation
   ========================================================= */

/* Hide default WP/Twenty Twenty-Five navigation */
body > header.wp-block-template-part,
body .wp-site-blocks > header,
body .wp-block-navigation,
body .wp-block-template-part:has(header),
body .wp-block-template-part:has(nav) {
  display: none !important;
}

/* Base */
.sym-header,
.sym-header * {
  box-sizing: border-box;
}

.sym-header {
  position: sticky;
  top: 32px;
  z-index: 999;
  width: 100%;
  padding: 14px 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Layout */
.sym-header-v4 {
  width: min(95vw, 1540px);
  margin: 0 auto;

  display: grid;
  grid-template-columns: auto minmax(300px, 1fr) auto;
  align-items: center;
  gap: 20px;
}

/* Cards */
.sym-header-logo-card,
.sym-header-menu-card {
  min-height: 56px;
  display: inline-flex;
  align-items: center;

  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.26);

  box-shadow:
    0 18px 52px rgba(0, 180, 120, .18),
    inset 0 1px 0 rgba(255,255,255,.24);
}

.sym-header-socials-card {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Light theme */
html[data-theme="light"] .sym-header-logo-card,
html[data-theme="light"] .sym-header-menu-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(255,255,255,.26), transparent 32%),
    linear-gradient(135deg, #00d978 0%, #00f08a 56%, #72f6ae 100%);
  border-color: rgba(255,255,255,.30);
}

/* Dark theme */
html[data-theme="dark"] .sym-header-logo-card,
html[data-theme="dark"] .sym-header-menu-card {
  background:
    radial-gradient(circle at 14% 0%, rgba(0,240,181,.10), transparent 34%),
    radial-gradient(circle at 92% 10%, rgba(130,90,255,.12), transparent 34%),
    rgba(31, 36, 40, .88);
  border-color: rgba(255,255,255,.10);
  box-shadow:
    0 18px 54px rgba(0,0,0,.26),
    inset 0 1px 0 rgba(255,255,255,.06);
}

/* Logo */
.sym-header-logo-card {
  padding: 0 22px;
  text-decoration: none !important;
}

.sym-header-logo-card__image {
  display: block;
  width: auto;
  height: 27px;
}

/* Menu card */
.sym-header-menu-card {
  justify-self: end;
  gap: 8px;
  padding: 0 10px 0 16px;
}

.sym-header-menu-card > a:not(.sym-header-circle) {
  min-height: 38px;
  padding: 0 8px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  border: 1px solid transparent;

  font-family: Tektur, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .025em;
  line-height: 1;
  white-space: nowrap;

  text-decoration: none !important;

  transition:
    transform .18s ease,
    background .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    color .18s ease;
}

html[data-theme="light"] .sym-header-menu-card > a:not(.sym-header-circle) {
  color: rgba(5,16,14,.78);
}

html[data-theme="dark"] .sym-header-menu-card > a:not(.sym-header-circle) {
  color: rgba(255,255,255,.70);
}

/* Menu dots */
.sym-header-dot {
  width: 3px;
  height: 3px;
  display: inline-flex;
  flex: 0 0 auto;
  border-radius: 999px;
  background: currentColor;
  opacity: .35;
}

html[data-theme="light"] .sym-header-dot {
  color: rgba(5,16,14,.70);
}

html[data-theme="dark"] .sym-header-dot {
  color: rgba(255,255,255,.55);
}

/* Divider */
.sym-header-menu-divider {
  width: 1px;
  height: 24px;
  margin-inline: 4px;
  background: rgba(255,255,255,.22);
}

html[data-theme="dark"] .sym-header-menu-divider {
  background: rgba(255,255,255,.10);
}

/* Circles */
.sym-header-circle,
.sym-theme-toggle {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  font-family: Tektur, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1;

  text-decoration: none !important;
  cursor: pointer;

  transition:
    transform .18s ease,
    background .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    color .18s ease;
}

html[data-theme="light"] .sym-header-circle,
html[data-theme="light"] .sym-theme-toggle {
  background: rgba(0, 217, 120, .08);
  border: 1px solid rgba(0, 145, 100, .20);
  color: #009a6f;
}

html[data-theme="dark"] .sym-header-circle,
html[data-theme="dark"] .sym-theme-toggle {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(0,240,181,.88);
}

.sym-header-circle:hover,
.sym-theme-toggle:hover,
.sym-header-menu-card > a:not(.sym-header-circle):hover {
  transform: translateY(-2px) scale(1.04);
}

/* General hover */
html[data-theme="light"] .sym-header-menu-card > a:not(.sym-header-circle):hover,
html[data-theme="light"] .sym-header-menu-card .sym-header-circle:hover,
html[data-theme="light"] .sym-theme-toggle:hover {
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.72), rgba(255,255,255,.24));
  color: #052018;
  border-color: rgba(255,255,255,.42);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.48),
    0 10px 24px rgba(0,0,0,.12);
}

html[data-theme="dark"] .sym-header-menu-card > a:not(.sym-header-circle):hover,
html[data-theme="dark"] .sym-header-menu-card .sym-header-circle:hover,
html[data-theme="dark"] .sym-theme-toggle:hover {
  background:
    radial-gradient(circle at 50% 0%, rgba(0,240,181,.22), rgba(0,240,181,.065));
  color: rgba(0,240,181,.98);
  border-color: rgba(0,240,181,.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 0 24px rgba(0,240,181,.16);
}

/* Platform hover colors — strongest rules */
html[data-theme="light"] .sym-header-socials-card .sym-header-social-youtube:hover,
html[data-theme="dark"] .sym-header-socials-card .sym-header-social-youtube:hover {
  background: #ff0033 !important;
  border-color: #ff0033 !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(255,0,51,.34) !important;
}

html[data-theme="light"] .sym-header-socials-card .sym-header-social-instagram:hover,
html[data-theme="dark"] .sym-header-socials-card .sym-header-social-instagram:hover {
  background: linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045) !important;
  border-color: rgba(255,255,255,.30) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(253,29,29,.32) !important;
}

html[data-theme="light"] .sym-header-socials-card .sym-header-social-telegram:hover,
html[data-theme="dark"] .sym-header-socials-card .sym-header-social-telegram:hover {
  background: #229ed9 !important;
  border-color: #229ed9 !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(34,158,217,.34) !important;
}

html[data-theme="light"] .sym-header-socials-card .sym-header-social-spotify:hover,
html[data-theme="dark"] .sym-header-socials-card .sym-header-social-spotify:hover {
  background: #1db954 !important;
  border-color: #1db954 !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(29,185,84,.34) !important;
}

html[data-theme="light"] .sym-header-socials-card .sym-header-social-soundcloud:hover,
html[data-theme="dark"] .sym-header-socials-card .sym-header-social-soundcloud:hover {
  background: #ff5500 !important;
  border-color: #ff5500 !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(255,85,0,.34) !important;
}

html[data-theme="light"] .sym-header-socials-card .sym-header-social-yandex:hover,
html[data-theme="dark"] .sym-header-socials-card .sym-header-social-yandex:hover {
  background: #ffcc00 !important;
  border-color: #ffcc00 !important;
  color: #111 !important;
  box-shadow: 0 12px 28px rgba(255,204,0,.34) !important;
}

html[data-theme="light"] .sym-header-socials-card .sym-header-social-more:hover,
html[data-theme="dark"] .sym-header-socials-card .sym-header-social-more:hover {
  background: #00f0b5 !important;
  border-color: #00f0b5 !important;
  color: #06110f !important;
  box-shadow: 0 0 24px rgba(0,240,181,.32) !important;
}

/* Icons via CSS masks */
.sym-header-icon-search,
.sym-header-icon-cart,
.sym-header-icon-user,
.sym-header-icon-random {
  font-size: 0 !important;
}

.sym-header-icon-search span,
.sym-header-icon-cart span,
.sym-header-icon-user span,
.sym-header-icon-random span {
  display: block;
  width: 18px;
  height: 18px;
  background: currentColor;
}

/* Search */
.sym-header-icon-search span {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M10.5 3a7.5 7.5 0 0 1 5.96 12.06l4.24 4.24-1.4 1.4-4.24-4.24A7.5 7.5 0 1 1 10.5 3Zm0 2a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M10.5 3a7.5 7.5 0 0 1 5.96 12.06l4.24 4.24-1.4 1.4-4.24-4.24A7.5 7.5 0 1 1 10.5 3Zm0 2a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Cart / bag */
.sym-header-icon-cart span {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M7 8V7a5 5 0 0 1 10 0v1h3v13H4V8h3Zm2 0h6V7a3 3 0 0 0-6 0v1Zm-3 2v9h12v-9H6Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M7 8V7a5 5 0 0 1 10 0v1h3v13H4V8h3Zm2 0h6V7a3 3 0 0 0-6 0v1Zm-3 2v9h12v-9H6Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* User */
.sym-header-icon-user span {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 2c-4.42 0-8 2.24-8 5v3h16v-3c0-2.76-3.58-5-8-5Zm0 2c3.4 0 6 1.46 6 3v1H6v-1c0-1.54 2.6-3 6-3Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 2c-4.42 0-8 2.24-8 5v3h16v-3c0-2.76-3.58-5-8-5Zm0 2c3.4 0 6 1.46 6 3v1H6v-1c0-1.54 2.6-3 6-3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Random / shuffle */
.sym-header-icon-random span {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M18 4h4v4h-2V6.83l-4.88 4.88-1.41-1.41L18.59 5.4H18V4ZM2 7h4.5c1.46 0 2.7.52 3.74 1.56l1.05 1.05-1.41 1.41-1.05-1.05A3.3 3.3 0 0 0 6.5 9H2V7Zm12.71 6 1.41-1.41L20 15.47V14h2v5h-5v-2h1.59l-3.88-4ZM2 15h4.5a3.3 3.3 0 0 0 2.33-.97l8.05-8.05 1.41 1.41-8.05 8.05A5.3 5.3 0 0 1 6.5 17H2v-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M18 4h4v4h-2V6.83l-4.88 4.88-1.41-1.41L18.59 5.4H18V4ZM2 7h4.5c1.46 0 2.7.52 3.74 1.56l1.05 1.05-1.41 1.41-1.05-1.05A3.3 3.3 0 0 0 6.5 9H2V7Zm12.71 6 1.41-1.41L20 15.47V14h2v5h-5v-2h1.59l-3.88-4ZM2 15h4.5a3.3 3.3 0 0 0 2.33-.97l8.05-8.05 1.41 1.41-8.05 8.05A5.3 5.3 0 0 1 6.5 17H2v-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Theme toggle */
.sym-theme-toggle {
  padding: 0;
}

.sym-theme-toggle__icon {
  display: block;
  width: 18px;
  height: 18px;
  background: currentColor;
}

/* Sun */
.sym-theme-toggle__icon--light {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M11 1h2v4h-2V1Zm0 18h2v4h-2v-4ZM1 11h4v2H1v-2Zm18 0h4v2h-4v-2ZM4.22 2.81 7.05 5.64 5.64 7.05 2.81 4.22l1.41-1.41Zm14.14 14.14 2.83 2.83-1.41 1.41-2.83-2.83 1.41-1.41Zm2.83-12.73-2.83 2.83-1.41-1.41 2.83-2.83 1.41 1.41ZM7.05 18.36l-2.83 2.83-1.41-1.41 2.83-2.83 1.41 1.41ZM12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10Zm0 2a3 3 0 1 0 0 6 3 3 0 0 0 0-6Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M11 1h2v4h-2V1Zm0 18h2v4h-2v-4ZM1 11h4v2H1v-2Zm18 0h4v2h-4v-2ZM4.22 2.81 7.05 5.64 5.64 7.05 2.81 4.22l1.41-1.41Zm14.14 14.14 2.83 2.83-1.41 1.41-2.83-2.83 1.41-1.41Zm2.83-12.73-2.83 2.83-1.41-1.41 2.83-2.83 1.41 1.41ZM7.05 18.36l-2.83 2.83-1.41-1.41 2.83-2.83 1.41 1.41ZM12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10Zm0 2a3 3 0 1 0 0 6 3 3 0 0 0 0-6Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Moon */
.sym-theme-toggle__icon--dark {
  display: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M21 14.2A8.6 8.6 0 0 1 9.8 3a9.5 9.5 0 1 0 11.2 11.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M21 14.2A8.6 8.6 0 0 1 9.8 3a9.5 9.5 0 1 0 11.2 11.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

html[data-theme="dark"] .sym-theme-toggle__icon--light {
  display: none;
}

html[data-theme="dark"] .sym-theme-toggle__icon--dark {
  display: block;
}

/* Responsive */
@media (max-width: 1320px) {
  .sym-header-v4 {
    grid-template-columns: auto auto 1fr;
  }

  .sym-header-socials-card {
    justify-self: center;
  }

  .sym-header-menu-card {
    justify-self: end;
  }

  .sym-header-menu-card > a:not(.sym-header-circle) {
    padding: 0 6px;
    font-size: 11px;
  }
}

@media (max-width: 1120px) {
  .sym-header-socials-card {
    display: none !important;
  }

  .sym-header-v4 {
    grid-template-columns: auto 1fr;
  }
}

@media (max-width: 920px) {
  .sym-header-dot,
  .sym-header-menu-card > a:not(.sym-header-circle) {
    display: none !important;
  }
}

@media (max-width: 680px) {
  .sym-header-v4 {
    width: min(94vw, 680px);
    gap: 10px;
  }

  .sym-header-logo-card__image {
    height: 23px;
  }

  .sym-header-logo-card {
    padding: 0 14px;
  }

  .sym-header-circle,
  .sym-theme-toggle {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
  }

  .sym-header-menu-card {
    padding: 0 8px;
  }
}
/* =========================================================
   SYMBIONT — Mobile fullscreen menu
   ========================================================= */

.sym-mobile-menu-toggle {
  display: none;
}

.sym-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99999;

  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-mobile-menu.is-open {
  display: block;
}

.sym-mobile-menu__panel {
  width: 100%;
  min-height: calc(100vh - 36px);

  padding: 18px;

  border-radius: 28px;
  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);

  box-shadow:
    0 24px 80px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.sym-mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sym-mobile-menu__logo {
  display: inline-flex;
  align-items: center;

  min-height: 52px;
  padding: 0 18px;

  border-radius: 20px;

  background:
    radial-gradient(circle at 0% 0%, rgba(0,240,181,.12), transparent 34%),
    rgba(255,255,255,.055);

  border: 1px solid rgba(255,255,255,.10);
}

.sym-mobile-menu__logo img {
  height: 26px;
  width: auto;
}

.sym-mobile-menu__close {
  width: 52px;
  height: 52px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);

  background: rgba(255,255,255,.055);
  color: rgba(0,240,181,.92);

  font-family: Tektur, sans-serif;
  font-size: 28px;
  font-weight: 500;

  cursor: pointer;
}

.sym-mobile-menu__nav {
  display: grid;
  gap: 10px;
  margin-top: 34px;
}

.sym-mobile-menu__nav a,
.sym-mobile-menu__actions a {
  min-height: 54px;

  display: flex;
  align-items: center;

  padding: 0 18px;

  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);

  background:
    radial-gradient(circle at 100% 0%, rgba(0,240,181,.08), transparent 34%),
    rgba(255,255,255,.035);

  color: rgba(255,255,255,.88) !important;

  font-family: Tektur, sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .015em;
  text-decoration: none !important;
}

.sym-mobile-menu__nav a:hover,
.sym-mobile-menu__actions a:hover {
  color: rgba(0,240,181,.98) !important;
  border-color: rgba(0,240,181,.28);
  box-shadow: 0 0 24px rgba(0,240,181,.12);
}

.sym-mobile-menu__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.sym-mobile-menu__actions a {
  min-height: 48px;
  font-family: Ruda, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.sym-mobile-menu__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin-top: 24px;
  padding-top: 20px;

  border-top: 1px solid rgba(255,255,255,.08);
}

/* Mobile header */
@media (max-width: 920px) {
  .sym-header-v4 {
    grid-template-columns: auto 1fr auto !important;
  }

  .sym-header-socials-card,
  .sym-header-menu-card {
    display: none !important;
  }

  .sym-mobile-menu-toggle {
    display: inline-flex;

    justify-self: end;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0 18px;

    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.22);

    background:
      radial-gradient(circle at 100% 0%, rgba(255,255,255,.28), transparent 34%),
      linear-gradient(135deg, #00d978, #00f08a);

    color: #06110f;

    font-family: Tektur, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;

    cursor: pointer;
  }

  html[data-theme="dark"] .sym-mobile-menu-toggle {
    background: rgba(255,255,255,.055);
    color: rgba(0,240,181,.92);
    border-color: rgba(255,255,255,.10);
  }
}
/* =========================================================
   SYMBIONT — Mobile header compact fix
   ========================================================= */

@media (max-width: 920px) {

  .sym-header {
    top: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .sym-header-v4 {
    margin-top: 0 !important;
  }

  .sym-header-logo-card {
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 18px !important;
    border-radius: 24px !important;
  }

  .sym-header-logo-card__image {
    height: 23px !important;
  }

  .sym-mobile-menu-toggle {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;

    padding: 0 !important;

    border-radius: 999px !important;

    font-size: 0 !important;
    line-height: 0 !important;

    position: relative !important;
  }

  .sym-mobile-menu-toggle::before,
  .sym-mobile-menu-toggle::after,
  .sym-mobile-menu-toggle span {
    content: "";
    position: absolute;
    left: 50%;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: translateX(-50%);
  }

  .sym-mobile-menu-toggle::before {
    top: 16px;
  }

  .sym-mobile-menu-toggle span {
    top: 23px;
  }

  .sym-mobile-menu-toggle::after {
    top: 30px;
  }
}
/* =========================================================
   SYMBIONT — Header compact connected patch
   ========================================================= */

/* Общий размер хедера */
.sym-header-v4 {
  height: 52px !important;
  min-height: 52px !important;
  align-items: center !important;
}

/* Логотип меньше */
.sym-header-logo,
.sym-header-logo-card,
.sym-header-logo-wrap {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
}

.sym-header-logo img,
.sym-header-logo-card img,
.sym-header-logo-wrap img {
  max-height: 34px !important;
  width: auto !important;
}

/* Меню ниже по высоте */
.sym-header-menu-card {
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 10px !important;
  gap: 7px !important;
  border-radius: 20px !important;
}

/* Текстовые пункты меню */
.sym-header-menu-card > a:not(.sym-header-circle) {
  height: 48px !important;
  padding: 0 7px !important;
  display: inline-flex !important;
  align-items: center !important;
  font-size: 10.5px !important;
}

/* Правые иконки слитно внутри меню */
.sym-header-menu-card .sym-header-circle,
.sym-header-menu-card .sym-theme-toggle {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;

  margin: 0 !important;
  border-radius: 999px !important;
}

/* Убираем ощущение отдельных больших капсул */
.sym-header-menu-card .sym-header-circle + .sym-header-circle,
.sym-header-menu-card .sym-theme-toggle + .sym-header-circle,
.sym-header-menu-card .sym-header-circle + .sym-theme-toggle {
  margin-left: 0 !important;
}

/* Соц-кружки тоже чуть компактнее */
.sym-header-socials-card {
  height: 48px !important;
  min-height: 48px !important;
  gap: 6px !important;
}

.sym-header-socials-card .sym-header-circle {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  font-size: 9.5px !important;
}

/* Более слитный вид правой группы */
.sym-header-menu-card::after {
  opacity: .45 !important;
}

/* Mobile не трогаем */
@media (max-width: 920px) {
  .sym-header-v4 {
    height: auto !important;
    min-height: 0 !important;
  }
}
/* =========================================================
   SYMBIONT — Header unified green bento bar
   ========================================================= */

@media (min-width: 921px) {

  .sym-header-v4 {
    width: min(95vw, 1540px) !important;
    min-height: 58px !important;
    height: 58px !important;

    padding: 5px !important;
    display: grid !important;
    grid-template-columns: 250px auto minmax(520px, 1fr) auto !important;
    gap: 6px !important;
    align-items: center !important;

    border-radius: 24px !important;
    border: 1px solid rgba(0, 145, 100, .20) !important;

    background:
      linear-gradient(135deg, rgba(0, 215, 120, .98), rgba(116, 245, 178, .88)) !important;

    box-shadow:
      0 18px 46px rgba(0, 215, 120, .18),
      inset 0 1px 0 rgba(255,255,255,.36) !important;
  }

  /* Общие внутренние bento-блоки */
  .sym-header-logo-card,
  .sym-header-socials-card,
  .sym-header-menu-card {
    height: 48px !important;
    min-height: 48px !important;

    border-radius: 19px !important;
    border: 1px solid rgba(255,255,255,.25) !important;

    background:
      linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.08)) !important;

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.32),
      0 8px 22px rgba(0,0,0,.05) !important;
  }

  /* Logo block */
  .sym-header-logo-card {
    width: 100% !important;
    padding: 0 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .sym-header-logo-card img,
  .sym-header-logo img,
  .sym-header-logo-wrap img {
    max-height: 30px !important;
    width: auto !important;
  }

  /* Socials block */
  .sym-header-socials-card {
    padding: 0 8px !important;
    display: flex !important;
    gap: 5px !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255,255,255,.13) !important;
  }

  .sym-header-socials-card .sym-header-circle {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;

    border-color: rgba(0, 85, 65, .16) !important;
    background: rgba(255,255,255,.16) !important;
    color: #063c32 !important;
    font-size: 9.5px !important;
  }

  /* Menu + actions sit inside one shared block visually */
  .sym-header-menu-card {
    padding: 0 7px 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;

    background:
      linear-gradient(135deg, rgba(255,255,255,.20), rgba(255,255,255,.07)) !important;
  }

  .sym-header-menu-card > a:not(.sym-header-circle) {
    height: 38px !important;
    padding: 0 8px !important;

    display: inline-flex !important;
    align-items: center !important;

    border-radius: 12px !important;
    color: #062b25 !important;

    font-size: 11px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }

  .sym-header-dot {
    opacity: .32 !important;
    color: #05372d !important;
  }

  /* Service circles */
  .sym-header-menu-card .sym-header-circle,
  .sym-header-menu-card .sym-theme-toggle {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;

    background: rgba(255,255,255,.16) !important;
    border-color: rgba(0, 85, 65, .14) !important;
    color: #064337 !important;
  }

  /* Separator before service icons */
  .sym-header-menu-card .sym-header-circle:first-of-type {
    margin-left: 8px !important;
  }

  /* Hover */
  .sym-header-menu-card > a:not(.sym-header-circle):hover,
  .sym-header-circle:hover,
  .sym-theme-toggle:hover {
    background: rgba(255,255,255,.34) !important;
    color: #031a16 !important;
    border-color: rgba(255,255,255,.42) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.45),
      0 10px 24px rgba(0,0,0,.10) !important;
  }

  /* Platform hover colors stay readable */
  .sym-header-social-youtube:hover,
  .sym-header-social-instagram:hover,
  .sym-header-social-telegram:hover,
  .sym-header-social-spotify:hover,
  .sym-header-social-soundcloud:hover {
    color: #fff !important;
  }

  .sym-header-social-yandex:hover {
    color: #111 !important;
  }

  /* Dark theme unified bar */
  html[data-theme="dark"] .sym-header-v4 {
    background:
      linear-gradient(135deg, rgba(18, 31, 29, .94), rgba(34, 31, 58, .92)) !important;

    border-color: rgba(255,255,255,.12) !important;

    box-shadow:
      0 20px 56px rgba(0,0,0,.28),
      0 0 38px rgba(0,240,181,.08),
      inset 0 1px 0 rgba(255,255,255,.10) !important;
  }

  html[data-theme="dark"] .sym-header-logo-card,
  html[data-theme="dark"] .sym-header-socials-card,
  html[data-theme="dark"] .sym-header-menu-card {
    background:
      linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.035)) !important;

    border-color: rgba(255,255,255,.12) !important;
  }

  html[data-theme="dark"] .sym-header-menu-card > a:not(.sym-header-circle),
  html[data-theme="dark"] .sym-header-socials-card .sym-header-circle,
  html[data-theme="dark"] .sym-header-menu-card .sym-header-circle,
  html[data-theme="dark"] .sym-header-menu-card .sym-theme-toggle {
    color: rgba(0,240,181,.92) !important;
  }
}
/* =========================================================
   SYMBIONT — Unified header alignment polish
   ========================================================= */

@media (min-width: 921px) {

  .sym-header-v4 {
    height: 56px !important;
    min-height: 56px !important;
    padding: 4px 5px !important;
    align-items: center !important;
  }

  .sym-header-logo-card,
  .sym-header-socials-card,
  .sym-header-menu-card {
    height: 46px !important;
    min-height: 46px !important;
    align-items: center !important;
  }

  /* Логотип меньше на 10–15% */
  .sym-header-logo-card img,
  .sym-header-logo img,
  .sym-header-logo-wrap img {
    max-height: 26px !important;
  }

  /* Соцсети — светлая граница */
  .sym-header-socials-card .sym-header-circle {
    border-color: rgba(255,255,255,.42) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.28),
      0 6px 14px rgba(0,0,0,.06) !important;
  }

  /* Сервисные кнопки справа — тоже светлее */
  .sym-header-menu-card .sym-header-circle,
  .sym-header-menu-card .sym-theme-toggle {
    border-color: rgba(255,255,255,.42) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.28),
      0 6px 14px rgba(0,0,0,.06) !important;
  }

  /* Вертикальное выравнивание текстовых пунктов */
  .sym-header-menu-card > a:not(.sym-header-circle) {
    height: 36px !important;
    align-items: center !important;
    line-height: 1 !important;
  }

  .sym-header-dot {
    align-self: center !important;
  }
}
/* =========================================================
   SYMBIONT — Header mega menu
   ========================================================= */

@media (min-width: 921px) {
  .sym-header-v4 {
    position: relative !important;
    z-index: 1000 !important;
  }

  .sym-header-mega {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;

    padding: 12px;
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,.14);

    background:
      radial-gradient(circle at 0 0, rgba(0, 240, 181, .13), transparent 34%),
      radial-gradient(circle at 100% 0, rgba(120, 90, 255, .16), transparent 38%),
      rgba(17, 23, 25, .96);

    box-shadow:
      0 30px 80px rgba(0,0,0,.28),
      0 0 42px rgba(0, 220, 175, .10);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;

    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }

  .sym-header-mega.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .sym-header-mega-card {
    min-height: 150px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.11);

    background:
      linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  }

  .sym-header-mega-card span {
    display: block;
    margin-bottom: 12px;

    font-family: Tektur, sans-serif;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #00f0b5;
  }

  .sym-header-mega-card a {
    display: block;
    margin: 7px 0;

    font-family: Ruda, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.25;
    color: rgba(255,255,255,.78) !important;
    text-decoration: none !important;
  }

  .sym-header-mega-card a:hover {
    color: #00f0b5 !important;
  }

  .sym-header-menu-card > a.has-mega:hover {
    background: rgba(255,255,255,.38) !important;
  }
}

@media (max-width: 920px) {
  .sym-header-mega {
    display: none !important;
  }
}
/* =========================================================
   SYMBIONT — Mega menu polish / stable hover
   ========================================================= */

@media (min-width: 921px) {

  .sym-header-mega {
    top: calc(100% + 6px) !important;

    width: 100% !important;
    min-height: 210px !important;

    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;

    padding: 16px !important;
    border-radius: 28px !important;

    background:
      radial-gradient(circle at 0 0, rgba(0, 240, 181, .14), transparent 32%),
      radial-gradient(circle at 100% 0, rgba(120, 90, 255, .18), transparent 40%),
      linear-gradient(135deg, rgba(13, 27, 24, .97), rgba(24, 24, 43, .97)) !important;
  }
}

/* =========================================================
   SYMBIONT — Mega menu inline compact variant
   ========================================================= */

@media (min-width: 921px) {

  .sym-header-mega {
    min-height: 0 !important;
    padding: 14px !important;
    grid-template-columns: 1fr !important;
  }

  .sym-header-mega-inline {
    width: 100%;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    align-items: stretch;
  }

  .sym-header-mega-title {
    min-height: 82px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.13);

    background:
      radial-gradient(circle at 0 0, rgba(0,240,181,.13), transparent 42%),
      linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.035));

    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .sym-header-mega-title span {
    font-family: Tektur, sans-serif;
    font-size: 18px;
    font-weight: 650;
    line-height: 1;
    color: #fff;
  }

  .sym-header-mega-title small {
    display: block;
    margin-top: 8px;
    font-family: Ruda, Arial, sans-serif;
    font-size: 11px;
    line-height: 1.25;
    color: rgba(255,255,255,.56);
  }

  .sym-header-mega-links {
    min-height: 82px;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.13);

    background:
      linear-gradient(135deg, rgba(255,255,255,.065), rgba(255,255,255,.025));

    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: center;
    align-items: center;
  }

  .sym-header-mega-links a {
    min-height: 34px;
    padding: 0 12px;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.055);

    font-family: Ruda, Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,.78) !important;
    text-decoration: none !important;

    transition:
      transform .18s ease,
      background .18s ease,
      border-color .18s ease,
      color .18s ease;
  }

  .sym-header-mega-links a em {
    font-style: normal;
    font-family: Tektur, sans-serif;
    font-size: 8px;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #00f0b5;
    opacity: .82;
  }

  .sym-header-mega-links a:hover {
    transform: translateY(-2px);
    background: rgba(0,240,181,.12);
    border-color: rgba(0,240,181,.35);
    color: #fff !important;
  }

  .sym-header-mega-links a:hover em {
    color: #00f0b5;
    opacity: 1;
  }

  /* Старые карточки отключаем, если где-то остались */
  .sym-header-mega-card {
    display: none !important;
  }
}

@media (max-width: 1180px) {
  .sym-header-mega-inline {
    grid-template-columns: 1fr !important;
  }
}
/* Header opacity + hover size fix */

@media (min-width: 921px) {

  .sym-header-v4 {
    background:
      linear-gradient(135deg, rgba(0, 215, 120, .98), rgba(116, 245, 178, .96)) !important;
  }

  html[data-theme="light"] .sym-header-mega {
    background:
      radial-gradient(circle at 0 0, rgba(0, 240, 181, .18), transparent 32%),
      radial-gradient(circle at 100% 0, rgba(80, 70, 130, .20), transparent 40%),
      linear-gradient(135deg, rgba(13, 27, 24, .985), rgba(24, 24, 43, .985)) !important;
  }

  html[data-theme="dark"] .sym-header-mega {
    background:
      radial-gradient(circle at 0 0, rgba(0, 240, 181, .18), transparent 32%),
      radial-gradient(circle at 100% 0, rgba(120, 90, 255, .22), transparent 40%),
      linear-gradient(135deg, rgba(10, 18, 17, .99), rgba(20, 20, 36, .99)) !important;
  }

  .sym-header-menu-card > a.has-mega {
    height: 34px !important;
    padding: 0 12px !important;
    border-radius: 15px !important;
  }

  .sym-header-menu-card > a.has-mega:hover {
    background: rgba(255,255,255,.28) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.38),
      0 6px 16px rgba(0,0,0,.08) !important;
  }
}
   

/* Phase 9.9.8 — mobile menu theme switcher */

.sym-mobile-menu__theme-row {
  margin-top: 18px;
}

.sym-mobile-menu__theme-toggle {
  width: 100%;
  min-height: 58px;

  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;

  padding: 0 18px;

  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);

  background:
    radial-gradient(circle at 0% 0%, rgba(0,240,181,.12), transparent 34%),
    rgba(255,255,255,.055);

  color: rgba(255,255,255,.92);

  font-family: Manrope, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1;
  font-weight: 800;

  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.sym-mobile-menu__theme-toggle:hover,
.sym-mobile-menu__theme-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(0,240,181,.38);
  box-shadow: 0 0 26px rgba(0,240,181,.16);
  outline: none;
}

.sym-mobile-menu__theme-icons {
  width: 38px;
  height: 38px;

  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 38px;

  border-radius: 999px;
  border: 1px solid rgba(0,240,181,.22);
  background: rgba(0,240,181,.10);
}

.sym-mobile-menu__theme-icon {
  position: absolute;
  inset: 0;
  margin: auto;
}

.sym-mobile-menu__theme-icon--sun {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(0,240,181,.96);
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(0,240,181,.42);
}

.sym-mobile-menu__theme-icon--sun::before,
.sym-mobile-menu__theme-icon--sun::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-top: 2px solid rgba(0,240,181,.78);
  border-bottom: 2px solid rgba(0,240,181,.78);
  border-radius: 999px;
}

.sym-mobile-menu__theme-icon--sun::after {
  transform: rotate(90deg);
}

.sym-mobile-menu__theme-icon--moon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  box-shadow: -6px 0 0 0 rgba(0,240,181,.96);
  transform: translateX(5px);
  opacity: .48;
}

.sym-mobile-menu__theme-label {
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,.92);
}

/* Show the currently useful icon slightly stronger. */
html[data-theme="light"] .sym-mobile-menu__theme-icon--sun {
  opacity: 1;
}

html[data-theme="light"] .sym-mobile-menu__theme-icon--moon {
  opacity: .28;
}

html[data-theme="dark"] .sym-mobile-menu__theme-icon--sun {
  opacity: .34;
}

html[data-theme="dark"] .sym-mobile-menu__theme-icon--moon {
  opacity: 1;
}


/* Phase 9.9.9 — mobile header alignment + theme icons correction */

/* On small screens the floating mobile header was too close to the left edge.
   Move logo and burger slightly right while keeping the layout isolated to mobile. */
@media (max-width: 767px) {
  .sym-header,
  .sym-header__inner,
  .sym-mobile-header,
  .sym-mobile-header__inner {
    padding-left: max(14px, env(safe-area-inset-left)) !important;
    padding-right: max(14px, env(safe-area-inset-right)) !important;
  }

  .sym-header .sym-logo,
  .sym-header__logo,
  .sym-mobile-header__logo,
  .sym-logo {
    margin-left: 2px !important;
  }

  [data-sym-mobile-menu-open],
  .sym-mobile-menu-open,
  .sym-header__mobile-toggle,
  .sym-mobile-header__toggle {
    margin-right: 2px !important;
  }
}

/* Make mobile menu theme switcher use the same visual language as the desktop icon:
   one clean icon changes state: sun in light theme, moon in dark theme. */
.sym-mobile-menu__theme-icons {
  position: relative !important;
  width: 42px !important;
  height: 42px !important;
  flex: 0 0 42px !important;

  border-radius: 999px !important;
  border: 1px solid rgba(0,240,181,.26) !important;
  background: rgba(0,240,181,.10) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.055), 0 0 18px rgba(0,240,181,.10) !important;
}

.sym-mobile-menu__theme-icon {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
  transition: opacity .18s ease, transform .18s ease !important;
}

/* Reset previous strange pseudo-rings. */
.sym-mobile-menu__theme-icon--sun,
.sym-mobile-menu__theme-icon--sun::before,
.sym-mobile-menu__theme-icon--sun::after,
.sym-mobile-menu__theme-icon--moon,
.sym-mobile-menu__theme-icon--moon::before,
.sym-mobile-menu__theme-icon--moon::after {
  box-sizing: border-box !important;
}

/* Desktop-like sun: central circle + simple rays. */
.sym-mobile-menu__theme-icon--sun {
  width: 18px !important;
  height: 18px !important;
  border: 2px solid rgba(0,240,181,.96) !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow:
    0 -13px 0 -7px rgba(0,240,181,.90),
    0 13px 0 -7px rgba(0,240,181,.90),
    13px 0 0 -7px rgba(0,240,181,.90),
    -13px 0 0 -7px rgba(0,240,181,.90),
    9px 9px 0 -7px rgba(0,240,181,.90),
    -9px 9px 0 -7px rgba(0,240,181,.90),
    9px -9px 0 -7px rgba(0,240,181,.90),
    -9px -9px 0 -7px rgba(0,240,181,.90),
    0 0 16px rgba(0,240,181,.34) !important;
}

.sym-mobile-menu__theme-icon--sun::before,
.sym-mobile-menu__theme-icon--sun::after {
  content: none !important;
}

/* Desktop-like moon: crescent made with mask circle. */
.sym-mobile-menu__theme-icon--moon {
  width: 22px !important;
  height: 22px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(0,240,181,.96) !important;
  box-shadow: 0 0 16px rgba(0,240,181,.34) !important;
}

.sym-mobile-menu__theme-icon--moon::before {
  content: "" !important;
  position: absolute !important;
  width: 22px !important;
  height: 22px !important;
  left: 7px !important;
  top: -2px !important;
  border-radius: 999px !important;
  background: #1c2226 !important;
}

.sym-mobile-menu__theme-icon--moon::after {
  content: none !important;
}

/* State: light shows sun, dark shows moon. */
html[data-theme="light"] .sym-mobile-menu__theme-icon--sun {
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

html[data-theme="light"] .sym-mobile-menu__theme-icon--moon {
  opacity: 0 !important;
  transform: translate(-50%, -50%) scale(.72) !important;
}

html[data-theme="dark"] .sym-mobile-menu__theme-icon--sun {
  opacity: 0 !important;
  transform: translate(-50%, -50%) scale(.72) !important;
}

html[data-theme="dark"] .sym-mobile-menu__theme-icon--moon {
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1) !important;
}
