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

@font-face {
    font-family: 'YS Sans';
    src: url('https://yastatic.net/s3/home/fonts/ys/1/sans-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YS Sans';
    src: url('https://yastatic.net/s3/home/fonts/ys/1/sans-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-text: 'YS Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'YS Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.g-root_theme_light {
    --g-color-text-link-visited: #5C6F7E;
    --g-color-text-link-visited-hover: #465866;
    --market-active-background: #EAF2F6;
    --market-table-header-background: #EAF2F6;
}

.dc-doc-page .yfm {
    font-family: var(--font-text);
    font-size: 16px;
    line-height: 1.6;
}

.dc-doc-page .yfm h1 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2rem, 2rem);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.dc-doc-page .yfm h2 {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 1.625rem, 1.625rem);
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.dc-doc-page .yfm h3 {
    font-family: var(--font-display);
    font-size: clamp(1.125rem, 1.375rem, 1.375rem);
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.dc-doc-page .yfm h4 {
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.125rem, 1.125rem);
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.dc-doc-page .yfm h5 {
    font-family: var(--font-display);
    font-size: clamp(0.938rem, 1rem, 1rem);
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: -0.005em;
}

.dc-doc-page .yfm h6 {
    font-family: var(--font-display);
    font-size: clamp(0.875rem, 0.938rem, 0.938rem);
    line-height: 1.45;
    font-weight: 600;
    letter-spacing: -0.002em;
}

.dc-doc-page-title,
.dc-doc-page__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 2.5rem, 2.5rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.dc-doc-page .yfm li::marker {
    color: var(--g-color-text-link, #A8331F);
}

.yfm .yfm-note {
    border-radius: 16px;
    padding: 12px 16px;
    margin: 16px 0;
}

.yfm .yfm-note.yfm-accent-tip > :first-child::before,
.yfm .yfm-note.yfm-accent-info > :first-child::before,
.yfm .yfm-note.yfm-accent-warning > :first-child::before,
.yfm .yfm-note.yfm-accent-alert > :first-child::before {
    content: none;
}

.dc-doc-page .yfm .yfm-tabs:not(.yfm-tabs-accordion) .yfm-tab {
    box-sizing: border-box;
    padding: 6px 10px;
    border-bottom: 2px solid transparent;
}

.dc-doc-page .yfm .yfm-tabs:not(.yfm-tabs-accordion) .yfm-tab.active {
    border-radius: 5px 5px 0 0;
    background: var(--market-active-background);
    border-bottom-color: var(--g-color-line-brand, #B6341D);
    color: var(--g-color-text-primary);
    text-decoration: none;
}

.g-root .dc-mini-toc__section_active > .dc-mini-toc__section-link {
    background-color: var(--market-active-background);
    border-radius: 0;
    border-left: 2px solid var(--g-color-line-brand, #B6341D);
}

.dc-doc-page .yfm table tr,
.dc-doc-page .yfm table tr:nth-child(2n) {
    background: var(--yfm-color-table-row-background, #F5F9FC);
}

.dc-doc-page .yfm table tr th,
.dc-doc-page .yfm table tr:first-child td,
.dc-doc-page .yfm table tbody tr:first-child td {
    background: var(--market-table-header-background);
    font-weight: 700;
}
