* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  color: #313131;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 100vh;
}

/* ширина отступы сверху тут. */
.page {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
}

.page-content {
  margin: 8rem auto;
  padding-right: 2rem;
  padding-left: 2rem;
  width: 100%;
  max-width: 60rem;
}

.site-header {
  display: flex;
  gap: 16px;
  align-items: center;
}

.site-logo {
  margin-right: 0.5rem;
  width: 2rem;
  height: 2rem;
}

h1 {
  line-height: 125%;
  font-size: 2.5rem;
  font-weight: 600;
}

.challenge-heading {
  margin: 8px 0;
  line-height: 125%;
  font-size: 1.5rem;
  font-weight: 600;
  font-style: normal;
}

.challenge-text {
  margin-top: 0;
  margin-bottom: 2rem;
  line-height: 150%;
  font-size: 1rem;
  font-weight: 400;
  font-style: normal;
}

a {
  display: inline-block;
  text-decoration: underline;
  font-size: 1rem;
  font-weight: 400;
  font-style: normal;
  cursor: pointer;
}

/* загрузка тут. */
.loader {
  /* задержку короч тут указывай щя стоит 2 секунды. Эта задержка перед открытием окна каптчи. */
  --widget-delay: 2s;
  position: relative;
  margin: 2rem 0;
  height: 76.391px;
}

.spinner {
  animation: loader-hide 0s var(--widget-delay) forwards;
  display: inline-block;
  position: relative;
  width: 1.875rem;
  height: 1.875rem;
}

.spinner div {
  display: block;
  position: absolute;
  animation: loading-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border: 0.3rem solid;
  border-radius: 50%;
  border-color: #313131 transparent transparent transparent;
  width: 1.875rem;
  height: 1.875rem;
}

.spinner div:nth-child(1) {
  animation-delay: -0.45s;
}

.spinner div:nth-child(2) {
  animation-delay: -0.3s;
}

.spinner div:nth-child(3) {
  animation-delay: -0.15s;
}

@keyframes loading-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* сам виджет нашей катпчи */
.captcha-box {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 300px;
  max-width: 100%;
  height: 65px;
  padding: 10px 10px 10px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  background: #fafafa;
  box-shadow: 0 1px 3px rgb(0 0 0 / 8%);
  color: #232323;
  font-family: Arial, sans-serif;
  visibility: hidden;
  opacity: 0;
  animation: widget-reveal 0s var(--widget-delay) forwards;
}

.captcha-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.checkbox-mark {
  position: relative;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 2px solid #6d6d6d;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
}

.captcha-checkbox:hover .checkbox-mark {
  border-color: #313131;
}

.captcha-checkbox:focus-visible {
  outline: 2px solid #0051c3;
  outline-offset: 3px;
}

.checkbox-label,
.checkbox-progress {
  font-size: 14px;
  font-weight: 400;
  line-height: 17px;
}

.checkbox-progress {
  display: none;
}

.captcha-note {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  font-size: 10px;
  line-height: 12px;
  color: inherit;
}

body:has(#verify-modal:popover-open) .checkbox-label {
  display: none;
}

body:has(#verify-modal:popover-open) .checkbox-progress {
  display: inline;
}

body:has(#verify-modal:popover-open) .checkbox-mark {
  border: 3px dotted #228b49;
  border-radius: 50%;
  background: transparent;
  animation: loading-spin 1.2s linear infinite;
}

.captcha-brand {
  flex: 0 0 92px;
  text-align: right;
}

/* значок клаудфаера рисуется сам. */
.brand-logo {
  display: block;
  position: relative;
  width: 68px;
  height: 34px;
  margin-left: auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 30'%3E%3Cpath fill='%23fbad41' d='M43 25h17a1 1 0 0 0 1-1 10 10 0 0 0-10-10h-2z'/%3E%3Cpath fill='%23f38020' d='M44 25H5a1 1 0 0 1-1-1 7 7 0 0 1 8-7 10 10 0 0 1 15-9 14 14 0 0 1 26 9l-3 8z'/%3E%3Cpath fill='none' stroke='%23fafafa' stroke-width='1.3' d='M5 22h33q3 0 4-3l1-3'/%3E%3C/svg%3E") center top / 48px 23px no-repeat;
}

.brand-logo::after {
  content: "CLOUDFLARE";
  position: absolute;
  right: 0;
  bottom: 1px;
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.7px;
  line-height: 10px;
}

.brand-links {
  white-space: nowrap;
  font-size: 7px;
  line-height: 9px;
}

.captcha-box .brand-links a {
  display: inline;
  color: inherit;
  font-size: inherit;
  text-decoration: none;
}

.captcha-box .brand-links a:hover {
  text-decoration: underline;
}

@keyframes loader-hide {
  to {
    visibility: hidden;
  }
}

@keyframes widget-reveal {
  to {
    visibility: visible;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner div,
  body:has(#verify-modal:popover-open) .checkbox-mark {
    animation: none;
  }
}

/* футер (подвал) */
.footer {
  margin: 0 auto;
  padding-right: 2rem;
  padding-left: 2rem;
  width: 100%;
  max-width: 60rem;
  line-height: 1.125rem;
  font-size: 0.75rem;
}

.footer a {
  font-size: 0.75rem;
}

.footer-inner {
  display: flex;
  justify-content: center;
  border-top: 1px solid #d9d9d9;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.footer-content {
  text-align: center;
}

.footer-divider {
  border: 1px solid #d9d9d9;
  height: 12px;
}

.footer-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* адаптив для отсутпов */
@media (width <= 1024px) {
  .page-content,
  .footer {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }
}

@media (width <= 720px) {
  .page-content,
  .footer {
    padding-right: 1rem;
    padding-left: 1rem;
  }
}

/* настройки темной, белой темы */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #000;
    color: #f2f2f2;
  }

  h1,
  .challenge-heading,
  .footer-text {
    color: #f2f2f2;
  }

  a {
    color: #82b6ff;
  }

  a:hover {
    color: #b9d6ff;
  }

  a:visited {
    color: #9d94ec;
  }

  a:focus,
  a:active {
    outline: 2px solid #4693ff;
    outline-offset: 2px;
    border-radius: 2px;
  }

  a:link {
    color: #82b6ff;
  }

  .footer-divider {
    border-color: #f2f2f2;
  }

  .footer-inner {
    border-top-color: #f2f2f2;
  }

  .challenge-text {
    color: #b6b6b6;
  }

  .captcha-box {
    border-color: #555;
    background: #232323;
    color: #f2f2f2;
  }

  .checkbox-mark {
    border-color: #aaa;
    background: #232323;
  }

  .captcha-checkbox:hover .checkbox-mark {
    border-color: #f2f2f2;
  }

  .captcha-checkbox:focus-visible {
    outline-color: #4693ff;
  }

  .spinner div {
    border-top-color: #b6b6b6;
  }
}



#verify-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  border: none;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow: auto;
}

#verify-modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

#verify-modal .verify-modal-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
}

#verify-modal .verification-card {
  width: 634px;
  max-width: 100%;
  margin: 0 auto;
  padding: 27px 30px 15px;
  background: #fff;
  border: 1px solid #ededed;
  border-radius: 8px;
  box-shadow: 0 9px 31px rgb(0 0 0 / 12%);
}

#verify-modal .brand {
  display: flex;
  align-items: center;
  gap: 13px;
  height: 35px;
}

#verify-modal .brand-icon {
  flex-shrink: 0;
}

#verify-modal h1 {
  color: #080808;
  font-size: 30px;
  line-height: 35px;
  font-weight: 700;
  margin: 0;
}

#verify-modal .intro {
  font-size: 18px;
  line-height: 25px;
  margin: 11px 0 0;
}

#verify-modal .steps {
  height: 129px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 19px 0 0 10px;
  border-bottom: 2px solid #ededed;
}

#verify-modal .steps-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 20px;
  line-height: 29px;
}

#verify-modal .modal-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 3px solid transparent;
  border-right-color: #242424;
  border-bottom-color: #242424;
  border-radius: 50%;
  transform: rotate(34deg);
  animation: modal-spin 0.85s linear infinite;
}

@keyframes modal-spin {
  to {
    transform: rotate(394deg);
  }
}

#verify-modal .provider {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  padding-top: 9px;
}

#verify-modal .provider-brand {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 0 0 15px;
}

#verify-modal .provider-brand span {
  color: #222;
  font-size: 4px;
  font-weight: 800;
  letter-spacing: 1px;
}

#verify-modal .provider a {
  color: #7e9199;
  font-size: 11px;
  line-height: 17px;
  text-underline-offset: 2px;
  display: inline;
}

#verify-modal .instruction-content {
  margin: 29px 0 28px;
  overflow-wrap: anywhere;
}

#verify-modal .instruction h2 {
  margin: 0 0 16px;
  color: #202020;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.5px;
}

#verify-modal .instruction-body {
  padding: 18px 20px;
  border: 1px solid #e9e9e9;
  border-left: 3px solid #f48120;
  border-radius: 0 6px 6px 0;
  background: #fafafa;
  color: #555;
  font-size: 16px;
  line-height: 1.7;
}

#verify-modal .instruction-body p {
  margin: 0;
}

#verify-modal .instruction-body > * + * {
  margin-top: 12px;
}

#verify-modal .instruction-body ol,
#verify-modal .instruction-body ul {
  margin-bottom: 0;
  padding-left: 23px;
}

#verify-modal .instruction-body > :first-child {
  margin-top: 0;
}

#verify-modal .instruction-body li + li {
  margin-top: 8px;
}

#verify-modal .instruction-body li::marker {
  color: #a8530c;
  font-weight: 700;
}

#verify-modal .instruction-body strong {
  color: #282828;
}

#verify-modal .instruction-body kbd.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  margin: 0 1px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #333;
  background: linear-gradient(#fff, #f0f0f0);
  border: 1px solid #b8b8b8;
  border-bottom-width: 2px;
  border-radius: 4px;
  box-shadow: 0 1px 0 #d0d0d0, inset 0 -1px 0 #e0e0e0;
  vertical-align: middle;
}

#verify-modal .instruction-body kbd.key svg {
  display: block;
  color: #333;
}

#verify-modal .verification-id {
  height: 46px;
  padding: 14px 15px;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  line-height: 16px;
  color: #5b5b5b;
  background: #f5f5f5;
  border: 1px solid #dedede;
  border-radius: 5px;
  box-shadow: inset 0 1px 3px rgb(0 0 0 / 2%);
}

#verify-modal .actions {
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 2px solid #f1f1f1;
}

#verify-modal .actions p {
  margin: 0;
  color: #626262;
  font-size: 14px;
  line-height: 20px;
}

#verify-modal button {
  width: 99px;
  height: 39px;
  flex-shrink: 0;
  border: 1px solid #414141;
  border-radius: 3px;
  background: linear-gradient(#565656, #4b4b4b);
  color: #fff;
  font: 700 14px Arial, Helvetica, sans-serif;
  text-shadow: 0 1px 1px #252525;
  box-shadow: 0 1px 2px rgb(0 0 0 / 14%);
  cursor: pointer;
}

#verify-modal button:hover {
  background: #404040;
}

#verify-modal button:active {
  transform: translateY(1px);
}

#verify-modal button:focus-visible,
#verify-modal a:focus-visible {
  outline: 3px solid #f48120;
  outline-offset: 4px;
}

#verify-modal button:disabled {
  cursor: default;
  opacity: 0.8;
}

#verify-modal .card-footer {
  padding-top: 10px;
  color: #999;
  text-align: center;
  font-size: 13px;
  line-height: 20px;
}

#verify-modal .card-footer p {
  margin: 0;
}

#verify-modal .card-footer p + p {
  margin-top: 4px;
  font-size: 14px;
}

#verify-modal .card-footer a {
  color: inherit;
  text-underline-offset: 2px;
  display: inline;
  font-size: inherit;
}

#verify-modal .background-footer {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 590px;
  max-width: 90%;
  color: #92968e;
  font-size: 14px;
  white-space: nowrap;
  filter: blur(4px);
  opacity: 0.48;
  pointer-events: none;
}

#verify-modal .background-mark {
  color: #b49c27;
  font-size: 30px;
  margin-right: -16px;
}

#verify-modal .background-link {
  color: #9087b4;
}

#verify-modal .is-complete .modal-spinner {
  border-color: #36814b;
  border-top-color: transparent;
}

/* адаптив модалки */
@media (max-width: 640px) {
  #verify-modal .verify-modal-wrapper {
    padding: 28px 16px 76px;
  }

  #verify-modal .verification-card {
    padding: 24px 22px 17px;
  }

  #verify-modal h1 {
    font-size: clamp(23px, 6vw, 30px);
  }

  #verify-modal .brand {
    gap: 10px;
  }

  #verify-modal .intro {
    font-size: 16px;
    line-height: 24px;
  }

  #verify-modal .steps {
    padding-left: 0;
    height: 129px;
    gap: 8px;
  }

  #verify-modal .steps-title {
    font-size: 16px;
    gap: 9px;
    white-space: nowrap;
  }

  #verify-modal .provider a {
    font-size: 10px;
  }

  #verify-modal .instruction-content {
    margin: 25px 0;
  }

  #verify-modal .instruction h2 {
    font-size: 24px;
    letter-spacing: -0.3px;
    margin-bottom: 14px;
  }

  #verify-modal .instruction-body {
    padding: 15px 16px;
  }

  #verify-modal .verification-id {
    font-size: 11px;
    padding: 14px 10px;
  }

  #verify-modal .actions {
    min-height: 84px;
    gap: 10px;
  }

  #verify-modal .actions p {
    font-size: 13px;
  }

  #verify-modal button {
    width: 85px;
  }

  #verify-modal .card-footer,
  #verify-modal .card-footer p + p {
    font-size: 11px;
  }

  #verify-modal .background-footer {
    gap: 13px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #verify-modal .modal-spinner {
    animation: none;
  }
}
