
:root {
  --primary-background-color: #ffffff;
  --secondary-background-color: #f5f4fa;
  --primary-text-color: #757575;
  --primary-hover-color: #2196f3;
  --secondary-text-color: #212121;
}

body {
  background-color: var(--primary-background-color);

  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.14;
  letter-spacing: 0.03em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h2 {
  margin: 0;
  margin-bottom: 50px;
  padding: 0;

  color: var(--secondary-text-color);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.17;
  text-align: center;
}
h3 {
  margin: 0;
  padding: 0;

  color: var(--primary-background-color);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 14px;
}
.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-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 94px;
  padding-bottom: 94px;
}

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

.header-flex {
  padding-top: 0px;
  padding-bottom: 0px;
}

.logo {
  margin-right: 80px;

  font-family: 'Raleway', sans-serif;
  color: black; 
  font-weight: 700;
  font-size: 26px;
  line-height: 1.19;
  text-decoration: none;
}

.logo span {
  color: var(--primary-hover-color);
}

/*Site menu and contacts*/

.menu-link,
.contact-item {
  margin-bottom: 0px;
  color: var(--secondary-text-color);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.menu-link {
  display: block;
  padding-top: 32px;
  padding-bottom: 32px;
  padding-left: 6px;
  padding-right: 6px;
}

.menu-link:hover,
.menu-link:focus,
.contact-item:hover,
.contact-item:focus {
  color: var(--primary-hover-color);
}
.menu-list > .item {
  position: relative;
}
.current {
  color: var(--primary-hover-color);
}
.current::before {
  content: '';
  position: absolute;
  display: iblock;
  bottom: -2.5%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 6px);
  height: 4px;

  background-color: #2196f3;
  border-radius: 2px;
}

.contact-item {
  display: block;
  color: var(--primary-text-color);
  padding-top: 32px;
  padding-bottom: 32px;
}

.header-flex,
.nav-main,
.menu-contacts,
.menu-list {
  display: flex;
  align-items: center;
}
.menu-list .item:not(:last-child),
.menu-contacts .item:not(:last-child) {
  margin-right: 50px;
}
.menu-contacts {
  margin-left: auto;
}
.contact-item {
  display: flex;
  align-items: center;
}

.item-icon {
  fill: currentColor;
  margin-right: 10px;
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.item-icon:hover {
  fill: var(--primary-hover-color);
}

.link-button {
  display: inline-block;
  border: 1px solid transparent;
  padding: 10px 32px;
  min-width: 200px;
  min-height: 50px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  cursor: pointer;

  color: var(--primary-background-color);
  background-color: var(--primary-hover-color);
  outline: none;

  font-weight: 700;
  font-size: 16px;
  line-height: 1.87;
  text-decoration: none;
  text-align: center;
  letter-spacing: 0.06em;
}
.link-button:focus,
.link-button:active {
  border: 0.5px groove var(--secondary-background-color);
}


footer {
  background-color: #2f303a;
}

footer .title {
  margin-bottom: 21px;
}
b {
  display: block;
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 14px;
}
.footer-flex {
  display: flex;
  align-items: baseline;
  justify-content: space-between;

  padding-top: 48px;
  padding-bottom: 0px;
}


footer .logo {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--primary-background-color);
  font-size: 22px;
  line-height: 1.18;
}

.adress-location {
  color: var(--secondary-background-color);
  font-style: normal;
  line-height: 1.71;
}
.footer-contacts {
  margin-bottom: 28px;
  margin-right: 69px;
}

.adress-contacts > .item {
  margin-bottom: 10px;

  color: rgba(255, 255, 255, 0.6);
  font-style: normal;
  line-height: 1.71;
  text-decoration: none;
}

.socials-list {
  display: flex;
  align-content: space-between;
  min-width: 270px;
}
.socials-item:not(:nth-last-child(1)) {
  margin-right: 10px;
}
.socials-link {
  display: block;
  height: 44px;
  width: 44px;
  padding: 12px;

  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;

  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.socials-link:hover,
.socials-link:focus {
  background-color: var(--primary-hover-color);
  cursor: pointer;
}
.socials-icon {
  fill: var(--primary-background-color);
}

.subscribe {
  margin-left: auto;
}
.footer-form > .link-button {
  display: flex;
  align-items: center;
}
.subscribe-icon {
  display: inline-block;
  margin-left: 10px;
}
.footer-form {
  display: flex;
  width: 570px;
  flex-direction: row;
  justify-content: space-between;
}

.footer-form input[type='email'] {
  min-width: 358px;
  height: 50px;
  margin-right: 12px;

  background: inherit;

  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  outline: none;

  padding: 12px 16px;
  font-size: 16px;
  line-height: 1.87;
  color: rgba(255, 255, 255, 0.6);
}

.text-copyright {
  padding-top: 18px;
  padding-bottom: 21px;
  margin-top: 0px;
  margin-bottom: 0px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);

  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  line-height: 2;
  text-align: center;
}
