/*
  Файл задает внешний вид статической страницы проверки "Я не робот".
  Компоновка построена как единая premium challenge-сцена без внешних зависимостей.
*/

:root {
  --captcha-width: 200px;
  --captcha-height: 70px;
  --color-page: #ffffff;
  --color-ink: #111111;
  --color-muted: #626875;
  --color-border: #d8dce3;
  --color-soft: #f6f7f9;
  --color-brand: #ffd400;
  --color-brand-dark: #151515;
  --shadow-stage: 0 32px 90px rgba(20, 24, 32, 0.14);
  --shadow-soft: 0 16px 40px rgba(17, 17, 17, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
  background: var(--color-page);
}

body {
  min-width: 320px;
  height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--color-ink);
  font-family:
    Arial,
    "Helvetica Neue",
    Helvetica,
    sans-serif;
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.035) 1px, transparent 1px) center / 72px 72px,
    linear-gradient(180deg, rgba(255, 212, 0, 0.12), rgba(255, 255, 255, 0) 34%),
    linear-gradient(135deg, #fffdf2 0%, #ffffff 42%, #f7f8fb 100%);
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  position: relative;
  display: grid;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  padding: 14px;
  place-items: center;
}

.page-shell::before,
.page-shell::after {
  position: absolute;
  z-index: 0;
  width: 34vw;
  min-width: 420px;
  max-width: 760px;
  height: 72vh;
  border: 1px solid rgba(216, 220, 227, 0.48);
  content: "";
  pointer-events: none;
}

.page-shell::before {
  left: -11vw;
  top: 8vh;
  transform: rotate(-9deg);
  background:
    linear-gradient(180deg, rgba(255, 212, 0, 0.18), rgba(255, 255, 255, 0.42)),
    repeating-linear-gradient(0deg, transparent 0 44px, rgba(21, 21, 21, 0.045) 45px);
}

.page-shell::after {
  right: -12vw;
  bottom: 4vh;
  transform: rotate(8deg);
  background:
    linear-gradient(180deg, rgba(246, 247, 249, 0.68), rgba(255, 255, 255, 0.3)),
    repeating-linear-gradient(90deg, transparent 0 52px, rgba(255, 212, 0, 0.16) 53px);
}

.page-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.atmosphere-line {
  position: absolute;
  width: 240px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(21, 21, 21, 0.2), transparent);
}

.atmosphere-line-left {
  left: 6vw;
  top: 22vh;
}

.atmosphere-line-right {
  right: 8vw;
  bottom: 24vh;
}

.challenge-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(100%, 1040px);
  height: min(100%, 760px);
  max-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(216, 220, 227, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-stage);
}

.hero-scene {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(216, 220, 227, 0.8);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(246, 247, 249, 0.8)),
    linear-gradient(90deg, rgba(255, 212, 0, 0.16), rgba(255, 255, 255, 0) 48%),
    #f8f9fb;
}

.hero-scene::before {
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(216, 220, 227, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(#eef0f4 1px, transparent 1px) 0 82px / 100% 46px,
    linear-gradient(90deg, rgba(255, 212, 0, 0.18), transparent 46%);
  content: "";
}

.scene-img {
  position: absolute;
  height: auto;
  filter: drop-shadow(0 18px 20px rgba(17, 17, 17, 0.12));
}

.scene-peek {
  top: 20px;
  left: 50%;
  z-index: 2;
  width: min(70%, 640px);
  transform: translateX(-50%);
}

.scene-inspector {
  right: 52px;
  bottom: -24px;
  z-index: 3;
  width: min(24%, 210px);
}

.scene-watchers {
  left: 56px;
  bottom: 12px;
  z-index: 3;
  width: min(31%, 280px);
  opacity: 0.98;
}

.challenge-panel {
  display: grid;
  justify-items: center;
  padding: 28px 36px 32px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92)),
    #ffffff;
}

h1 {
  max-width: 720px;
  margin: 0;
  color: #3f4147;
  font-size: 42px;
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: 0;
  white-space: nowrap;
}

.verification-note {
  max-width: 560px;
  margin: 8px 0 22px;
  color: #626875;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.45;
}

.verification-control {
  display: grid;
  justify-items: center;
  min-width: 288px;
  width: min(100%, 360px);
  padding: 0;
  border: 1px solid rgba(216, 220, 227, 0.76);
  border-radius: 4px;
  background:
    linear-gradient(180deg, #ffffff, #fbfbfc),
    var(--color-soft);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.06);
}

.scaptcha-frame {
  display: block;
  width: 100%;
  height: 104px;
  min-height: 104px;
  border: 0;
}

@media (min-width: 1600px) {
  .page-shell {
    padding: 64px;
  }

  .challenge-stage {
    width: min(1180px, calc(100vw - 128px));
    height: min(100%, 960px);
  }

  .hero-scene {
    min-height: 0;
  }

  .scene-peek {
    width: min(76%, 860px);
  }

  .scene-watchers {
    left: 72px;
    width: min(34%, 390px);
  }

  .scene-inspector {
    right: 70px;
    width: min(27%, 300px);
  }

  .challenge-panel {
    padding-top: 50px;
    padding-bottom: 58px;
  }
}

@media (min-width: 2400px) {
  .page-shell {
    padding: 92px;
  }

  .challenge-stage {
    width: min(1320px, calc(100vw - 240px));
    height: min(100%, 1040px);
  }

  .hero-scene {
    min-height: 0;
  }

  .scene-peek {
    width: min(74%, 960px);
  }

  .scene-watchers {
    left: 96px;
    bottom: 24px;
    width: min(33%, 430px);
  }

  .scene-inspector {
    right: 94px;
    bottom: -20px;
    width: min(26%, 340px);
  }

  .challenge-panel {
    padding: 58px 64px 68px;
  }

}

@media (max-width: 760px) {
  .page-shell {
    padding: 16px;
    align-items: center;
  }

  .page-shell::before,
  .page-shell::after,
  .page-atmosphere {
    display: none;
  }

  .challenge-stage {
    width: 100%;
    height: 100%;
  }

  .hero-scene {
    min-height: 0;
  }

  .hero-scene::before {
    inset: 16px;
  }

  .scene-peek {
    top: 20px;
    width: min(96%, 460px);
  }

  .scene-inspector {
    right: 6px;
    bottom: -18px;
    width: min(38%, 176px);
  }

  .scene-watchers {
    left: 12px;
    bottom: 12px;
    width: min(48%, 210px);
  }

  .challenge-panel {
    padding: 30px 22px 34px;
  }

  h1 {
    max-width: 100%;
    font-size: 24px;
  }

  .verification-note {
    max-width: 100%;
    font-size: 16px;
  }

}

@media (max-width: 760px) and (orientation: portrait) {
  .page-shell {
    padding: 12px;
  }

  .challenge-stage {
    height: min(100%, 620px);
  }

  .hero-scene::before {
    inset: 10px;
  }

  .scene-peek {
    top: 6px;
    width: min(92%, 390px);
  }

  .scene-inspector {
    right: 14px;
    bottom: 16px;
    width: min(34%, 142px);
  }

  .scene-watchers {
    left: 18px;
    bottom: 28px;
    width: min(42%, 156px);
  }

  .challenge-panel {
    padding: 22px 18px 24px;
  }
}

@media (max-width: 390px) {
  .page-shell {
    padding: 0;
  }

  .challenge-stage {
    height: min(100%, 600px);
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .challenge-panel {
    padding-right: 18px;
    padding-left: 18px;
  }

  h1 {
    font-size: 22px;
  }

  .verification-control {
    min-width: 0;
    width: 100%;
  }

}

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