:root {
	--iris: #4d5ae5;
	--ocean: #404bbf;
	--navy-blue: #2e2f42;
	--green: #31d0aa;
	--slate: #434455;
	--light-slate: #8e8f99;
	--cornflower: #e7e9fc;
	--cloud: #f4f4fd;
	--navy-blue-modal: rgba(46, 47, 66, 0.4);
	--grey: rgba(46, 47, 66, 0.7);
	--white: #fff;
	--dairy: #fcfcfc;
/* fonts */
    --font-family: "Roboto", sans-serif;
    --second-family: "Raleway", sans-serif;
}

/* Tags */

body {
    font-family: var(--font-family);
    color: var(--slate);
    background-color: var(--white);
}

/* Reset*/
a {
    text-decoration: none;
}

ul,
ol {
    list-style-type: none;
    margin: 0;
    padding-left: 0;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}

/* Common*/
.container {
    max-width: 1158px;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

/* Header*/

.header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--cornflower);
}

.nav {
    display: flex;
    align-items: center;
}

.header-box {
    width: 1158px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--second-family);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.17em;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--iris);
    margin-right: 76px;
}

.logo-header {
    color: var(--navy-blue);
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-item {
    display: flex;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: var(--navy-blue);
    padding-top: 24px;
    padding-bottom: 24px;
}

.nav-item:hover,
.nav-item:focus {
    color: var(--ocean);
}

.address {
    font-style: normal;
    text-align: center;
}

.address-list {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.address-link {
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: var(--slate);
}

.address-link:hover,
.address-link:focus {
    color: var(--ocean);
}

/* Hero Section*/
.hero {
    background-color: var(--navy-blue);
    padding: 188px 0;
}

.hero-content {
    text-align: center;
    margin: auto;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.07;
    letter-spacing: 0.02em;
    text-align: center;
    color: var(--white);
    max-width: 496px;
    margin: auto;
    margin-bottom: 48px;
}

.hero-button {
    border: 0;
    display: block;
    margin: auto;
    font-family: var(--font-family);
    font-style: normal;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: var(--white);
    cursor: pointer;
    padding: 16px 32px;
    gap: 10px;
    border-radius: 4px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    background: var(--iris);
    border-width: 0px;
    min-width: 169px;
}

button:hover,
button:focus {
    background-color: var(--ocean);
}

/* Styles for sections */
.hidden-header {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    white-space: nowrap;
    clip-path: inset(100%);
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.features {
    padding: 120px 0;
}

.section-header {
    color: var(--navy-blue);
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.11;
    text-transform: capitalize;
    letter-spacing: 0.02em;
    margin-bottom: 72px;
}

.section-header-item {
    color: var(--navy-blue);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.section-text {
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.features-list {
    display: flex;
    gap: 24px;
}

.features-item {
    display: flex;
    width: calc((100% - 72px) / 4);
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.our-team {
    background-color: var(--cloud);
    text-align: center;
    padding: 120px 0;
}

.team-card {
    text-align: center;
    width: 264px;
    box-shadow:
        0 2px 1px 0 rgba(46, 47, 66, 0.08),
        0 1px 1px 0 rgba(46, 47, 66, 0.16),
        0 1px 6px 0 rgba(46, 47, 66, 0.08);
    border-radius: 0px 0px 4px 4px;
    background-color: var(--white);
    width: calc((100% - 72px) / 4);
    /* 72px = 3*24px gap */
}

.our-team-list {
    display: flex;
    justify-content: space-evenly;
    gap: 24px;
    flex-wrap: wrap;
}

.team-item-description {
    padding: 32px 0;
}

.portfolio {
    padding-top: 120px;
    padding-bottom: 120px;
}

.portfolio-list {
    display: flex;
    gap: 48px 24px;
    flex-wrap: wrap;
}

.portfolio-item {
    width: calc((100% - 48px) / 3);
}

.item-description {
    padding: 32px 16px;
    border-top: none;
}

.portfolio-border {
    border: 1px solid var(--cornflower);
    border-top: none;
}

.section-header-item {
    margin-bottom: 8px;
}

/* Footer*/

.footer {
    background-color: var(--navy-blue);
    padding: 100px 0;
}

.logo-footer {
    color: var(--cloud);
}

.footer-text {
    color: var(--cloud);
    line-height: 1.5;
    letter-spacing: 0.02em;
    width: 264px;
}

.footer-link {
    display: inline-block;
    margin-bottom: 16px;
}