.yoast-breadcrumbs a {
  color: #fff;
  text-decoration: none;
}

.yoast-breadcrumbs a:hover {
  color: #e3e3e3;
  text-decoration: underline;
}

.yoast-breadcrumbs span {
  color: #fff;
}

.category-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-card {
  display: flex;
  align-items: center;
  background: #f5f7fc;
  padding: 12px 16px;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #333;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  border: 1px solid #e0e6f0;
}

.category-card:hover {
  background: linear-gradient(90deg, #4d03a6, #1572f7);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.category-card:hover .category-icon {
  color: #fff;
}

.category-icon {
  font-size: 20px;
  margin-right: 12px;
  color: #1572f7;
  transition: color 0.3s ease;
}

.category-name {
  font-size: 16px;
  font-weight: 500;
}

.submenu-toggle {
  margin-left: 8px;
  font-weight: bold;
  font-size: 14px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.menu-item.open > a > .submenu-toggle::before {
  content: "-";
}

.main-nav-menu > .menu-item > a {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  transition: color 0.3s ease;
  color: #000000;
}

.main-nav-menu > .menu-item:hover > a,
.main-nav-menu > .current-menu-item > a,
.main-nav-menu > .current-menu-parent > a,
.main-nav-menu > .current-menu-ancestor > a {
  color: #1572f7 !important;
}

.main-nav-menu > .menu-item > a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #1572f7;
  transition: width 0.3s ease;
}

.main-nav-menu > .menu-item:hover > a::after,
.main-nav-menu > .current-menu-item > a::after,
.main-nav-menu > .current-menu-parent > a::after,
.main-nav-menu > .current-menu-ancestor > a::after {
  width: 100%;
}

.submenu-toggle {
  margin-left: 8px;
  font-weight: bold;
  font-size: 14px;
  color: #999;
  transition: color 0.3s ease;
}

.main-nav-menu > .menu-item:hover > a .submenu-toggle,
.main-nav-menu > .menu-item.open > a .submenu-toggle {
  color: #1572f7;
}

.main-nav-menu > .menu-item.open > a .submenu-toggle::before {
  content: "-";
}

.mobile-menu-list .menu-item ul {
  display: none;
}

.mobile-menu-list .menu-item.open ul {
  display: block;
}

.submenu-toggle {
  cursor: pointer;
  font-weight: bold;
  color: #999;
  margin-left: 8px;
  transition: color 0.3s ease;
}

.submenu-toggle:hover {
  color: #1572f7;
}
.footer-widget-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-widget-list li {
  margin-bottom: 8px;
}

.footer-widget-list li a {
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
}

.footer-widget-list li a:hover {
  color: #1572f7;
}

.open-btn {
  display: block;
  margin: 20px auto;
  text-align: center;
  padding: 12px 24px;
  font-size: 18px;
  border: 1px solid #00f0ff;
  border-radius: 10px;
  background: linear-gradient(45deg, #4d03a6, #1572f7);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px #1572f7, 0 0 10px #4d03a6;
  animation: pulse-glow 2.5s ease-in-out infinite;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.open-btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, #1572f7, #4d03a6, #1572f7);
  animation: border-spin 4s linear infinite;
  filter: blur(15px);
  opacity: 0.4;
  z-index: -1;
  pointer-events: none;
}

.open-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px #1572f7, 0 0 15px #4d03a6;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
  overflow-y: auto;
  box-sizing: border-box;
}

.popup-content {
  background: #fff;
  border: 1px solid #00f0ff;
  border-radius: 10px;
  padding: 30px 20px;
  width: 100%;
  max-width: 600px;
  position: relative;
  animation: fadeIn 0.3s ease;
  box-shadow: 0 0 10px rgba(21, 114, 247, 0.4);
  box-sizing: border-box;
  margin: auto;
}

.popup-content::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(45deg, #4d03a6, #1572f7, #4d03a6);
  border-radius: 10px;
  z-index: -1;
  filter: blur(8px);
  opacity: 0.6;
  animation: neon-glow 6s ease-in-out infinite alternate;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 26px;
  background: transparent;
  border: none;
  color: #888;
  cursor: pointer;
  transition: 0.2s;
}
.close-btn:hover {
  color: #000;
}

.contact-form-neon h2 {
  margin-bottom: 20px;
  text-align: center;
  font-size: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.contact-form-neon input,
.contact-form-neon select,
.contact-form-neon textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
}

.contact-form-neon textarea {
  width: 100%;
  resize: vertical;
  min-height: 100px;
  margin-bottom: 20px;
}

.submit-btn {
  position: relative;
  z-index: 1;
  padding: 12px 40px;
  font-size: 18px;
  font-weight: bold;
  color: white;
  background: linear-gradient(45deg, #4d03a6, #1572f7);
  border: 1px solid #00f0ff;
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  transition: 0.3s ease-in-out;
  box-shadow: 0 0 5px #1572f7, 0 0 10px #4d03a6;
  display: block;
  margin: 0 auto 10px;
}

.submit-btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, #1572f7, #4d03a6, #1572f7);
  animation: border-spin 3s linear infinite;
  filter: blur(10px);
  opacity: 0.7;
}

.submit-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px #1572f7, 0 0 20px #4d03a6;
}

.submit-btn:active {
  transform: scale(0.97);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes border-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes neon-glow {
  0% {
    box-shadow: 0 0 5px #1572f7, 0 0 10px #4d03a6;
    opacity: 0.4;
  }
  100% {
    box-shadow: 0 0 15px #4d03a6, 0 0 30px #1572f7;
    opacity: 0.8;
  }
}
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 5px #1572f7, 0 0 10px #4d03a6;
  }
  50% {
    box-shadow: 0 0 10px #4d03a6, 0 0 16px #1572f7;
  }
  100% {
    box-shadow: 0 0 5px #1572f7, 0 0 10px #4d03a6;
  }
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .popup-content {
    padding: 20px 15px;
    margin: 20px auto;
  }

  .contact-form-neon h2 {
    font-size: 20px;
  }

  .submit-btn {
    font-size: 16px;
  }
}

.form-toast {
  position: fixed;
  z-index: 9999;
  padding: 12px 20px;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  text-align: center;
  color: #fff;
  font-size: 16px;
  max-width: 90%;
}

@media (min-width: 601px) {
  .form-toast {
    bottom: 30px;
    right: 30px;
    transform: translateY(20px);
  }

  .form-toast.show {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .form-toast {
    top: 10px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: calc(100% - 20px);
    border-radius: 8px;
    transform: translateY(-120%);
    margin: 0 auto;
  }

  .form-toast.show {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-toast.success {
  background: linear-gradient(45deg, #00c853, #00e676);
}

.form-toast.error {
  background: linear-gradient(45deg, #d50000, #ff1744);
}

.footer {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

#space-stars {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 0;
  display: block;
  background: transparent;
  pointer-events: none;
}

.footer .footer-main-area,
.footer .footer-copyright-area {
  position: relative;
  z-index: 2;
}
.post-fade { opacity: 0; transition: opacity .3s ease; }
.post-fade.show { opacity: 1; }

#load-more:focus-visible {
  outline: 2px solid #4da3ff;
  outline-offset: 2px;
  border-radius: 6px;
}
:root{
  --pre-bg:#0b0f1a;      /* фон под прелоадером */
  --pre-fg:#33bbff;      /* цвет спиннера/текста */
}
#preloader{
  position: fixed; inset: 0;
  background: var(--pre-bg);
  display: grid; place-items: center;
  z-index: 9999;
  transition: opacity .35s ease;
}
#preloader.preloader--hide{
  opacity: 0; pointer-events: none;
}
.preloader__inner{
  display: grid; gap: 16px; justify-items: center;
  color: var(--pre-fg);
  text-align: center;
  font: 500 14px/1.3 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial;
}
.preloader__spinner{
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.25);
  border-top-color: var(--pre-fg);
  animation: pre-spin 1s linear infinite;
}
@keyframes pre-spin{ to { transform: rotate(360deg) } }

@media (prefers-reduced-motion: reduce){
  .preloader__spinner{ animation: none }
}
