/* ============================================================
   TERRA PRO — главная страница
   Макеты: Figma «Terra Pro редизайн», фреймы 1920 / 1440 / 768 / 375
   Брейкпоинты: >1600 — токены 1920; ≤1600 — 1440; ≤1024 — 768; ≤576 — 375
   ============================================================ */

/* ---------- Шрифты ----------
   TT Hoves Pro — коммерческий шрифт, файлы не входят в поставку.
   Положите woff2-файлы в assets/fonts/ и раскомментируйте блок. */

@font-face {
    font-family: "TT Hoves Pro";
    src: url("../fonts/TTHovesPro-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "TT Hoves Pro";
    src: url("../fonts/TTHovesPro-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-white-40: rgba(255, 255, 255, 0.4);
    --color-gray-2: #7c7f7f;
    --color-tabbar: rgba(36, 36, 36, 0.95);
    --color-banner-bg: #f1f0ec;

    --font-main: "TT Hoves Pro", "Helvetica Neue", Arial, sans-serif;

    /* токены 1920 */
    --fs-h1: 80px;
    --fs-h2: 56px;
    --fs-card: 24px;
    --fs-text: 18px;
    --fs-button: 20px;

    --container-pad: 40px;
    --grid-gap: 20px;
    --section-pad-bottom: 120px;
    --tabbar-height: 71px;
}

@media (max-width: 1600px) {
    :root {
        --fs-h1: 60px;
        --fs-h2: 46px;
        --fs-card: 22px;
        --container-pad: 20px;
        --section-pad-bottom: 100px;
    }
}

@media (max-width: 1024px) {
    :root {
        --fs-h1: 54px;
        --fs-h2: 36px;
        --fs-card: 18px;
        --section-pad-bottom: 80px;
    }
}

@media (max-width: 576px) {
    :root {
        --fs-h1: 40px;
        --fs-h2: 36px;
        --fs-card: 16px;
        --fs-text: 16px;
        --fs-button: 18px;
        --container-pad: 15px;
        --grid-gap: 16px;
        --section-pad-bottom: 60px;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: var(--fs-text);
    line-height: 1.2;
    color: var(--color-black);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

h1,
h2,
h3,
p {
    font-weight: 400;
}

/* ---------- Кнопка-ссылка со стрелкой ----------
   Состояния по макету: default — стрелка ↗, hover — стрелка →,
   disable — текст и стрелка #7C7F7F */
.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-button);
    line-height: 1;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

/* стрелка красится в currentColor через маску */
.button__arrow {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    background: currentColor;
    -webkit-mask: url("/local/templates/terrapro/assets/icons/arrow-black.svg") center / contain no-repeat;
    mask: url("/local/templates/terrapro/assets/icons/arrow-black.svg") center / contain no-repeat;
    transition: transform 0.2s ease-in-out;
}

.button:hover .button__arrow {
    transform: rotate(45deg);
}

.button--white {
    color: var(--color-white);
}

.button--black {
    color: var(--color-black);
}

.button:disabled,
.button.is-disabled {
    color: var(--color-gray-2);
    pointer-events: none;
}

@media (max-width: 576px) {
    .button__arrow {
        width: 16px;
        height: 16px;
    }
}