@media (min-width: 640px) {
    .patient-medical:not(.patient-medical--nf1) .patient-medical__surgery-grid {
        grid-auto-flow: column;
        grid-template-rows: repeat(4, auto);
    }
}

.quiz__content{

}

.answers__content{

}

.quiz__block+.quiz__block{
  margin-top:10px !important;
}

.support__items{

}

.js-deleted-patient-name{
  font-weight:700 !important;
}

.policy__in_action{
    display: none;
}

.policy__not_in_action{
    display: block;
}

.policy__saving-status {
    display: none;
    color: #333;
    text-align: center;
}

.policy__saving-title {
    margin-top: 18px;
    font-size: 20px;
    font-weight: 500;
}

.policy__saving-status p {
    margin-top: 8px;
    color: #666;
}

.policy__saving-spinner {
    display: inline-block;
    width: 34px;
    height: 34px;
    border: 3px solid #d9e8f8;
    border-top-color: #2f80ed;
    border-radius: 50%;
    animation: patient-save-spinner 0.8s linear infinite;
}

.policy--modal.policy--saving .policy__header,
.policy--modal.policy--saving .policy__content,
.policy--modal.policy--saving .policy__footer {
    display: none;
}

.policy--modal.policy--saving .policy__wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.policy--modal.policy--saving .policy__saving-status {
    display: block;
}

@keyframes patient-save-spinner {
    to {
        transform: rotate(360deg);
    }
}

.patient-form__error-summary {
    margin-bottom: 24px;
    padding: 14px 16px;
    color: #a20f27;
    background: #fef1f3;
    border-left: 3px solid #e51739;
}

.patient-form__error-summary ul {
    margin-top: 8px;
    padding-left: 20px;
}

.patient-form__error-summary li {
    list-style: disc;
}

.patient-city-manual {
    margin-top: 18px;
}

.patient-city-manual-option {
    font-style: italic;
}

.patient-medical__error ul {
    margin-top: 8px;
    padding-left: 20px;
}

.patient-medical__error li {
    list-style: disc;
}

.patient-medical__question--error {
    border-left: 3px solid #e51739;
}

.patient-medical__question--error:not(.patient-medical__accent),
.patient-medical__validation-group.patient-medical__question--error {
    padding-left: 12px;
}

.patient-medical__accent > .patient-medical__validation-group + .patient-medical__validation-group {
    margin-top: 18px;
}

.data__check-button {
    display: block;
    width: 100%;
    color: inherit;
    font: inherit;
    line-height: inherit;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 2px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.patient-comment {
    max-width: 720px;
    margin-top: 30px;
}

.patient-form__notice {
    margin-bottom: 24px;
    border-left: 3px solid #d3aa22;
    background: #fff9e6;
    padding: 14px 16px;
    color: #2f2f2f;
    line-height: 1.45;
}

.patient-medical__malignant-options .patient-medical__choice {
    display: flex;
    margin-right: 0;
}

.patient-medical__malignant-options input {
    flex-shrink: 0;
}

.patient-medical__malignant-tumor [data-malignant-mode="single"] .patient-medical__choice {
    display: flex;
    max-width: 100%;
    margin-right: 0;
}
.patient-medical__malignant-tumor .patient-medical__choice input { flex-shrink: 0; }
.patient-medical__malignant-tumor .patient-medical__choice span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.consent-deadline-banner {
    margin: 0 0 20px;
    padding: 20px;
    color: #5d3b00;
    background: #fff4cf;
    border: 1px solid #efcc56;
    border-radius: 6px;
}

.consent-deadline-banner__header {
    display: flex;
    align-items: center;
}

.consent-deadline-banner__icon {
    display: flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
    border-radius: 50%;
    background: #d39100;
}

.consent-deadline-banner__title {
    margin: 0 0 0 16px;
    font-size: 18px;
    line-height: 24px;
    font-weight: 500;
}

.consent-deadline-banner__list {
    max-width: 780px;
    margin: 12px 0 0 52px;
    padding-left: 20px;
    color: #333;
    font-size: 15px;
    line-height: 24px;
}

.consent-deadline-banner__list li + li {
    margin-top: 5px;
}

.consent-deadline-banner__list a {
    color: #855400;
    font-weight: 600;
    text-decoration: underline;
}

.consent-deadline-banner__help {
    max-width: 780px;
    margin: 8px 0 0 52px;
    color: #333;
    font-size: 15px;
    line-height: 24px;
}

@media (max-width: 639px) {
    .consent-deadline-banner {
        padding: 16px;
    }

    .consent-deadline-banner__icon {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        font-size: 21px;
    }

    .consent-deadline-banner__title {
        margin-left: 12px;
        font-size: 17px;
        line-height: 22px;
    }

    .consent-deadline-banner__list,
    .consent-deadline-banner__help {
        margin-left: 0;
    }
}

.patient-read-only-fields {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.patient-read-only-fields:disabled {
    color: inherit;
    opacity: 1;
}

.patient-read-only-fields:disabled input,
.patient-read-only-fields:disabled select,
.patient-read-only-fields:disabled textarea,
.patient-read-only-fields:disabled .nice-select,
.patient-read-only-fields:disabled .upload__field,
.patient-read-only-fields:disabled .js_file_remove {
    pointer-events: none;
}

.patient-access {
    margin: 0 0 36px;
}

.patient-access__summary {
    padding: 10px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.patient-access--muted .patient-access__summary {
    color: #777;
    font-size: 13px;
}

.patient-access--important {
    background: transparent;
}

.patient-access--important .patient-access__summary {
    color: #1f5fa8;
    font-size: 14px;
}

.patient-access__content {
    max-width: 720px;
    padding: 2px 0 20px;
}

.patient-access__text,
.patient-access__notice,
.patient-access__hint,
.patient-access__status {
    color: #666;
    font-size: 14px;
    line-height: 1.45;
}

.patient-access__notice {
    margin-top: 12px;
    color: #333;
}

.patient-access__checkbox {
    margin-top: 20px;
}

.patient-access__email {
    max-width: 520px;
    margin-top: 20px;
}

.patient-access__email .field__input:disabled {
    color: #777;
    background: #f5f6f8;
    cursor: not-allowed;
}

.patient-access__hint,
.patient-access__status {
    margin-top: 8px;
}

.patient-access__status--accepted {
    color: #277a4c;
}

.patient-access__consent {
    max-width: 720px;
    margin-top: 20px;
    padding: 18px;
    border: 1px solid #d7deea;
    background: #f8faff;
}

.patient-access__consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.patient-access__consent-label input[type="checkbox"] {
    flex: 0 0 auto;
    margin-top: 4px;
}

.patient-access__password {
    max-width: 520px;
    margin-top: 18px;
}

.patient-access__authority-warning {
    margin: 0 0 14px;
    color: #9b5b00;
    font-size: 14px;
    line-height: 1.45;
}

.adulthood-access-consent-banner {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 28px;
    padding: 20px 24px;
    border: 1px solid #e3bd44;
    border-radius: 6px;
    background: #fff7d6;
    color: #4c3a00;
}

.adulthood-access-consent-banner__header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.adulthood-access-consent-banner__icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #c79516;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.adulthood-access-consent-banner__title {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.adulthood-access-consent-banner__list {
    margin: 12px 0 0 52px;
    padding-left: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.adulthood-access-consent-banner__list a {
    color: #735500;
    font-weight: 600;
    text-decoration: underline;
}

.adulthood-access-consent-banner__help {
    margin: 10px 0 0 52px;
    font-size: 13px;
}

.patient-step__buttons--limited-access {
    max-width: none;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}

.patient-step__buttons--limited-access .questions__btn {
    width: auto;
    min-width: 126px;
}

.questions__representative-authority {
    margin-top: 40px;
}

.patient-comment__input {
    min-height: 96px;
    line-height: 20px;
    resize: vertical;
    overflow-wrap: anywhere;
}

.patient-comment__hint {
    max-width: 720px;
    margin-top: 6px;
    color: #999;
    font-size: 13px;
}

.data__check-button:hover {
    text-decoration-thickness: 2px;
}

.data__check-button:focus-visible,
.consent-modal__window:focus-visible {
    outline: 2px solid #287acc;
    outline-offset: 3px;
}

.data__item.data__item--incomplete {
    background-color: #fff4cf;
    border-color: #efcc56;
}

.data__check--incomplete::before {
    width: 22px;
    height: 20px;
    background: url("../images/icons/warning-triangle-red.svg") center / contain no-repeat;
}

body.consent-modal-open {
    overflow: hidden;
}

.js_consent_modal,
.js_terminated_access_modal,
.js_transferred_management_modal {
    visibility: hidden;
}

.js_consent_modal.active,
.js_terminated_access_modal.active,
.js_transferred_management_modal.active {
    visibility: visible;
}

.consent-modal__window {
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.consent-modal__window .modal__text a {
    display: inline;
    text-decoration: underline;
}

@media (max-width: 479px) {
    .consent-modal__window {
        max-height: 100vh;
    }
}

.footer__item-social {
    flex-wrap: wrap;
    gap: 4px;
}

.footer__social + .footer__social {
    margin-left: 0;
}

@media (min-width: 640px) {
    .footer__item-social {
        width: 50%;
    }

    .footer__item-author {
        width: 28%;
    }
}

.questionnaire-empty-notice {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff3f3;
    border: 1px solid #f3d1d1;
    border-radius: 6px;
}

.questionnaire-empty-notice__header {
    display: flex;
    align-items: center;
}

.questionnaire-empty-notice__icon {
    display: flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    font-weight: 500;
    background: #d94b4b;
    border-radius: 50%;
}

.questionnaire-empty-notice__title {
    margin-left: 16px;
    color: #d54343;
    font-size: 18px;
    line-height: 24px;
    font-weight: 500;
}

.questionnaire-empty-notice__text {
    max-width: 780px;
    margin: 12px 0 0 52px;
    color: #333;
    font-size: 15px;
    line-height: 24px;
}

.questionnaire-empty-notice__actions {
    display: flex;
    justify-content: center;
    margin: 16px 0 0 52px;
}

.questionnaire-empty-notice__button {
    display: inline-flex;
    min-width: 275px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 22px;
    color: #fff;
    font-size: 15px;
    line-height: 20px;
    font-weight: 500;
    text-align: center;
    background: #d94b4b;
    border: 1px solid #d94b4b;
    border-radius: 4px;
    transition: background-color .2s, border-color .2s;
}

.questionnaire-empty-notice__button:hover,
.questionnaire-empty-notice__button:focus-visible {
    color: #fff;
    background: #c83f3f;
    border-color: #c83f3f;
}

.questionnaire-empty-notice__button:focus-visible {
    outline: 2px solid #287acc;
    outline-offset: 3px;
}

.questionnaire-empty-notice__button svg {
    flex: 0 0 auto;
    fill: currentColor;
}

.adulthood-transfer-notice {
    display: flex;
    width: 100%;
    align-items: center;
    margin: 0 0 20px;
    padding: 18px 20px;
    color: #765600;
    font: inherit;
    text-align: left;
    background: #fff8df;
    border: 1px solid #efd47b;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color .2s, border-color .2s;
}

.adulthood-transfer-notice:hover,
.adulthood-transfer-notice:focus-visible {
    color: #654900;
    background: #fff3c7;
    border-color: #dfbd4e;
}

.adulthood-transfer-notice:focus-visible {
    outline: 2px solid #287acc;
    outline-offset: 3px;
}

.adulthood-transfer-notice__icon {
    display: flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    font-weight: 500;
    background: #dda900;
    border-radius: 50%;
}

.adulthood-transfer-notice__text {
    margin-left: 16px;
    font-size: 18px;
    line-height: 24px;
    font-weight: 500;
}

.adulthood-transfer-modal__window {
    max-width: 760px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.adulthood-transfer-modal__content ul,
.adulthood-transfer-modal__content ol {
    margin: 12px 0;
    padding-left: 24px;
}

.adulthood-transfer-modal__content li + li {
    margin-top: 8px;
}

@media (max-width: 639px) {
    .questionnaire-empty-notice {
        padding: 16px;
    }

    .questionnaire-empty-notice__icon {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        font-size: 21px;
    }

    .questionnaire-empty-notice__title {
        margin-left: 12px;
        font-size: 17px;
        line-height: 22px;
    }

    .questionnaire-empty-notice__text,
    .questionnaire-empty-notice__actions {
        margin-left: 0;
    }

    .questionnaire-empty-notice__button {
        width: 100%;
        min-width: 0;
    }

    .adulthood-transfer-notice {
        align-items: flex-start;
        padding: 16px;
    }

    .adulthood-transfer-notice__icon {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        font-size: 21px;
    }

    .adulthood-transfer-notice__text {
        margin-left: 12px;
        font-size: 17px;
        line-height: 22px;
    }

    .adulthood-transfer-modal__window {
        max-height: calc(100vh - 24px);
    }
}
.data__line-title-link:hover,
.data__line-title-link:focus-visible {
    color: #2f80ed;
    text-decoration: underline;
}

.data__line-title-link {
    display: block;
}

.data__line-title-link:focus-visible {
    outline: 2px solid #2f80ed;
    outline-offset: 2px;
}

.data__survey-status {
    flex: 0 0 170px;
    width: 170px;
    min-width: 170px;
    white-space: nowrap;
}

@media (max-width: 479px) {
    .data__survey-status {
        flex: 1 1 calc(100% - 120px);
        width: auto;
        min-width: 0;
    }
}
.materials__title,
.material-view__title {
  margin: 0 0 28px;
  font-size: 32px;
  line-height: 1.2;
}

.materials__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.materials__card {
  display: flex;
  min-height: 190px;
  overflow: hidden;
  color: #1d2433;
  text-decoration: none;
  background: #fff;
  border: 1px solid #dce2ee;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(32, 52, 88, .06);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.materials__card:hover,
.materials__card:focus-visible {
  color: #1d2433;
  border-color: #5f7fd8;
  box-shadow: 0 8px 22px rgba(51, 82, 160, .14);
  transform: translateY(-2px);
}

.materials__cover {
  width: 180px;
  min-width: 180px;
  object-fit: cover;
  background: #eef2fb;
}

.materials__cover--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f7fd8;
}

.materials__cover--placeholder span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 30px;
  font-family: Georgia, serif;
  font-weight: 700;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.materials__card-body {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.materials__card-title {
  margin-bottom: 12px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}

.materials__description {
  margin-bottom: 18px;
  color: #667085;
  line-height: 1.5;
}

.materials__open {
  margin-top: auto;
  color: #5577d1;
  font-weight: 500;
}

.materials__empty {
  padding: 28px;
  background: #fff;
  border: 1px solid #e1e5ed;
  border-radius: 8px;
}

.materials__empty--warning {
  background: #fff4cf;
  border-color: #efcc56;
  border-left-width: 4px;
  color: #5d4715;
  line-height: 1.5;
}

.materials__empty--warning p { margin: 0; }
.materials__empty--warning p + p { margin-top: 8px; }

.material-view__back {
  display: inline-block;
  margin-bottom: 18px;
  color: #5577d1;
}

.material-view__description {
  max-width: 860px;
  margin: -12px 0 24px;
  color: #667085;
  line-height: 1.5;
}

.material-view__frame-shell {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce2ee;
  border-radius: 8px;
}

.material-view__loader {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  background: #fff;
  color: #667085;
  text-align: center;
}

.material-view__loader[hidden] {
  display: none;
}

.material-view__progress {
  width: min(320px, 80%);
  height: 10px;
  overflow: hidden;
  accent-color: #5577d1;
}

.material-view__loader-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.material-view__frame-shell.is-error .material-view__loader-text {
  color: #b5473c;
}

.material-view__frame {
  display: block;
  width: 100%;
  min-height: 72vh;
  background: #fff;
  border: 0;
  opacity: 0;
  transition: opacity 160ms ease-out;
}

.material-view__frame-shell.is-loaded .material-view__frame,
.material-view__frame-shell noscript .material-view__frame {
  opacity: 1;
}

.material-view__image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  opacity: 0;
}
.material-view__frame-shell.is-loaded .material-view__image,
.material-view__frame-shell noscript .material-view__image { opacity: 1; }
.material-view__frame-shell--image.is-loaded { min-height: 0; }

@media (max-width: 900px) {
  .materials__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .materials__title,
  .material-view__title {
    font-size: 26px;
  }

  .materials__card {
    display: block;
  }

  .materials__cover {
    width: 100%;
    min-width: 0;
    height: 180px;
  }

  .material-view__frame-shell,
  .material-view__frame {
    min-height: 68vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .material-view__frame {
    transition: none;
  }
}

.questions__upload .file__name,
.support-form .file__name,
.chat .file__name {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.upload__status {
  margin-top: 8px;
  color: #475569;
  font-size: 14px;
  line-height: 20px;
}

.upload__status--error {
  color: #b91c1c;
}
.questions__foreign-country {
    position: relative;
    width: 100%;
    max-width: 360px;
    min-width: 0;
    margin-top: 16px;
}
.questions__foreign-country[hidden] { display: none; }
.questions__foreign-country label {
    position: absolute;
    top: 5px;
    left: 12px;
    font-size: 13px;
    pointer-events: none;
}
.questions__foreign-country select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 60px;
    padding: 22px 12px 8px;
    background: #fff;
    border: 1px solid #cbd2df;
    color: inherit;
    font: inherit;
}
.questions__foreign-country select.error { border-color: #c33; }
@media (min-width: 640px) {
    .questions__foreign-country { margin-top: 0; }
}
.profile-email { max-width: 560px; margin-bottom: 20px; }
.profile-email__row { display: flex; align-items: flex-start; gap: 12px; margin-top: 8px; }
.profile-email__field { flex: 1; min-width: 0; }
.profile-email__row .field__input { width: 100%; }
.profile-email__row .btn { flex: none; display: flex; align-items: center; justify-content: center; margin: 0; height: 60px; min-width: 110px; padding: 0 16px; font-size: 14px; }
.profile-email__notice { overflow-wrap: anywhere; margin-bottom: 20px; }
.form__button:disabled { background-color: #e6e6e6; border-color: #e6e6e6; color: #999999; cursor: default; }

/* Menu status dot: red — action needed, yellow — reminder */
.menu__indicator {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-left: 8px;
    border-radius: 50%;
}

.menu__indicator--red {
    background-color: #d74343;
}

.menu__indicator--yellow {
    background-color: #f0b400;
}

.hamburger__indicator {
    position: absolute;
    top: 4px;
    right: 2px;
    margin: 0;
    box-shadow: 0 0 0 2px #fff;
}

.hamburger.active .hamburger__indicator {
    display: none;
}

/* Citizenship (residency) title with a help button */
.questions__title-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.questions__title-row .questions__title {
    margin-bottom: 0;
}

.questions__title-note {
    font-weight: 400;
    color: #666;
}

.questions__help {
    display: inline-flex;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    padding: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    background-color: #a0a4ab;
    border: none;
    border-radius: 50%;
}

.questions__help:hover,
.questions__help:focus-visible {
    background-color: #7d828a;
}

.citizenship-help-modal__window {
    max-width: 560px;
}

.citizenship-help-modal__window .modal__text p + p {
    margin-top: 12px;
}
