/*
 * Новый дизайн mun.kz — база: шрифт, сброс, типографика, контейнер, фокус, кнопки.
 * Только var(--…) из tokens.css (проверяет SiteNewDesignAssetsTest). Анимаций здесь нет — они в отдельном слое (шаг 8).
 */

/* Inter (OFL, self-hosted, fonts/OFL-Inter.txt). Браузер скачивает только подмножества, символы которых есть на странице. */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Казахские Ә Ғ Қ Ң Ө Ү Һ (U+0460-052F) */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-cyrillic-ext.woff2") format("woff2");
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* ── Сброс ─────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    font-weight: var(--fw-medium);
    line-height: var(--lh-body);
    color: var(--c-ink);
    background: var(--surface-page);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

button {
    font: inherit;
}

:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip {
    position: absolute;
    left: var(--sp-4);
    top: -100px;
    z-index: 100;
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--r-sm);
    background: var(--c-white);
    color: var(--c-ink);
    font-weight: var(--fw-bold);
}

.skip:focus {
    top: var(--sp-2);
}

/* ── Контейнер ─────────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* ── Типографика (шкала холста) ────────────────────────────────────────── */
.t-display {
    font-size: var(--fs-display);
    font-weight: var(--fw-black);
    line-height: var(--lh-tight);
    letter-spacing: var(--tracking-tight);
}

.t-h1 {
    font-size: var(--fs-h1);
    font-weight: var(--fw-black);
    line-height: var(--lh-tight);
    letter-spacing: var(--tracking-tight);
}

.t-h2 {
    font-size: var(--fs-h2);
    font-weight: var(--fw-black);
    line-height: var(--lh-heading);
}

.t-h3 {
    font-size: var(--fs-h3);
    font-weight: var(--fw-bold);
    line-height: var(--lh-heading);
}

.t-h4 {
    font-size: var(--fs-h4);
    font-weight: var(--fw-black);
    line-height: var(--lh-heading);
}

.t-lead {
    font-size: var(--fs-lead);
    font-weight: var(--fw-regular);
    line-height: var(--lh-body);
}

.t-body {
    font-size: var(--fs-body);
}

.t-small {
    font-size: var(--fs-small);
}

.t-caption {
    font-size: var(--fs-caption);
}

.t-micro {
    font-size: var(--fs-micro);
}

.t-eyebrow {
    font-size: var(--fs-h4);
    font-weight: var(--fw-medium);
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
}

.t-muted {
    color: var(--c-ink-muted);
}

.on-dark {
    color: var(--c-on-dark);
}

.on-dark .t-muted {
    color: var(--c-on-dark-muted);
}

/* ── Кнопки ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    min-height: 44px;
    padding: var(--sp-2) var(--sp-5);
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    font-size: var(--fs-body);
    font-weight: var(--fw-bold);
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.btn--primary {
    background: var(--grad-button);
    color: var(--c-on-dark);
    box-shadow: var(--sh-button);
}

.btn--light {
    background: var(--c-white);
    color: var(--c-ink);
}

.btn--outline-dark {
    border-color: var(--c-blue-400);
    background: var(--surface-on-dark);
    color: var(--c-on-dark);
    box-shadow: var(--glow-blue);
}

.btn--ghost {
    border-color: var(--border-light);
    background: transparent;
    color: var(--c-ink);
}

.btn[aria-disabled="true"],
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn__icon {
    width: 18px;
    height: 18px;
    flex: none;
}
