/*======================================================================
  Базовая доступность публичной части

  Skip-link не занимает место в обычном состоянии и появляется при
  первом Tab. Единый focus-ring применяется ко всем нативным элементам
  управления независимо от активной темы сайта.
======================================================================*/

.goskg-skip-link
{
    position: fixed ;
    top: 8px ;
    left: 8px ;
    z-index: 10000 ;
    padding: 12px 16px ;
    color: #0b0c0c ;
    background: #ffdd00 ;
    box-shadow: 0 0 0 3px #0b0c0c ;
    font-weight: 700 ;
    text-decoration: none ;
    transform: translateY(-160%) ;
}

.goskg-skip-link:focus,
.goskg-skip-link:focus-visible
{
    outline: 3px solid #0b0c0c !important ;
    outline-offset: 0 !important ;
    transform: translateY(0) ;
}

.goskg-visually-hidden
{
    position: absolute !important ;
    width: 1px !important ;
    height: 1px !important ;
    margin: -1px !important ;
    padding: 0 !important ;
    overflow: hidden !important ;
    clip: rect(0 0 0 0) !important ;
    white-space: nowrap !important ;
    border: 0 !important ;
}

body a:focus,
body button:focus,
body input:focus,
body select:focus,
body textarea:focus,
body summary:focus
{
    outline: 3px solid #ffdd00 !important ;
    outline-offset: 2px !important ;
    box-shadow: 0 0 0 2px #0b0c0c !important ;
}

@supports selector(:focus-visible)
{
    body a:focus:not(:focus-visible),
    body button:focus:not(:focus-visible),
    body input:focus:not(:focus-visible),
    body select:focus:not(:focus-visible),
    body textarea:focus:not(:focus-visible),
    body summary:focus:not(:focus-visible)
    {
        outline: none !important ;
        box-shadow: none !important ;
    }

    body a:focus-visible,
    body button:focus-visible,
    body input:focus-visible,
    body select:focus-visible,
    body textarea:focus-visible,
    body summary:focus-visible
    {
        outline: 3px solid #ffdd00 !important ;
        outline-offset: 2px !important ;
        box-shadow: 0 0 0 2px #0b0c0c !important ;
    }
}

/*------------------------- Postranichnaya navigatsiya -------------------------------------- */
/*.navigation {
  color:#666;
  border:0px;
}

.navigation a:link,
.navigation a:visited,
.navigation a:hover,
.navigation a:active  {
  text-decoration:none;
  color:#636363;
  background:#F9F9F9;
  border:1px solid #E6E6E6;
  padding:3px 6px;
  font-size:11px
}

.navigation a:hover  {
  background:#3B84D0;
  color:#FFFFFF;
  border-color:#E6E6E6;
}



.navigation span {
  text-decoration:none;
  background:#fff;
  padding:3px 6px;
  border:1px solid #E6E6E6;
  color:#ccc;
  font-size:11px;
}   */
/*------------------------- Postranichnaya navigatsiya/ -------------------------------------- */ 


.error {
border: 1px solid;
margin: 10px 0px;
padding:15px 10px 15px 50px;
background-repeat: no-repeat;
background-position: 10px center;
color: #D8000C;
background-color: #FFBABA;
background-image: url('../images/error.png');
}

.success {
border: 1px solid;
margin: 10px 0px;
padding:15px 10px 15px 50px;
background-repeat: no-repeat;
background-position: 10px center;
color: #4F8A10;
background-color: #DFF2BF;  
background-image:url('../images/success.png');
}    

.success_p {
border: 1px solid;
margin: 10px 0px;
padding:15px 10px 15px 15px;
background-repeat: no-repeat;
background-position: 10px center;
color: #4F8A10;
background-color: #DFF2BF;
}


/*--------- Новая постраничная навигация ----------*/

.pagination
{
    --pagination-border: #d9dee7 ;
    --pagination-background: #ffffff ;
    --pagination-hover-background: #f3f5f8 ;
    --pagination-active-background: #1f5ea8 ;
    --pagination-active-color: #ffffff ;
    --pagination-active-border: #1f5ea8 ;

    margin: 32px 0 ;
}

.pagination__list
{
    display: flex ;
    flex-wrap: wrap ;
    align-items: center ;
    justify-content: center ;
    gap: 8px ;
    margin: 0 ;
    padding: 0 ;
    list-style: none ;
}

.pagination__link,
.pagination__current
{
    box-sizing: border-box ;
    display: flex ;
    align-items: center ;
    justify-content: center ;
    min-width: 44px ;
    height: 44px ;
    padding: 0 12px ;
    border: 1px solid var(--pagination-border) ;
    border-radius: 10px ;
    text-decoration: none ;
}

.pagination__link
{
    background: var(--pagination-background) ;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease ;
}

.pagination__link:hover
{
    background: var(--pagination-hover-background) ;
    transform: translateY(-1px) ;
}

.pagination__link:focus-visible
{
    outline: 2px solid currentColor ;
    outline-offset: 2px ;
}

.pagination__current
{
    color: var(--pagination-active-color) ;
    background: var(--pagination-active-background) ;
    border-color: var(--pagination-active-border) ;
    font-weight: 600 ;
}

.pagination__ellipsis
{
    display: flex ;
    align-items: center ;
    justify-content: center ;
    min-width: 30px ;
    height: 44px ;
}

/*--------- Новая постраничная навигация /---------*/

/*======================================================================
  Личный кабинет пользователя

  Все правила этого блока ограничены уникальным префиксом
  .goskg-user-profile. Это позволяет использовать один и тот же личный
  кабинет с разными темами сайта без зависимости от их оформления.

  Для интерфейса используются только системные шрифты и CSS. Внешние
  библиотеки, изображения, шрифты и JavaScript не требуются, поэтому
  блок остаётся лёгким даже при медленном интернет-соединении.
======================================================================*/

.goskg-user-profile
{
    --goskg-profile-navy: #6f9fbd ;
    --goskg-profile-navy-dark: #5b88a5 ;
    --goskg-profile-blue: #79a9c7 ;
    --goskg-profile-red: #d62828 ;
    --goskg-profile-text: #354a5a ;
    --goskg-profile-muted: #74828d ;
    --goskg-profile-line: #dce5ea ;
    --goskg-profile-field: #ffffff ;
    --goskg-profile-background: #f8fafb ;
    --goskg-profile-success: #247a45 ;
    --goskg-profile-success-bg: #edf8f1 ;
    --goskg-profile-error: #b42318 ;
    --goskg-profile-error-bg: #fff1f0 ;

    box-sizing: border-box ;
    width: 100% ;
    margin: 0 ;
    padding: 34px 16px ;
    color: var(--goskg-profile-text) ;
    background: var(--goskg-profile-background) ;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif ;
    font-size: 16px ;
    line-height: 1.5 ;
}

.goskg-user-profile *,
.goskg-user-profile *::before,
.goskg-user-profile *::after
{
    box-sizing: border-box ;
}

.goskg-user-profile .goskg-user-profile__container
{
    width: 100% ;
    max-width: 860px ;
    margin: 0 auto ;
    padding: 0 ;
}

.goskg-user-profile .goskg-user-profile__card
{
    width: 100% ;
    margin: 0 ;
    overflow: hidden ;
    background: #ffffff ;
    border: 1px solid var(--goskg-profile-line) ;
    border-radius: 16px ;
    box-shadow: 0 10px 30px rgba(53, 74, 90, 0.07) ;
}


/*----------------------------------------------------------------------
  Верхняя часть карточки выполнена в светлой нейтральной гамме.
  Такой фон не привязан к цветам конкретной темы и одинаково спокойно
  смотрится рядом со светлыми, синими, зелёными и другими оформлениями.
----------------------------------------------------------------------*/

.goskg-user-profile .goskg-user-profile__header
{
    position: relative ;
    display: flex ;
    align-items: center ;
    gap: 18px ;
    min-height: 108px ;
    margin: 0 ;
    padding: 24px 30px ;
    color: var(--goskg-profile-text) ;
    background: linear-gradient(
        135deg,
        #edf5f8 0%,
        #f9fbfc 100%
    ) ;
}

.goskg-user-profile .goskg-user-profile__header::before
{
    position: absolute ;
    top: 0 ;
    left: 0 ;
    width: 100% ;
    height: 4px ;
    content: "" ;
    background: #a8c8da ;
}

.goskg-user-profile .goskg-user-profile__header-mark
{
    position: relative ;
    flex: 0 0 58px ;
    width: 58px ;
    height: 58px ;
    margin: 0 ;
    background: #e3f0f5 ;
    border: 1px solid #c9dfe9 ;
    border-radius: 50% ;
}

.goskg-user-profile .goskg-user-profile__header-mark-head
{
    position: absolute ;
    top: 13px ;
    left: 50% ;
    width: 15px ;
    height: 15px ;
    background: #6f9fbd ;
    border-radius: 50% ;
    transform: translateX(-50%) ;
}

.goskg-user-profile .goskg-user-profile__header-mark-body
{
    position: absolute ;
    bottom: 11px ;
    left: 50% ;
    width: 30px ;
    height: 16px ;
    background: #6f9fbd ;
    border-radius: 17px 17px 9px 9px ;
    transform: translateX(-50%) ;
}

.goskg-user-profile .goskg-user-profile__header-content
{
    min-width: 0 ;
    margin: 0 ;
    padding: 0 ;
}

.goskg-user-profile .goskg-user-profile__title
{
    margin: 0 ;
    padding: 0 ;
    color: #35566a ;
    font-family: inherit ;
    font-size: 28px ;
    font-weight: 700 ;
    line-height: 1.25 ;
    letter-spacing: -0.01em ;
    text-align: left ;
    text-decoration: none ;
    text-transform: none ;
}

.goskg-user-profile .goskg-user-profile__body
{
    margin: 0 ;
    padding: 30px ;
    background: #ffffff ;
}

/*----------------------------------------------------------------------
  Сообщения об успешном сохранении и ошибке имеют собственные классы.
  Поэтому общие .success и .error из других частей сайта на них не
  влияют и не меняют внешний вид личного кабинета.
----------------------------------------------------------------------*/

.goskg-user-profile .goskg-user-profile__message
{
    display: flex ;
    align-items: flex-start ;
    gap: 12px ;
    width: 100% ;
    margin: 0 0 24px 0 ;
    padding: 14px 16px ;
    font-family: inherit ;
    font-size: 15px ;
    font-weight: 500 ;
    line-height: 1.45 ;
    border: 1px solid transparent ;
    border-radius: 10px ;
}

.goskg-user-profile .goskg-user-profile__message--success
{
    color: var(--goskg-profile-success) ;
    background: var(--goskg-profile-success-bg) ;
    border-color: #b9dfc6 ;
}

.goskg-user-profile .goskg-user-profile__message--error
{
    color: var(--goskg-profile-error) ;
    background: var(--goskg-profile-error-bg) ;
    border-color: #f0c0bb ;
}

.goskg-user-profile .goskg-user-profile__message-icon
{
    position: relative ;
    flex: 0 0 20px ;
    width: 20px ;
    height: 20px ;
    margin-top: 1px ;
    border: 2px solid currentColor ;
    border-radius: 50% ;
}

.goskg-user-profile .goskg-user-profile__message--success .goskg-user-profile__message-icon::before
{
    position: absolute ;
    top: 4px ;
    left: 4px ;
    width: 7px ;
    height: 4px ;
    content: "" ;
    border-left: 2px solid currentColor ;
    border-bottom: 2px solid currentColor ;
    transform: rotate(-45deg) ;
}

.goskg-user-profile .goskg-user-profile__message--error .goskg-user-profile__message-icon::before,
.goskg-user-profile .goskg-user-profile__message--error .goskg-user-profile__message-icon::after
{
    position: absolute ;
    top: 8px ;
    left: 4px ;
    width: 9px ;
    height: 2px ;
    content: "" ;
    background: currentColor ;
}

.goskg-user-profile .goskg-user-profile__message--error .goskg-user-profile__message-icon::before
{
    transform: rotate(45deg) ;
}

.goskg-user-profile .goskg-user-profile__message--error .goskg-user-profile__message-icon::after
{
    transform: rotate(-45deg) ;
}

.goskg-user-profile .goskg-user-profile__message-text
{
    min-width: 0 ;
    margin: 0 ;
    padding: 0 ;
    color: inherit ;
}

/*----------------------------------------------------------------------
  Форма использует CSS Grid. На широком экране имя и фамилия находятся
  рядом, а на небольшом экране автоматически переходят в один столбец.
----------------------------------------------------------------------*/

.goskg-user-profile .goskg-user-profile__form
{
    display: block ;
    width: 100% ;
    margin: 0 ;
    padding: 0 ;
    background: transparent ;
    border: 0 ;
}

.goskg-user-profile .goskg-user-profile__grid
{
    display: grid ;
    grid-template-columns: repeat(2, minmax(0, 1fr)) ;
    gap: 24px ;
    width: 100% ;
    margin: 0 ;
    padding: 0 ;
}

.goskg-user-profile .goskg-user-profile__field
{
    min-width: 0 ;
    margin: 0 ;
    padding: 0 ;
    background: transparent ;
    border: 0 ;
}

.goskg-user-profile .goskg-user-profile__field--full
{
    grid-column: 1 / -1 ;
}

.goskg-user-profile .goskg-user-profile__label
{
    display: block ;
    width: auto ;
    margin: 0 0 8px 0 ;
    padding: 0 ;
    color: var(--goskg-profile-text) ;
    font-family: inherit ;
    font-size: 14px ;
    font-weight: 650 ;
    line-height: 1.4 ;
    text-align: left ;
    text-decoration: none ;
}

.goskg-user-profile .goskg-user-profile__required
{
    color: var(--goskg-profile-red) ;
    font-weight: 700 ;
}

.goskg-user-profile .goskg-user-profile__field .goskg-user-profile__input,
.goskg-user-profile .goskg-user-profile__field .goskg-user-profile__select
{
    display: block ;
    width: 100% ;
    min-width: 0 ;
    height: 48px ;
    margin: 0 ;
    padding: 0 14px ;
    color: var(--goskg-profile-text) ;
    background: var(--goskg-profile-field) ;
    border: 1px solid #bcc9d4 ;
    border-radius: 8px ;
    box-shadow: none ;
    font-family: inherit ;
    font-size: 16px ;
    font-weight: 400 ;
    line-height: 46px ;
    text-align: left ;
    text-decoration: none ;
    outline: none ;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease ;
}

.goskg-user-profile .goskg-user-profile__field .goskg-user-profile__input:hover,
.goskg-user-profile .goskg-user-profile__field .goskg-user-profile__select:hover
{
    border-color: #8ea5b8 ;
}

.goskg-user-profile .goskg-user-profile__field .goskg-user-profile__input:focus,
.goskg-user-profile .goskg-user-profile__field .goskg-user-profile__select:focus
{
    background: #ffffff ;
    border-color: var(--goskg-profile-blue) ;
    box-shadow: 0 0 0 3px rgba(36, 106, 165, 0.14) ;
}

.goskg-user-profile .goskg-user-profile__date-grid
{
    display: grid ;
    grid-template-columns: 0.8fr 1.45fr 1fr ;
    gap: 12px ;
    width: 100% ;
    margin: 0 ;
    padding: 0 ;
}

.goskg-user-profile .goskg-user-profile__select-wrap
{
    position: relative ;
    min-width: 0 ;
    margin: 0 ;
    padding: 0 ;
}

.goskg-user-profile .goskg-user-profile__field .goskg-user-profile__select
{
    padding-right: 40px ;
    cursor: pointer ;
    appearance: auto ;
}

/*----------------------------------------------------------------------
  Выбор пола использует нативные radio-input. Это быстрее и надёжнее
  пользовательских JavaScript-компонентов, а accent-color позволяет
  сохранить аккуратное оформление без дополнительных ресурсов.
----------------------------------------------------------------------*/

.goskg-user-profile .goskg-user-profile__choice-group
{
    display: flex ;
    flex-wrap: wrap ;
    gap: 10px ;
    width: 100% ;
    margin: 0 ;
    padding: 0 ;
}

.goskg-user-profile .goskg-user-profile__choice
{
    display: inline-flex ;
    align-items: center ;
    gap: 9px ;
    min-height: 44px ;
    margin: 0 ;
    padding: 9px 14px ;
    color: var(--goskg-profile-text) ;
    background: #f8fafc ;
    border: 1px solid #d4dee6 ;
    border-radius: 8px ;
    font-family: inherit ;
    font-size: 15px ;
    font-weight: 500 ;
    line-height: 1.3 ;
    cursor: pointer ;
}

.goskg-user-profile .goskg-user-profile__choice:hover
{
    background: #f2f6f9 ;
    border-color: #aabcc9 ;
}

.goskg-user-profile .goskg-user-profile__choice .goskg-user-profile__radio
{
    flex: 0 0 auto ;
    width: 18px ;
    height: 18px ;
    margin: 0 ;
    padding: 0 ;
    accent-color: var(--goskg-profile-navy) ;
    cursor: pointer ;
}

.goskg-user-profile .goskg-user-profile__choice-text
{
    margin: 0 ;
    padding: 0 ;
    color: inherit ;
    font-family: inherit ;
    font-size: inherit ;
    font-weight: inherit ;
    line-height: inherit ;
}

/*----------------------------------------------------------------------
  Кнопка сохранения не содержит изображений и иконочных шрифтов.
  Небольшая иконка формируется CSS, поэтому отдельного HTTP-запроса нет.
----------------------------------------------------------------------*/

.goskg-user-profile .goskg-user-profile__actions
{
    display: flex ;
    align-items: center ;
    justify-content: flex-end ;
    width: 100% ;
    margin: 30px 0 0 0 ;
    padding: 24px 0 0 0 ;
    border-top: 1px solid #e5ebf0 ;
}

.goskg-user-profile .goskg-user-profile__actions .goskg-user-profile__submit
{
    display: inline-flex ;
    align-items: center ;
    justify-content: center ;
    gap: 10px ;
    min-width: 150px ;
    min-height: 48px ;
    margin: 0 ;
    padding: 12px 22px ;
    color: #ffffff ;
    background: var(--goskg-profile-navy) ;
    border: 1px solid var(--goskg-profile-navy) ;
    border-radius: 8px ;
    box-shadow: 0 4px 12px rgba(91, 136, 165, 0.15) ;
    font-family: inherit ;
    font-size: 15px ;
    font-weight: 650 ;
    line-height: 1.2 ;
    text-align: center ;
    text-decoration: none ;
    text-transform: none ;
    cursor: pointer ;
    appearance: none ;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease ;
}

.goskg-user-profile .goskg-user-profile__actions .goskg-user-profile__submit:hover
{
    background: var(--goskg-profile-navy-dark) ;
    border-color: var(--goskg-profile-navy-dark) ;
    box-shadow: 0 6px 16px rgba(91, 136, 165, 0.18) ;
    transform: translateY(-1px) ;
}

.goskg-user-profile .goskg-user-profile__actions .goskg-user-profile__submit:focus-visible
{
    outline: 3px solid rgba(121, 169, 199, 0.28) ;
    outline-offset: 3px ;
}

.goskg-user-profile .goskg-user-profile__actions .goskg-user-profile__submit:active
{
    box-shadow: 0 2px 6px rgba(91, 136, 165, 0.15) ;
    transform: translateY(0) ;
}

.goskg-user-profile .goskg-user-profile__submit-icon
{
    position: relative ;
    flex: 0 0 17px ;
    width: 17px ;
    height: 17px ;
    margin: 0 ;
    border: 2px solid currentColor ;
    border-radius: 2px ;
}

.goskg-user-profile .goskg-user-profile__submit-icon::before
{
    position: absolute ;
    top: -2px ;
    left: 3px ;
    width: 7px ;
    height: 5px ;
    content: "" ;
    border: 2px solid currentColor ;
    border-top: 0 ;
}

.goskg-user-profile .goskg-user-profile__submit-icon::after
{
    position: absolute ;
    bottom: 2px ;
    left: 3px ;
    width: 7px ;
    height: 4px ;
    content: "" ;
    border-top: 2px solid currentColor ;
}

.goskg-user-profile .goskg-user-profile__submit-text
{
    margin: 0 ;
    padding: 0 ;
    color: inherit ;
    font: inherit ;
}

/*----------------------------------------------------------------------
  Адаптация под планшеты и телефоны. Интерфейс сохраняет крупные поля и
  элементы управления, чтобы формой было удобно пользоваться пальцем.
----------------------------------------------------------------------*/

@media (max-width: 680px)
{
    .goskg-user-profile
    {
        padding: 20px 10px ;
    }

    .goskg-user-profile .goskg-user-profile__card
    {
        border-radius: 12px ;
    }

    .goskg-user-profile .goskg-user-profile__header
    {
        min-height: 92px ;
        gap: 14px ;
        padding: 20px ;
    }

    .goskg-user-profile .goskg-user-profile__header-mark
    {
        flex-basis: 50px ;
        width: 50px ;
        height: 50px ;
    }

    .goskg-user-profile .goskg-user-profile__header-mark-head
    {
        top: 11px ;
    }

    .goskg-user-profile .goskg-user-profile__header-mark-body
    {
        bottom: 9px ;
        width: 27px ;
    }

    .goskg-user-profile .goskg-user-profile__title
    {
        font-size: 23px ;
    }

    .goskg-user-profile .goskg-user-profile__body
    {
        padding: 22px 18px ;
    }

    .goskg-user-profile .goskg-user-profile__grid
    {
        grid-template-columns: minmax(0, 1fr) ;
        gap: 20px ;
    }

    .goskg-user-profile .goskg-user-profile__field--full
    {
        grid-column: auto ;
    }

    .goskg-user-profile .goskg-user-profile__date-grid
    {
        grid-template-columns: minmax(0, 1fr) ;
        gap: 10px ;
    }

    .goskg-user-profile .goskg-user-profile__actions
    {
        justify-content: stretch ;
        margin-top: 24px ;
        padding-top: 20px ;
    }

    .goskg-user-profile .goskg-user-profile__actions .goskg-user-profile__submit
    {
        width: 100% ;
    }
}

@media (max-width: 420px)
{
    .goskg-user-profile .goskg-user-profile__header
    {
        align-items: center ;
        padding: 18px 16px ;
    }

    .goskg-user-profile .goskg-user-profile__header-mark
    {
        flex-basis: 44px ;
        width: 44px ;
        height: 44px ;
    }

    .goskg-user-profile .goskg-user-profile__header-mark-head
    {
        top: 9px ;
        width: 13px ;
        height: 13px ;
    }

    .goskg-user-profile .goskg-user-profile__header-mark-body
    {
        bottom: 8px ;
        width: 24px ;
        height: 14px ;
    }

    .goskg-user-profile .goskg-user-profile__title
    {
        font-size: 21px ;
    }

    .goskg-user-profile .goskg-user-profile__body
    {
        padding: 20px 14px ;
    }

    .goskg-user-profile .goskg-user-profile__choice-group
    {
        display: grid ;
        grid-template-columns: repeat(2, minmax(0, 1fr)) ;
    }

    .goskg-user-profile .goskg-user-profile__choice
    {
        justify-content: center ;
    }
}

/*----------------------------------------------------------------------
  Пользователи, отключившие анимацию в системе, не получают переходов.
----------------------------------------------------------------------*/

@media (prefers-reduced-motion: reduce)
{
    .goskg-user-profile .goskg-user-profile__field .goskg-user-profile__input,
    .goskg-user-profile .goskg-user-profile__field .goskg-user-profile__select,
    .goskg-user-profile .goskg-user-profile__actions .goskg-user-profile__submit
    {
        transition: none ;
    }
}

/*======================================================================
  Универсальная панель авторизованного пользователя

  Префикс goskg-userbar не пересекается с классами тем сайта.
  Панель не использует внешние изображения, шрифты или JavaScript.
======================================================================*/

.goskg-userbar
{
    --goskg-userbar-bg: #f8fafb ;
    --goskg-userbar-bg-2: #eef4f7 ;
    --goskg-userbar-text: #405869 ;
    --goskg-userbar-line: #d3e0e7 ;
    --goskg-userbar-hover: #e6f0f5 ;

    box-sizing: border-box ;
    position: relative ;
    z-index: 20 ;
    width: 100% ;
    min-height: 44px ;
    margin: 0 ;
    padding: 0 16px ;
    color: var(--goskg-userbar-text) ;
    background: linear-gradient(
        180deg,
        var(--goskg-userbar-bg) 0%,
        var(--goskg-userbar-bg-2) 100%
    ) ;
    border: 0 ;
    border-bottom: 1px solid #dbe5ea ;
    box-shadow: 0 1px 3px rgba(53, 74, 90, 0.04) ;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif ;
}

.goskg-userbar *,
.goskg-userbar *::before,
.goskg-userbar *::after
{
    box-sizing: border-box ;
}

.goskg-userbar .goskg-userbar__inner
{
    display: flex ;
    align-items: center ;
    justify-content: flex-end ;
    gap: 6px ;
    width: 100% ;
    max-width: 1240px ;
    min-height: 44px ;
    margin: 0 auto ;
    padding: 4px 0 ;
}

.goskg-userbar .goskg-userbar__link
{
    display: inline-flex ;
    align-items: center ;
    justify-content: center ;
    gap: 8px ;
    min-height: 36px ;
    margin: 0 ;
    padding: 7px 12px ;
    color: var(--goskg-userbar-text) ;
    background: transparent ;
    border: 1px solid transparent ;
    border-radius: 7px ;
    font-family: inherit ;
    font-size: 14px ;
    font-weight: 600 ;
    line-height: 1.2 ;
    text-decoration: none ;
    white-space: nowrap ;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease ;
}

.goskg-userbar .goskg-userbar__link:hover
{
    color: var(--goskg-userbar-text) ;
    background: var(--goskg-userbar-hover) ;
    border-color: var(--goskg-userbar-line) ;
    text-decoration: none ;
}

.goskg-userbar .goskg-userbar__link:focus-visible
{
    outline: 2px solid #79a9c7 ;
    outline-offset: 2px ;
}

.goskg-userbar .goskg-userbar__profile-icon
{
    position: relative ;
    flex: 0 0 18px ;
    width: 18px ;
    height: 18px ;
    border: 1.7px solid currentColor ;
    border-radius: 50% ;
}

.goskg-userbar .goskg-userbar__profile-icon::before
{
    position: absolute ;
    top: 3px ;
    left: 50% ;
    width: 5px ;
    height: 5px ;
    content: "" ;
    border: 1.5px solid currentColor ;
    border-radius: 50% ;
    transform: translateX(-50%) ;
}

.goskg-userbar .goskg-userbar__profile-icon::after
{
    position: absolute ;
    bottom: 2px ;
    left: 50% ;
    width: 9px ;
    height: 5px ;
    content: "" ;
    border: 1.5px solid currentColor ;
    border-bottom: 0 ;
    border-radius: 7px 7px 0 0 ;
    transform: translateX(-50%) ;
}

.goskg-userbar .goskg-userbar__logout-icon
{
    position: relative ;
    flex: 0 0 18px ;
    width: 18px ;
    height: 18px ;
}

.goskg-userbar .goskg-userbar__logout-icon::before
{
    position: absolute ;
    top: 2px ;
    left: 1px ;
    width: 10px ;
    height: 14px ;
    content: "" ;
    border: 1.7px solid currentColor ;
    border-right: 0 ;
    border-radius: 3px 0 0 3px ;
}

.goskg-userbar .goskg-userbar__logout-icon::after
{
    position: absolute ;
    top: 7px ;
    right: 0 ;
    width: 9px ;
    height: 5px ;
    content: "" ;
    border-top: 1.7px solid currentColor ;
    border-right: 1.7px solid currentColor ;
    transform: rotate(45deg) ;
}

.goskg-userbar .goskg-userbar__link-text
{
    margin: 0 ;
    padding: 0 ;
    color: inherit ;
    font: inherit ;
}

/*----------------------------------------------------------------------
  Финальная нормализация личного кабинета.
  Высокая специфичность селекторов защищает форму от CSS активной темы.
----------------------------------------------------------------------*/

.goskg-user-profile .goskg-user-profile__title,
.goskg-user-profile .goskg-user-profile__label,
.goskg-user-profile .goskg-user-profile__choice,
.goskg-user-profile .goskg-user-profile__message,
.goskg-user-profile .goskg-user-profile__submit
{
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif ;
}

.goskg-user-profile .goskg-user-profile__input,
.goskg-user-profile .goskg-user-profile__select,
.goskg-user-profile .goskg-user-profile__submit
{
    box-sizing: border-box ;
}

@media (max-width: 720px)
{
    .goskg-userbar
    {
        padding: 0 8px ;
    }

    .goskg-userbar .goskg-userbar__inner
    {
        gap: 4px ;
    }

    .goskg-userbar .goskg-userbar__link
    {
        padding: 7px 9px ;
        font-size: 13px ;
    }
}

@media (max-width: 430px)
{
    .goskg-userbar .goskg-userbar__profile-icon,
    .goskg-userbar .goskg-userbar__logout-icon
    {
        display: none ;
    }
}



/*======================================================================
  Дополнительная защита универсальных пользовательских блоков от тем.
  style_my.css подключается после CSS активной темы, а эти правила
  нормализуют наиболее часто переопределяемые свойства ссылок и формы.
======================================================================*/

.goskg-userbar .goskg-userbar__link,
.goskg-userbar .goskg-userbar__link:link,
.goskg-userbar .goskg-userbar__link:visited
{
    color: var(--goskg-userbar-text) ;
    text-decoration: none ;
}

.goskg-user-profile .goskg-user-profile__input,
.goskg-user-profile .goskg-user-profile__select,
.goskg-user-profile .goskg-user-profile__submit
{
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif ;
}
