@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&display=swap');

:root {
    --background: #ffffff;
    --text: #111111;
    --secondary: #707070;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background: var(--background);
    color: var(--text);

    font-family: "Onest", sans-serif;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.hero {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 64px 32px 54px;
}

.hero__title {
    margin: 0 0 32px;

    font-size: clamp(42px, 5vw, 74px);
    line-height: 1.04;
    font-weight: 700;
    letter-spacing: -0.045em;

    text-align: center;
}

.hero__visual {
    width: min(980px, 88vw);

    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__container {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;

    user-select: none;
    -webkit-user-drag: none;
}

.hero__phrase {
    min-height: 36px;

    margin-top: 28px;

    font-size: clamp(17px, 1.45vw, 21px);
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.015em;

    text-align: center;
    color: var(--text);
}

.cursor {
    display: inline-block;

    width: 1px;
    height: 1.15em;

    margin-left: 4px;

    background: currentColor;

    vertical-align: -0.12em;

    animation: blink 0.8s steps(1) infinite;
}

@keyframes blink {
    0%,
    48% {
        opacity: 1;
    }

    49%,
    100% {
        opacity: 0;
    }
}

@media (max-width: 700px) {

    .hero {
        padding: 42px 20px 38px;
    }

    .hero__title {
        margin-bottom: 28px;

        font-size: clamp(38px, 11vw, 52px);
        line-height: 1.05;
    }

    .hero__visual {
        width: 100%;
    }

    .hero__phrase {
        margin-top: 24px;

        font-size: 16px;
    }

}

/* Фраза-печатная машинка не является полем ввода */
.hero__phrase,
.hero__phrase * {
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
    caret-color: transparent;
}

.hero__phrase {
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    caret-color: transparent;
}

.hero__phrase * {
    user-select: none;
    -webkit-user-select: none;
    caret-color: transparent;
}
