:root {
    --background: hsl(0, 0%, 0%);
    --text-main: hsl(0, 0%, 100%);
    --text-2: hsl(60, 1%, 61%);

    --font-main: "PP Neue Montreal", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--background);
    color: var(--text-main);
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    font-family: var(--font-main);
}

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

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

.site-body.modal-open,
html.modal-open {
    overflow: hidden;
}

.container {
    width: min(1200px, 100%);
    margin-inline: auto;
}

/* ===== Typography utilities (замена SCSS placeholders) ===== */

.typo-brand-title {
    font-size: 94px;
    line-height: 1.1;
    font-weight: 700;
    color: var(--text-main);
}

.typo-title1 {
    font-size: 64px;
    font-weight: 500;
    line-height: 1.05;
    color: var(--text-main);
}

.typo-title2 {
    font-size: 92px;
    font-weight: 500;
    line-height: 1.05;
    color: var(--text-main);
}

.typo-text-mini-dark {
    font-size: 12px;
    color: var(--text-2);
}

.typo-text-light {
    font-family: var(--font-main);
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text-main);
}

.typo-text-dark {
    font-family: var(--font-main);
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text-2);
}

/* ===== Buttons (замена ButtonUnderline / ButtonHoverEffect) ===== */

.btn-underline {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.2;
    padding: 0.2rem 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-underline::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 220ms ease;
}

.btn-underline:hover::after,
.btn-underline:focus-visible::after {
    transform: scaleX(1);
}

.btn-hover-dark {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border-radius: 999px;
    padding: 0.65rem 1rem;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: background 220ms ease, transform 220ms ease, border-color 220ms ease;
}

.btn-hover-dark:hover,
.btn-hover-dark:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

/* ===== Responsive typography (из typography.scss) ===== */

@media (max-width: 1440px) {
    .typo-brand-title {
        font-size: 76px;
        line-height: 1.08;
    }
    .typo-title1 {
        font-size: 56px;
        line-height: 1.08;
    }
    .typo-title2 {
        font-size: 84px;
        line-height: 1.08;
    }
}

@media (max-width: 1024px) {
    .typo-brand-title {
        font-size: 76px;
        line-height: 1.1;
    }
    .typo-title1 {
        font-size: 44px;
        line-height: 1.1;
    }
    .typo-title2 {
        font-size: 72px;
        line-height: 1.1;
    }
}

@media (max-width: 768px) {
    .typo-brand-title {
        font-size: 64px;
        line-height: 1.15;
    }
    .typo-title1 {
        font-size: 36px;
        line-height: 1.15;
    }
    .typo-title2 {
        font-size: 56px;
        line-height: 1.15;
    }
}

@media (max-width: 425px) {
    .typo-brand-title {
        font-size: 48px;
        line-height: 1.2;
    }
    .typo-title1 {
        font-size: 32px;
        line-height: 1.2;
    }
    .typo-title2 {
        font-size: 44px;
        line-height: 1.2;
    }

    .typo-text-light,
    .typo-text-dark {
        font-size: 15px;
        line-height: 1.6;
    }
}

@media (max-width: 375px) {
    .typo-brand-title {
        font-size: 44px;
        line-height: 1.22;
    }
    .typo-title1 {
        font-size: 32px;
        line-height: 1.22;
    }
    .typo-title2 {
        font-size: 40px;
        line-height: 1.22;
    }
    .typo-text-mini-dark {
        font-size: 11px;
    }
    .typo-text-light,
    .typo-text-dark {
        font-size: 14px;
        line-height: 1.65;
    }
}

@media (max-width: 320px) {
    .typo-brand-title {
        font-size: 40px;
        line-height: 1.25;
    }
    .typo-title1 {
        font-size: 30px;
        line-height: 1.25;
    }
    .typo-title2 {
        font-size: 36px;
        line-height: 1.25;
    }
    .typo-text-mini-dark {
        font-size: 10px;
    }
    .typo-text-light,
    .typo-text-dark {
        font-size: 13px;
        line-height: 1.7;
    }
}
