@import "reset.css";

:root {
  --color-1: #757575;
  --color-2: #2196f3;
  --color-3: #fff;
  --color-4: #212121;
  --color-5: #2f303a;
  --color-6: #f5f5f5;
  --color-7: #000000;
  --color-8: #f5f4fa;
  --color-9: #afb1b8;
}

body {
  color: var(--color-1);
  font-family: Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.71;
}

h2,
h3 {
  color: var(--color-4);
}

h2 {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.16;
  text-align: center;
}

h3 {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.14;
}

.container {
  width: 1200px;
  padding: 0 15px;
  margin: 0 auto;
}

.logo {
  color: var(--color-7);
  font-family: Raleway, cursive;

  font-weight: 700;
  font-size: 26px;
  line-height: 1.19;
  text-decoration: none;
}

.logo:visited {
  color: var(--color-7);
}

.logo-footer {
  color: var(--color-3);
  margin-bottom: 20px;
}
.logo-footer:visited {
  color: var(--color-3);
}

.header-container {
  display: flex;
  align-items: center;
}

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

.site-nav {
  display: flex;
  margin-left: 94px;
}

.site-nav .item + .item {
  margin-left: 50px;
}

.site-nav .link {
  display: block;
  color: var(--color-4);
  padding-top: 32px;
  padding-bottom: 32px;

  font-weight: 500;
  font-size: 14px;
  line-height: 1.14;
  text-decoration: none;
}
.site-nav .link:hover,
.site-nav .link:focus {
  color: var(--color-2);
}

.site-nav .link.current {
  color: var(--color-2);
}

.span1 {
  color: var(--color-2);
}

.auto-nav {
  display: flex;
  margin-left: auto;
}

.auto-nav .item + .item {
  margin-left: 50px;
}

.auto-nav .link {
  color: var(--color-1);

  font-weight: 700;
  font-size: 14px;
  line-height: 1.14;
  text-decoration: none;
}

.auto-nav .link:hover,
.auto-nav .link:focus {
  color: var(--color-2);
}

.hero {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--color-5);
  background-image: url(../img/hero/hero_title_img.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding: 200px 0;
}

.hero .hero-title {
  width: 696px;
  margin-bottom: 30px;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-3);
  font-weight: 900;
  font-size: 44px;
  line-height: 1.36;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-button {
  display: block;
  padding: 10px 32px;
  margin: 0 auto;
  border-radius: 4px;
  border: none;
  color: var(--color-3);
  background-color: var(--color-2);
}

.hero-button:hover,
.hero-button:focus {
  color: var(--color-2);
  background-color: var(--color-3);
}

.advantages-section {
  padding-top: 94px;
  padding-bottom: 47px;
}

.advantages-section-list {
  display: flex;
}

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

.advantages-section-list .item {
  width: 380px;
}

.advantages-img {
  background-color: var(--color-8);
  padding: 25px 100px;
  border-radius: 4px;
  margin-bottom: 30px;
}
.advantages-section h3 {
  margin-bottom: 10px;
}

.what_we_do-section {
  padding-top: 47px;
  padding-bottom: 94px;
}

.what_we_do-section-list {
  display: flex;
}

.what_we_do-section-list .item {
  width: 370px;
  margin-right: 30px;
}

.what_we_do-section h2 {
  margin-bottom: 50px;
}

.team-section {
  background-color: var(--color-8);
  padding-top: 94px;
  padding-bottom: 94px;
}

.team-section-list {
  display: flex;
}

.team-section-list .item {
  width: 270px;
  margin-right: 30px;
  background-color: var(--color-3);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
}
.team-section h2 {
  margin-bottom: 50px;
}

.team-name {
  font-size: 16px;
  line-height: 1.18;
  margin-top: 30px;
  margin-bottom: 10px;
  text-align: center;
}

.team-position {
  font-size: 16px;
  line-height: 1.18;
  margin-top: 10px;
  margin-bottom: 30px;
  text-align: center;
}

.networks-list {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.networks-link {
  padding: 12px 12px;
  border-radius: 50%;
  display: block;
}

.networks-link:hover,
.networks-link:focus {
  background-color: var(--color-2);
}

.networks-icon {
  /* width: 44px;  */
  /* padding: 12px 12px;
  border-radius: 50%; */
  display: block;
}

.clients-section {
  background-color: #fff;
  padding-top: 94px;
  padding-bottom: 94px;
}

.clients_logo {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.clients-section h2 {
  margin-bottom: 50px;
}

.clients_item {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-9);
  border-radius: 4px;
  padding: 16px 32px;
}

.clients_link {
  /* width: 44px;  */
  /* padding: 12px 12px;
  border-radius: 50%; */
  display: block;
}

footer {
  padding-top: 60px;
  padding-bottom: 20px;
  background-color: var(--color-5);
  color: var(--color-3);
}

footer .container {
  display: flex;
  align-items: baseline;
}

.networks-footer-item h3 {
  color: var(--color-3);
}

.networks-list--footer .networks-link {
  background-color: rgba(255, 255, 255, 0.1);
  gap: 10px;
}

.networks-list--footer .networks-link:hover,
.networks-list--footer .networks-link:focus {
  background-color: var(--color-2);
}

.networks-footer-item {
  margin-left: 70px;
}

.networks-footer-item h3 {
  margin-bottom: 20px;
}

.adr-item {
  margin-bottom: 9px;
}

.adr-item {
  color: var(--color-3);
  text-decoration: none;
}

.adr {
  color: var(--color-3);
}

.foot-list {
  padding-top: 20px;
  padding-bottom: 9px;
}

.foot-list .adr:hover,
.foot-list .adr:focus {
  color: var(--color-2);
}

.mail-item {
  margin-bottom: 6px;
}

.kont {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.foot-list .kont:hover,
.foot-list .kont:focus {
  color: var(--color-2);
}

/*    PORTFOLIO */

.site-nav .link {
  color: var(--color-4);
}
.site-nav .link:hover,
.site-nav .link:focus {
  color: var(--color-2);
}

.site-nav .link.current {
  color: var(--color-2);
}

.section-title {
  color: var(--color-4);
}

.span1 {
  color: var(--color-2);
}

.auto-nav .link {
  color: var(--color-1);
}

.auto-nav .link:hover,
.auto-nav .link:focus {
  color: var(--color-2);
}

.hero-section--portfolio {
  padding-top: 94px;
  padding-bottom: 94px;
}

.portfolio-button {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
  column-gap: 8px;
}

/* BUTTON */

.button-port {
  color: var(--color-4);
  background-color: var(--color-8);
  display: inline;
  padding: 6px 22px;
  border-radius: 4px;
  border: none;
  font-weight: 500;
}

.button-port:hover,
.button-port:focus {
  color: var(--color-3);
  background-color: var(--color-2);
}

.services {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.services li:hover, 
.services li:focus {
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.06);
  box-shadow: 1px 4px 6px rgba(0, 0, 0, 0.16);
}

.services li {
  width: calc((100% - 60px) / 3);
  border: 1px solid #eeeeee;
}

.services img {
  display: block;
  width: 100%;
  height: auto;
}

.services h3 {
  font-weight: 700;
  font-size: 14px;
  line-height: 2.57;
  margin-bottom: 4px;
  /* padding: 0 24px; */
}

.services p {
  font-size: 16px;
  line-height: 1.87;
  /* padding: 0 24px; */
}

.services div {
  padding: 20px 24px;
}
