@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

body.ru-km-gated {
  overflow: hidden !important;
}

body.ru-km-gated .site-content,
body.ru-km-gated .entry-content,
body.ru-km-gated .ru-km,
body.ru-km-gated main,
body.ru-km-gated article {
  visibility: hidden !important;
  pointer-events: none !important;
}

.ru-km-gate {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  font-family: 'Outfit', sans-serif;
}

.ru-km-gate__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(154, 123, 60, 0.18), transparent 42%),
    linear-gradient(160deg, #0f1724 0%, #1b2738 55%, #101827 100%);
}

.ru-km-gate__panel {
  position: relative;
  width: min(100%, 440px);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: 2rem 1.75rem 1.75rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  color: #152033;
}

.ru-km-gate__brand {
  text-align: center;
  margin-bottom: 1.35rem;
}

.ru-km-gate__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9a7b3c;
  font-weight: 600;
}

.ru-km-gate__title {
  margin: 0 0 0.55rem;
  font-size: 1.75rem;
  line-height: 1.15;
  font-weight: 700;
}

.ru-km-gate__lead,
.ru-km-gate__hint {
  margin: 0;
  color: #5f6b7d;
  font-size: 0.95rem;
  line-height: 1.55;
}

.ru-km-gate__email-target {
  margin: 0.75rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: #f7f3ea;
  color: #3d4a5c;
  font-size: 0.92rem;
  line-height: 1.45;
  word-break: break-word;
}

.ru-km-gate__email-target strong {
  color: #152033;
  font-weight: 700;
}

.ru-km-gate__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 1.25rem 0 1rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: #eef2f6;
}

.ru-km-gate__tab {
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 0.75rem;
  background: transparent;
  color: #5f6b7d;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.ru-km-gate__tab.is-active {
  background: #fff;
  color: #152033;
  box-shadow: 0 4px 14px rgba(21, 32, 51, 0.08);
}

.ru-km-gate__form {
  display: grid;
  gap: 0.85rem;
}

.ru-km-gate [hidden],
.ru-km-gate .is-hidden {
  display: none !important;
}

.ru-km-gate__field {
  display: grid;
  gap: 0.35rem;
}

.ru-km-gate__field span {
  font-size: 0.82rem;
  font-weight: 600;
  color: #3d4a5c;
}

.ru-km-gate__field input {
  width: 100%;
  border: 1px solid rgba(21, 32, 51, 0.12);
  border-radius: 10px;
  padding: 0.78rem 0.9rem;
  font: inherit;
  color: #152033;
  background: #fff;
}

.ru-km-gate__field input:focus,
.ru-km-gate__country select:focus {
  outline: 2px solid rgba(154, 123, 60, 0.35);
  border-color: #9a7b3c;
}

.ru-km-gate__phone-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 42%) 1fr;
  gap: 0.55rem;
  align-items: stretch;
}

.ru-km-gate__country {
  display: block;
  min-width: 0;
}

.ru-km-gate__country select {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(21, 32, 51, 0.12);
  border-radius: 10px;
  padding: 0.78rem 0.55rem;
  font: inherit;
  font-size: 0.88rem;
  color: #152033;
  background: #fff;
  cursor: pointer;
}

.ru-km-gate__submit {
  margin-top: 0.25rem;
  border: 0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #9a7b3c, #b8954e);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ru-km-gate__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.ru-km-gate__link {
  border: 0;
  background: transparent;
  color: #9a7b3c;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  padding: 0.25rem;
}

.ru-km-gate__alert {
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.ru-km-gate__alert.is-error {
  background: #fdecec;
  color: #9b2c2c;
}

.ru-km-gate__alert.is-success {
  background: #ecf8ef;
  color: #1f6b3f;
}

.ru-km-session {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 1rem;
  background: rgba(21, 32, 51, 0.92);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
}

.ru-km-session__logout {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 640px) {
  .ru-km-gate__panel {
    padding: 1.5rem 1.15rem 1.25rem;
  }

  .ru-km-gate__phone-row {
    grid-template-columns: 1fr;
  }

  .ru-km-session {
    flex-direction: column;
    align-items: flex-start;
  }
}
