@font-face {
  font-family: "Lab Grotesque";
  src: url("https://s.kontur.ru/common-v2/fonts/LabGrotesque/LabGrotesque-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lab Grotesque";
  src: url("https://s.kontur.ru/common-v2/fonts/LabGrotesque/LabGrotesque-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lab Grotesque";
  src: url("https://s.kontur.ru/common-v2/fonts/LabGrotesque/LabGrotesque-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #ff5f20;
  --accent-hover: #e85215;
  --ink: #242529;
  --muted: #777a76;
  --soft-muted: #9b9b95;
  --page: #f4f2ed;
  --panel: #ffffff;
  --panel-soft: #f4f8f3;
  --line: #e3ded5;
  --green: #079637;
  --green-dark: #08752d;
  --green-soft: #ebf9ee;
  --green-line: #b9e8c4;
  --red: #e9252a;
  --red-dark: #c8171c;
  --red-soft: #fff1f1;
  --red-line: #ffc4c4;
  --shadow-card: 0 28px 80px rgba(39, 34, 25, 0.12);
  --shadow-button: 0 24px 54px rgba(39, 34, 25, 0.14);
  --radius-lg: 30px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1260px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-family: "Lab Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2 {
  margin: 0;
}

.extern-header {
  position: relative;
  z-index: 80;
  min-width: 320px;
  border-bottom: 1px solid #dedbd4;
  background: #ffffff;
}

.extern-header-inner {
  position: relative;
  display: flex;
  width: min(100% - 96px, var(--container));
  min-height: 70px;
  align-items: center;
  gap: 58px;
  margin: 0 auto;
}

.extern-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  color: #111111;
  font-size: 26px;
  font-weight: 700;
  line-height: 32px;
  white-space: nowrap;
}

.extern-logo span:last-child {
  margin-left: 8px;
  color: var(--accent);
  font-weight: 400;
}

.extern-nav {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 62px;
}

.extern-nav-item {
  display: flex;
  min-height: 70px;
  align-items: center;
}

.extern-nav-link,
.extern-login {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  background: transparent;
  color: #151515;
  font-size: 17px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
}

.extern-nav-link:hover,
.extern-login:hover,
.extern-menu a:hover {
  color: var(--accent-hover);
}

.extern-nav-link-menu {
  gap: 8px;
}

.extern-nav-link-menu span {
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.extern-menu {
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 68px;
  min-height: 336px;
  padding: 24px 28px;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(34, 34, 34, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.extern-nav-item-menu:hover .extern-menu,
.extern-nav-item-menu:focus-within .extern-menu {
  opacity: 1;
  pointer-events: auto;
}

.extern-menu-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.extern-menu a {
  color: #333333;
  font-size: 16px;
  line-height: 22px;
}

.extern-menu .extern-menu-title {
  color: #303030;
  font-weight: 700;
}

.extern-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 44px;
  margin-left: auto;
}

.extern-connect {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  border: 2px solid var(--accent);
  border-radius: 9999px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
}

.extern-connect:hover {
  background: #fff5ef;
}

.page-shell {
  min-height: calc(100vh - 70px);
  padding: 32px 0 80px;
  background:
    radial-gradient(circle at 50% 180px, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0) 360px),
    var(--page);
}

.survey-v2 {
  --content-x: 100px;
  width: min(100% - 96px, var(--container));
  margin: 0 auto;
}

.survey-topline {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 32px;
  width: 100%;
  margin: 0 auto 20px;
  padding: 0 var(--content-x);
}

.survey-kicker {
  padding-top: 4px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
}

.survey-intro {
  display: grid;
}

.group-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.group-tab {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: transparent;
  color: var(--green-dark);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  white-space: nowrap;
}

.group-tab.is-active {
  font-weight: 700;
}

.progress-widget {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 350px;
  color: var(--muted);
  font-size: 16px;
  line-height: 22px;
}

.progress-line {
  display: grid;
  grid-template-columns: auto minmax(200px, 280px);
  align-items: center;
  gap: 18px;
  width: 100%;
}

.progress-line strong {
  color: #1f1f1f;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 9999px;
  background: #dedbd4;
}

.progress-track span {
  display: block;
  width: 6.25%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 220ms ease;
}

.quiz-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-card);
}

.question-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 264px);
  gap: 40px;
  align-items: center;
  min-height: 126px;
  padding: 38px var(--content-x) 24px;
  background: var(--panel);
}

.question-panel h1 {
  max-width: 620px;
  color: var(--ink);
  font-size: 18.67px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
}

.question-panel strong {
  font-weight: 700;
}

.choice-feedback {
  justify-self: end;
  width: min(100%, 264px);
  height: 96px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 16px 18px;
  border: 1px solid #dfe4dd;
  border-radius: 18px;
  background: #ffffff;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 16px 38px rgba(39, 34, 25, 0.09);
}

.choice-feedback.is-visible {
  visibility: visible;
  animation: feedback-pop-in 320ms ease both;
}

.choice-feedback.is-hiding {
  visibility: visible;
  animation: feedback-fade-out 420ms ease both;
}

.choice-feedback-add {
  border-color: var(--green-line);
  background: #f2fbf4;
  color: var(--green-dark);
}

.choice-feedback-skip {
  border-color: var(--red-line);
  background: #fff4f4;
  color: var(--red-dark);
}


@keyframes feedback-pop-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes feedback-fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.bonus-panel {
  height: 280px;
  overflow: hidden;
  padding: 32px var(--content-x) 48px;
  border-top: 1px solid #dfe4dd;
  border-bottom: 1px solid #dfe4dd;
  background: var(--panel-soft);
}

.bonus-panel.is-entering {
  animation: bonus-fade-in 500ms ease both;
}

@keyframes bonus-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.bonus-group {
  margin-bottom: 14px;
  color: var(--green-dark);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  text-transform: lowercase;
}

.bonus-panel h2 {
  max-width: 940px;
  color: var(--ink);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.bonus-panel p:last-child {
  max-width: 940px;
  margin-top: 11px;
  color: #6d716d;
  font-size: 24px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.decision-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 34px 0 0;
}

.decision-button {
  display: flex;
  height: 92px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px 32px;
  border-radius: 20px;
  color: #ffffff;
  cursor: pointer;
  font-size: 29px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: background-color 160ms ease;
}

.decision-button:disabled {
  cursor: default;
  opacity: 0.72;
}

.decision-button-add {
  border-radius: 0 20px 20px 0;
  background: var(--green);
}

.decision-button-add:hover {
  background: var(--green-dark);
}

.decision-button-skip {
  border-radius: 20px 0 0 20px;
  background: #f25b62;
}

.decision-button-skip:hover {
  background: #e24d54;
}

.decision-button:focus-visible,
.summary-item button:focus-visible,
.modal-button:focus-visible,
.modal-edit-button:focus-visible,
.modal-return-link:focus-visible,
.extern-connect:focus-visible,
.extern-nav-link:focus-visible,
.extern-login:focus-visible,
.extern-logo:focus-visible {
  outline: 3px solid rgba(255, 95, 32, 0.38);
  outline-offset: 4px;
}

.autosave-note {
  margin: 28px auto 28px;
  color: var(--soft-muted);
  font-size: 16px;
  line-height: 22px;
  text-align: center;
}

.choice-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.summary-card {
  min-height: 180px;
  padding: 36px max(20px, calc(var(--content-x) - 20px)) 48px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
}

.summary-card h2 {
  margin-left: 20px;
  margin-bottom: 24px;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
}

.summary-card-add h2 {
  color: var(--green);
}

.summary-card-skip h2 {
  color: var(--red);
}

.summary-card-status {
  grid-column: 1 / -1;
  min-height: 120px;
  padding-top: 24px;
  padding-bottom: 28px;
}

.summary-card-status h2 {
  color: var(--muted);
}

.summary-list {
  display: grid;
  gap: 12px;
}

.choice-results-frame {
  display: block;
  width: 100%;
  min-height: 68px;
  border: 0;
  background: transparent;
}

.summary-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
}

.summary-item span {
  overflow-wrap: anywhere;
}

.summary-item button {
  padding: 4px 0;
  background: transparent;
  color: #818181;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  text-decoration: none;
}

.summary-item button:hover {
  color: #333333;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.summary-item-add {
  border: 1px solid var(--green-line);
  background: var(--green-soft);
  color: var(--green-dark);
}

.summary-item-skip {
  border: 1px solid var(--red-line);
  background: var(--red-soft);
  color: var(--red-dark);
}

.empty-state {
  margin-left: 20px;
  color: var(--soft-muted);
  font-size: 16px;
  line-height: 22px;
}

body.modal-open {
  overflow: hidden;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(34, 34, 34, 0.46);
}

.thanks-modal {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(100%, 760px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 40px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 20px 54px rgba(34, 34, 34, 0.2);
  text-align: center;
}

.thanks-modal h2 {
  max-width: 500px;
  margin-top: 10px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.modal-kicker {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.thanks-modal > span {
  display: block;
  max-width: 520px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 22px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.modal-tag {
  display: inline-flex;
  max-width: 240px;
  min-height: 32px;
  align-items: center;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 13px;
  line-height: 18px;
  overflow-wrap: anywhere;
}

.modal-tag-add {
  border: 1px solid var(--green-line);
  background: var(--green-soft);
  color: var(--green-dark);
}

.modal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 26px;
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  text-decoration: none;
}

.modal-button:hover {
  background: var(--accent-hover);
}

.modal-return-link {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.modal-return-link:hover {
  color: var(--ink);
}

.modal-edit-button {
  margin-top: 10px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 20px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.modal-edit-button:hover {
  color: var(--ink);
}

@media (max-width: 1100px) {
  .extern-header-inner {
    width: min(100% - 96px, 960px);
    gap: 42px;
  }

  .extern-nav {
    gap: 44px;
  }

  .extern-actions {
    gap: 28px;
  }

  .survey-v2 {
    --content-x: 70px;
    width: min(100% - 96px, 960px);
  }

  .survey-topline {
    width: 100%;
  }

  .question-panel {
    padding: 38px var(--content-x) 24px;
  }

  .bonus-panel {
    height: 280px;
    padding: 32px var(--content-x) 48px;
  }

  .bonus-panel h2 {
    font-size: 34px;
  }

  .decision-panel {
    gap: 40px;
  }

  .summary-card {
    padding: 36px max(20px, calc(var(--content-x) - 20px)) 42px;
  }
}

@media (max-width: 820px) {
  .extern-header-inner {
    width: min(100% - 80px, 864px);
    gap: 34px;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
  }

  .extern-header-inner::-webkit-scrollbar {
    display: none;
  }

  .extern-nav {
    flex: 0 0 auto;
    gap: 44px;
  }

  .extern-menu {
    left: 30px;
    right: 30px;
    grid-template-columns: 1fr 1fr;
    row-gap: 22px;
  }

  .page-shell {
    padding-top: 30px;
  }

  .survey-v2 {
    --content-x: 70px;
    width: min(100% - 80px, 864px);
  }

  .survey-topline {
    grid-template-columns: 1fr auto;
    margin-bottom: 22px;
  }

  .progress-widget {
    min-width: 290px;
  }

  .progress-line {
    grid-template-columns: auto minmax(160px, 220px);
  }

  .question-panel {
    grid-template-columns: minmax(0, 1fr);
    padding: 38px var(--content-x) 24px;
  }

  .question-panel h1 {
    font-size: 16.67px;
  }

  .choice-feedback {
    justify-self: start;
    width: min(100%, 360px);
  }

  .bonus-panel {
    height: 300px;
    padding: 34px var(--content-x) 44px;
  }

  .bonus-panel h2 {
    font-size: 33px;
  }

  .bonus-panel p:last-child {
    margin-top: 11px;
    font-size: 22px;
  }

  .decision-panel {
    gap: 40px;
    padding-top: 34px;
  }

  .decision-button {
    height: 90px;
    padding: 22px 26px;
    font-size: 25px;
  }

  .choice-summary {
    gap: 40px;
  }

  .summary-card {
    padding: 34px max(20px, calc(var(--content-x) - 20px)) 36px;
  }
}

@media (max-width: 640px) {
  .extern-header-inner {
    width: calc(100% - 40px);
    min-height: 70px;
    gap: 18px;
  }

  .extern-logo {
    font-size: 22px;
    line-height: 28px;
  }

  .extern-logo span:last-child {
    margin-left: 6px;
  }

  .extern-nav,
  .extern-login {
    display: none;
  }

  .extern-actions {
    margin-left: auto;
  }

  .extern-connect {
    min-height: 38px;
    padding: 8px 22px;
    font-size: 12px;
  }

  .page-shell {
    padding: 22px 0 42px;
  }

  .survey-v2 {
    --content-x: 20px;
    width: calc(100% - 40px);
  }

  .survey-topline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 12px;
  }

  .survey-kicker {
    font-size: 16px;
    line-height: 22px;
  }

  .progress-widget {
    justify-items: start;
    min-width: 0;
    width: 100%;
  }

  .progress-line {
    grid-template-columns: auto 1fr;
    gap: 14px;
    width: 100%;
  }

  .progress-line strong {
    font-size: 16px;
  }

  .progress-remaining,
  #progress-remaining {
    justify-self: center;
    font-size: 16px;
  }

  .quiz-card {
    border-radius: 28px;
  }

  .question-panel {
    padding: 26px var(--content-x) 18px;
  }

  .question-panel h1 {
    font-size: 12.67px;
    line-height: 1.35;
  }

  .choice-feedback {
    height: 72px;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 16px;
  }

  .bonus-panel {
    height: 340px;
    padding: 22px var(--content-x) 12px;
  }

  .bonus-group {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 22px;
  }

  .bonus-panel h2 {
    font-size: 25px;
    line-height: 1.24;
  }

  .bonus-panel p:last-child {
    margin-top: 7px;
    font-size: 18px;
    line-height: 1.32;
  }

  .decision-panel {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 0 0;
  }

  .decision-button {
    height: 62px;
    justify-content: flex-start;
    padding: 18px 20px;
    border-radius: 18px;
    font-size: 20px;
    text-align: left;
  }

  .decision-button-add,
  .decision-button-skip {
    border-radius: 18px;
  }

  .autosave-note {
    margin: 26px 20px 24px;
    font-size: 16px;
    line-height: 22px;
    text-align: left;
  }

  .choice-summary {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .summary-card {
    min-height: 180px;
    padding: 30px max(20px, calc(var(--content-x) - 20px)) 28px;
    border-radius: 18px;
  }

  .summary-card h2 {
    margin-left: 10px;
    margin-bottom: 14px;
    font-size: 16px;
  }

  .summary-item {
    min-height: 58px;
    padding: 12px 10px;
    gap: 10px;
    font-size: 13px;
    line-height: 18px;
  }

  .summary-item button {
    font-size: 11px;
  }

  .empty-state {
    margin-left: 10px;
  }

  .thanks-modal {
    padding: 30px 20px;
  }

  .thanks-modal h2 {
    font-size: 24px;
  }

  .modal-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bonus-panel.is-entering {
    animation: none;
  }

  .choice-feedback.is-visible,
  .choice-feedback.is-hiding {
    animation: none;
  }

  .choice-feedback.is-visible {
    opacity: 1;
  }

  .choice-feedback.is-hiding {
    opacity: 0;
  }
}

@media (max-width: 380px) {
  .survey-v2 {
    width: calc(100% - 28px);
  }

  .extern-header-inner {
    width: calc(100% - 28px);
  }

  .extern-logo {
    font-size: 20px;
  }

  .extern-connect {
    padding: 7px 16px;
  }

  .question-panel h1 {
    font-size: 12.67px;
  }

  .bonus-panel h2 {
    font-size: 23px;
  }
}
