:root {
  --px-red: #e30613;
  --px-red-dark: #b7000b;
  --px-ink: #12161f;
  --px-ink-2: #202631;
  --px-text: #4b5563;
  --px-muted: #727b88;
  --px-line: #e5e8ec;
  --px-soft: #f5f6f8;
  --px-white: #ffffff;
  --px-radius: 18px;
  --px-shadow: 0 24px 70px rgba(18, 22, 31, 0.1);
  --px-site: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.plexpert-pro {
  margin: 0;
  overflow-x: hidden;
  background: var(--px-white);
  color: var(--px-text);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.plexpert-pro img {
  max-width: 100%;
  height: auto;
}

body.plexpert-pro.px-menu-open {
  overflow: hidden;
}

body.plexpert-pro a {
  color: inherit;
}

body.plexpert-pro button,
body.plexpert-pro input,
body.plexpert-pro select,
body.plexpert-pro textarea {
  font: inherit;
}

.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;
}

.px-skip-link {
  position: fixed;
  z-index: 9999;
  top: 10px;
  left: 10px;
  padding: 12px 18px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--px-white);
  color: var(--px-ink);
  box-shadow: var(--px-shadow);
}

.px-skip-link:focus {
  transform: translateY(0);
}

.px-site-width {
  width: min(calc(100% - 48px), var(--px-site));
  margin-inline: auto;
}

.px-topbar {
  background: var(--px-ink);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.px-topbar-inner {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
}

.px-topbar p {
  margin: 0;
}

.px-topbar-links {
  display: flex;
  gap: 28px;
}

.px-topbar a {
  color: var(--px-white);
  text-decoration: none;
}

.px-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  width: 100%;
  border-bottom: 1px solid rgba(18, 22, 31, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 30px rgba(18, 22, 31, 0.05);
  backdrop-filter: blur(18px);
}

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

.px-header-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 28px;
}

.px-brand {
  display: flex;
  width: 238px;
  flex: 0 0 auto;
  align-items: center;
}

.px-brand img,
.px-brand .custom-logo {
  display: block;
  width: 100%;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}

.px-brand .custom-logo-link {
  display: block;
  line-height: 0;
}

.px-primary-nav {
  margin-left: auto;
}

.px-nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.px-nav-list a {
  position: relative;
  display: block;
  padding: 16px 12px;
  color: var(--px-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.px-nav-list a::after {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right center;
  background: var(--px-red);
  content: "";
  transition: transform 180ms ease;
}

.px-nav-list a:hover::after,
.px-nav-list .current-menu-item > a::after,
.px-nav-list .current_page_item > a::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.px-header-cta,
.px-button,
.px-form-submit {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid var(--px-red);
  border-radius: 9px;
  background: var(--px-red);
  color: var(--px-white) !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.px-header-cta:hover,
.px-button:hover,
.px-form-submit:hover {
  transform: translateY(-2px);
  border-color: var(--px-red-dark);
  background: var(--px-red-dark);
  box-shadow: 0 12px 30px rgba(227, 6, 19, 0.22);
}

.px-button-outline {
  border-color: var(--px-line);
  background: var(--px-white);
  color: var(--px-ink) !important;
}

.px-button-light {
  border-color: var(--px-white);
  background: var(--px-white);
  color: var(--px-ink) !important;
}

.px-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 8px;
  background: var(--px-soft);
}

.px-menu-toggle span:not(.screen-reader-text) {
  width: 22px;
  height: 2px;
  background: var(--px-ink);
}

.px-main {
  width: 100%;
  overflow: hidden;
}

.px-form {
  width: 100%;
}

.px-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.px-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  color: var(--px-ink);
  font-size: 13px;
  font-weight: 800;
}

.px-field-full {
  grid-column: 1 / -1;
}

.px-field input,
.px-field select,
.px-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #d9dde3;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: var(--px-ink);
  font-size: 15px;
  font-weight: 500;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.px-field textarea {
  min-height: 130px;
  resize: vertical;
}

.px-field input:focus,
.px-field select:focus,
.px-field textarea:focus {
  border-color: var(--px-red);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
}

.px-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  margin: 20px 0;
  color: var(--px-text);
  font-size: 12px;
  line-height: 1.55;
}

.px-consent input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--px-red);
}

.px-consent a,
.px-form-help a,
.px-legal-text a {
  color: var(--px-red);
  font-weight: 800;
}

.px-form-submit {
  min-height: 56px;
  border: 0;
  cursor: pointer;
}

.px-form-help {
  margin: 14px 0 0;
  color: var(--px-muted);
  font-size: 12px;
}

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

.px-form-notice {
  margin-bottom: 24px;
  padding: 15px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.px-form-success {
  border: 1px solid #79c597;
  background: #ebfaf0;
  color: #155c31;
}

.px-form-error {
  border: 1px solid #e8a4aa;
  background: #fff0f1;
  color: #8b111b;
}

.px-legal-text h2 {
  margin: 42px 0 12px;
  color: var(--px-ink);
  font-family: "Syne", "Manrope", sans-serif;
  font-size: 28px;
  line-height: 1.2;
}

.px-legal-text h2:first-child {
  margin-top: 0;
}

.px-legal-warning {
  margin-bottom: 32px;
  padding: 18px 20px;
  border-left: 4px solid #d99b00;
  border-radius: 8px;
  background: #fff8e6;
  color: #6d4d00;
}

.px-page-title {
  padding: 72px 0;
  background: var(--px-soft);
}

.px-page-title h1,
.px-error-page h1 {
  margin: 0;
  color: var(--px-ink);
  font-family: "Syne", "Manrope", sans-serif;
  font-size: clamp(34px, 4vw, 58px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.px-page-content,
.px-fallback-content {
  width: min(calc(100% - 48px), 920px);
  margin: 0 auto;
  padding: 80px 0;
}

.px-blog-index {
  padding: 90px 0;
}

.px-blog-index > .px-page-title {
  margin-bottom: 48px;
  padding: 0;
  background: transparent;
}

.px-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.px-post-card {
  padding: 24px;
  border: 1px solid var(--px-line);
  border-radius: 14px;
}

.px-post-card h2 {
  color: var(--px-ink);
  font-family: "Syne", "Manrope", sans-serif;
  font-size: 24px;
}

.px-post-card a {
  text-decoration: none;
}

.px-error-page {
  display: flex;
  min-height: 65vh;
  align-items: center;
  padding: 100px 0;
  text-align: center;
}

.px-error-page .px-site-width {
  max-width: 760px;
}

.px-error-page h1 {
  margin: 12px 0 20px;
}

.px-kicker-static {
  margin: 0;
  color: var(--px-red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.px-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.px-footer {
  padding: 78px 0 0;
  background: #0d1118;
  color: rgba(255, 255, 255, 0.7);
}

.px-footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.7fr 1fr 0.85fr;
  gap: 54px;
  padding-bottom: 56px;
}

.px-footer h2 {
  margin: 0 0 20px;
  color: var(--px-white);
  font-family: "Syne", "Manrope", sans-serif;
  font-size: 18px;
}

.px-footer p,
.px-footer address {
  margin: 0 0 18px;
  font-size: 13px;
  font-style: normal;
  line-height: 1.75;
}

.px-footer strong {
  color: var(--px-white);
}

.px-footer a {
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
}

.px-footer a:hover {
  color: var(--px-white);
}

.px-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.px-footer li {
  margin-bottom: 10px;
  font-size: 13px;
}

.px-footer-brand img {
  display: block;
  width: 230px;
  margin-bottom: 26px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--px-white);
}

.px-footer-brand > p {
  max-width: 350px;
}

.px-footer-call {
  color: var(--px-white) !important;
  font-size: 21px;
  font-weight: 800;
}

.px-footer-bottom {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

.px-footer-bottom p {
  margin: 0;
}

.px-footer-bottom > div {
  display: flex;
  gap: 22px;
}

.px-floating-call {
  position: fixed;
  z-index: 900;
  right: 22px;
  bottom: 22px;
  display: none;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--px-red);
  color: var(--px-white) !important;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(227, 6, 19, 0.35);
}

:focus-visible {
  outline: 3px solid rgba(227, 6, 19, 0.35);
  outline-offset: 3px;
}

@media (max-width: 1120px) {
  .px-header-cta {
    display: none;
  }

  .px-nav-list a {
    padding-right: 9px;
    padding-left: 9px;
    font-size: 13px;
  }

  .px-brand {
    width: 210px;
  }

  .px-footer-grid {
    grid-template-columns: 1.2fr 0.8fr 1fr;
  }

  .px-footer-grid > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  body.admin-bar .px-header {
    top: 46px;
  }

  .px-topbar {
    display: none;
  }

  .px-header-inner {
    min-height: 72px;
  }

  .px-brand {
    width: 200px;
  }

  .px-menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .px-primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    border-top: 1px solid var(--px-line);
    background: var(--px-white);
    box-shadow: 0 24px 40px rgba(18, 22, 31, 0.12);
  }

  .px-primary-nav.is-open {
    display: block;
  }

  .px-nav-list {
    display: block;
    width: min(calc(100% - 36px), var(--px-site));
    margin: 0 auto;
    padding: 14px 0 22px;
  }

  .px-nav-list a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--px-line);
    font-size: 15px;
  }

  .px-nav-list a::after {
    display: none;
  }

  .px-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .px-footer-grid > div:last-child {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .px-site-width {
    width: min(calc(100% - 32px), var(--px-site));
  }

  .px-brand {
    width: 178px;
  }

  .px-form-grid,
  .px-post-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .px-field-full {
    grid-column: auto;
  }

  .px-footer {
    padding-top: 60px;
  }

  .px-footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .px-footer-bottom {
    padding: 22px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .px-footer-bottom > div {
    flex-direction: column;
    gap: 8px;
  }

  .px-floating-call {
    display: flex;
  }

  .px-actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
