/*
primary text color #757575
big header color and main bg #FFFFFF
small headers color #212121
accent color #2196F3
main bg color #FFFFFF
footer and main header bd color #2F303A
team bg color #F5F4FA
footer text color rgba(255, 255, 255, 0.6)
*/

/*Common stiles*/

:root {
  --primary-text-color: #757575;
  --big-header-color: #ffffff;
  --small-header-color: #212121;
  --logo-color: #000000;
  --accent-color: #2196f3;
  --footer-bg-color: #2f303a;
  --team-bg-color: #f5f4fa;
  --footer-text-color: rgba(255, 255, 255, 0.6);
}

body {
  background-color: var(
    --big-header-color
  ); /*Don't forget change it after lesson 7*/
  color: var(--primary-text-color);
  font-family: Roboto, Sans-serif;
  letter-spacing: 0.03em;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

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

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

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

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

/*header*/

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

.header-container {
  display: flex;

  padding-top: 24px;
  padding-bottom: 25px;
}

/*logo*/

.logo {
  font-family: Raleway, sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.19;
  text-decoration: none;
  letter-spacing: 0.03em;
}
.logo.blue {
  color: var(--accent-color);
}

.logo.black {
  color: var(--logo-color);
}

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

.logo-header {
  margin-right: 93px;
}

/*nav*/
.nav-container {
  display: flex;
  align-items: center;
}

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

.site-nav-list:not(:last-child) {
  margin-right: 50px;
}

.site-nav {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.14;
  letter-spacing: 0.02em;
  color: var(--small-header-color);
  text-decoration: none;
}

.site-nav:hover {
  color: var(--accent-color);
}

.site-nav:focus {
  color: var(--accent-color);
}

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

.contacts-container {
  display: flex;
  align-items: center;
  margin-left: 305px;
}
.contacts-list:not(:last-child) {
  margin-right: 30px;
}

.contacts {
  display: flex;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--primary-text-color);
  text-decoration: none;
}

.contacts-icon {
  fill: var(--primary-text-color);
  margin-right: 10px;
}

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

.header-contacts:focus {
  color: var(--accent-color);
  outline:none
}
.header-contacts:hover .contacts-icon,
.header-contacts:focus .contacts-icon {
  fill: var(--accent-color);
 outline:none 
}

/*main section*/
.hero-bg {
  background-color: #c4c4c4;
  background-image: linear-gradient(
      rgba(47, 48, 58, 0.4),
      rgba(47, 48, 58, 0.4)
    ),
    url(../images/hero-min.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  max-width: 1600px;
  padding-top: 200px;
  padding-bottom: 200px;
  margin: 0 auto;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-header {
  width: 696px;
  margin-bottom: 30px;
  font-weight: 900;
  font-size: 44px;
  line-height: 1.36;
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--big-header-color);
  flex-wrap: wrap;
}

.hero-button {
  font-family: Roboto, sans-serif; /*Якщо я тут ставлю властивість inherit, то кнопка чомусь не наслідує шрифт (те ж саме і з кнопками на сторінці Портфоліо). З чим це може бути пов'язано?*/
  font-style: normal;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.87;
  text-align: center;
  letter-spacing: 0.06em;
  color: var(--big-header-color);
  background-color: var(--accent-color);
  cursor: pointer;
  min-height: 50px;
  min-width: 200px;
  padding: 10px 32px;
  border: 0px solid;
  border-radius: 4px;
}

/*benefits*/

.visually-hidden {
  position: absolute;
  clip: rect(0 0 0 0);
  width: 1px;
  height: 1px;
  margin: -1px;
}
.benefits-lists {
  display: flex;
  flex-wrap: wrap;
  margin-right: -30px;
}
.benefits-item {
  flex-basis: calc(100% / 4 - 30px);
  margin-right: 30px;
}

.benefits-icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 270px;
  height: 120px;
  left: 215px;
  top: 774px;
  background: var(--team-bg-color);
  border-radius: 4px;
  margin-bottom: 30px;
}
.benefits-title {
  font-weight: bold;
  font-size: 14px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--small-header-color);
  margin-bottom: 10px;
}

.benefits-descriptions {
  font-size: 14px;
  line-height: 1.7;
}

/*What we doing and team members*/
.example {
  padding-bottom: 94px;
}

.example .title,
.team .title,
.clients .title {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  text-align: center;
  color: var(--small-header-color);
  margin-bottom: 50px;
}

.example-lists {
  display: flex;
  flex-wrap: wrap;
  margin-right: -30px;
}
.example-item {
  flex-basis: calc(100% / 3 - 30px);
  margin-right: 30px;
}

.team-bg {
  background-color: var(
    --team-bg-color
  ); /*Don't forget change it after lesson 7*/
}
.team {
  padding-top: 94px;
}
.team-lists {
  display: flex;
  flex-wrap: wrap;
  margin-right: -30px;
  padding-bottom: 94px;
}
.team-item {
  flex-basis: calc(100% / 4 - 30px);
  margin-right: 30px;
  background-color: var(--big-header-color);
  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-description {
  padding: 30px 10px;
  /* padding-bottom: 30px; */
}

.team-name {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  color: var(--small-header-color);
  margin-bottom: 10px;
}
.team-profession {
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
}
.social-icons-list {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}
.social-icons-list li:not(:last-child) {
  margin-right: 10px;
}
.social-icons-link {
  display: block;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.social-icons-link:hover,
.social-icons-link:focus {
  background-color: var(--accent-color);
  outline:none 
}

.social-icons {
  fill: #afb1b8;
}
.social-icons-link:hover .social-icons,
.social-icons-link:focus .social-icons {
  fill: var(--big-header-color);
  outline:none 
}

/*Clients*/
.client-list {
  display: flex;
  margin-right: -30px;
}
.client-item {
  flex-basis: calc(100% / 6 - 30px);
  margin-right: 30px;
}

.client-icons-link {
  display: block;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 170px;
  height: 92px;
  border: 1px solid #afb1b8;
  border-radius: 4px;
}

.client-icons {
  fill: #afb1b8;
}
.client-icons-link:hover,
.client-icons-link:focus {
  border-color: var(--accent-color);
  outline:none 
}
.client-icons-link:hover .client-icons,
.client-icons-link:focus .client-icons {
  fill: var(--accent-color);
  outline:none 
}

/* portfolio page */

.filters-lists {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 50px;
}
.filters-item:not(:last-child) {
  margin-right: 8px;
}

.filters {
  font-family: Roboto, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  color: var(--small-header-color);
  background-color: var(--team-bg-color);
  cursor: pointer;
  min-height: 38px;
  min-width: 73px;
  padding: 6px 22px;
  border: 0px solid;
  border-radius: 4px;
}
.filters:hover {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  color: var(--big-header-color);
  background-color: var(--accent-color);
  outline:none 
}

.filters:focus {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  color: var(--big-header-color);
  background-color: var(--accent-color);
}
.sample-title {
  font-weight: bold;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.06em;
  color: var(--small-header-color);
  text-decoration: none;
  margin-bottom: 4px;
}
.sample-descriptions {
  font-size: 16px;
  line-height: 1.8;
  color: var(--primary-text-color);
  text-decoration: none;
  margin: 0;
}

.sample-link {
  text-decoration: none;
}

.sample-link:hover,
.sample-link:focus {
  display: block;
  border: 1px solid #eeeeee;
  box-sizing: border-box;
  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);
    outline:none 
}

.sample-lists {
  display: flex;
  flex-wrap: wrap;
  margin-right: -30px;
  margin-bottom: -30px;
}
.sample-item {
  flex-basis: calc(100% / 3 - 30px);
  margin-right: 30px;
  margin-bottom: 30px;
}

.sample-caption {
  padding: 20px 24px;
  border: 1px solid #eeeeee;
}

/*footer*/

.footer-bg {
  background-color: var(
    --footer-bg-color
  ); /*Don't forget change it after lesson 7*/
}
.footer {
  padding-top: 60px;
  padding-bottom: 60px;
}
.footer .container {
  display: flex;
}

.footer-adress-container {
  margin-right: 70px;
}

.footer-adress {
  font-size: 14px;
  line-height: 1.7;
  color: var(--big-header-color);
  font-style: normal;
  text-decoration: none;
  margin-top: 20px;
  margin-bottom: 9px;
}

.footer-contacts {
  font-family: Roboto;
  font-size: 14px;
  line-height: 1.7;
  color: var(--footer-text-color);
  font-style: normal;
  text-decoration: none;
}

.footer-list:not(:last-child) {
  margin-bottom: 9px;
}

.footer-socials {
  display: flex;
  flex-direction: column;
}

.footer-call {
  font-weight: 700;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--big-header-color);
  margin-bottom: 20px;
  padding-top: 12px;
}

.footer-social-icons-list {
  display: flex;
  justify-content: center;
}

.footer-social-icons-list li:not(:last-child) {
  margin-right: 10px;
}
.footer-social-icons-link {
  display: block;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}
.footer-social-icons-link:hover,
.footer-social-icons-link:focus {
  background-color: var(--accent-color);
  outline:none 
}

.footer-social-icons {
  fill: var(--big-header-color);
}
