:root {
  --primary-text-color: #212121;
  --paragraph-tex-color: #757575;
  --primary-background-color: #e5e5e5;
  --footer-background-coror: #2f303a;
  --hover-color: #2196f3;
  --hover-bgc: #ffffff;
  --card-set: 30px;
}
/* Утилиты */
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul {
  padding: 0;
  margin: 0;
}
.section {
  padding-top: 94px;
  padding-bottom: 94px;
}

.list {
  list-style: none;
}
a {
  text-decoration: none;
}

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

address {
  font-style: normal;
}

body {
  font-family: Roboto, sans-serif;

  color: var(--primary-text-color);
  font-size: 14px;
  letter-spacing: 0.03em;
}
.container {
  width: 1200px;
  padding-left: 15px;
  padding-right: 15px;
  margin: 0 auto;
  /* outline: 2px solid tomato; */
}

/* Стили для index.html*/
/* ШАПКА index.html and portfolio.html*/
.header {
  background-color: var(--hover-bgc);
}

.nav-header {
  display: flex;
}

.nav-header-logo {
  font-family: Raleway, sans-serif;
  text-decoration: none;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.19;
  color: var(--primary-text-color);
  margin-top: 24px;
  margin-bottom: 25px;
}
.nav-logo-part {
  color: var(--hover-color);
}

.nav-header-links {
  display: flex;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 32px;
  margin-left: 93px;
}

.nav-header-list-item:nth-child(2) {
  margin-left: 50px;
  margin-right: 51px;
}
.nav-header-contact:first-child {
  margin-left: 331px;
  margin-right: 50px;
}

.nav-header-contacts {
  display: flex;
  align-items: center;
  /* padding: 32px;
  margin-left: 331px; */
}

.nav-header-link {
  color: var(--primary-text-color);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: 0.02em;
}

.mail {
  color: var(--paragraph-tex-color);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: 0.02em;
}
.tel {
  color: var(--paragraph-tex-color);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: 0.02em;
}

.tel:hover,
.mail:hover,
.tel:focus,
.mail:focus,
.nav-header-link:hover,
.nav-header-link:focus {
  color: var(--hover-color);
}

/* HERO */
.hero {
  color: var(--primary-text-color);
  text-align: center;
  padding-top: 200px;
  padding-bottom: 200px;
  background-color: var(--footer-background-coror);
  min-width: 1600px;
}

.hero-title {
  font-weight: 900;
  font-size: 44px;
  line-height: 1.36;
  color: var(--hover-bgc);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: 696px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

/* Кнопка основная */

.hero-btn {
  display: inline-block;
  padding: 10px 32px;
  margin-left: auto;
  margin-right: auto;

  font-weight: 700;
  font-size: 16px;
  line-height: 1.88;
  color: var(--hover-bgc);
  background-color: var(--hover-color);
  font-family: inherit;
  letter-spacing: 0.06em;
  cursor: pointer;

  min-width: 200px;
  border: none;
  border-radius: 4px;
}

/* Преимущества */

.advantages-list {
  display: flex;
}
.advantages-list-item:not(:last-child) {
  margin-right: 30px;
}

.advantages-list-title {
  text-transform: uppercase;
  font-size: inherit;
  line-height: 1.14;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}
.advantages-list-text {
  line-height: 1.71;
  color: var(--paragraph-tex-color);
}

.activities-title {
  font-size: 36px;
  line-height: 1.16;
  text-align: center;
  margin-bottom: 50px;
}
.activities-list {
  display: flex;
}

.activities-item:not(:last-child) {
  margin-right: 30px;
}

/* TEAM */
.team {
  background-color: #f5f4fa;
}

.team-title {
  font-size: 36px;
  line-height: 1.16;
  text-align: center;
  padding-top: 94px;
  margin-bottom: 50px;
}
.team-item-title {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.18;
  margin-top: 30px;
  margin-bottom: 10px;
}
.team-list {
  display: flex;
}

.team-item {
  text-align: center;
}

.team-item:not(:last-child) {
  margin-right: 30px;
}

.team-item-text {
  font-size: 16px;
  line-height: 1.18;
  color: var(--paragraph-tex-color);
  margin-bottom: 30px;
}

/* footer */

.footer {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: var(--footer-background-coror);
}
.footer-logo {
  font-family: Raleway, sans-serif;
  text-decoration: none;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.19;
  color: var(--hover-bgc);
}
.footer-logo-part {
  color: var(--hover-color);
}
.footer-address {
  padding-top: 20px;
}
.footer-address-text {
  margin-bottom: 9px;
  line-height: 1.71;
  color: var(--hover-bgc);
  font-style: normal;
}

.footer-address-link:first-child {
  margin-bottom: 9px;
}

.footer-address-link a {
  line-height: 1.71;
  color: rgba(255, 255, 255, 0.6);
  font-style: normal;
}
.footer-address-link :hover,
.footer-address-link :focus {
  color: var(--hover-color);
}

/* Стили для Портфолио */

/* Кнопки portfolio */

.filter {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}

.filter-item:not(:last-child) {
  margin-right: 8px;
}

.filter-btn {
  padding: 6px 22px;
  border-radius: 4px;
  border: none;
  background-color: #f5f4fa;
  color: var(--primary-text-color);
  line-height: 1.62;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: inherit;
  cursor: pointer;
}

.filter-btn:hover {
  background-color: var(--hover-color);
  color: var(--hover-bgc);
}

.projects {
  display: flex;
  flex-wrap: wrap;
  margin-left: -30px;
  margin-top: -30px;

  flex-basis: calc(100% / 3 - 30px);
  /* outline: 1px solid tomato; */
}

.projects-item {
  margin-left: 30px;
  margin-top: 30px;
  /* outline: 1px solid tomato; */
}

.projects-item .title {
  margin-left: 24px;
  margin-right: 24px;
  margin-top: 20px;
  margin-bottom: 4px;
  font-size: 18px;
  line-height: 2;
  color: var(--primary-text-color);
}
.projects-item .text {
  margin-left: 24px;
  margin-right: 24px;
  padding-bottom: 20px;
  font-size: 16px;
  line-height: 1.88;
  letter-spacing: 0.03em;
  color: var(--paragraph-tex-color);
}
.projects:nth-last-child(-n + 3) {
  margin-bottom: 0px;
}

.title-advantages,
.title-section {
  display: none;
}

/*  */
