@font-face {
    font-family: 'YS Text';
    src: url('https://yastatic.net/s3/home/fonts/ys/4/text-bold.woff') format('woff'), url('https://yastatic.net/s3/home/fonts/ys/4/text-bold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-stretch: normal;
}

@font-face {
    font-family: 'YS Text';
    src: url('https://yastatic.net/s3/home/fonts/ys/4/text-medium.woff') format('woff'), url('https://yastatic.net/s3/home/fonts/ys/4/text-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-stretch: normal;
}

@font-face {
    font-family: 'YS Text';
    src: url('https://yastatic.net/s3/home/fonts/ys/4/text-regular.woff') format('woff'), url('https://yastatic.net/s3/home/fonts/ys/4/text-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-stretch: normal;
}

@font-face {
    font-family: 'YS Display';
    src: url('https://yastatic.net/s3/home/fonts/ys/4/display-bold.woff') format('woff'),url('https://yastatic.net/s3/home/fonts/ys/4/display-bold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-stretch: normal;
}

.pc-logo__icon{
    width:97px;
}

/*рамка на img (прописать к нужной картинке класс border-yes)*/

.yfm .border-yes {
    border: 1px solid #ccc;
}

/* убираем все границы таблицы (прописать к нужной таблице класс border-no) */

.yfm .border-no table, .yfm .border-no table tr td {
    border: none;
}

/* убираем серые строки со всех таблиц справки */

.dc-doc-page .yfm table tr:nth-child(2n) {
    background: var(--yc-color-base-background);
}

/* стилизация главной */

.pc-header-block:has(.u-breadcrumbs) .pc-header-block__content-wrapper {
    display: none;
}

.pc-header-block:has(.u-breadcrumbs) .pc-header-breadcrumbs__item:last-child{
    pointer-events: none;
}

.pc-header-block:has(.u-breadcrumbs) .pc-header-breadcrumbs__item:last-child .pc-header-breadcrumbs__separator{
    display: none;
}

.pc-page-constructor__wrapper:has(.u-breadcrumbs) .pc-block-base.pc-block-base.pc-block-base.pc-block-base_indentTop_l {
    margin-top: 88px;
}

.pc-page-constructor__wrapper{
    -webkit-text-size-adjust: 100%;
}

.pc-title-item__text{
    font-family: 'YS Display', "Helvetica Neue", "Arial", "Helvetica", sans-serif;
    font-weight: 700;
}

.g-root_theme_light .pc-title-item__text{
    color:#1E2837;
}

.pc-header-breadcrumbs__item {
    font-size: 13px !important;
    line-height: 18px !important;
    --g-font-family-sans: 'YS Text', "Helvetica Neue", "Arial", "Helvetica", sans-serif;
    font-family: 'YS Text', "Helvetica Neue", "Arial", "Helvetica", sans-serif;
}

/*card*/

.pc-image-card {
    min-height: 412px;
    box-shadow: 0px 4px 32px 0px rgba(198, 198, 198, 0.25) !important;
}


.pc-image-card .pc-image-card__image_margins_m {
    max-width: 124px;
    margin-left: 0;
    box-sizing: content-box;
}

.pc-content_size_s .pc-content__text {
    margin-top: 12px;
    flex: auto;
    color: #647396;
    font-size: 17px;
    line-height: 24px;
    font-family:var(--g-font-family-sans);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pc-content_size_s .pc-content__text .yfm{
  font-size:inherit;
  line-height:inherit;
  color:inherit;
  font-family:inherit;
  display: flex;
    flex-direction: column;
    height: 100%;
}

.yfm > :first-child{
    flex:auto;
}

.u-card__more {
    padding-top: 64px;
    position: relative;
}

.u-card__more:before {
    content: "";
    top: 32px;
    left: -32px;
    right: -32px;
    height: 1px;
    background-color: #E8EDF5;
    position: absolute;
}

.u-card__more:after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 24px;
    height: 24px;
    background-image: url("https://yastatic.net/s3/doc-binary/src/support/direct/ru/files/u-arrow.svg");
    background-size: cover;
     transition: filter 0.2 ease;
}
.pc-link-block__link_has-arrow,
.pc-link-block__link_has-arrow {
    color: #616D87;
    font-size: 17px;
    line-height: 24px;
}

.pc-link-block__link_has-arrow:active,
.pc-link-block__link_has-arrow:hover {
    color: #191E28;
}
.u-card__more{
    transition: color 0.2 ease;
}

.pc-image-card_with-content.g-link:hover .u-card__more{
    color:#191E28;
}

.pc-image-card_with-content.g-link:hover .u-card__more:after {
    filter: brightness(0.5);
}
/*------banner-----*/

.pc-media-base:last-of-type {
    background-color: #325AEB;
    border-radius: 32px;
}
.pc-media-base:last-of-type .pc-title-item__text,
.pc-media-base:last-of-type .pc-content__text .yfm_constructor p{
    color: #FFFFFF !important;
}
.pc-media-base:last-of-type .pc-content__text {
    margin-top: 16px;
}
.pc-media-base:last-of-type .pc-content__text .yfm {
     font-size: 15px;
     font-family: "YS Text", sans-serif;
    line-height: 133%;
    
}
.pc-media-base:last-of-type .pc-title-item__text {
    font-family: "YS Text", sans-serif;
    font-weight: 500;
    font-size: 26px;
    line-height: 123%;
}
.pc-media-base:last-of-type .col-12:nth-child(2) {
    align-self: flex-end;
}
.pc-media-base:last-of-type .pc-media-base-content {
    margin-right: 24px;
}
.pc-media-base:last-of-type .pc-media-base__row >.col-12:nth-child(1) {
    padding: 40px 0 40px 32px;
    margin-right: 0;
}
.pc-media-base:last-of-type .g-button {
    width: 100%;
}

.pc-media-base:last-of-type .pc-button-block__text {
    color: #191e28;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pc-media-base:last-of-type .pc-button-block__text:after {
    content: '';
    background: url(https://avatars.mds.yandex.net/get-lpc/12373972/3c1ca1f5-9c73-46e2-88af-5cc5c7fd771e/orig?width=0&height=0) no-repeat left center/ 16px 16px;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    
}
.pc-media-base:last-of-type .g-button.g-button_pin_round-round.g-button {
    border-radius: 14px;
}
.pc-media-base:last-of-type .g-button.g-button_pin_round-round:before {
    background: #FFFFFF;
}


/*----------media banner---------------*/
@media (max-width: 767px) {
     .pc-media-base:last-of-type .pc-media-base__card {
        padding: 0 24px;
    }
}

@media (min-width: 767px) {
    .pc-buttons {
        display: none;
    }
   
}

/*---dark----*/

.g-root_theme_dark .pc-filter-block {

    --pc-text-header-color: #fff;
    --g-text-accent-font-weight: 500;
    --g-font-family-sans: 'YS Text', "Helvetica Neue", "Arial", "Helvetica", sans-serif;
    --g-color-text-link: rgba(255,255,255,0.5);
}

.g-root_theme_dark  .pc-filter-block a.pc-image-card {
    background-color: #3E3D44;
}

.g-root_theme_dark  .pc-filter-block .pc-background-card__image{
    background-color: #3E3D44 !important;
}

.g-root_theme_dark .pc-filter-block .pc-content_size_s .pc-content__text {
    color: rgba(255,255,255,0.5);
}

.g-root_theme_dark .pc-filter-block  .u-card__more:after {
    background-image: url("https://avatars.mds.yandex.net/get-lpc/10116223/897b9391-1902-45ce-bb30-e1195df79c54/orig");
}

.g-root_theme_dark  .pc-filter-block  .u-card__more:before {
    background-color: #5C596E;
}

.g-root_theme_dark .pc-filter-block .pc-link-block__link_has-arrow, .g-root_theme_dark .pc-filter-block .pc-link-block__link_has-arrow {
     color: rgba(255,255,255,0.5);
    font-size: 17px;
    line-height: 24px;
}

.g-root_theme_dark .pc-icons-block__image {
    filter: invert(1) brightness(10);
}

/*-----card----*/

.g-root_theme_dark   .pc-image-card {
    box-shadow: 0px 4px 32px 0px rgba(0, 0, 0, 0.16) !important;
}


.g-root_theme_dark .pc-filter-block .pc-card-layout-block__item .pc-image-card__image {
    background-size: calc(100% - 64px);
    background-repeat: no-repeat;
    background-position: center bottom;
}
/*
.g-root_theme_dark .pc-logo {
    background-image: url(https://avatars.mds.yandex.net/get-lpc/12373972/03446485-1d86-41d3-baca-54e30eeb1e8d/orig);
    background-size: contain;
    background-repeat: no-repeat;
    background-position:left center ;
}

.g-root_theme_dark .pc-logo picture {
    visibility: hidden;
}
*/

.g-root_theme_dark .pc-image-card_with-content.g-link:hover .u-card__more{
    color:#fff;
}

.g-root_theme_dark .pc-image-card_with-content.g-link:hover .u-card__more:after {
    filter: brightness(10);
}

.g-root_theme_dark .pc-filter-block  .pc-link-block__link_has-arrow:active,
.g-root_theme_dark .pc-filter-block  .pc-link-block__link_has-arrow:hover {
    color: #fff;
}
