@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/montserrat-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/montserrat-latin.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --rr-blue: #014898;
  --rr-blue-light: #0e65b7;
  --rr-sky: #69b3e7;
  --rr-orange: #e54a1e;
  --rr-green: #1ab759;
  --rr-ink: #25282b;
  --rr-grey: #52575c;
  --rr-line: #cacccf;
  --rr-bg: #f5f7fa;
  font-family: Montserrat, sans-serif;
  color: var(--rr-ink);
  background: var(--rr-bg);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  line-height: 1.6;
}
[hidden] {
  display: none !important;
}
.demo {
  padding: 12px 20px;
  text-align: center;
  background: #fff0b3;
  font-size: 14px;
  font-weight: 600;
}
.header {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--rr-blue);
  font-size: 13px;
}
.logo-slot {
  width: 180px;
  height: 48px;
  flex: 0 0 180px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--rr-line);
  border-radius: 8px;
  color: var(--rr-grey);
}
.card {
  max-width: 760px;
  margin: 16px auto 32px;
  padding: 40px;
  border: 1px solid #e5e9ee;
  border-radius: 8px;
  background: white;
  box-shadow: 0 8px 32px #0148980d;
  overflow-wrap: anywhere;
}
h1 {
  margin: 12px 0 20px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.22;
  color: var(--rr-blue);
  font-weight: 700;
}
h1:focus {
  outline: none;
}
h2 {
  font-size: 21px;
  line-height: 1.4;
  color: var(--rr-blue);
}
p {
  margin: 12px 0 20px;
}
.lead {
  font-size: 17px;
}
.eyebrow {
  color: var(--rr-blue-light);
  font-size: 13px;
  font-weight: 600;
}
.hint,
.footer {
  color: var(--rr-grey);
  font-size: 14px;
}
.footer {
  text-align: center;
  padding: 0 20px;
}
.offer,
.result,
.consent {
  padding: 20px;
  margin: 24px 0;
  border-radius: 8px;
  background: var(--rr-bg);
}
.offer {
  border-left: 4px solid var(--rr-sky);
}
.result {
  border-left: 4px solid var(--rr-orange);
}
.result.has {
  border-color: var(--rr-green);
}
.result li {
  margin: 12px 0;
}
.result ul {
  padding-left: 22px;
}
.consent {
  font-size: 14px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 28px 0;
  min-width: 0;
}
legend {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 12px;
}
.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  margin: 10px 0;
  min-height: 52px;
  border: 1px solid var(--rr-line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
}
.choice:has(input:checked) {
  border-color: var(--rr-blue-light);
  background: #eef6fc;
}
.choice input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 2px 0;
  accent-color: var(--rr-blue-light);
}
.field {
  display: block;
  margin: 22px 0;
  font-size: 15px;
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  margin-top: 8px;
  border: 1px solid var(--rr-line);
  border-radius: 8px;
  padding: 12px;
  background: white;
  color: var(--rr-ink);
  font: inherit;
  font-size: 16px;
}
textarea {
  min-height: 100px !important;
  resize: vertical;
}
button {
  min-height: 52px;
  padding: 12px 22px;
  border: 0;
  border-radius: 8px;
  background: var(--rr-orange);
  color: white;
  font:
    600 15px/1.5 Montserrat,
    sans-serif;
  cursor: pointer;
}
button:hover {
  filter: brightness(0.93);
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button.secondary {
  background: var(--rr-blue-light);
}
:focus-visible {
  outline: 3px solid var(--rr-sky);
  outline-offset: 3px;
}
.actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-top: 16px;
  background: white;
}
.actions button[type='submit'] {
  flex: 1;
}
.error {
  color: #a5290a;
  font-weight: 500;
}
@media (max-width: 600px) {
  .header {
    padding: 20px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .card {
    margin: 0 12px 24px;
    padding: 24px 18px;
  }
  .offer,
  .result,
  .consent {
    padding: 16px;
  }
  /* Прилипающая панель кнопок на телефоне закрывала поля формы — проверка на 390px
     22.09.2026 показала поле «Специальность» под панелью. Кнопки оставлены в потоке,
     в конце блока: блок вопросов короткий, прокрутка до них небольшая. */
  .actions {
    position: static;
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
  .actions button {
    padding: 12px;
  }
  #start {
    width: 100%;
  }
}
