/* ============================================================
   WordPress: правки, которых нет в статической версии.
   Подключается после site.css.
   ============================================================ */

/* ---------- меню ---------- */
.ep-menu,
.ep-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links > ul.ep-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links > ul.ep-menu > li {
  margin: 0;
  padding: 0;
}

.nav-links .current-menu-item > a,
.nav-links .current-menu-ancestor > a {
  color: var(--acc);
}

.nav-links .current-menu-item > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.foot-col ul.ep-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-col ul.ep-list li {
  margin: 0;
  padding: 0;
}

@media (max-width: 980px) {
  .nav-links > ul.ep-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .nav-links > ul.ep-menu > li {
    width: 100%;
  }

  .nav-links .current-menu-item > a::after {
    display: none;
  }
}

/* ---------- логотип из настроек ---------- */
.brand img,
.foot-grid .brand img {
  object-fit: contain;
}

/* ---------- админ-панель поверх фиксированной шапки ---------- */
body.admin-bar .nav {
  top: 32px;
}

body.admin-bar .scroll-bar {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .nav,
  body.admin-bar .scroll-bar {
    top: 46px;
  }
}

/* ---------- доступность ---------- */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  word-wrap: normal !important;
}

.skip-link:focus {
  background: #fff;
  clip: auto;
  clip-path: none;
  color: #12212E;
  display: block;
  height: auto;
  left: 16px;
  top: 16px;
  width: auto;
  padding: 12px 18px;
  border-radius: 10px;
  z-index: 100000;
  box-shadow: 0 10px 30px -12px rgba(18, 33, 46, .35);
}

/* ---------- адрес в подвале ---------- */
.foot-address {
  display: block;
  padding: 4px 0;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 24ch;
  line-height: 1.5;
}

.foot-bot a {
  color: inherit;
}

.foot-bot a:hover {
  color: var(--acc);
}

/* ---------- контент из редактора (страницы без готовой вёрстки) ---------- */
.ep-content {
  padding: 0 0 40px;
}

.ep-content > *:first-child {
  margin-top: 0;
}

.ep-content h2 {
  margin: 36px 0 16px;
}

.ep-content h3 {
  margin: 28px 0 12px;
}

.ep-content p {
  margin-bottom: 16px;
  color: var(--ink-2);
  line-height: 1.68;
}

.ep-content ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.ep-content ul li {
  margin-bottom: 8px;
  color: var(--ink-2);
}

.ep-content a {
  color: var(--acc);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ep-content img {
  border-radius: var(--r-md);
  height: auto;
}

.alignwide {
  margin-left: -40px;
  margin-right: -40px;
  max-width: calc(100% + 80px);
}

.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}

/* ---------- пагинация ---------- */
.ep-pagination {
  margin: 40px 0 0;
}

.ep-pagination .nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.ep-pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
}

.ep-pagination .page-numbers.current {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  font-weight: 600;
}
