:root {
  --main-font: Roboto, sans-serif;
  --secondary-font: Raleway, sans-serif;
  --accent-color: #2196f3;
  --main-descriprion-color: #757575;
  --main-title-color: #212121;
  --social-link-color: #afb1b8;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--main-font);
  font-style: normal;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

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

.list {
  list-style: none;
}

.link {
  text-decoration: none;
}

/* =======HEADER====== */

.header {
  padding: 25px 0;
  border-bottom: 1px solid #ececec;
}

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

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

.navigation .list {
  display: flex;
}

.address .list {
  display: flex;
}

.logo-dark {
  font-family: var(--secondary-font);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.192;
  letter-spacing: 0.03em;
  color: #000000;
  display: block;
  margin-right: 94px;
}

.logo-part {
  color: var(--accent-color);
}

.list-item {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.143;
  letter-spacing: 0.02em;
  color: var(--main-title-color);
  font-style: normal;
}

.navigation-item:not(:last-child) {
  margin-right: 50px;
}

.header .address {
  margin-left: auto;
}

.address-item:not(:last-child) {
  margin-right: 50px;
}

.list-item:hover,
.list-item:focus,
.list-item:active,
.current {
  color: var(--accent-color);
}

.header-contacts {
  color: var(--main-descriprion-color);
  display: flex;
  align-items: center;
}

.address-header-svg {
  fill: var(--main-descriprion-color);
  margin-right: 10px;
}

.header-contacts:hover .address-header-svg {
  fill: var(--accent-color);
}

.header-contacts:focus .address-header-svg {
  fill: var(--accent-color);
}

.header-contacts:active .address-header-svg {
  fill: var(--accent-color);
}

/* =======END HEADER====== */

/* ======HERO====== */

.hero {
  padding-top: 200px;
  padding-bottom: 200px;
  margin: 0 auto;
  text-align: center;
  background-color: #c4c4c4;
  background-image: linear-gradient(
      rgba(47, 48, 58, 0.4),
      rgba(47, 48, 58, 0.4)
    ),
    url("../images/hero-bg.jpg");
  max-width: 1600px;
}

.hero-title {
  font-weight: 900;
  font-size: 44px;
  line-height: 1.367;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  width: 696px;

  margin: 0 auto 30px;
}

.hero-btn {
  display: inline-block;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.875;
  letter-spacing: 0.06em;
  background: var(--accent-color);
  color: #ffffff;

  min-width: 200px;
  height: 50px;
  border-radius: 4px;
  border-color: var(--accent-color);
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
}

/* ======END HERO====== */

/* ======ADVANTAGES====== */

.advantages {
  padding-top: 94px;
  padding-bottom: 94px;
}
.advantages-list {
  display: flex;
  justify-content: space-between;
}

.advantages-list-item {
  width: 270px;
}

.advantages-title {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.143;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--main-title-color);

  margin-bottom: 10px;
}

.advantages-title::before {
  content: "";
  display: block;
  background-color: #f5f4fa;
  background-repeat: no-repeat;
  background-position: center;
  width: 270px;
  height: 120px;
  margin-bottom: 30px;
  border-radius: 4px;
}

.advantages-list-item:first-child .advantages-title::before {
  background-image: url("../images/svg/antenna.svg");
}

.advantages-list-item:nth-child(2) .advantages-title::before {
  background-image: url("../images/svg/clock.svg");
}

.advantages-list-item:nth-child(3) .advantages-title::before {
  background-image: url("../images/svg/diagram.svg");
}

.advantages-list-item:last-child .advantages-title::before {
  background-image: url("../images/svg/astronaut.svg");
}

.advantages-descriprion {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.714;
  letter-spacing: 0.03em;
  color: var(--main-descriprion-color);
}

/* ======END ADVANTAGES====== */

/* ======WHAT WE DO====== */

.skills {
  padding-bottom: 94px;
}

.skills-list {
  display: flex;
  justify-content: space-between;
}

.title-skills {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.167;
  text-align: center;
  letter-spacing: 0.03em;
  color: var(--main-title-color);

  margin-bottom: 50px;
}

/* ======END WHAT WE DO====== */

/* ======TEAM====== */

.team-list {
  display: flex;
  justify-content: space-between;
}

.team {
  padding-top: 94px;
  padding-bottom: 94px;
  background: #f5f4fa;
}
.title-team {
  font-family: var(--main-font);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.167;
  text-align: center;
  letter-spacing: 0.03em;
  color: var(--main-title-color);

  margin-bottom: 50px;
}

.team-img {
  margin-bottom: 30px;
}

.team-card {
  background: #ffffff;
  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;
  padding-bottom: 30px;
}

.team-name {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.188;
  letter-spacing: 0.03em;
  color: var(--main-title-color);
  text-align: center;

  margin-bottom: 10px;
}

.team-position {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.188;
  letter-spacing: 0.03em;
  color: var(--main-descriprion-color);
  text-align: center;
  margin-bottom: 16px;
}

.social-list {
  display: flex;
  padding-left: 32px;
  padding-right: 32px;
}

.social-list-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #ffffff;
}

.social-list-item:not(:last-child) {
  margin-right: 10px;
}

.social-link-svg {
  width: 20px;
  height: 20px;
  fill: var(--social-link-color);
}

.social-list-link:hover,
.social-list-link:focus,
.social-list-link:active {
  background-color: var(--accent-color);
}

.social-list-link:hover .social-link-svg {
  fill: #ffffff;
}

.social-list-link:focus .social-link-svg {
  fill: #ffffff;
}

.social-list-link:active .social-link-svg {
  fill: #ffffff;
}

/* ======END TEAM====== */

/* =====CLIENTS===== */
.clients {
  padding-top: 94px;
  padding-bottom: 94px;
}

.title-clients {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.167;
  text-align: center;
  letter-spacing: 0.03em;
  color: var(--main-title-color);

  margin-bottom: 50px;
}

.clients .clients-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 170px;
  height: 90px;
  border: 1px solid var(--social-link-color);
  border-radius: 4px;
}

.clients-list {
  display: flex;
  justify-content: space-between;
}

.clients-icon {
  fill: var(--social-link-color);
}

.clients-link:hover,
.clients-link:focus,
.clients-link:active {
  border-color: var(--accent-color);
}

.clients-link:hover .clients-icon {
  fill: var(--accent-color);
}

.clients-link:focus .clients-icon {
  fill: var(--accent-color);
}

.clients-link:active .clients-icon {
  fill: var(--accent-color);
}

/* ======END CLIENTS===== */

/* ======FOOTER====== */

.footer {
  padding-top: 60px;
  padding-bottom: 60px;
  background: #2f303a;

  margin: 0 auto;
}

.logo-light {
  display: block;
  font-family: var(--secondary-font);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.192;
  letter-spacing: 0.03em;
  color: #ffffff;

  margin-bottom: 20px;
}

.footer-address {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.714;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.footer-mail,
.footer-tel {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.714;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.6);
}

.footer-contacts-all:not(:last-child) {
  margin-bottom: 10px;
}

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

.footer-contacts {
  margin-right: 70px;
}

.join {
  display: block;
  font-family: var(--main-font);
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.143;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffffff;

  margin-bottom: 20px;
}

.footer .social-list {
  padding-right: 0px;
  padding-left: 0px;
}

.footer .social-list-link {
  background-color: rgba(255, 255, 255, 0.1);
}

.footer .social-link-svg {
  fill: #ffffff;
}

.footer .social-list-link:hover,
.footer .social-list-link:focus,
.footer .social-list-link:active {
  background-color: var(--accent-color);
}

/* ======END FOOTER====== */

/* =======PORTFOLIO====== */

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

.porfolio-btn-list {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
  flex-basis: 74px;
}

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

.choice-btn {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.625px;
  text-align: center;
  letter-spacing: 0.03em;
  color: var(--main-title-color);
  background: #f5f4fa;
  padding: 6px 22px;

  height: 38px;
  border-radius: 4px;
  border-color: #f5f4fa;
}

.choice-btn:hover,
.choice-btn:focus {
  color: #ffffff;
  background: var(--accent-color);
  box-shadow: 0px 3px 1px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.08),
    0px 2px 2px rgba(0, 0, 0, 0.12);
}

.portfolio-list {
  display: flex;
  flex-wrap: wrap;
}

.portfolio-img-bottom {
  display: block;
  padding: 20px 24px;
  margin-top: 0;
  background: #ffffff;
  border-left: 1px solid #eeeeee;
  border-right: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
  width: 370px;
}

.portfolio-list-item:not(:nth-child(3n)) {
  margin-right: 30px;
}

.portfolio-list-item:not(:nth-last-child(-n + 3)) {
  margin-bottom: 30px;
}

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

.portfolio-title {
  font-weight: 700;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.06em;
  color: var(--main-title-color);

  margin-bottom: 4px;
}

.portfolio-description {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.875;
  letter-spacing: 0.03em;
  color: var(--main-descriprion-color);
}

/* ======= END PORTFOLIO====== */
