@font-face {
    font-family: 'BlinkMacSystemFont';
    src: url('../fonts/BlinkMacSystemFont-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Обычный (Regular) */
@font-face {
    font-family: 'BlinkMacSystemFont';
    src: url('../fonts/BlinkMacSystemFont-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BlinkMacSystemFont';
    src: url('../fonts/BlinkMacSystemFont-Light.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BlinkMacSystemFont';
    src: url('../fonts/BlinkMacSystemFont-Ultralight.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

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

body {
    line-height: 1;
    font-family: 'BlinkMacSystemFont';
    font-weight: 600;
    font-style: normal;
    background: #0c0c0c;
    overflow-x: hidden;
    vertical-align: baseline;
    color: #fbfbfc;
    position: relative;
    background-image: url('../img/bg-3.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 120px;
}

#footer,
#header,
.grid {
    width: 800px;
    margin: 0 auto;
    padding: 0 30px;
}



#logo {
    margin-top: 60px;
    width: 120px;
    height: 120px;
    background: url(../img/black-logo.webp) center / 120px 121px no-repeat;
}


#nav {
    margin-top: 30px;
    margin-bottom: 90px;
}

#nav li {
    display: inline;
    margin-right: 18px;
}

#nav li a:hover,
.heading a {
    color: #fcfcfc;
}

#nav li a {
    text-decoration: none;
    font-size: 24px;
    line-height: 28px;
    color: grey;
}

#nav li a,
p.heading,
p.note {
    font-weight: 200;
}

ol,
ul {
    list-style: none;
}

::selection {
    background: #fcfcfc;
    color: #000;
    text-shadow: none;
}

#about {
    padding-top: 30px;
}

h1.title {
    margin-bottom: 35px;
}

.title {
    font-weight: 400;
    font-size: 42px;
    line-height: 49px;
    color: #fbfbfc;
}

p.heading {
    font-size: 22px;
    line-height: 30px;
    margin-bottom: 50px;
    color: #c1c1c1;
}


.me {
    margin-bottom: 60px;
}


#nav li a,
p.heading,
p.note {
    font-weight: 300;
}

img {
    width: 100%;
}


.about__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    -o-object-fit: cover;
    object-fit: cover;
    z-index: -1;
}

.me {
    background-image: url(../img/n8.webp);
    width: 100%;
    height: 420px;
    background-size: cover;
}



@media only screen and (max-width: 768px) {

    #footer,
    #header,
    .grid,
    .me {
        width: 100%;
    }

    .me {
        background-image: url(../img/111.jpg);
        width: 100%;
        height: 472px;
    }

    .title {
        font-size: 33px;
        line-height: 39px;
        margin-bottom: 30px;
    }
    

    p.heading {
        font-size: 18px;
        line-height: 28px;
    }
    
    #nav li a {
    font-size: 22px;
}

    #nav {
        margin-top: 30px;
        margin-bottom: 22px;
    }
}