/* Общие стили */
body {
    padding: 0px;
    margin: 0px;
    font-family: "Google Sans", Roboto, Arial, sans-serif;
    overflow-x: hidden;
    width: calc(100vw - var(--scrollbar-width));
    background: #ffffff;
    font-size: 18px;
}

/* Стили для скроллбара */
html {
    scroll-padding-top: 0 !important;
    --wp-admin--admin-bar--height: 0 !important;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Modern 404 */
:root {
  --e404-bg1: #f5f7ff;
  --e404-bg2: #ffffff;
  --e404-text: #0f172a;
  --e404-muted: #475569;
  --e404-border: rgba(15, 23, 42, 0.10);
  --e404-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --e404-radius: 22px;
  --e404-primary: #6d28d9;
  --e404-primary2: #7c3aed;
}

.error-404 {
  padding: clamp(24px, 1vw, 56px) 0;
  background:
    radial-gradient(1200px 600px at 15% 20%, rgba(124, 58, 237, 0.12), transparent 55%),
    radial-gradient(900px 450px at 90% 40%, rgba(109, 40, 217, 0.10), transparent 55%),
    linear-gradient(180deg, var(--e404-bg1), var(--e404-bg2));
}

.error-404__wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0px 10px;
}

.error-404__card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--e404-border);
  border-radius: var(--e404-radius);
  box-shadow: var(--e404-shadow);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.error-404__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  padding: clamp(18px, 3.2vw, 40px);
}

.error-404__content {
  position: relative;
  padding-right: clamp(0px, 1vw, 10px);
}

.error-404__content::before {
  content: "404";
  position: absolute;
  top: -20px;
  left: -6px;
  font-size: clamp(64px, 9vw, 120px);
  font-weight: 800;
  letter-spacing: -0.06em;
  color: rgba(15, 23, 42, 0.06);
  pointer-events: none;
  user-select: none;
}

.error-404__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(109, 40, 217, 0.20);
  background: rgba(124, 58, 237, 0.08);
  color: var(--e404-text);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 14px;
}

.error-404__title {
  margin: 0 0 12px;
  color: var(--e404-text);
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.error-404__text {
  margin: 0 0 20px;
  color: var(--e404-muted);
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}

.error-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-404__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--e404-primary), var(--e404-primary2));
  box-shadow: 0 10px 25px rgba(109, 40, 217, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  margin: 0 auto;
}

.error-404__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(109, 40, 217, 0.30);
}

.error-404__btn:active {
  transform: translateY(0);
  opacity: 0.95;
}

.error-404__btn:focus-visible {
  outline: 3px solid rgba(124, 58, 237, 0.35);
  outline-offset: 3px;
}

.error-404__media {
  border-radius: calc(var(--e404-radius) - 6px);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.14);
}

.error-404__img {
  width: 100%;
  height: auto;
  display: block;
}

/* Стили контейнеров */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
    height: 100%;
}



/* Шапка сайта — стили меню */
.header-menu a {
  color: #333;
  font-weight: 400;
  text-decoration: none;
  position: relative;
  display: inline-block;
}

/* Наведение */
.header-menu a:hover {
  font-weight: 500;
}

/* Активный пункт */
.header-menu .current-menu-item > a,
.header-menu .current-menu-ancestor > a,
.header-menu .current_page_item > a,
.header-menu .current_page_ancestor > a {
  color: #01875f;
  font-weight: 500;
}

/* Полоса снизу у активного пункта */
.header-menu .current-menu-item > a::after,
.header-menu .current-menu-ancestor > a::after,
.header-menu .current_page_item > a::after,
.header-menu .current_page_ancestor > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #01875f;
  bottom: -10px; /* отступ 10px от текста пункта */
}









@media (max-width: 1035px) {
    .error-404__grid {
        grid-template-columns: 1fr;
    }

    .error-404__content::before {
        top: -28px;
    }
}