
@font-face {
    font-family: 'Cormorant', serif;
    src: url(fonts/Cormorant/Cormorant-Bold.woff2);
    font-weight: 700;
    font-style: italic;
}
@font-face {
    font-family: 'Roboto Slab', serif;
    src: url(fonts/RobotoSlab/RobotoSlab-Regular.woff2);
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Roboto Slab', serif;
    src: url(fonts/RobotoSlab/RobotoSlab-Bold.woff2);
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Jost', sans-serif;
    src: url(fonts/Jost/Jost-Medium.woff2);
    font-weight: 500;
    font-style: normal;
}

:root {
    --yellow: #FBF138;
    --black: #000000;
    --white: #FFFFFF;
    --font-cormorant: 'Cormorant', serif;
    --font-jost: 'Jost', sans-serif;
    --font-roboto: 'Roboto Slab', serif;
}
html {
    font-size: 10px;
}
body {
    background-color: var(--black);
    background-image: url(images/cosmos.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100%;
    font-size: 1.6rem;
    font-weight: 400;
    font-family: var(--font-roboto);
}
.container {
    padding: 0 15px 0 15px;
    margin: 0 auto;
    max-width: 1143px;
}

/* шапка сайта */

header {
    margin-top: 1.5rem;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-block {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.header-logo {
    background-image: url(images/sun.svg);
    background-repeat: no-repeat;
    background-size: cover;
    width: 70px;
    height: 70px;
}
.header-nav {
    list-style-type: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5rem;
}
.header-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 2rem;
    transition: .3s;
    letter-spacing: 0.07rem;
}
.header-nav a:hover {
    color: var(--yellow);
}
.header-nav a:hover::after {
    background-color: var(--yellow);
}
.header-nav a::after {
    content: ' ';
    display: block;
    width: 100%;
    height: 1.5px;
    border-radius: 1.5px;
    background-color: transparent;
    transition: 1s;
    margin-top: 6px;
}
.header-links {
    list-style-type: none;
    padding-left: 0;
    display: flex;
}
.header-links a {
    display: block;
    width: 30px;
    height: 30px;
    transition: 0.4s;
    transform: scale(1);
}
.header-links a:hover {
    transform: scale(1.5);
}
.vk {
    background-image: url(images/vk.svg);
    background-repeat: no-repeat;
    background-size: cover;
}
.telegram {
    background-image: url(images/telegram2.svg);
    background-repeat: no-repeat;
    background-size: cover;
    margin-left: 3rem;
}

/* cosmos */

.content {
    margin-top: 5rem;
}
.content-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.content-text {
    max-width: 49rem;
}
.text {
    color: var(--white);
    font-size: 9rem;
    font-weight: 700;
    font-style: italic;
    font-family: var(--font-cormorant);
    line-height: 1.25;
    margin: 0 0 5rem 0;
    text-shadow: 
        1px 1px 0px #f2eded,
        2px 2px 0px #5a5656,
        3px 3px 0px #3e3b3b,
        4px 4px 0px #2c2929,
        5px 5px 0px #201d1d,
        6px 6px 0px #161515,
        7px 7px 0px #111010,
        8px 8px 0px #0c0c0c,
        9px 9px 0px #0a0a0a,
        10px 10px 0px #f2eded,
        15px 15px 25px rgba(249, 249, 247, 0.9);
    transition: .3s;
}
.text:hover {
    text-shadow: 
        1px 1px 0px #f2eded,
        2px 2px 0px #5a5656,
        3px 3px 0px #3e3b3b,
        4px 4px 0px #2c2929,
        5px 5px 0px #201d1d,
        6px 6px 0px #161515,
        7px 7px 0px #111010,
        8px 8px 0px #0c0c0c,
        9px 9px 0px #0a0a0a,
        10px 10px 0px #FBF138,
        15px 15px 25px rgba(237, 244, 54, 0.9);
}
.link {
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    font-family: 'Jost', serif;
    letter-spacing: .07rem;
    padding: 2.1rem 2.7rem;
    color: var(--yellow);
    background-color: var(--black);
    border: 1px solid var(--yellow);
    border-radius: 1rem;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: .3s;
}
.link:hover {
    color: var(--black);
    background-color: var(--yellow);
    border: 1px solid var(--black);
}
.cosmos-sky {
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(images/enter.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    width: 40rem;
    height: 47rem;
    border: 2px solid var(--white);
    border-radius: 50%;
    transition: .5s;
}
    /* box-shadow: 10px 10px 120px 10px rgba(239, 243, 3, 0.596); */

.cosmos-sky:hover{
    border-color: var(--yellow);
}
.cosmos-text {
    max-width: 30rem;
    font-size: 3.3rem;
    line-height: 1.5;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    color: var(--yellow);
    margin: 0;
    opacity: 0;
    text-shadow: 
        1px 1px 0px #f2eded,
        2px 2px 0px #5a5656,
        3px 3px 0px #3e3b3b,
        4px 4px 0px #2c2929,
        5px 5px 0px #201d1d,
        6px 6px 0px #161515,
        7px 7px 0px #111010,
        8px 8px 0px #0c0c0c,
        9px 9px 0px #0a0a0a,
        10px 10px 0px #f2f2ed,
        15px 15px 25px rgba(249, 249, 247, 0.9);
    transition: .5s;
}
.cosmos-sky:hover .cosmos-text {
    opacity: 1;
}

/* footer */

footer {
    margin-top: 5rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    /* background-color: rgb(14, 25, 58, 0.6); */
}
.footer-header {
    display: flex;
    justify-content: center;
    align-items: center;
}
.footer-nav {
    list-style-type: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5rem;
}
.footer-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.6rem;
    letter-spacing: 0.07rem;
    opacity: 0.8;
}
.footer-nav a:hover {
    color: var(--yellow);
}
.footer-contact::before {
    content: "|";
    position: relative;
    left: -2.5rem;
    pointer-events: none;
}
.footer-contact:hover::before {
    color: var(--white);
}

/* open modal */

.modal {
    background-color: rgb(5, 17, 57);
    max-width: 45rem;
    text-align: center;
    position: absolute;
    top: -400px;
    left: 0;
    right: 0;
    margin: 0 auto 2rem auto;
    padding: 3rem 3rem;
    border: 3px solid var(--white);
    border-radius: 5px;
    box-sizing: border-box;
    transition: .5s;
}

.header-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style-type: none;
}
.header-modal a {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.15rem;
}

.header-open {
    background-image: url(images/menu.svg);
    background-repeat: no-repeat;
    background-size: 1.7rem 1.5rem;
    background-color: transparent;
    position: relative;
    width: 4.4rem;
    height: 4.4rem;
    cursor: pointer;
    background-position: center center;
    border-radius: 100%;
    border: 2px solid var(--yellow);
    border-image: initial;
    transition: 0.3s;
}

.header-close {
    background-image: url(images/close.svg);
    background-repeat: no-repeat;
    background-size: 1.6rem 1.4rem;
    background-color: transparent;
    background-position: center center;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 4.0rem;
    height: 4.0rem;
    cursor: pointer;
    border-radius: 100%;
    border: 1px solid var(--white);
    border-image: initial;
    transition: 0.3s;
}

/* Responsive */

@media (max-width: 1080px){
    .text {
        text-shadow: 
        1px 1px 0px #f2eded,
        2px 2px 0px #5a5656,
        3px 3px 0px #3e3b3b,
        4px 4px 0px #2c2929,
        5px 5px 0px #201d1d,
        6px 6px 0px #161515,
        7px 7px 0px #111010,
        8px 8px 0px #0c0c0c,
        9px 9px 0px #0a0a0a,
        10px 10px 0px #FBF138,
        15px 15px 25px rgba(237, 244, 54, 0.9);
    }
    .cosmos-text {
        opacity: 1;
    }
    .cosmos-sky {
        border-color: var(--yellow);
    }
}
@media (max-width: 1024px){
    .header-nav {
        gap: 4rem;
    }
}
@media (min-width: 901px) {
    .header-open {
        display: none;
    }
}
@media (max-width: 900px) {
    .header-nav {
        display: none;
    }
    .header-logo {
        width: 6rem;
        height: 6rem;
    }
    .content-text {
        max-width: 43rem;
    }
}
@media (max-width: 760px){
    .content-flex {
        justify-content: center;
        flex-direction: column;
        gap: 4rem;
    }
    .content-text {
        max-width: 100%;
        text-align: center;
    }
    .text {
        margin-bottom: 4rem;
    }
    .modal {
        max-width: 40rem;
    }
}
@media (max-width: 700px){
    .modal {
        max-width: 35rem;
    }
}
@media (max-width: 600px) {
    .footer-nav {
        gap: 2rem;
    }
    .footer-nav a {
        font-size: 1.4rem;
    }
    .footer-contact::before {
        left: -0.8rem;
    }
}
@media (max-width: 500px){
    .text {
        font-size: 7rem;
    }
    .link {
        font-size: 1.3rem;
    }
    .cosmos-text {
        font-size: 2.6rem;
    }
    .cosmos-sky {
        width: 32rem;
        height: 38rem;
    }
    .footer-nav {
        justify-content: center;
        flex-wrap: wrap;
    }
}