/* Заглушка «сайт временно недоступен» — статичная версия по макету Figma (13187:9247, 13187:9258).
   Брейкпоинты продублированы из src/assets/scss/base/_vars.scss:
   lg 1440, l 1200, t 1024, mn 992, m 768, xx 576, x480 480, x425 425, x393 393, x360 360 */

@font-face {
    font-family: "AA Stetica";
    src: url("fonts/AAStetica-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Montserrat";
    src: url("fonts/Montserrat-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    --fill-accent-1-1: #0d2e1a;
    --text-inverse-100: #fff;
    --font-family: "Montserrat", sans-serif;
    --second-family: "AA Stetica", sans-serif;
    --padding-container: 40px;
}

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

html {
    height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 0.521vw;
}

body {
    margin: 0;
    min-height: 100%;
    font-family: var(--font-family);
    font-weight: 500;
    color: var(--text-inverse-100);
    background-color: var(--fill-accent-1-1);
}

h1,
p {
    margin: 0;
}

.container {
    width: 100%;
    max-width: calc(144rem + var(--padding-container) * 2);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--padding-container);
    padding-right: var(--padding-container);
}

.container.--big {
    max-width: calc(176rem + var(--padding-container) * 2);
}

.logo {
    display: inline-block;
}

.logo__img {
    display: block;
    width: 28.4rem;
    height: auto;
}

/* заглушка: шапка и текст лежат в одной ячейке сетки, текст по центру экрана */

.stub-page {
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: 100%;
    min-height: 100vh;
    min-height: 100svh;
    background: var(--fill-accent-1-1) url("img/stub_bg.webp") no-repeat right center / cover;
}

.stub-page__header,
.stub-page__body {
    grid-area: 1 / 1;
}

.stub-page__header {
    align-self: start;
    position: relative;
    z-index: 1;
}

.stub-page__body {
    align-self: center;
}

/* текст не заходит на товар: при высоте экрана H товар на фоне начинается в 100vw - 78vh */
.stub-page__content {
    width: min(71rem, 100vw - 78vh - var(--padding-container) - 4rem);
    max-width: 100%;
}

.stub-page__title {
    margin-bottom: 2.4rem;
    font-family: var(--second-family);
    font-weight: 700;
    font-size: min(4.8rem, (100vw - 78vh - var(--padding-container) - 4rem) / 14);
    line-height: 110%;
    text-transform: uppercase;
}

.stub-page__text {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
    font-size: 2rem;
    line-height: 120%;
}

/* адаптив */

@media (max-width: 1440px) {
    html {
        font-size: 0.55vw;
    }
}

@media (max-width: 1200px) {
    html {
        font-size: 0.7vw;
    }

    .logo__img {
        width: 18rem;
    }
}

@media (max-width: 1024px) {
    html {
        font-size: 0.8vw;
    }
}

/* планшеты и телефоны: текст сверху, товар внизу */
@media (max-width: 992px) {
    html {
        font-size: 1.04vw;
    }

    .stub-page {
        grid-template-rows: auto 1fr;
        background-color: #05200f;
        background-image: url("img/stub_bg_mobile.webp");
        background-position: center bottom;
        background-size: 100% auto;
    }

    .stub-page__header,
    .stub-page__body {
        grid-area: auto;
    }

    .stub-page__header .container {
        display: flex;
        justify-content: center;
    }

    .logo__img {
        width: 14.2rem;
    }

    .stub-page__body {
        align-self: start;
        /* товар занимает нижние ~76vw фона */
        padding-top: 5rem;
        padding-bottom: 80vw;
    }

    .stub-page__content {
        width: 60rem;
    }

    .stub-page__title {
        font-size: 4.8rem;
    }
}

@media (max-width: 768px) {
    :root {
        --padding-container: 24px;
    }

    html {
        font-size: 1.3vw;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 1.6vw;
    }
}

@media (max-width: 480px) {
    :root {
        --padding-container: 16px;
    }

    html {
        font-size: 2.6vw;
    }

    .stub-page__body {
        padding-top: 4.4rem;
    }

    .stub-page__title {
        margin-bottom: 1.6rem;
        font-size: 2.2rem;
        line-height: 120%;
    }

    .stub-page__text {
        gap: 1.8rem;
        font-size: 1.6rem;
    }
}

@media (max-width: 425px) {
    html {
        font-size: 2.5vw;
    }
}

@media (max-width: 393px) {
    html {
        font-size: 2.56vw;
    }
}

@media (max-width: 360px) {
    html {
        font-size: 2.778vw;
    }
}
