:root {
  --main-text-color: #212121;
  --other-text-color: #757575;
  --color-hover_focus: #2196f3;
  --font-title: 'Raleway', sans-serif;
  --font-other: 'Roboto', sans-serif;
  --very-light-color: #fff;
  --dark-background: #2f303a;
  --grey-light-background: #ececec;
  --grey-ld-background: #f5f4fa;
  --border-color: #eee;
}
body {
  color: var(--main-text-color);
  font-family: var(--font-other);
  font-weight: 400;
  letter-spacing: 0.03em;
  background: var(--very-light-color);
}
.nav-item:last-child {
  margin-right: 0;
}
.nav-item {
  margin-right: 50px;
  color: inherit;
}
.link {
  display: block;
  padding: 32px 0 32px 0;
}
.nav-item:first-child {
  margin-right: 94px;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.header {
  background-color: var(--very-light-color);
  border-bottom: 1px solid var(--grey-light-background);
}
.container {
  width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.header > .container {
  display: flex;
  justify-content: space-between;
}
.nav-site-main,
.contacts-header {
  display: flex;
  align-items: center;
}
.header ul {
  font-size: 14px;
  line-height: 1.14;
}
.header nav {
  letter-spacing: 0.02em;
}
.nav-site .nav-item > .current {
  color: var(--color-hover_focus);
}
.logo-link {
  display: flex;
  /* margin-left: 15px; */

  font-family: var(--font-title);
  letter-spacing: 0.03em;
  font-size: 26px;
  line-height: 1.19;
}
.logo {
  color: var(--color-hover_focus);
}
.contacts-header {
  display: flex;
  color: var(--other-text-color);
  letter-spacing: 0.02em;
}
.contacts-link:visited,
.contacts-link:link {
  color: var(--other-text-color);
}
.contacts-link {
  display: flex;
  padding: 32px 0 32px 15px;
}
.contacts-header .contacts-item + .contacts-item {
  margin-left: 50px;
}
.last-link {
  margin: 0 0 0 50px;
}
a {
  text-decoration: none;
}
.nav-site a {
  color: var(--main-text-color);
}
.nav-item:visited {
  color: var(--main-text-color);
}
.logo-link:hover,
.logo-link:focus,
.nav-item:hover,
.nav-item:focus,
.contacts-link:hover,
.contacts-link:focus {
  color: var(--color-hover_focus);
}
.link:visited,
.link:link {
  color: var(--main-text-color);
}
.link:hover,
.link:focus {
  color: var(--color-hover_focus);
}
.hero {
  padding: 200px 0 210px 0;
  text-align: center;
  background: var(--dark-background);
  color: var(--very-light-color);
}
.font-900 {
  font-weight: 900;
  margin: 0 230px 40px 230px;
  font-size: 44px;
  line-height: 1.36;
}
.button {
  line-height: 1.87;
  background: var(--color-hover_focus);
  color: var(--very-light-color);
  padding: 10px 30px;
  min-width: 200px;
  max-height: 50px;
}
.hero .button.button-bc:hover,
.hero .button.button-bc:focus {
  cursor: pointer;
}
.features {
  padding: 94px 0;
  display: flex;
  justify-content: space-between;
  text-align: left;
}
.features-item {
  text-align: left;
  max-width: 270px;
}
.features .features-item {
  margin-right: 30px;
}
.features .features-item:last-child {
  margin-right: 0;
}
.features .features-item h3 {
  font-size: 14px;
  line-height: 1.14;
  margin: 0 0 10px 0;
}
.features p {
  font-size: 14px;
  line-height: 1.71;
  margin: 0;
}
.what-we-do {
  padding-bottom: 94px;
}
.what-we-do h2,
.team h2 {
  font-size: 36px;
  line-height: 1.17;
  text-align: center;
}
.what-we-do-title {
  margin: 0 0 50px 0;
}
.what-we-do-list {
  display: flex;
  justify-content: space-between;
}
.what-we-do-list .wwd-list-item {
  margin-right: 30px;
}
.what-we-do-list .wwd-list-item:last-child {
  margin-right: 0;
}
.team {
  background: var(--grey-ld-background);
  display: flex;
  padding: 94px 0 94px 0;
}
.team-title {
  margin: 0;
}
.team .team-list-item {
  margin-right: 30px;
}
.team .team-list-item:last-child {
  margin-right: 0;
}
.team h3,
.team p {
  font-size: 16px;
  line-height: 1.19;
}
.features p,
.team p {
  color: var(--other-text-color);
}
.team-list {
  margin: 50px 0 0;
  display: flex;
  justify-content: space-between;
}
.team-list .team-list-item {
  background: var(--very-light-color);
  text-align: center;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12), 0px 1px 1px rgba(0, 0, 0, 0.14),
    0px 2px 1px rgba(0, 0, 0, 0.2);
  border-radius: 0px 0px 4px 4px;
}
.team-title-member {
  margin: 30px 0 10px 0;
}
.team-member-chair {
  padding: 0 0 30px 0;
  margin: 0;
}
.letter-spacing-06 {
  letter-spacing: 0.06em;
}
.uppercase {
  text-transform: uppercase;
}
.font-500 {
  font-weight: 500;
}
.font-700 {
  font-weight: 700;
}

.footer {
  background: var(--dark-background);
  padding: 60px 0;
}
.footer a {
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
}
.container > .footer-link {
  color: var(--very-light-color);
  font-family: var(--font-title);
  letter-spacing: 0.03em;
  font-size: 26px;
  line-height: 1.19;
}
.footer a:hover,
.footer a:focus {
  color: var(--color-hover_focus);
}
.footer-list {
  display: flex;
  flex-direction: column;
  margin: 20px 0 0 0;
  font-style: normal;
}
.footer-list .footer-list-item + .footer-list-item {
  margin: 9px 0 0 0;
}
.footer-list .city-address {
  color: var(--very-light-color);
}
/* подключаем портфолио */
.portfolio-main .container {
  padding-top: 94px;
}
.portfolio-filter {
  display: flex;
  padding-bottom: 50px;
  justify-content: center;
}
.filter-button {
  padding: 6px 22px;
}
.pf-button:not(last-child) {
  margin-right: 8px;
}
.filter-button {
  line-height: 1.62;
}
.button,
.filter-button {
  font-family: inherit;
  font-size: 16px;
  text-align: center;
  border-radius: 4px;
  border: 1px solid transparent;
}
.portfolio-main .filter-button.button-bc {
  background: var(--grey-ld-background);
  color: var(--main-text-color);
}
.portfolio-main .filter-button.button-bc:hover,
.portfolio-main .filter-button.button-bc:focus {
  background: var(--color-hover_focus);
  color: var(--very-light-color);
  cursor: pointer;
}
.portfolio-list {
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 50px;
}
.portfolio-list-item {
  margin: 0 30px 30px 0;
  width: calc((100% - 60px) / 3);

  border: 1px solid var(--border-color);
}
.portfolio-list-item:nth-child(3n) {
  margin-right: 0;
}
.portfolio-list-item:nth-last-child(-n + 3) {
  margin-bottom: 0;
}
.portfolio-list a {
}
.portfolio-list h3 {
  font-weight: 700;
  color: var(--main-text-color);
  letter-spacing: 0.06em;
  font-size: 18px;
  line-height: 2;
  margin: 20px 0 4px 24px;
}
.portfolio-list p {
  font-weight: 400;
  color: var(--other-text-color);
  font-size: 16px;
  line-height: 1.87;
  margin: 0 0 0px 24px;
  padding-bottom: 20px;
}

.filter-button:hover {
}
.filter-button:focus {
}
