/* ==============================================================
   PRO САЙТ · Библиотека шрифтов
   Тёмная тема сайта: #212121, акцент #20AC79, без закруглений,
   косые срезы, тонкие линии сетки.
   Файл самостоятельный: страницы /fonts/ не зависят от main.min.css.
   ============================================================== */

/* ---------- Шрифт библиотеки ---------- */
@font-face {
    font-family: "Herbarium Display";
    src: url("/fonts/files/HerbariumDisplay-Regular.woff2") format("woff2"),
         url("/fonts/files/HerbariumDisplay-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --g:        #20AC79;
    --g-dark:   #178A5E;
    --g-light:  #4DC594;
    --g-glow:   rgba(32, 172, 121, .40);
    --g-soft:   rgba(32, 172, 121, .08);
    --g-line:   rgba(32, 172, 121, .22);
    --bg:       #212121;
    --panel:    #2b2b2b;
    --panel-2:  #262626;
    --line:     rgba(255, 255, 255, .12);
    --txt:      #ffffff;
    --muted:    #8a8a8a;
    --cut:      40px;
    --wrap:     1240px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }



/* ---------- Шапка ---------- */

/* ---------- Крошки ---------- */
.fs-crumbs {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #949494;
    padding: 26px 0 0;
}
.fs-crumbs a { color: #949494; text-decoration: none; }
.fs-crumbs a:hover { color: var(--g-light); }
.fs-crumbs span { color: #3f3f3f; margin: 0 8px; }

/* ---------- Типографика ---------- */
.fs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 12px;
    border: 1px solid var(--g);
    color: var(--g-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 26px;
}
.fs-eyebrow i {
    width: 7px; height: 7px;
    background: var(--g);
    display: inline-block;
    box-shadow: 0 0 0 4px rgba(32, 172, 121, .25);
    animation: fsPulse 2.4s ease-in-out infinite;
    font-style: normal;
}
@keyframes fsPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(32, 172, 121, .25); }
    50%      { box-shadow: 0 0 0 8px rgba(32, 172, 121, .04); }
}

h1.fs-h1 {
    font-size: clamp(34px, 4.6vw, 62px);
    line-height: 1.03;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 22px;
}
h1.fs-h1 b { font-weight: 800; color: var(--g-light); }

.fs-h2 {
    font-size: clamp(26px, 3vw, 42px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -.01em;
    margin: 0 0 30px;
}
.fs-h2 b { font-weight: 700; }

.fs-h3 { font-size: 20px; font-weight: 700; line-height: 1.3; margin: 0 0 10px; }

.fs-lead {
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.55;
    font-weight: 300;
    color: rgba(255, 255, 255, .82);
    margin: 0 0 24px;
    max-width: 62ch;
}
.fs-lead b { color: var(--g-light); font-weight: 600; }

.fs-text { color: rgba(255, 255, 255, .78); margin: 0 0 18px; max-width: 76ch; }
.fs-text--muted { color: var(--muted); font-size: 14px; line-height: 1.5; }

.fs-sec { padding: 64px 0; border-top: 1px solid var(--line); }
.fs-sec--tight { padding: 44px 0; }

/* ---------- Дисплейный набор ---------- */
.fd {
    font-family: "Herbarium Display", "Playfair Display", "Times New Roman", serif;
    font-weight: 400;
    font-variant-ligatures: none;
}

/* ---------- Hero ---------- */
.fs-hero { padding: 40px 0 0; }
.fs-hero__grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: end;
}
.fs-hero__sub {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}
.fs-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.fs-tag {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #cccccc;
    border: 1px solid rgba(255,255,255,.2);
    padding: 5px 10px;
    line-height: 1;
}

/* ---------- Полоса метрик ---------- */
.fs-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin: 44px 0 0;
}
.fs-strip__item { background: var(--bg); padding: 22px 24px; }
.fs-strip__v {
    font-family: "Roboto", "Open Sans", sans-serif;
    font-weight: 900;
    font-size: 34px;
    line-height: 1;
    color: var(--g);
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}
.fs-strip__l {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #9d9d9d;
    margin-top: 8px;
}

/* ---------- Спесимен-карточка ---------- */
.spec {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 26px 28px 20px;
    overflow: hidden;
}
.spec::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 14px);
    pointer-events: none;
}
.spec__meta {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #7d7d7d;
    margin-bottom: 6px;
}
.spec__glyph {
    position: relative;
    font-size: clamp(120px, 15vw, 190px);
    line-height: .78;
    margin: 0 0 6px;
    color: #fff;
}
.spec__glyph em { color: var(--g); font-style: normal; }
.spec__word {
    position: relative;
    font-size: clamp(22px, 2.6vw, 34px);
    letter-spacing: .04em;
    line-height: 1.1;
    color: #fff;
    margin: 0;
}
.spec__rule {
    position: relative;
    height: 1px;
    background: var(--line);
    margin: 18px 0 12px;
}
.spec__cap {
    position: relative;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #6f6f6f;
    display: flex;
    justify-content: space-between;
}
.spec__corner {
    position: absolute;
    right: -1px; bottom: -1px;
    width: 40px; height: 40px;
    background: var(--g);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

/* ---------- Сетка шрифтов ---------- */
.fs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.fs-card {
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    text-decoration: none;
    transition: background .22s linear, border-color .22s linear;
    position: relative;
    overflow: hidden;
}
/* bootstrap/link-underline глушим во всём поддереве карточки */
.fs-card, .fs-card:hover, .fs-card:focus, .fs-card:active,
.fs-card * , .fs-card:hover * { text-decoration: none !important; }

/* верхняя акцентная линия: растёт слева направо */
.fs-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    height: 2px;
    width: 0;
    background: var(--g);
    transition: width .34s cubic-bezier(.22, .61, .36, 1);
    pointer-events: none;
    z-index: 2;
}
.fs-card:hover { background: #343434; border-color: rgba(32, 172, 121, .38); }
.fs-card:hover::after { width: 100%; }

/* глиф чуть светлеет в акцент и приподнимается */
.fs-card__art span { transition: color .28s linear, transform .34s cubic-bezier(.22,.61,.36,1); }
.fs-card:hover .fs-card__art span { color: var(--g-light); transform: translateY(-3px); }
.fs-card:hover .fs-card__art {
    background-image: repeating-linear-gradient(135deg, rgba(32,172,121,.10) 0 1px, transparent 1px 14px);
}

/* стрелка уезжает вправо, номер шрифта вспыхивает */
.fs-card__arrow { transition: transform .3s cubic-bezier(.22,.61,.36,1), color .2s linear; display: inline-block; }
.fs-card:hover .fs-card__arrow { transform: translateX(7px); color: var(--g-light); }
.fs-card__name em { transition: border-color .22s linear, color .22s linear; }
.fs-card:hover .fs-card__name em { border-color: var(--g); color: #fff; }
.fs-card__name { transition: color .2s linear; }
.fs-card:hover .fs-card__name { color: #fff; }

/* клавиатурный фокус — тот же контур, что и при наведении */
.fs-card:focus-visible { outline: 2px solid var(--g); outline-offset: 3px; }
.fs-card:focus-visible::after { width: 100%; }

@media (hover: none) {
    .fs-card:hover .fs-card__art span { transform: none; }
    .fs-card:hover .fs-card__arrow { transform: none; }
}
.fs-card__art {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 1px, transparent 1px 14px);
}
.fs-card__art span { font-size: 92px; line-height: 1; letter-spacing: .02em; white-space: nowrap; }
.fs-card__body { padding: 22px 24px 24px; }
.fs-card__name {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: -.01em;
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.fs-card__name em {
    font-family: "Roboto Condensed", sans-serif;
    font-style: normal;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--g-light);
    border: 1px solid var(--g-line);
    padding: 3px 7px;
}
.fs-card__desc { color: #a9a9a9; font-size: 14px; line-height: 1.55; margin: 0 0 14px; }
.fs-card__foot {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #7d7d7d;
}
.fs-card__arrow { color: var(--g); font-size: 15px; letter-spacing: 0; }
.fs-card--empty {
    border-style: dashed;
    border-color: rgba(255,255,255,.16);
    background: transparent;
    justify-content: center;
    align-items: flex-start;
    padding: 30px;
    min-height: 100%;
}
.fs-card--empty .fs-card__art { background: none; border: 0; height: auto; align-items: flex-start; justify-content: flex-start; padding: 0 0 14px; }
.fs-card--empty .fs-card__plus { font-family: "Roboto", sans-serif; font-weight: 300; font-size: 64px; line-height: 1; color: #4a4a4a; }
.fs-card--empty .fs-card__body { padding: 0; }

/* ---------- Карточки метода ---------- */
.fs-method { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.fs-method__card { background: var(--panel); padding: 30px 30px 26px; position: relative; }
.fs-method__n {
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: .1em;
    color: var(--g);
    margin-bottom: 16px;
}
.fs-method__card h3 { font-size: 19px; font-weight: 700; margin: 0 0 10px; }
.fs-method__card p { margin: 0; color: #a9a9a9; font-size: 14.5px; line-height: 1.6; }

/* ---------- Числа-цитаты ---------- */
.fs-quote {
    border-left: 2px solid var(--g);
    padding: 4px 0 4px 22px;
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 300;
    color: rgba(255,255,255,.85);
}
.fs-quote b { color: #fff; font-weight: 600; }

/* ---------- Код ---------- */
.fs-code {
    position: relative;
    background: #171717;
    border: 1px solid var(--line);
    border-left: 3px solid var(--g);
    margin: 0 0 22px;
}
.fs-code__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    font-family: "Roboto Condensed", sans-serif;
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #7d7d7d;
}
.fs-code pre {
    margin: 0;
    padding: 18px 18px 20px;
    overflow-x: auto;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.7;
    color: #d6d6d6;
    tab-size: 2;
}
.fs-code .c { color: #6f7d76; }
.fs-code .p { color: var(--g-light); }
.fs-code .v { color: #d9b519; }
.fs-copy {
    background: none;
    border: 1px solid var(--line);
    color: #b5b5b5;
    cursor: pointer;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 5px 10px;
    transition: .18s;
}
.fs-copy:hover { border-color: var(--g); color: var(--g-light); }
.fs-copy.is-done { border-color: var(--g); color: #0e1a14; background: var(--g); }

/* ---------- Кнопки ---------- */
.fs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 2px solid var(--g);
    background: transparent;
    color: #fff;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 15px;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 14px 26px;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s linear, color .2s linear, border-color .2s linear;
    line-height: 1;
}
.fs-btn:hover { background: var(--g); color: #0e1a14; }
.fs-btn--solid { background: var(--g); color: #0e1a14; }
.fs-btn--solid:hover { background: var(--g-light); border-color: var(--g-light); }
.fs-btn--ghost { border-color: var(--line); color: #cfcfcf; }
.fs-btn--ghost:hover { border-color: var(--g); color: #fff; background: var(--g-soft); }
.fs-btn--dark { border-color: #0e1a14; color: #0e1a14; }
.fs-btn--dark:hover { background: #0e1a14; color: var(--g-light); }
.fs-btn--sm { font-size: 12px; padding: 10px 16px; gap: 8px; }
.fs-btn i { font-style: normal; font-size: 15px; line-height: 1; }

/* ---------- Панель скачивания / счётчик ---------- */
.fs-dl {
    position: relative;
    background: var(--g);
    color: #0e1a14;
    padding: 30px 28px 26px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.fs-dl__label {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    opacity: .72;
}
.fs-dl__num {
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-size: 64px;
    line-height: 1;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
    margin: 8px 0 4px;
}
.fs-dl__num.is-bump { animation: fsBump .45s ease; }
@keyframes fsBump { 40% { transform: translateY(-4px); } }
.fs-dl__hint { font-size: 13px; line-height: 1.45; opacity: .75; margin-bottom: 20px; max-width: 34ch; }
.fs-dl__main { width: 100%; margin-bottom: 12px; }
.fs-dl__row { display: flex; gap: 10px; flex-wrap: wrap; }
.fs-dl__row a {
    flex: 1 1 130px;
    text-align: center;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    color: #0e1a14;
    border: 1px solid rgba(14, 26, 20, .35);
    padding: 10px 8px;
    transition: .18s;
}
.fs-dl__row a:hover { background: #0e1a14; color: var(--g-light); border-color: #0e1a14; }
.fs-dl__note {
    font-size: 11.5px;
    line-height: 1.5;
    opacity: .7;
    margin: 14px 0 0;
}

/* ---------- Блок «живой набор» ---------- */
.fs-live { border: 1px solid var(--line); background: var(--panel); }
.fs-live__input {
    width: 100%;
    background: #1c1c1c;
    border: 0;
    border-bottom: 1px solid var(--line);
    color: #fff;
    font-family: "Open Sans", sans-serif;
    font-size: 15px;
    padding: 14px 18px;
    outline: none;
}
.fs-live__input:focus { border-bottom-color: var(--g); }
.fs-live__stage {
    padding: 30px 24px;
    min-height: 150px;
    display: flex;
    align-items: center;
    overflow: hidden;
    word-break: break-word;
    font-size: 96px;
    line-height: .95;
    background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 1px, transparent 1px 16px);
}
.fs-live__ctrl {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    border-top: 1px solid var(--line);
    font-family: "Roboto Condensed", sans-serif;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #7d7d7d;
}
.fs-live__ctrl input[type="range"] { flex: 1; accent-color: var(--g); }
.fs-live__ctrl output { color: var(--g-light); min-width: 48px; text-align: right; }

/* ---------- Таблица символов ---------- */
.fs-charset__group { border-top: 1px solid var(--line); padding: 22px 0 6px; }
.fs-charset__label {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #7d7d7d;
    margin-bottom: 14px;
}
.fs-charset__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.fs-charset__cell {
    background: var(--panel-2);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #eaeaea;
    transition: background .15s, color .15s;
}
.fs-charset__cell:hover { background: var(--g); color: #0e1a14; }

/* ---------- Размерная линейка ---------- */
.fs-scale__row {
    display: flex;
    align-items: baseline;
    gap: 22px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    padding: 12px 0;
}
.fs-scale__px {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 10px;
    letter-spacing: .1em;
    color: #6f6f6f;
    width: 46px;
    flex-shrink: 0;
    text-transform: uppercase;
}
.fs-scale__sample { font-size: 40px; line-height: 1.05; color: #fff; }

/* ---------- Пример использования ---------- */
.fs-use {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 0;
    border: 1px solid var(--line);
    background: var(--panel);
}
.fs-use__demo {
    padding: 34px 32px;
    background: #1d1d1d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--line);
}
.fs-use__demo .k {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--g);
    margin-bottom: 12px;
}
.fs-use__demo .t { font-size: clamp(26px, 3vw, 40px); line-height: 1.02; }
.fs-use__demo .s { font-family: "Open Sans", sans-serif; font-size: 14px; color: #9a9a9a; margin-top: 16px; line-height: 1.55; }
.fs-use__body { padding: 30px 30px; }
.fs-use__body h3 { margin: 0 0 10px; font-size: 19px; }
.fs-use__body p { color: #a9a9a9; font-size: 14.5px; margin: 0 0 18px; }

/* ---------- FAQ ---------- */
.fs-faq { border-top: 1px solid var(--line); }
.fs-faq details { border-bottom: 1px solid var(--line); }
.fs-faq summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 44px 20px 0;
    position: relative;
    font-size: 16.5px;
    font-weight: 600;
    line-height: 1.4;
    color: #f0f0f0;
}
.fs-faq summary::-webkit-details-marker { display: none; }
.fs-faq summary::after {
    content: "+";
    position: absolute;
    right: 4px; top: 16px;
    color: var(--g);
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-size: 26px;
    line-height: 1;
    transition: transform .2s;
}
.fs-faq details[open] summary::after { content: "−"; }
.fs-faq details[open] summary { color: #fff; }
.fs-faq__a { padding: 0 44px 22px 0; color: #a9a9a9; font-size: 15px; line-height: 1.65; max-width: 80ch; }
.fs-faq__a p { margin: 0 0 10px; }
.fs-faq__a p:last-child { margin: 0; }

/* ---------- CTA-панель ---------- */
.fs-cta {
    position: relative;
    background: var(--g);
    color: #0e1a14;
    padding: 44px 40px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.fs-cta h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.01em; margin: 0 0 10px; }
.fs-cta p { margin: 0; max-width: 52ch; font-size: 15px; line-height: 1.55; }
.fs-cta .fs-btn { border-color: #0e1a14; color: #0e1a14; }
.fs-cta .fs-btn:hover { background: #0e1a14; color: var(--g-light); }

/* ---------- Подвал ---------- */

/* ---------- Назад ---------- */
.fs-back { padding: 40px 0 64px; text-align: center; }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
    .fs-hero__grid { grid-template-columns: 1fr; gap: 32px; }
    .fs-grid, .fs-method { grid-template-columns: 1fr; }
    .fs-use { grid-template-columns: 1fr; }
    .fs-use__demo { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 767px) {
    :root { --cut: 20px; }
    .fs-crumbs { padding-top: 18px; }
    .fs-strip { grid-template-columns: repeat(2, 1fr); }
    .fs-strip__v { font-size: 26px; }
    .fs-sec { padding: 44px 0; }
    .fs-card__art { height: 150px; }
    .fs-card__art span { font-size: 62px; }
    .fs-dl__num { font-size: 48px; }
    .fs-cta { padding: 30px 22px; }
    .fs-live__stage { font-size: 56px; padding: 22px 16px; }
    .fs-charset__grid { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); }
    .fs-charset__cell { font-size: 20px; }
    .fs-faq__a { padding-right: 0; }
    .fs-scale__sample { font-size: 30px; }
}



/* ==============================================================
   Переполнение по горизонтали (мобильная вёрстка)
   grid/flex-дети по умолчанию имеют min-width:auto, поэтому длинные
   строки в <pre> и именах файлов растягивали колонку шире экрана.
   ============================================================== */
main.fs-main { overflow-x: clip; }
@supports not (overflow-x: clip) { main.fs-main { overflow-x: hidden; } }

.fs-two > *, .fs-use > *, .fs-grid > *, .fs-method > *,
.fs-hero__grid > *, .fs-samples > * { min-width: 0; }

.fs-code, .fs-code__head, .fs-code pre, .fs-code pre code,
.fs-live, .fs-use__demo, .fs-use__body, .fs-dl { min-width: 0; max-width: 100%; }

.fs-code pre { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fs-code__head { flex-wrap: wrap; row-gap: 6px; }
.fs-code__head > * { min-width: 0; overflow-wrap: anywhere; }

/* ==============================================================
   Интеграция с вёрсткой сайта (main.min.css + custom.css)
   Своя шапка/подвал не нужны: используются includes сайта.
   ============================================================== */
main.fs-main {
    position: relative;
    z-index: 1;
    color: #fff;
    padding-top: 26px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
main.fs-main a { color: inherit; }
main.fs-main img { max-width: 100%; }
main.fs-main ::selection { background: var(--g); color: #0e1a14; }
main.fs-main code {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: .88em;
    color: var(--g-light);
    background: rgba(32, 172, 121, .10);
    padding: 2px 6px;
}
main.fs-main .fs-code code { background: none; padding: 0; color: inherit; font-size: 12.5px; }
@media (max-width: 767px) {
    main.fs-main { padding-top: 16px; }
    .fs-samples { grid-template-columns: 1fr !important; }

    /* «Файлы и счётчик»: код и панель скачивания не должны вылезать за край */
    .fs-two { gap: 22px; }
    /* код переносится по словам: горизонтальной прокрутки внутри блока нет */
    .fs-code pre, .fs-code pre code {
        font-size: 11.5px;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
        overflow-x: hidden;
    }
    .fs-code pre { padding: 15px 14px 16px; }
    .fs-code__head { font-size: 9px; letter-spacing: .1em; padding: 9px 13px; }
    .fs-dl { padding: 26px 22px 24px; }
    .fs-dl__row a { flex: 1 1 100%; }
    .fs-dl__note { margin-top: 12px; }
}
