/*
 * KOSMO_TYPOGRAPHY_V3
 *
 * Onest — основной интерфейс.
 * Manrope — заголовки, цены и числовые акценты.
 */

@font-face {
    font-family: "Onest";
    src:
        url("../fonts/kosmo/Onest-Variable.ttf")
        format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: block;
}

@font-face {
    font-family: "Manrope";
    src:
        url("../fonts/kosmo/Manrope-Variable.ttf")
        format("truetype");
    font-style: normal;
    font-weight: 200 800;
    font-display: block;
}

:root {
    --kosmo-font-interface:
        "Onest",
        "Segoe UI",
        Arial,
        sans-serif;

    --kosmo-font-heading:
        "Manrope",
        "Onest",
        "Segoe UI",
        Arial,
        sans-serif;
}

html {
    font-family: var(--kosmo-font-interface);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--kosmo-font-interface) !important;
    font-weight: 400;
    line-height: 1.54;
    letter-spacing: -0.006em;
    font-kerning: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea,
optgroup {
    font-family: var(--kosmo-font-interface) !important;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.btn {
    font-weight: 600;
    letter-spacing: -0.012em;
}

h1,
h2,
h3,
h4,
h5,
h6,
.page-title,
.section-title,
.block-title,
.catalog-title,
.category-title,
.product-title {
    font-family: var(--kosmo-font-heading) !important;
    font-style: normal;
    text-wrap: balance;
}

h1,
.page-title {
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.034em;
}

h2,
.section-title,
.block-title,
.catalog-title {
    font-weight: 750;
    line-height: 1.14;
    letter-spacing: -0.027em;
}

h3,
.category-title,
.product-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.021em;
}

h4,
h5,
h6 {
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

nav a,
header a,
footer a {
    font-weight: 550;
}

label,
legend,
th {
    font-weight: 600;
}

.price,
.product-price,
.catalog-price,
.cart-total,
.order-total,
.total-price,
[class$="-price"],
[class*="__price"] {
    font-family: var(--kosmo-font-heading) !important;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: lining-nums tabular-nums;
}

small,
.text-small,
.text-muted,
.help-text,
.form-text {
    letter-spacing: 0;
    line-height: 1.48;
}

@media (max-width: 767px) {
    body {
        line-height: 1.5;
        letter-spacing: -0.003em;
    }

    h1,
    .page-title {
        letter-spacing: -0.027em;
    }

    h2,
    .section-title,
    .block-title,
    .catalog-title {
        letter-spacing: -0.021em;
    }
}

/* KOSMO_ACCOUNT_HOME_BUTTON_V2_BEGIN */

.kosmo-account-home-button,
.kosmo-account-home-button:link,
.kosmo-account-home-button:visited {
    background: #E4483D !important;
    border-color: #E4483D !important;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow:
        0 10px 24px rgba(228, 72, 61, 0.22);
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.kosmo-account-home-button:hover {
    background: #F05A50 !important;
    border-color: #F05A50 !important;
    color: #ffffff !important;
    box-shadow:
        0 13px 30px rgba(228, 72, 61, 0.30);
    transform: translateY(-1px);
}

.kosmo-account-home-button:active {
    background: #D93F35 !important;
    border-color: #D93F35 !important;
    color: #ffffff !important;
    box-shadow:
        0 7px 18px rgba(228, 72, 61, 0.22);
    transform: translateY(0);
}

.kosmo-account-home-button:focus-visible {
    outline:
        3px solid rgba(228, 72, 61, 0.38) !important;
    outline-offset: 3px;
}

/* KOSMO_ACCOUNT_HOME_BUTTON_V2_END */
