/* =========================
   ШРИФТЫ
   ========================= */

@font-face {
    font-family: "Borntod";
    src: url("fonts/Borntod-Thin.otf") format("opentype");
    font-weight: 300;
}

@font-face {
    font-family: "Borntod";
    src: url("fonts/Borntod-Regular.otf") format("opentype");
    font-weight: 400;
}

@font-face {
    font-family: "Borntod";
    src: url("fonts/Borntod-Bold.otf") format("opentype");
    font-weight: 700;
}


/* Шрифт подзаголовка */

@font-face {
    font-family: "TT2020";
    src: url("fonts/TT2020StyleD-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}


/* Шрифт кнопки */

@font-face {
    font-family: "Londrina";
    src: url("fonts/LondrinaSolid_Cyrillic.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}


/* =========================
   ОСНОВНЫЕ НАСТРОЙКИ
   ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #111;
    color: white;

    overflow: hidden;
}


/* =========================
   ГЛАВНЫЙ ЭКРАН
   ========================= */

.hero {
    position: relative;

    width: 100%;
    height: 100vh;

    background-image: url("images/history-bg.jpg");

    background-size: cover;
    background-position: center;

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


/* =========================
   ЗАТЕМНЕНИЕ ФОТОГРАФИИ
   ========================= */

.overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.05) 0%,
            rgba(0, 0, 0, 0.08) 35%,
            rgba(0, 0, 0, 0.48) 70%,
            rgba(0, 0, 0, 0.68) 100%
        );
}


/* =========================
   ТЕКСТОВЫЙ БЛОК
   ========================= */

.hero-content {
    position: relative;

    z-index: 1;

    width: 100%;
    max-width: 900px;

    margin-left: 35%;

    text-align: center;

    transform: translateY(-81%);
}


/* =========================
   ГЛАВНОЕ СЛОВО
   ========================= */

.hero-content h1 {
    font-family: "Borntod", serif;

    font-size: clamp(110px, 12vw, 210px);

    font-weight: 300;

    letter-spacing: 0.08em;

    line-height: 0.9;

    margin-bottom: 28px;

    color: rgba(255, 255, 255, 0.94);

    text-shadow:
        0 5px 30px rgba(0, 0, 0, 0.45);
}


/* =========================
   ПОДЗАГОЛОВОК
   ========================= */

.hero-content p {
    width: 100%;

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

    font-size: 30px;

    font-weight: 400;

    letter-spacing: 0.30em;

    color: rgba(255, 255, 255, 0.92);

    margin-bottom: 58px;

    text-shadow:
        0 3px 15px rgba(0, 0, 0, 0.65);
}


/* =========================
   КНОПКА
   ========================= */

.start-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 380px;

    padding: 25px 70px;

    border: 1px solid rgba(255, 255, 255, 0.62);

    border-radius: 17px;

    color: white;

    text-decoration: none;

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

    font-size: 30px;

    font-weight: 400;

    text-transform: uppercase;

    letter-spacing: 0.08em;

    background: rgba(20, 20, 20, 0.30);

    backdrop-filter: blur(12px);

    box-shadow:
        0 12px 45px rgba(0, 0, 0, 0.30);

    transform: translateY(8px);

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}


/* =========================
   НАВЕДЕНИЕ НА КНОПКУ
   ========================= */

.start-button:hover {
    transform: translateY(8px) scale(1.07);

    background: rgba(255, 255, 255, 0.16);

    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.45);
}


/* =========================
   АДАПТАЦИЯ
   ========================= */

@media (max-width: 900px) {

    .hero-content {
        margin-left: 20%;
        margin-right: 5%;

        transform: translateY(-50%);
    }

    .hero-content h1 {
        font-size: 90px;
    }

    .hero-content p {
        font-size: 23px;

        margin-bottom: 45px;
    }

    .start-button {
        min-width: 300px;

        padding: 21px 50px;

        font-size: 26px;
    }
}

/* =========================
   ПЕРЕХОД МЕЖДУ СТРАНИЦАМИ
   ========================= */

.page-transition {
    position: fixed;

    inset: 0;

    z-index: 9999;

    background: rgba(0, 0, 0, 0.35);

    backdrop-filter: blur(0px);

    opacity: 1;

    pointer-events: none;

    transition:
        opacity 0.35s ease,
        backdrop-filter 0.35s ease;
}


/* Плавное появление страницы */

body.page-loaded .page-transition {
    opacity: 0;

    backdrop-filter: blur(0px);
}


/* Переход на следующую страницу */

body.page-leaving .page-transition {
    opacity: 1;

    backdrop-filter: blur(10px);
}