:root {
  --color-primary: #212121;
  --color-brend: #2196f3;
  --color-secondary: #757575;
  --color-light: #ffffff;
  --color-bg-dark: #2f303a;
  --color-logo: #000000;
}

header {
  box-shadow: 0px 2px 1px rgba(46, 47, 66, 0.08),
    0px 1px 1px rgba(46, 47, 66, 0.16), 0px 1px 6px rgba(46, 47, 66, 0.08);
}

body {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #434455;
  background-color: #ffffff;
}

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

a {
  text-decoration: none;
}

img {
  display: block;
}

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

p {
  margin: 0;
}

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

/* Header */

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

.header-hero .container {
  display: flex;
  padding: 0 15px;
  align-items: center;
}

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

.main {
  display: flex;
  gap: 40px;
}

.header-address-list {
  display: flex;
  gap: 40px;
  margin: 0;
}

.header-logo {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #4d5ae5;
  margin-right: 76px;
}

.header-logo .accent {
  color: #2e2f42;
}

.header-link {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  padding: 24px 0;
  color: #2e2f42;
  display: block;
}

.header-address {
  font-style: normal;
}

.header-link:hover,
.contacts-link:hover,
.footer-link:hover {
  color: #404bbf;
}

.header-link:focus {
  color: #404bbf;
}

.footer-link:focus,
.contacts-link:focus {
  color: #404bbf;
}

.hero-cursor {
  cursor: pointer;
}

.hero-button-portfolio:hover {
  color: var(--color-light);
  background-color: var(--color-brend);
}

.hero-button-portfolio:focus {
  color: var(--color-light);
  background-color: var(--color-brend);
}

.hero-button:hover {
  background-color: #404bbf;
}

.hero-button:focus {
  background-color: #404bbf;
}

/* Contacts */

.contacts-link {
  font-size: 16px;
  line-height: 1.17;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
}

.contacts-link:hover {
  color: #404bbf;
}

/* Hero section */

.hero-section {
  background-color: #2e2f42;
  max-width: 1440px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: 188px 0;
}

.hero-title {
  font-size: 56px;
  line-height: 1.07;
  letter-spacing: 0.02em;
  max-width: 496px;
  color: var(--color-light);
  text-align: center;
  margin-bottom: auto;
  margin-left: auto;
  margin-right: auto;
}

.hero-button {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  min-width: 169px;
  height: 56px;
  display: block;
  margin-bottom: auto;
  margin-left: auto;
  margin-right: auto;
  border-radius: 4px;
  color: var(--color-light);
  border: none;
  background-color: #4d5ae5;
  text-align: center;
  cursor: pointer;
}

.hero-button-portfolio {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.875;
  color: #212121;
  border: none;
  background-color: #f5f4fa;
  text-align: center;
  cursor: pointer;
}

.section-title {
  color: #2e2f42;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  margin-bottom: 72px;
  text-transform: capitalize;
  text-align: center;
}

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

.hidden-section {
  padding: 120px 0;
  color: #2e2f42;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.hidden-section-list {
  display: flex;
  gap: 24px;
}

.list {
  flex-basis: calc((100% - 3 * 24px) / 4);
}

.section-list {
  background-color: #ffffff;
  width: calc((100% - 48px) / 3);
}

.section-team {
  background-color: #f4f4fd;
  padding-top: 120px;
  padding-bottom: 120px;
}

.product-designer {
  background-color: #ffffff;
  border-radius: 0px 0px 4px 4px;
  width: calc((100% - 3 * 24px) / 4);
}

/* Benefit section */

.benefit-title {
  font-weight: 500;
  font-size: 20px;
  margin-bottom: 8px;
  line-height: 1.2;
}

.benefit-text {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
}

/* Team section */

.person-name {
  color: #2e2f42;
  font-weight: 500;
  font-size: 20px;
  margin-bottom: 8px;
  border-bottom-left-radius: 4px;
  border-radius: 0px 0px 4px 4px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.person-div {
  padding: 32px 0;
}

.person-job {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
}

.person-title {
  background-color: #f5f4fa;
  display: flex;
  gap: 24px;
}

.person-list {
  padding: 32px 16px;
  border: 1px solid #e7e9fc;
  border-top: none;
}

.portfolio-list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 48px;
}

/* Footer section */

.footer {
  background-color: #2e2f42;
  text-decoration: none;
  padding: 100px 0;
}

.footer-logo {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.17;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
  text-transform: uppercase;
  color: #4d5ae5;
  display: inline-block;
}

.footer-logo .accent {
  color: #f4f4fd;
}

.addresa-link {
  color: var(--color-light);
}

.footer-link {
  color: #fff9;
}

.footer-address {
  font-style: normal;
}

.footer-paragraf {
  line-height: 1.5;
  letter-spacing: 0.02em;
  max-width: 264px;
  color: #f4f4fd;
}
