:root {
  --static-page-bg: #181818;
  --static-page-surface: #222;
  --static-page-surface-soft: #292929;
  --static-page-border: #3a3a3a;
  --static-page-text: #e7e7e7;
  --static-page-muted: #aaa;
  --static-page-pink: #e2268d;
}

body.staticPageMode {
  color: var(--static-page-text);
  background: var(--static-page-bg);
}

body.staticPageMode .main-box {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  padding: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

body.staticPageMode .main-content.no-margin {
  width: 100%;
  min-width: 0;
  padding: 0;
}

.staticPageNav {
  position: relative;
  z-index: 5;
  width: 100%;
  margin: 16px 0 10px;
  border-bottom: 1px solid var(--static-page-border);
}

.staticPageNav__scroll {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.staticPageNav__scroll::-webkit-scrollbar { display: none; }

.staticPageMode .staticPageNav a {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 13px;
  color: var(--static-page-muted);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.staticPageMode .staticPageNav a:hover,
.staticPageMode .staticPageNav a:focus-visible {
  color: #fff;
  background: #242424;
}

.staticPageMode .staticPageNav a.isActive { color: #fff; }

.staticPageMode .staticPageNav a.isActive::after {
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 2px;
  content: "";
  background: var(--static-page-pink);
}

body.staticPageMode .main-content > .stdPage,
body.staticPageMode .main-content > #mainContent,
body.staticPageMode .main-content > .workform,
body.staticPageMode .main-content > div:not(.msg) {
  box-sizing: border-box;
  width: 100%;
  max-width: 1060px;
  margin: 0 auto 24px;
  padding: clamp(22px, 3.2vw, 38px);
  border-radius: 12px;
  color: var(--static-page-text);
  background: var(--static-page-surface);
}

body.staticPageMode .main-content > .workform {
  padding: 0;
  background: transparent;
}

body.staticPageMode .workform > .stdPage {
  box-sizing: border-box;
  margin: 0;
  padding: clamp(22px, 3.2vw, 38px);
  border-radius: 12px;
  background: var(--static-page-surface);
}

body.staticPageMode h1 {
  margin: 0 0 20px;
  padding: 0;
  color: #fff;
  background: transparent;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
  text-align: left;
  text-shadow: none;
}

body.staticPageMode h1::after {
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 12px;
  content: "";
  background: var(--static-page-pink);
}

body.staticPageMode h2 {
  margin: 28px 0 10px;
  padding: 0;
  color: #fff;
  background: transparent;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.3;
  text-align: left;
  text-shadow: none;
}

body.staticPageMode h3,
body.staticPageMode h4 {
  margin: 20px 0 8px;
  padding: 0;
  color: #f2f2f2;
  background: transparent;
  font-size: 1rem;
  line-height: 1.35;
  text-shadow: none;
}

body.staticPageMode p,
body.staticPageMode li {
  color: var(--static-page-text);
  font-size: .94rem;
  line-height: 1.62;
}

body.staticPageMode p { margin: 0 0 13px; }

body.staticPageMode ul,
body.staticPageMode ol {
  margin: 8px 0 18px;
  padding-left: 1.35rem;
}

body.staticPageMode li { margin-bottom: 7px; }
body.staticPageMode li::marker { color: var(--static-page-pink); font-weight: 700; }

body.staticPageMode a {
  color: #ef6bb2;
  text-underline-offset: 2px;
}

body.staticPageMode a:hover,
body.staticPageMode a:focus-visible { color: #fff; }

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

body.staticPageMode .stdPage .text,
body.staticPageMode .margin5,
body.staticPageMode .lineHeight15 {
  margin-right: 0;
  margin-left: 0;
  font-size: inherit;
  line-height: inherit;
}

body.staticPageMode .about-us .text { max-width: 850px; }
body.staticPageMode .about-us .text-center { margin: 16px 0 24px; }

.staticPageLead {
  max-width: 900px;
  color: #d2d2d2 !important;
  font-size: 1rem !important;
  line-height: 1.65 !important;
}

.staticPageSteps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.staticPageSteps article {
  padding: 16px;
  border-radius: 9px;
  background: var(--static-page-surface-soft);
}

.staticPageSteps__icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--static-page-pink);
  background: rgba(226, 38, 141, .11);
  font-size: 1rem;
}

.staticPageSteps h3 { margin-top: 12px !important; }
.staticPageSteps p { margin-bottom: 0 !important; color: #ccc !important; font-size: .85rem !important; }

.staticPageCallout {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding: 13px 15px;
  border-left: 3px solid var(--static-page-pink);
  color: #ddd;
  background: #292929;
}

.staticPageCallout > i { margin-top: 4px; color: var(--static-page-pink); }
.staticPageCallout p { margin: 0 !important; }

.staticPolicyPage section {
  max-width: 900px;
  padding-top: 2px;
}

.staticPageButton {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 15px;
  border-radius: 7px;
  color: #fff !important;
  background: var(--static-page-pink);
  font-weight: 800;
  text-decoration: none;
}

.staticPageButton:hover,
.staticPageButton:focus-visible { background: #f0329b; }

.staticEmptyState {
  max-width: 720px !important;
  padding-block: clamp(40px, 7vw, 76px) !important;
  text-align: center;
}

.staticEmptyState__icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 50%;
  color: var(--static-page-pink);
  background: rgba(226, 38, 141, .11);
  font-size: 1.2rem;
}

.staticEmptyState__code {
  margin: 0 !important;
  color: var(--static-page-muted) !important;
  font-size: .8rem !important;
  font-weight: 800;
  letter-spacing: .12em;
}

.staticEmptyState h1 { text-align: center !important; }
.staticEmptyState h1::after { margin-right: auto; margin-left: auto; }
.staticEmptyState > p { max-width: 520px; margin-right: auto !important; margin-left: auto !important; }

body.staticPageMode .about-us .text-center img {
  display: block;
  max-width: min(100%, 900px);
  margin-inline: auto;
  border-radius: 9px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .32);
}

body.staticPageMode #mainContent article {
  padding: 0 !important;
  text-align: left !important;
}

body.staticPageMode #mainContent article img[src*="owner-"] {
  width: min(260px, 100%);
  margin: 8px 0 20px;
}

body.staticPageMode .rta {
  font-size: 1rem !important;
  text-align: left !important;
}

body.staticPageMode .rta .text-center,
body.staticPageMode .stdPage > div[style*="text-align: center"] { text-align: center !important; }
body.staticPageMode .rta img { max-height: 170px; }

body.staticPageMode table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
  background: var(--static-page-surface-soft);
}

body.staticPageMode th,
body.staticPageMode td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--static-page-border);
  color: var(--static-page-text);
  text-align: left;
}

body.staticPageMode th { color: #fff; background: #303030; }

body.staticPageMode input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
body.staticPageMode textarea,
body.staticPageMode select {
  box-sizing: border-box;
  width: 100%;
  max-width: 720px;
  min-height: 44px;
  padding: 10px 12px !important;
  border: 1px solid #494949 !important;
  border-radius: 7px !important;
  color: #fff !important;
  background: #191919 !important;
  box-shadow: none !important;
  font: inherit;
}

body.staticPageMode textarea { min-height: 110px; resize: vertical; }

body.staticPageMode label {
  color: #e8e8e8;
  font-size: .86rem;
  font-weight: 700;
}

body.staticPageMode button,
body.staticPageMode .btn,
body.staticPageMode .btn-std {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--static-page-pink);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

body.staticPageMode button:hover,
body.staticPageMode .btn:hover,
body.staticPageMode .btn-std:hover { color: #fff; background: #f0329b; }

body.staticPageMode .msg {
  margin: 12px 0;
  padding: 11px 13px;
  border: 1px solid #444;
  border-radius: 8px;
  color: var(--static-page-text);
  background: #292929;
}

body.staticPageMode .msg-success,
body.staticPageMode .removal .success {
  border-color: rgba(168, 197, 111, .45);
  color: #d8edb3;
  background: rgba(168, 197, 111, .1);
}

body.staticPageMode .msg-error,
body.staticPageMode .removal .error {
  border-color: rgba(255, 119, 130, .45);
  color: #ffd1d5;
  background: rgba(255, 119, 130, .1);
}

body.staticPageMode .removal { max-width: 780px; padding-bottom: 0; }
body.staticPageMode .removal form label { margin: 12px 0 5px; }

body.staticPageMode .removal .error,
body.staticPageMode .removal .success {
  max-width: 720px;
  margin-top: 5px;
  padding: 8px 10px;
  border-style: solid;
  border-width: 1px;
  border-radius: 7px;
  font-size: .8rem;
  font-weight: 700;
  text-align: left;
}

body.staticPageMode .workform .stdPage > div[style*="praca.png"] {
  min-height: 280px;
  padding-right: min(34vw, 330px);
  background-position: top right !important;
  background-size: min(32vw, 310px) auto !important;
}

body.staticPageMode .workform .text-center { max-width: 720px; text-align: left; }
body.staticPageMode .workform .text-center p { margin-bottom: 9px; }

body.staticPageMode .workform label > span:first-child {
  display: block;
  margin-bottom: 4px;
}

body.staticPageMode #preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

body.staticPageMode #preview img {
  width: 100%;
  border-radius: 6px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

body.staticPageMode .siteFooter { margin-top: 30px; }

@media (max-width: 767px) {
  body.staticPageMode .guestHomeHeader {
    grid-template-areas: "logo language spacer auth menu";
    row-gap: 0;
  }

  body.staticPageMode .guestHeaderLibrary,
  body.staticPageMode .guestHeaderPresale {
    display: none;
  }

  body.staticPageMode header.main .mid-bar > .guestHomeHeader {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  body.staticPageMode .main-box { width: 100%; }

  .staticPageNav {
    margin: 6px 0 8px;
    padding-left: 10px;
  }

  .staticPageNav__scroll { padding-right: 10px; }

  .staticPageNav a {
    min-height: 38px;
    padding: 0 10px;
    font-size: .7rem;
  }

  body.staticPageMode .main-content > .stdPage,
  body.staticPageMode .main-content > #mainContent,
  body.staticPageMode .main-content > div:not(.msg),
  body.staticPageMode .workform > .stdPage {
    margin-bottom: 12px;
    padding: 17px 15px;
    border-radius: 0;
  }

  body.staticPageMode h1 { margin-bottom: 16px; font-size: 1.45rem; }
  body.staticPageMode h1::after { width: 38px; margin-top: 9px; }
  body.staticPageMode h2 { margin-top: 22px; font-size: 1.08rem; }
  body.staticPageMode h3,
  body.staticPageMode h4 { margin-top: 17px; }

  body.staticPageMode p,
  body.staticPageMode li { font-size: .86rem; line-height: 1.55; }

  body.staticPageMode ul,
  body.staticPageMode ol { padding-left: 1.15rem; }

  body.staticPageMode th,
  body.staticPageMode td { padding: 8px; font-size: .78rem; }

  body.staticPageMode .workform .stdPage > div[style*="praca.png"] {
    padding-right: 0;
    background-image: none !important;
  }

  body.staticPageMode #preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staticPageSteps { grid-template-columns: 1fr; gap: 7px; }
  .staticPageSteps article { padding: 13px; }
  .staticPageLead { font-size: .9rem !important; }
  body.staticPageMode .siteFooter { margin-top: 12px; }
}
