/*
 * Шрифт и дизайн-токены лендинга. Отдельно от base.css, чтобы их можно было подключить
 * на старых страницах (лейаут main.php) без reset и типографики — для попапов (LegacyPopupAsset).
 *
 * Брейкпоинты (mobile-first, в media-запросах — числами, переменные там не работают):
 *   640px  — планшет
 *   980px  — десктоп (здесь же переключается меню)
 *   1200px — широкий десктоп
 */

@font-face {
    font-family: 'Resist Sans';
    src: url('../fonts/resist-sans-300.woff') format('woff');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Resist Sans';
    src: url('../fonts/resist-sans-400.woff') format('woff');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Resist Sans';
    src: url('../fonts/resist-sans-500.woff') format('woff');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Resist Sans';
    src: url('../fonts/resist-sans-700.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

:root {
    /* Цвета */
    --color-ink: #262a40;
    --color-text: #474a59;
    --color-muted: #6c6f7f;
    --color-subtle: #93959f;
    --color-white: #fff;
    --color-snow: #fbfcfd;
    --color-surface: #f5f7fa;
    --color-surface-alt: #ebedf5;
    --color-mist: #ebf0f5;
    --color-line: rgb(38 42 64 / 12%);
    --color-accent: #0195ff;
    --color-error: #f95d51;

    /* Шрифт и типографическая шкала */
    --font-base: 'Resist Sans', Arial, sans-serif;
    --fs-display: 72px;
    --fs-h1: 60px;
    --fs-h2: 48px;
    --fs-h3: 38px;
    --fs-h4: 32px;
    --fs-h5: 26px;
    --fs-lead: 20px;
    --fs-title: 17px;
    --fs-body: 16px;
    --fs-small: 14px;
    --fs-caption: 13px;

    /* Скругления и тени */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 32px;
    --radius-2xl: 64px;
    --radius-pill: 999px;
    --shadow-lg: 0 0 64px rgb(38 42 64 / 20%);
    --shadow-md: 0 16px 64px rgb(64 64 128 / 20%);

    /* Сетка */
    --container: 1136px;
    --gutter: clamp(20px, 9.6vw, 36px);
    --header-height: 64px;

    --transition: 0.3s ease-in-out;
}

@media (min-width: 980px) {
    :root {
        --gutter: 32px;
        --header-height: 112px;
    }
}
