
#root, .g-root, .yfm {
    --yfm-font-family-sans: 'YS Text', 'Helvetica Neue', Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;
    font-family: 'YS Text', 'Helvetica Neue', Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.yfm strong, .yfm-tab, .yfm .yfm-note .yfm-note-title {
    font-weight: 600;
}

.copyrights-note {
    font-size: 12px;
    color: var(--g-color-text-secondary);
    margin: 1em 0 !important;
}

.availability-caption {
    color: var(--g-color-text-secondary);
    font-size: 0.8em;
    margin: 0 0 0.5em !important;
}

.availability-caption + p {
    margin-bottom: 2em;
}

.machine-translation-note {
    font-size: 10px;
    color: rgba(0, 0, 0, 0.3);
    margin: 1em 0 !important;
}

/* .dc-doc-page__page-contributors {
    margin: auto;
} */

/* фикс Аккордеонов */
.yfm-tabs-accordion {
    max-width: 100% !important;
}

.yfm-tabs-accordion .yfm-tab {
    padding-right: 35px !important;
    white-space: normal !important;
}
/* фикс Аккордеонов */


.open-app-button {
    margin: 0 0 15px 0 !important;
}

.open-app-button + .yfm-cut,
dfn details.yfm-cut {
    font-size: 0.8em;
    line-height: 1em;
    color: #808080;
}

/* style is not being used */
.instruction-with-inline-imgs li > p > svg,
.instruction-with-inline-imgs li > p > img,
.instruction-with-inline-imgs li > svg,
.instruction-with-inline-imgs li > img {
    height: 20px;
    width: auto;
}

.buttons-functions-table table tr td svg,
.buttons-functions-table table tr td img {
    max-width: max-content;
}

.buttons-functions-table table td:nth-child(2) svg,
.buttons-functions-table table td:nth-child(2) img {
    height: auto;
    width: 40px;
    min-width: 40px;
}

.yfm .colors-table table tr td img {
    max-width: 88px;
    width: 88px;
}

/* Прозрачный фон для SVG-изображений с inline=false */
.yfm img[src$=".svg"] {
    background-color: transparent !important;
}

@media screen and (max-width:768px) {
    .yfm .mobile-column-2-50_50 table tr {
        display: grid;
        grid-template-columns: 50% 50%;
    }
}

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

@media screen and (max-width:768px) {
    .yfm .mobile-column-1 table tr {
      display: grid;
      grid-template-columns: 100%;
    }
  }

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

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

.yfm .va-top table tr td {
    vertical-align: top;
}

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

@font-face {
    font-family: 'YS Text';
    src: url('https://yastatic.net/s3/home/fonts/ys/4/text-light-italic.woff') format('woff'), url('https://yastatic.net/s3/home/fonts/ys/4/text-light-italic.woff2') format('woff2');
    font-weight: 300;
    font-style: italic;
    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 Text';
    src: url('https://yastatic.net/s3/home/fonts/ys/4/text-regular-italic.woff') format('woff'), url('https://yastatic.net/s3/home/fonts/ys/4/text-regular-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    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-medium-italic.woff') format('woff'), url('https://yastatic.net/s3/home/fonts/ys/4/text-medium-italic.woff2') format('woff2');
    font-weight: 500;
    font-style: italic;
    font-stretch: normal;
}

@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-bold-italic.woff') format('woff'), url('https://yastatic.net/s3/home/fonts/ys/4/text-bold-italic.woff2') format('woff2');
    font-weight: 600;
    font-style: italic;
    font-stretch: normal;
}

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

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

@font-face {
    font-family: 'YS Display';
    src: url('https://yastatic.net/s3/home/fonts/ys/4/display-regular.woff') format('woff'), url('https://yastatic.net/s3/home/fonts/ys/4/display-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-medium.woff') format('woff'), url('https://yastatic.net/s3/home/fonts/ys/4/display-medium.woff2') format('woff2');
    font-weight: 500;
    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;
}

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

@font-face{
font-family:'YS Compressed';
src:url('https://yastatic.net/s3/lpc-ext/шрифты_23/YSCompressed-Heavy.woff2') format('woff2');
font-weight:800;
font-style:normal;
font-display:swap;
}

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


/* Скрытие кнопок */

/* Скрытие кнопки "Язык" (на пк) */

body:not(:has(.language-support)) .g-button[aria-label="Язык"] {
    display: none !important;
}

/* Скрытие кнопки переключения темы (на моб) */

.dc-mobile-control:has(button[disabled]) {
    display: none !important;
}

/* Скрытие кнопок (на моб) */

html[lang="ru"] body:not(:has(.language-support)) .dc-mobile-controls {
    display: none !important;
}

/* Кастомные кнопки */

.custom-button {
    border: none;
    border-radius: 50px !important;
    padding: 16px 24px;
    color: #fff !important;
    font-family: var(--yfm-font-family-sans), sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    cursor: pointer;
    user-select: none;
}

.custom-button--classic {
    border: none;
    background-color: #7137FF !important;
    transition: opacity 0.2s linear, transform 0.2s linear;
}

.custom-button--telegram {
    border: none;
    background-color: #0088cc !important;
    transition: opacity 0.2s linear, transform 0.2s linear;
}

.custom-button--messenger {
    border: none;
    background-color: #1fdeef !important;
    transition: opacity 0.2s linear, transform 0.2s linear;
}

.custom-button:hover,
.custom-button-feedback:hover {
    opacity: 0.9;
    transform: scaleX(1.05) scaleY(1.05);
}

.custom-button:active,
.custom-button-feedback:active {
    transform: scaleX(0.95) scaleY(0.95);
}

.custom-button--with-icon {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 11.5px 24px !important;
    outline: 2px solid #7137FF !important;
    color: #7137FF !important;
    transition: opacity 0.2s linear, transform 0.2s linear;
}

img.custom-button--with-icon {
    background-color: unset !important;
}

.custom-button--with-icon:hover {
    opacity: 0.9;
    transform: scaleX(1.05) scaleY(1.05);
}

.custom-button--with-icon:active {
    transform: scaleX(0.95) scaleY(0.95);
}

.custom-button__icon {
  object-fit: cover !important;
  object-position: center;
  block-size: 25px;
  inline-size: 25px;
  max-height: initial !important;
  background-color: unset !important;
}

.yfm li ul+div, .yfm li ol+div {
    margin: 15px 0 15px 0 !important;
}

.yfm li p + div.open-app-button {
    margin: 15px 0 15px 0 !important;
}


/* Для Нового года */

/* Кастомное лого */
/* html[lang="ru"] .pc-logo__icon {
    max-height: 50px !important;
} */

/* Кастомные иконки якорей */
/* .yfm .yfm-anchor {
    padding-right: 0px !important;
    width: 0px !important;
    margin-left: -21px !important;
}

.yfm .yfm-anchor:before {
    content: "☃️" !important;
}*/



/* Грид для добавления устройств */

.device-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    gap: 20px;
    width: 100%;
    padding: 10px 10px 20px 10px;
    box-sizing: border-box;
}

/* Карточка устройства */
.device-card {
    flex: 0 1 170px;
    max-width: 170px; /* Максимальная ширина */
    aspect-ratio: 170 / 200; /* Пропорция карточки */
    background: var(--g-color-base-background, #fff);
    border: 1px solid rgba(97, 56, 244, 0.2);
    border-radius: 15px;
    box-sizing: border-box;
    text-align: center;
    overflow: hidden;
    position: relative; /* Для позиционирования текста */
    transition: transform 0.3s ease-out;
}

.device-card:hover {
    transform: scale(1.04);
    }

/* Делаем ссылку полностью кликабельной */
.card-link {
    display: block;
    text-decoration: none;
    color: var(--g-color-text-primary, #000);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    mix-blend-mode: multiply;
    z-index: 11; /* Ссылка должна быть выше всех остальных элементов */
}

/* Стили для изображения внутри ссылки */
.card-link img {
    height: 65%;
    object-fit: contain;
    margin: 5% auto 0; /* Центрируем изображение */
    display: block;
}

/* Стили для текста */
.card-text {
    position: absolute;
    bottom: 0;
    width: 100%;
    line-height: 14px;
    text-align: center;
    color: var(--g-color-text-primary, #000);
    padding: 0 10px 20px 10px;
    box-sizing: border-box;
    /* Динамический размер шрифта в зависимости от ширины viewport'а */
    font-size: clamp(12px, calc(12px + (15 - 12) * (100vw - 300px) / (768 - 300)), 15px);
    z-index: 10;
    font-weight: 400;
}

/* Адаптивность для планшетов (≤ 768px) */
@media (max-width: 768px) {
    .device-grid {
        gap: 15px;
        justify-content: start;
    }

    .device-card {
        flex: 0 1 170px; /* Начальная ширина 170px */
        max-width: min(calc(33.33% - 10px), 170px); /* Максимальная ширина — треть контейнера, но не больше 170px */
        min-width: 140px;
    }
}

/* Адаптивность для телефонов (≤ 480px) */
@media (max-width: 480px) {
    .device-grid {
        gap: 10px;
    }

    .device-card {
        flex: 0 1 170px; /* Начальная ширина 170px */
        max-width: min(calc(50% - 10px), 170px); /* Максимальная ширина — половина контейнера, но не больше 170px */
        min-width: 140px;
    }
}

/* Для очень узких экранов (≤ 300px) */
@media (max-width: 300px) {
    .device-card {
        flex: 0 1 170px; /* Начальная ширина 170px */
        max-width: 170px; /* Максимальная ширина 170px */
        margin: 0 auto;
        min-width: 140px;
    }
}

/* Floating Buttons START */
.yasmina-whatsapp-btn, .telegram-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    inset-inline-end: 25px;
    z-index: 99;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: message-btn-pulse 2s infinite;
}

/* Специфичные стили для WhatsApp */
.yasmina-whatsapp-btn {
    background: #25D366;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Специфичные стили для Telegram */
.telegram-btn {
    background: #0088cc;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

/* Общие hover-эффекты */
.yasmina-whatsapp-btn:hover, .telegram-btn:hover {
    transform: scale(1.1);
}

/* Специфичные тени при hover */
.yasmina-whatsapp-btn:hover {
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.telegram-btn:hover {
    box-shadow: 0 6px 16px rgba(0, 136, 204, 0.4);
}

/* Общие стили для изображений */
.yasmina-whatsapp-btn img, .telegram-btn img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    background-color: unset !important; /* Иначе получается белый квадратный фон */
}

/* Анимация */
@keyframes message-btn-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* RTL поддержка */
[dir="rtl"] .yasmina-whatsapp-btn, [dir="rtl"] .telegram-btn {
    left: 25px;
    right: initial;
}
/* Floating Buttons END */



/* ========================= */
/* НЕЙРОЭКСПЕРТ НАЧАЛО */
/* ========================= */

.container.fixed iframe[title="neuroexpert-widget"] {
border-radius: 16px;
box-shadow: none !important;
border: 1px solid rgba(97, 56, 244, 0.2) !important;
background-clip: padding-box;
}

@media (min-width:761px){

.ne-banner{

width:300px;
height:150px;

padding:12px;

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

background:#5286FF;

backdrop-filter:blur(28px);

border-radius:8px;

box-shadow:
0 0 12px rgba(169,76,255,0.2),
9px 9px 4px rgba(153,161,255,0.12),
inset 0 0 10px rgba(152,183,255,0.4),
inset 0 0 21px rgba(112,108,253,0.52);

color:white;


transition:
opacity .25s ease,
transform .25s ease;

}


/* заголовок */

.ne-banner .ne-title{

font-family:"YS Compressed", sans-serif;
font-weight:800;

font-size:20px;
line-height:1.1;

text-transform:uppercase;
letter-spacing: 0.5px;

}


/* описание */

.ne-banner .ne-desc{

font-family:"YS Geo", sans-serif;
font-size:13px;
line-height:1.3;

opacity:.95;
margin-bottom: 12px;} 


/* кнопка виджета */

.ne-banner .toggle-button{

width:100% !important;
height:40px !important;

background:#F2F2F2 !important;

border-radius:8px !important;

padding: 12px 14px 10px 14px !important;

font-family:"YS Compressed", sans-serif !important;
font-weight:800 !important;

font-size:20px !important;

color:#302B31 !important;

display:flex !important;
align-items:center !important;
justify-content:center !important;

gap:5px !important;

border:none !important;

cursor:pointer !important;

text-transform:uppercase !important;

letter-spacing: 0.5px !important;
transition: none !important;

}


/* иконка */

.ne-banner .toggle-button img{

width:20px;
height:20px;

}

}


/* ========================= */
/* MOBILE */
/* ========================= */

@media (max-width:760px){

.container.fixed iframe[title="neuroexpert-widget"] {
margin-bottom: calc(env(safe-area-inset-bottom) + 42px);
}

.ne-desc{
display:none !important;
}

.ne-banner{

position:fixed;

left:0;
bottom:0;

width:100%;
height:auto;

padding:12px 16px;

display:flex;
align-items:center;
justify-content:space-between;
gap:12px;

background:#5286FF;

border-radius:8px 8px 0 0;

color:white;

z-index:9999;

transition:
opacity .25s ease,
transform .25s ease;

}


/* заголовок */

.ne-banner .ne-title{

font-family:"YS Compressed", sans-serif;
font-weight:800;

font-size:15px;
line-height:1.2;
letter-spacing: 0.5px;

text-transform:uppercase;

flex:1;

}


/* кнопка */

.ne-banner .toggle-button{

height:40px !important;

background:#F2F2F2 !important;

border-radius:8px !important;

padding: 12px 14px 10px 14px !important;

font-family:"YS Compressed", sans-serif !important;
font-weight:800 !important;

font-size:17px !important;

color:#302B31 !important;

display:flex !important;
align-items:center !important;
justify-content:center !important;

gap:8px !important;

text-transform:uppercase !important;
width: 11rem !important;
letter-spacing: 0.5px !important;
transition: none !important;

}


/* иконка */

.ne-banner .toggle-button img{

width:18px;
height:18px;

}

}

@media (max-width:359px){

.ne-banner .ne-title{
font-size:13px;
letter-spacing:0.3px;
}

.ne-banner .toggle-button{
width:10rem !important;
font-size:14px !important;
}

}

@media (min-width:360px) and (max-width:389px){

.ne-banner .ne-title{
font-size:14px;
letter-spacing:0.4px;
}

.ne-banner .toggle-button{
width:12rem !important;
font-size:18px !important;
}

}

@media (min-width:390px) and (max-width:430px){

.ne-banner .ne-title{
font-size:15px;
letter-spacing:0.5px;
}

.ne-banner .toggle-button{
width: 13rem !important;
font-size:20px !important;
}

}

@media (min-width:431px) and (max-width:760px){

.ne-banner .ne-title{
font-size:16px;
letter-spacing:0.6px;
}

.ne-banner .toggle-button{
width:14rem !important;
font-size:20px !important;
}

}


/* =============================== */
/* CHAT OPEN STATE */
/* =============================== */

.ne-banner.chat-open{

background:transparent !important;
box-shadow:none !important;

padding:0 !important;

width:auto !important;
height:auto !important;

transform:scale(.8);

pointer-events:none;

}


/* скрываем текст баннера */

.ne-banner.chat-open .ne-title,
.ne-banner.chat-open .ne-desc{
display:none !important;
}


/* круглая кнопка */

.ne-banner.chat-open .toggle-button{

width:50px !important;
height:50px !important;

border-radius:50% !important;

padding:0 !important;

display:flex !important;
align-items:center !important;
justify-content:center !important;

gap:0 !important;

/* убираем текст */
font-size:0 !important;
color:transparent !important;
text-indent:-9999px !important;
overflow:hidden !important;

/* отключаем стандартную анимацию виджета */
transition:none !important;

}


/* крестик */

.ne-banner.chat-open .toggle-button img{

content:url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23302B31' stroke-width='2'>\
<line x1='18' y1='6' x2='6' y2='18'/>\
<line x1='6' y1='6' x2='18' y2='18'/>\
</svg>");

width:20px !important;
height:20px !important;

display:block !important;

text-indent:0 !important;

}


/* =============================== */
/* MOBILE POSITION */
/* =============================== */

@media (max-width:760px){

.ne-banner.chat-open{

position:fixed !important;

right:16px !important;
left:auto !important;

bottom:calc(env(safe-area-inset-bottom) + 16px) !important;

}

}
/* ========================= */
/* НЕЙРОЭКСПЕРТ конец */
/* ========================= */
