/* WordPress-специфичные дополнения к стилям прототипа. */

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  top: 12px;
  left: 12px;
  z-index: 100000;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.skip-link {
  position: absolute;
}

.logo .custom-logo-link {
  display: block;
}

.logo img.custom-logo {
  width: auto;
  max-width: 220px;
  max-height: 48px;
}

.page-section {
  padding: 64px 0 88px;
}

.page-container {
  max-width: 900px;
}

.page-title {
  margin-bottom: 24px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.entry-content {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.entry-content > * + * {
  margin-top: 18px;
}

.entry-content h2,
.entry-content h3 {
  color: var(--text);
}

.entry-content h2 {
  margin-top: 36px;
  font-size: 24px;
}

.entry-content h3 {
  margin-top: 26px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 800;
}

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

.entry-content ul,
.entry-content ol {
  padding-left: 22px;
  list-style: disc;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content li + li {
  margin-top: 6px;
}

.entry-content img {
  border-radius: var(--radius-sm);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.entry-content th {
  background: var(--cream);
  color: var(--text);
}

.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.calc-error {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(200, 52, 52, 0.28);
  border-radius: 10px;
  background: #fdf0f0;
  color: #a22d2d;
  font-size: 12px;
  line-height: 1.5;
}

.konstanta-admin-notice {
  margin: 20px 0;
  padding: 14px 16px;
  border: 1px dashed rgba(226, 112, 46, 0.45);
  border-radius: 12px;
  background: rgba(226, 112, 46, 0.06);
  color: var(--muted);
  font-size: 13px;
}

.legal-page .site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  backdrop-filter: blur(18px);
}

.legal-page .site-header .logo__text strong,
.legal-page .site-header .logo__text small,
.legal-page .site-header .nav__link,
.legal-page .site-header .header__phone {
  color: var(--text);
}

.legal-page .site-header .header__cta {
  display: none;
}

.legal-page .site-footer,
.legal-page .footer {
  margin-top: 0;
}

.archive-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.archive-item {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.archive-item h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

.archive-item p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.pagination .page-numbers,
.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.pagination .current,
.nav-links .current {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

@media (max-width: 640px) {
  .page-section {
    padding: 40px 0 64px;
  }
}
