:root {
  --h-color: #212121;
  --p-color: #757575;
  --accent-color: #2196f3;
  --button-background-color: #f5f4fa;
  --button-color: #212121;
  --button-hoover-portfolio-color: #f5f4fa;
  --white-accent: #ffffff;
  --another-black: #2f303a;
  --main-bgc: #e5e5e5;
}

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

ul,
ol {
  margin: 0;
  padding-left: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  background-color: var(--white-accent);
  color: var(--h-color);
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  letter-spacing: 0.03em;
}

.pointer {
  cursor: pointer;
}

img {
  display: block;
}

.list {
  list-style: none;
}

.link {
  text-decoration: none;
}

/* ---------------------------Header index/portfolio-------------------------- */

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

.header .container {
  background-color: var(--white-accent);
  display: flex;
  align-items: center;
}

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

.header-logo {
  font-family: "Raleway", sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.19;
  letter-spacing: 0.03em;
  color: var(--accent-color);
  margin-right: 93px;
}

.header-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.header-link {
  color: var(--h-color);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: 0.02em;
  padding: 32px 0;
  display: block;
}

.current {
  color: var(--accent-color);
}

.header-link:hover,
.header-link:focus {
  color: var(--accent-color);
}

.contacts {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.contacts-link {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.14;
  letter-spacing: 0.02em;
  color: var(--p-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
  color: var(--p-color);
}

.contacts-link-icon {
  margin-right: 10px;
  fill: currentColor;
}

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

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

.contacts-link:hover,
.contacts-link:focus {
  color: var(--accent-color);
}

.contacts-link:hover .contacts-link-icon,
.contacts-link:focus .contacts-link-icon {
  color: var(--accent-color);
}

/* ---------------------------Hero index-------------------------- */

.hero {
  background-color: var(--another-black);
  background-image: linear-gradient(
      to right,
      rgba(47, 48, 58, 0.4),
      rgba(47, 48, 58, 0.4)
    ),
    url(../images/hero-bg.jpg);
  max-width: 1600px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding-top: 200px;
  padding-bottom: 200px;
  margin: 0 auto;
}

.hero-text {
  font-weight: 900;
  font-size: 44px;
  line-height: 1.3;
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white-accent);
  margin-bottom: 30px;
  margin-left: 237px;
  margin-right: 237px;
}

.hero-button {
  font-family: inherit;
  min-width: 200px;
  height: 50px;
  color: var(--white-accent);
  background: var(--accent-color);
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  margin: 0 auto;
  border: none;
  display: block;
}

.hero-button-text {
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.87;
  text-align: center;
  letter-spacing: 0.06em;
  color: var(--white-accent);
}

/* ---------------------------Hero portfolio-------------------------- */

.button-list {
  display: none;
}

.button-txt {
  font-family: inherit;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.62;
  text-align: center;
  letter-spacing: 0.03em;
}

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

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

.button-one {
  font-family: inherit;
  min-width: 73px;
  height: 38px;
  color: var(--button-color);
  background: var(--button-background-color);
  border: 1px solid var(--button-background-color);
  border-radius: 4px;
}

.button-one:hover,
.button-one:focus {
  color: var(--button-hoover-portfolio-color);
  background-color: 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);
}

.button-two {
  font-family: inherit;
  min-width: 128px;
  height: 38px;
  color: var(--button-color);
  background: var(--button-background-color);
  border: 1px solid var(--button-background-color);
  border-radius: 4px;
}

.button-two:hover,
.button-two:focus {
  color: var(--button-hoover-portfolio-color);
  background-color: 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);
}

.button-three {
  font-family: inherit;
  min-width: 145px;
  height: 38px;
  color: var(--button-color);
  background: var(--button-background-color);
  border: 1px solid var(--button-background-color);
  border-radius: 4px;
}

.button-three:hover,
.button-three:focus {
  color: var(--button-hoover-portfolio-color);
  background-color: 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);
}

.button-four {
  font-family: inherit;
  min-width: 103px;
  height: 38px;
  color: var(--button-color);
  background: var(--button-background-color);
  border: 1px solid var(--button-background-color);
  border-radius: 4px;
}

.button-four:hover,
.button-four:focus {
  color: var(--button-hoover-portfolio-color);
  background-color: 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);
}

.button-five {
  font-family: inherit;
  min-width: 130px;
  height: 38px;
  color: var(--button-color);
  background: var(--button-background-color);
  border: 1px solid var(--button-background-color);
  border-radius: 4px;
}

.button-five:hover,
.button-five:focus {
  color: var(--button-hoover-portfolio-color);
  background-color: 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);
}

/* ---------------------------Projects portfolio-------------------------- */

.projects .container {
  background-color: var(--white-accent);
}

.projects-list {
  display: flex;
  flex-wrap: wrap;
  margin-left: -30px;
  margin-bottom: -30px;
}

.portfolio-item {
  flex-basis: calc(100% / 3 - 30px);
  margin-left: 30px;
  margin-bottom: 30px;
}

.img-atributes-port {
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: 24px;
  padding-right: 24px;
  border-left: 1px solid #eeeeee;
  border-right: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
}

/* .portfolio-item:hover,
.portfolio-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);
  cursor: pointer;
} */

.card {
  display: block;
}

.card:hover,
.card: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);
  cursor: pointer;
}

.project-name {
  font-weight: 700;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.06em;
  color: var(--h-color);
  margin-bottom: 4px;
}

.project-sphere {
  font-size: 16px;
  line-height: 1.87;
  letter-spacing: 0.03em;
  color: var(--p-color);
}

/* ---------------------------Competences html-------------------------- */

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

.competences-list {
  display: flex;
}

.comp-it:not(:last-child) {
  margin-right: 30px;
  max-width: 270px;
}

.frame {
  display: flex;
  width: 270px;
  height: 120px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-bottom: 30px;
  border-radius: 4px;
  background-color: var(--button-background-color);
}

.competences-icon {
  width: 67px;
  height: 70px;
}

.top-text {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.14;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--h-color);
  margin-bottom: 10px;
}

.bottom-text {
  line-height: 1.71;
  letter-spacing: 0.03em;
  color: var(--p-color);
  width: 270px;
}

/* -----------------work html--------------------------- */

.zero {
  padding-top: 0;
}

.work-img {
  display: flex;
  width: calc((100% - 60px) / 3);
}

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

.work-title {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.16;
  text-align: center;
  letter-spacing: 0.03em;
  color: var(--h-color);
  margin-bottom: 50px;
  padding-top: 0;
}

/* -----------------crew html--------------------------- */

.bg {
  background-color: var(--button-background-color);
}

.crew-list {
  display: flex;
  margin-left: -30px;
}

.crew-item {
  flex-basis: calc(100% / 4 - 30px);
  margin-left: 30px;
  background-color: var(--white-accent);
  border-radius: 0px 0px 4px 4px;
  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);
}

.crew-title {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.16;
  text-align: center;
  letter-spacing: 0.03em;
  color: var(--h-color);
  margin-bottom: 50px;
}

.img-atributes-hdr {
  padding-top: 30px;
  padding-bottom: 30px;
  text-align: center;
}

.crew-names {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.18;
  letter-spacing: 0.03em;
  color: var(--h-color);
  margin-bottom: 10px;
}

.crew-profession {
  font-size: 16px;
  line-height: 1.18;
  letter-spacing: 0.03em;
  color: var(--p-color);
  margin-bottom: 16px;
}

.work-soc-item {
  width: 44px;
  height: 44px;
  margin-right: 10px;
}

.work-soc-item:last-child {
  margin-right: 0;
}

.work-soc-list {
  display: flex;
  justify-content: center;
}

.work-soc-link {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-soc-link:hover,
.work-soc-link:focus {
  background-color: var(--accent-color);
}

.work-soc-link:hover .work-soc-icon,
.work-soc-link:focus .work-soc-icon {
  fill: var(--white-accent);
}

.work-soc-icon {
  fill: #afb1b8;
}

/* ---------------------------Partners index-------------------------- */

.partners .container {
  width: 1170px;
  height: 184px;
}

.partners-title {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.16;
  text-align: center;
  letter-spacing: 0.03em;
  color: var(--h-color);
  margin-bottom: 50px;
}

.partners-list {
  display: flex;
  align-items: center;
  margin-left: -30px;
  justify-content: center;
}

.partners-item {
  flex-basis: calc(100% / 6 - 30px);
  margin-left: 30px;
  width: 170px;
  height: 92px;
  justify-content: center;
  border: 1px solid #afb1b8;
  border-radius: 4px;
  fill: #afb1b8;
}

.partners-link:hover,
.partners-link:focus {
  border-color: var(--accent-color);
  border: 1px solid --accent-color;
  fill: var(--accent-color);
}

.partners-item:hover,
.partners-item:focus {
  border-color: var(--accent-color);
}

.partners-item:last-child {
  margin-right: 0;
}

.partners-link {
  display: flex;
  width: 170px;
  height: 92px;
  border-radius: 4px;
  cursor: pointer;
  fill: #afb1b8;
  align-items: center;
  justify-content: center;
}

/* ---------------------------Footer index/portfolio-------------------------- */

.footer {
  background-color: var(--another-black);
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.footer-item:not(:last-child) {
  margin-right: 70px;
}

.footer-main {
}

.footer-logo {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.19;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  color: var(--accent-color);
  display: inline-block;
}

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

.footer-info {
  margin-bottom: 9px;
}

.map-link {
  font-style: normal;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--white-accent);
  display: inline-block;
}

.map-link:hover,
.map-link:focus {
  color: var(--accent-color);
}

.footer-contacts {
  font-style: normal;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.6);
}

.footer-contacts:hover,
.footer-contacts:focus {
  color: var(--accent-color);
}

.footer-soc {
  width: 206px;
  margin-right: auto;
}

.soc-title {
  font-family: inherit;
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.14;
  letter-spacing: 0.03em;
  color: var(--white-accent);
  margin-bottom: 20px;
}

.footer-soc-item {
  width: 44px;
  height: 44px;
}

.footer-soc-item:last-child {
  margin-right: 0;
}

.footer-soc-list {
  display: flex;
  padding: 0;
  margin-top: 0;
  list-style: none;
  justify-content: space-between;
  align-items: center;
}

.footer-soc-link {
  width: 44px;
  height: 44px;
  display: inline-flex;
  border-radius: 50%;
  fill: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.footer-soc-link:hover,
.footer-soc-link:focus {
  background-color: var(--accent-color);
  fill: #ffffff;
}

.footer-soc-icon {
  margin: 12px 0px 0px 12px;
  align-items: center;
}

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