
@font-face {
    font-family: "AkkuratLLCyr";
    src: url("font/AkkuratLLCyr-Regular.otf") format("opentype");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

/* ОБЩИЕ НАСТРОЙКИ */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "AkkuratLLCyr", sans-serif;
    font-weight: 100;
    background: #e7e7e7;
    color: #222222;
}

/* СЕТКА СТРАНИЦЫ */

.page {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;

    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 1fr auto;

    padding: 5vh 4vw;
}

/* ЗАГОЛОВОК */

header {
    grid-column: 1 / -1;
    grid-row: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-width: 0;
}

h1 {
    width: 100%;
    margin: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 0.12em;

    font-size: 14vw;
    font-weight: 100;
    line-height: 0.95;
    letter-spacing: -0.045em;
    white-space: nowrap;
}

/* СЛОВА И БУКВЫ */

.word {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

/* НИЖНИЙ БЛОК */

main {
    grid-column: 1 / -1;
    grid-row: 2;

    display: grid;
    justify-items: center;
    align-content: end;

    gap: 2vh;
    width: 100%;
    padding: 0;

    text-align: center;
}

/* ОСНОВНОЙ ТЕКСТ */

h2 {
    margin: 0;
    font-size: clamp(1rem, 1.5vw, 1.8rem);
    font-weight: 100;
    line-height: 1.4;
    text-align: center;
}

p {
    margin: 0;
    font-size: clamp(1.5rem, 2.5vw, 3rem);
    font-weight: 100;
    text-align: center;
}

/* КОНТАКТНЫЕ КНОПКИ */

.contacts {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 1vw;
    margin-top: 1vh;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6vw;

    padding: 1.2vh 1.5vw;

    border: 1px solid #222222;
    border-radius: 100px;

    color: #222222;
    background: transparent;

    font-family: inherit;
    font-size: clamp(0.85rem, 1.1vw, 1.2rem);
    font-weight: 100;

    text-decoration: none;

    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.contact-icon {
    font-size: 1.2em;
}

.contact-link:hover {
    background: #222222;
    color: #ffffff;
}

/* ВЕРТИКАЛЬНЫЙ ЭКРАН */

@media (orientation: portrait) {

    .page {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 1fr auto;

        padding: 5vh 4vw;
    }

    header {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    h1 {
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        font-size: 24vw;
        line-height: 0.95;
        white-space: normal;
    }

    .word {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    main {
        grid-column: 1 / -1;
        grid-row: 2;

        justify-items: center;
        text-align: center;
        gap: 2vh;
    }

    h2 {
        font-size: 4vw;
    }

    p {
        font-size: 7vw;
    }

    .contacts {
        justify-content: center;
        gap: 2vw;
    }

    .contact-link {
        padding: 1.5vh 3vw;
        font-size: 3.5vw;
    }
}
