* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: 'Montserrat', sans-serif;
}

.none {
	display: none !important;
}

img {
	max-width: 100%;
}

.container {
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
}

/* header */

.header {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 100vh;
	max-width: 100%;
	background-image: url("./../img/header/header-bg.jpg");
	background-color: #556983;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.header-title {
	margin: 0;
	font-weight: 700;
	font-size: 56px;
	line-height: 1.3;
	color: white;
	text-align: center;
}

.header-subtitle {
	font-weight: 700;
	font-size: 16px;
	text-align: center;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	line-height: 1.3;
	color: white;
}

.header-arrow {
	position: absolute;
	height: 48px;
	width: 48px;
	bottom: 30px;
	left: 50%;
	transform: translate(-50%, 0);
}

/* Portfolio */

.portfolio {
	padding-top: 80px;
	padding-bottom: 115px;
}

.portfolio-header {
	font-size: 46px;
	font-weight: 700;
	margin-bottom: 70px;
	text-align: center;
}

.portfolio-cards-wrapper {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.card {
	background-color: white;
	max-width: 540px;
	margin-bottom: 30px;
	box-shadow: 0px 10px 40px rgba(126, 155, 189, 0.35);
	transition: transform 0.2s ease-in;
}

.card:hover {
	transform: translateY(-15px);
}

.card-link {
	display: block;
	padding: 20px;
	text-decoration: none;
	color: #000;
	transition: color 0.2s ease-in;
}

.card-link:hover {
	color: rgb(39, 91, 236);
}

.card-title {
	margin: 0;
	margin-bottom: 13px;
	font-weight: 600;
	font-size: 24px;
	line-height: 1.3;
}

.card-img {
	margin-bottom: 20px;
}

.card p {
	margin: 0;
	line-height: 1.3;
	font-size: 15px;
}

/* footer */

.footer {
	padding-top: 45px;
	padding-bottom: 130px;
	background-color: #1e4767;
	color: white;
}

.footer-row {
	display: flex;
	flex-direction: row;
	align-items: baseline;
	justify-content: space-between;
}

.footer-col {
	min-width: 350px;
	flex-grow: 1;
}

.footer-icons-row {
	display: flex;
	align-items: center;
	justify-content: center;
}

.footer-icons-row > * {
	margin-left: 30px;
	text-decoration: none;
}

.footer-copyright-name {
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 15px;
}

.footer-copyright p {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 15px;
}

.footer-icons p {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}

.footer-button {
	display: inline-block;
	padding: 12px 30px;
	color: #fff;
	border: 3px solid #fff;
	border-radius: 50px;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
	transition: all 0.2s ease-in;
	cursor: pointer;
}

.footer-button:hover {
	color: #1e4767;
	background-color: #fff;
}

.footer-contacts p {
	margin: 15px 0;
	font-size: 16px;
	line-height: 1.3;
}

/* Project */

.project {
	padding: 80px 0 120px 0;
	text-align: center;
}

.project-header {
	margin: 0;
	margin-bottom: 40px;
	font-weight: 700;
	font-size: 46px;
	line-height: 1.3;
}

.project-img {
	margin-bottom: 70px;
}

.project-description {
	margin: 0 auto 60px;
	max-width: 730px;
}

.project-description p {
	margin-top: 0;
	margin-bottom: 15px;
	font-size: 16px;
	line-height: 1.5;
}

.project-back-btn {
	display: inline-block;
	padding: 12px 30px;
	color: #275BEC;
	border: 3px solid #275BEC;
	border-radius: 50px;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
	transition: all 0.2s ease-in;
	cursor: pointer;
}

.project-back-btn:hover {
	background-color: #275BEC;
	color: #fff;
}


/* Медіа запит для екранів з шириною до 1140px */
@media (max-width: 1140px) {
    .card {
        width: calc(50% - 15px);
    }
    .footer-row {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        text-align: center;
    }
}

/* Медіа запит для мобільних пристроїв (до 760px) */
@media (max-width: 760px) {
    .card {
        width: 100%;
    }
    .portfolio-header,
    .project-header {
        font-size: 32px;
    }
    .card-title {
        font-size: 18px;
    }
    .project-description {
        padding: 0 15px;
    }
    .footer-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    .header-title {
        font-size: 32px;
        text-align: center;
    }
    .header-subtitle {
        font-size: 12px;
    }
    .footer-icons-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}