/* ── Inter: все начертания, но с font-display: swap ── */

@font-face {
    font-family: 'Inter';
    src: url('/wp-content/themes/Impreza-child/fonts/Inter-Regular.woff2') format('woff2'),
         url('/wp-content/themes/Impreza-child/fonts/Inter-Regular.woff')  format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/wp-content/themes/Impreza-child/fonts/Inter-Medium.woff2') format('woff2'),
         url('/wp-content/themes/Impreza-child/fonts/Inter-Medium.woff')  format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/wp-content/themes/Impreza-child/fonts/Inter-SemiBold.woff2') format('woff2'),
         url('/wp-content/themes/Impreza-child/fonts/Inter-SemiBold.woff')  format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/wp-content/themes/Impreza-child/fonts/Inter-Bold.woff2') format('woff2'),
         url('/wp-content/themes/Impreza-child/fonts/Inter-Bold.woff')  format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/wp-content/themes/Impreza-child/fonts/Inter-ExtraBold.woff2') format('woff2'),
         url('/wp-content/themes/Impreza-child/fonts/Inter-ExtraBold.woff')  format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/wp-content/themes/Impreza-child/fonts/Inter-Black.woff2') format('woff2'),
         url('/wp-content/themes/Impreza-child/fonts/Inter-Black.woff')  format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Italic — если где-то используются, оставляем, но с swap */
@font-face {
    font-family: 'Inter';
    src: url('/wp-content/themes/Impreza-child/fonts/Inter-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('/wp-content/themes/Impreza-child/fonts/Inter-BoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}
/* … при необходимости добавьте остальные italic-начертания по аналогии */

/* ── Fallback с метриками Inter: убирает CLS при подмене ── */
@font-face {
    font-family: 'Inter Fallback';
    src: local('Arial');
    ascent-override: 90.20%;
    descent-override: 22.48%;
    line-gap-override: 0%;
    size-adjust: 107.40%;
}