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

:root {
  --graphite: #35353A;
  --graphite-2: #4A4A50;
  --graphite-soft: #A8A8AD;
  --line: #DCDCDF;
  --bg: #F4F4F5;
  --orange: #EF7F1A;
  --white: #FFFFFF;
  --font: 'Gilroy', 'Manrope', Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); font-weight: 500; color: var(--graphite); background: var(--bg); line-height: 1.4; font-size: 17px; text-align: left; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

.top { background: var(--graphite); color: var(--white); position: relative; overflow: hidden; }
.top-inner { max-width: 760px; margin: 0 auto; padding: 22px 20px 30px; position: relative; z-index: 1; }
.top-dots { position: absolute; right: -40px; bottom: -40px; width: 260px; height: 160px; z-index: 0;
  background-image: radial-gradient(var(--orange) 2.2px, transparent 2.6px); background-size: 14px 14px; opacity: .55;
  -webkit-mask-image: linear-gradient(115deg, transparent 20%, #000 80%); mask-image: linear-gradient(115deg, transparent 20%, #000 80%); }
.logo { display: inline-flex; align-items: center; height: 26px; margin-bottom: 26px; }
.logo img { height: 26px; display: block; }
.wordmark { font-weight: 800; letter-spacing: .32em; font-size: 20px; color: var(--white); }
.top h1 { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 26px; line-height: 1.1; margin: 0 0 10px; }
.top .sub { color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 15px; }
.accent { width: 48px; height: 4px; background: var(--orange); margin: 14px 0 0; }

.wrap { max-width: 760px; margin: 0 auto; padding: 22px 20px 60px; }
.card { background: var(--white); padding: 22px 20px; margin-bottom: 14px; border: 1px solid var(--line); }
.card h2 { font-size: 19px; font-weight: 700; margin: 0 0 6px; }
.hint { color: #6B6B70; font-size: 15px; margin: 0 0 14px; }
.num { color: var(--orange); font-weight: 800; margin-right: 6px; }

.lang { display: flex; gap: 0; margin: 4px 0 0; }
.lang button { flex: 1; border: 2px solid var(--graphite); background: var(--white); padding: 14px; font-weight: 700; cursor: pointer; }
.lang button + button { border-left: none; }
.lang button.on { background: var(--graphite); color: var(--white); }

.opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 12px; border: 1px solid var(--line); margin-bottom: 8px; cursor: pointer; background: var(--white); }
.opt input { margin: 3px 0 0; width: 20px; height: 20px; accent-color: var(--orange); flex: none; }
.opt.on { border-color: var(--graphite); background: #F7F7F8; }
.opt.dis { opacity: .45; cursor: not-allowed; }

.scale { display: grid; grid-template-columns: repeat(11, 1fr); gap: 6px; }
.scale button { border: 1px solid var(--graphite); background: var(--white); padding: 14px 0; font-weight: 800; font-size: 18px; cursor: pointer; }
.scale button.on { background: var(--orange); border-color: var(--orange); color: var(--white); }
.scale-legend { display: flex; justify-content: space-between; font-size: 14px; color: #6B6B70; margin-top: 8px; gap: 12px; }
@media (max-width: 560px) {
  .scale { grid-template-columns: repeat(6, 1fr); }
  .top h1 { font-size: 22px; }
}

textarea, input[type=text], input[type=password] { width: 100%; border: 1px solid var(--graphite-soft); padding: 12px; background: var(--white); border-radius: 0; }
textarea { min-height: 110px; resize: vertical; }
textarea:focus, input:focus, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }

.btn { display: inline-block; background: var(--graphite); color: var(--white); border: none; padding: 16px 28px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.btn:hover { background: var(--graphite-2); }
.btn:disabled { opacity: .5; cursor: wait; }
.btn.ghost { background: var(--white); color: var(--graphite); border: 2px solid var(--graphite); }
.err { color: #B3261E; font-weight: 700; margin: 10px 0 0; display: none; }
.err.show { display: block; }
.q-missing { border-color: var(--orange); box-shadow: inset 4px 0 0 var(--orange); }

.msg { background: var(--white); border: 1px solid var(--line); padding: 30px 22px; }
.msg h2 { text-transform: uppercase; letter-spacing: .04em; font-weight: 800; margin: 0 0 10px; }
.hidden { display: none !important; }
ul.plain { margin: 6px 0 0; padding-left: 20px; }
.foot { color: #6B6B70; font-size: 13px; margin-top: 20px; }
.pole { font-size: 15px; color: #4A4A50; margin: 10px 0; }
.mrow { padding: 12px 0; border-top: 1px solid var(--line); }
.mrow:first-of-type { border-top: none; }
.mlabel { margin-bottom: 8px; }
.mscale { grid-template-columns: repeat(5, 1fr); max-width: 360px; }
.mscale button { padding: 10px 0; font-size: 16px; }
.opt-tag { font-weight: 500; font-size: 14px; color: #8A8A90; }
.strong { font-weight: 700; margin-bottom: 0; }
