
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-black: #232323;
    --color-white: #ffffff;
    --color-light_grey: #f1f1f1;
}

body {
    display: flex;
    flex-direction: column;
    background-color: var(--color-light_grey);
    font-family: 'Inter Tight', sans-serif;
    line-height: 1.6;
    font-weight: 600;
    padding: 0px 40px;
    height: 100vh;
}

main {
    flex-grow: 1;
}

/* Ссылки */
a {
    color: var(--color-black);
}

a:hover {
    color: #636363;
}

a:active {
    color: #838383;
}

a:visited {
    color: var(--color-black)
}

/* Убираем маркеры у списков */
.contacts__list li, .header li {
    list-style: none;
}

.contacts__list li {
    font-size: 1.2rem;
}

/* Гриды и контейнры */
.container {
    display: grid;
    grid-template-columns: repeat(6, 1fr); 
    column-gap: 20px;
    padding-top: 100px;
    row-gap: 20px;
}

.contacts__list {
    align-self: end;
}

/* Убираем верхние  отступы в контейнерах подвала и шапки */
header > .container, footer > .container {
    padding: 0px;
}


/*=== Фиксированная шапка сайта === */

.header {
    padding: 0px 40px;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-light_grey);
    height: auto;
    position: fixed;
    z-index: 1000;
    font-size: 1.2rem;
}

.header__logo {
    grid-column: 1 / 3;
}

.header__logo a {
    text-decoration: none;
}

/* Позиционирование пунктов меню по сетке + вывод списков в ряд */
.header__menu {
    grid-column: 3 / 6;
    justify-items: stretch;
}

.header__menu li {
    display: inline;
    margin-right: 15px;
}

.header__contact {
    text-align: right;
}



/*===== FOOTER  ===== */

.footer {
    /* height: 60px; */
    /* margin-bottom: 10px; */
    align-self: end;
    font-size: 1.2rem;
}
/* 
.footer__list-container {
    grid-column: -1;
    text-align: right;  
} 

.footer__list-item {
    display: inline;
    margin-left: 15px;
    font-size: 1rem;
    list-style: none;
}

.footer__copyright {
    grid-column: 1 / 3;
} */



/*=====  ПЕРВЫЙ ЭКРАН ===== */

.hero.container {
    height: 100vh;
    grid-template-rows: 3fr 2fr;
    padding-bottom: 20px;
}

.hero__photo {
    border-radius: 20px;
    width: 150px;
    height: 150px;
    grid-column: 1 / 3;
    grid-row: 1 / 3;        
}

.hero__text {
    grid-column: 3 / 7;
}

.hero__text p {
    font-size: 1.7rem;
    line-height: 2.2rem;
}

@media screen and (max-width: 1023px) {
.hero__text, .contacts__list {
    grid-column: 1 / 7;

}

.hero.container {
    height: 100%;
    margin-top: 20px;
    grid-template-rows: auto;
    grid-auto-flow: row;
}

.hero__text p {
    font-size: 1.2rem;
    line-height: 1.4rem;
}

.hero__photo {
    grid-column: 1 / 3;
    width: 100%;
    height: auto;
    border-radius: 20%;
}

body {
    padding: 0px 20px; 
}

.header {
    padding: 0px 20px;
}

.header__logo {
    grid-column: 1 / 2;
}

.header__menu {
grid-column: 2 / 3;
justify-items: stretch;
}

.container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.footer { 
    grid-column:  span 4;
    align-items: end;
}
}