/* === МЕНЬШЕ ЗАГОЛОВКИ ТОЛЬКО НА МОБИЛЬНЫХ === */
@media (max-width: 767.98px) {

  /* Большой заголовок стартовой страницы */
  #welcome-container .survey-name.large-heading,
  .survey-name.large-heading,
  .large-heading {
    font-size: 1.9rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.5rem !important;
  }

  /* Заголовок группы */
  .group-container .group-title {
    font-size: 1.7rem !important;
    line-height: 1.25 !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }

  /* Заголовок вопроса */
  .question-container .question-title,
  .question-container .question-title-container,
  .question-container [id^="question-text-container-"] {
    font-size: 1.08rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.35rem !important;
  }

  /* Подсказки под вопросом */
  .question-container .help-block,
  .ls-questionhelp,
  .questionhelp {
    font-size: 0.92rem !important;
    line-height: 1.4 !important;
  }
}

/* === PUBLIC RESEARCH HOME === */
.research-home-body {
  --research-bg: #ffffff;
  --research-accent: #fff2d5;
  --research-accent-hover: #ffe6b3;
  --research-text: #151515;
  --research-muted: #6f6f6f;
  --research-border: #ececec;
  --research-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  background: var(--research-bg) !important;
  color: var(--research-text);
  font-family: Inter, "IBM Plex Sans", Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

.research-home-body .top-container,
.research-home-body .navbar,
.research-home-body .ls-footer,
.research-home-body footer {
  display: none !important;
}

.research-home,
.research-home * {
  box-sizing: border-box;
}

.research-home {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

.research-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 46px;
}

.research-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--research-text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
}

.research-brand > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.research-topbar__note {
  flex: 0 0 auto;
  color: var(--research-muted);
  font-size: 15px;
}

.research-hero {
  margin-bottom: 26px;
}

.research-hero__content {
  padding: clamp(26px, 4.6vw, 48px);
  border: 1px solid var(--research-border);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, var(--research-accent) 0, rgba(255, 242, 213, 0) 42%),
    #ffffff;
  box-shadow: var(--research-shadow);
}

.research-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-bottom: 24px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--research-accent);
  color: var(--research-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.research-section__eyebrow {
  display: none;
}

.research-hero h1 {
  max-width: 820px;
  margin: 0 0 22px;
  color: var(--research-text);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: 0;
}

.research-lead,
.research-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--research-muted);
  font-size: 18px;
  line-height: 1.6;
}

.research-hero__aside,
.research-stat__label,
.research-stat__value,
.research-stat__hint,
.research-count,
.research-card__top,
.research-badge,
.research-number,
.research-card__desc {
  display: none !important;
}

.research-language {
  display: flex;
  justify-content: center;
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--research-border);
}

.research-section {
  padding: 0;
}

.research-section__head {
  margin-bottom: 18px;
}

.research-section h2 {
  margin: 0;
  color: var(--research-text);
  font-size: 26px;
  font-weight: 850;
  line-height: 1.16;
  letter-spacing: 0;
}

.research-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.research-card {
  min-height: auto;
  padding: 24px;
  border: 1px solid var(--research-border);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.research-card:hover {
  transform: translateY(-3px);
  border-color: #e6cb86;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.08);
}

.research-card__title,
.research-card h3 {
  margin: 0;
  max-width: 100%;
  color: var(--research-text);
  font-size: 20px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

.research-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.research-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  color: #ffffff !important;
  background: var(--research-text);
  font-weight: 800;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.research-card__button--soft {
  color: var(--research-text) !important;
  background: var(--research-accent);
}

.research-card__button:hover,
.research-card__button:focus {
  color: #ffffff !important;
  background: var(--research-text);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
}

.research-card__button--soft:hover,
.research-card__button--soft:focus {
  color: var(--research-text) !important;
  background: var(--research-accent-hover);
  box-shadow: none;
}

.research-card__button:focus-visible {
  outline: 4px solid rgba(255, 242, 213, 0.95);
  outline-offset: 3px;
}

.research-empty {
  padding: 36px;
  border: 1px solid var(--research-border);
  border-radius: 22px;
  color: var(--research-muted);
  text-align: center;
  background: #fafafa;
}

.research-empty h3 {
  margin: 0 0 8px;
  color: var(--research-text);
  font-size: 22px;
  font-weight: 800;
}

.research-empty p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--research-muted);
  line-height: 1.6;
}

.research-empty a {
  color: var(--research-text);
  font-weight: 800;
}

.research-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 20, 20, 0.34);
  backdrop-filter: blur(8px);
}

.research-modal-backdrop.active {
  display: flex;
}

.research-modal {
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--research-shadow);
}

.research-modal__header {
  position: relative;
  flex: 0 0 auto;
  padding: 30px 30px 24px;
  border-bottom: 1px solid var(--research-border);
}

.research-modal__header h2 {
  margin: 0;
  padding-right: 48px;
  color: var(--research-text);
  font-size: 32px;
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
}

.research-modal__close {
  position: absolute;
  right: 22px;
  top: 22px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f6f6f6;
  color: var(--research-text);
  cursor: pointer;
  font: inherit;
  font-size: 26px;
  line-height: 1;
}

.research-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 26px 30px 30px;
  overflow: hidden;
}

.research-modal__content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.research-modal__status {
  color: var(--research-muted);
  font-size: 17px;
  line-height: 1.55;
}

.research-modal__frame {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 160px;
  margin-bottom: 24px;
  border: 0;
  background: #ffffff;
}

.research-modal__text {
  margin-bottom: 24px;
  color: var(--research-muted);
  font-size: 17px;
  line-height: 1.65;
  white-space: pre-line;
}

.research-modal__section {
  margin-bottom: 22px;
}

.research-modal__section h3 {
  margin: 0 0 10px;
  color: var(--research-text);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0;
}

.research-modal__section div {
  color: var(--research-muted);
  font-size: 17px;
  line-height: 1.65;
}

.research-modal__section + .research-modal__section {
  padding: 22px;
  border-radius: 22px;
  background: var(--research-accent);
}

.research-modal__start {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border-radius: 18px;
  background: var(--research-text);
  color: #ffffff !important;
  font-weight: 850;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease;
}

.research-modal__start:hover,
.research-modal__start:focus {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.18);
}

@media (max-width: 760px) {
  .research-home {
    width: min(100% - 24px, 1080px);
    padding: 18px 0 42px;
  }

  .research-topbar {
    margin-bottom: 28px;
  }

  .research-topbar__note {
    display: none;
  }

  .research-brand {
    font-size: 20px;
  }

  .research-hero__content {
    padding: 26px 22px;
    border-radius: 24px;
  }

  .research-hero h1 {
    font-size: 38px;
  }

  .research-lead,
  .research-hero p {
    font-size: 16px;
  }

  .research-language {
    justify-content: stretch;
  }

  .research-section h2 {
    font-size: 24px;
  }

  .research-card {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 22px;
  }

  .research-card__title,
  .research-card h3 {
    font-size: 19px;
  }

  .research-card__button {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding: 0 14px;
  }

  .research-card__actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
  }

  .research-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .research-modal {
    max-height: 92vh;
    border-radius: 28px 28px 0 0;
  }

  .research-modal__header {
    padding: 26px 20px 22px;
  }

  .research-modal__body {
    padding: 24px 20px 26px;
  }

  .research-modal__header h2 {
    font-size: 27px;
  }
}
