
#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 {
    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 > svg {
    height: 20px;
    width: auto;
}

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

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

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

@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;
}

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

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

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--classic:hover {
    opacity: 0.9;
    transform: scaleX(1.05) scaleY(1.05);
}

.custom-button--classic: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;
}

.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;
}

.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"] .HeaderLogo__logo-img {
    height: 46px !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;
    }
}

/* Yasmina WA Button START */
.yasmina-whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    inset-inline-end: 25px;
    z-index: 99;

    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);

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

    cursor: pointer;
    transition: all 0.3s ease;
}

[dir="rtl"] .yasmina-whatsapp-btn {
    left: 25px;
    right: initial;
}

.yasmina-whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.yasmina-whatsapp-btn img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@keyframes yasmina-whatsapp-btn-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.yasmina-whatsapp-btn {
    animation: yasmina-whatsapp-btn-pulse 2s infinite;
}
/* Yasmina WA Button END */
