* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-family: 'Raleway', sans-serif;
    color: #000000;
}

img {
    max-width: 100%;
}

.card-img {
    max-width: 100%;
}

.container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.none {
    display: none !important;
}


/* Header */
.header {
    position: relative;
    width: 100%;
    height: 100vh;

    /* Определяем модель .header*/
    display: flex;
    flex-direction: column;/*Выстраиваем flex-direction*/

    justify-content: center;
    align-items: center;

    /*Изображение фона*/
    /* background-color: #556983; */
    /* background-image: url("./../img/header/header-bg.jpeg"); */
    background-size: cover;
    background-position: center;
}


.header-title {
    margin: 0;
    margin-bottom: 25px;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 56px;
    line-height: 130%;
    text-align: center;
    color: #FFFFFF;
}

.header-subtitle {
    font-family: 'Montserrat';
font-style: normal;
font-weight: bold;
font-size: 16px;
line-height: 150%;
/* or 24px */

text-align: center;
letter-spacing: 0.2em;
text-transform: uppercase;
color: #FFFFFF;

}

.header-arrow{
    width: 48px;
    height: 48px;

    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%, 0);
}

/* Portfolio */

.portfolio{
    padding-top: 80px;
    padding-bottom: 115px;
}

.portfolio-header {
    margin: 0;
    margin-bottom: 70px;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 46px;
    line-height: 130%;
    text-align: center;
    color: #000000;
}

.portfolio-cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    
    justify-content: space-between;
}

.card {
    border-radius: 10px;
    margin-bottom: 30px;
    max-width: 540px;
    background-color: #fff;
    box-shadow: 0px 10px 40px #7e9bbd59;
    transition: transform 0.2s ease-in;
}

.card:hover {
    transform: translateY(-10px);
}

.card-link {
    padding: 20px; 
    display: block;
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease-in;
}

.card-link:hover {
    color: #6a8d84;
}


.card:last-child, .card:nth-last-child(2) {
    margin-bottom: 0;
}


.card-img {
    margin-bottom: 20px;
}

.card-title {
    margin: 0;
    margin-bottom: 13px;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-size: 24px;
    line-height: 130%;
    /* color: #000000; */
}

.card p {
    margin: 0;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    /* color: #000000; */
}

.footer {
    padding-top: 45px;
    padding-bottom: 130px;
    background: #394F49;
    color: white;
}

.footer-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.footer-col {
    max-width: 350px;
    flex-grow: 1;
}

.footer-copyright {

    color: #6a8d84;
    line-height: 1.3;
}

.footer-copyright-name {
    font-family: 'Montserrat';
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 15px;
}

.footer-copyright p {
    margin: 0;
    margin-bottom: 15px;
    font-family: 'Montserrat';
    font-weight: 600;
    font-size: 16px;
}


.footer-icons p {
    font-family: 'Montserrat';
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
}

.footer-icons-row {
    display: flex;
    align-items: center;
}

.footer-icons-row > * {
    margin-right: 30px;
}


.footer-button {
    display: inline-block;
    height: 50px;
    padding-left: 30px;
    padding-right: 30px;

    border: 3px solid #FFFFFF;
    border-radius: 50px;

    font-weight: 700;
    font-size: 16px;
    line-height: 44px;
    color: white;
    text-transform: uppercase;
    text-decoration: none;

    transition: all 0.2s ease-in;
}

.footer-button:hover  {
    background-color: white;
    color: #394F49;
}

.footer-contacts p {
    margin: 15px 0;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.3;
    color: #6a8d84;
}

/* Project */

.project {
    padding: 50px;
    text-align: center;
}

.project-header {
    margin: 0;
    margin-bottom: 40px;
    font-family: 'Montserrat';
    font-weight: 700;
    font-size: 46px;
    line-height: 1.3;
    text-align: center;
}

.project-img {
    margin-bottom: 70px;
}

.project-description {
    margin: 0 auto;
    max-width: 730px;
    margin-bottom: 15px;
}

.project-description p {
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.project-button {
    margin-top: 60px;
    display: inline-block;
    height: 60px;
    padding-left: 30px;
    padding-right: 30px;

    border: 3px solid #6a8d84;
    border-radius: 50px;

    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 54px;
    color: #6a8d84;
    text-transform: uppercase;
    text-decoration: none;

    transition: all 0.2s ease-in;
}

.project-button:hover {
    background-color: #6a8d84;
    color: white;
}

