/* #region Basic */
body {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
  background-color: #fff;
}

a {
  text-decoration: none;
  color: currentColor;
}

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

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}
/* #endregion */

/* #region Common */
/* ДОПОЛНИТЕЛЬНЫЙ КЛАСС
 ДЛЯ ТОГО ЧТОБЫ ПРАВИЛЬНО
  СКРЫВАТЬ ЭЛЕМЕНТЫ */
.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;
}

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

.section {
  padding: 120px 0;
}

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

.list {
  --items: 4;
  --indent-x: 24px;
  --indent-y: 24px;
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--indent-x);
  row-gap: var(--indent-y);
}
.list-item {
  width: calc((100% - (var(--indent-x) * (var(--items) - 1))) / var(--items));
}
.card-content-wrapper {
  padding: 32px 16px;
}
/* #endregion */

/* #region Logo*/
.logo {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #4d5ae5;
}
.page-header .logo-part {
  color: #2e2f42;
}
/* #endregion */

/* #region Header*/
.page-header {
  border-bottom: 1px solid #e7e9fc;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-nav {
  display: flex;
  align-items: center;
}
.page-header .logo {
  margin-right: 76px;
  padding: 24px 0;
}
.menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.menu-link {
  display: inline-block;
  padding: 24px 0;
  font-weight: 500;
  color: #2e2f42;
}
.menu-link:hover,
.menu-link:focus,
.contacts-list-link:hover,
.contacts-list-link:focus {
  color: #404bbf;
}

.contacts {
  font-style: normal;
}
.contacts-list {
  display: flex;
  gap: 40px;
}
.contacts-list-link {
  padding: 24px 0;
}
/* #endregion */

/* #region Hero section*/
.hero {
  padding: 188px 0;
  background-color: #2e2f42;
}
.hero-title {
  max-width: 496px;
  margin: 0 auto 48px;
  font-weight: 700;
  font-size: 56px;
  line-height: 1.07;
  letter-spacing: 0.02em;
  text-align: center;
  color: #fff;
}

.hero-btn {
  display: block;
  min-width: 169px;
  margin: 0 auto;
  padding: 16px 32px;
  border: none;
  border-radius: 4px;
  color: #fff;
  background: #4d5ae5;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
  cursor: pointer;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.hero-btn:hover,
.hero-btn:focus {
  background-color: #404bbf;
}
/* #endregion */

/* #region Features section*/

.features-item-title {
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #2e2f42;
}
/* #endregion */

/* #region Team section */
.team {
  background-color: #f4f4fd;
}
.team-card {
  text-align: center;
  border-radius: 0 0 4px 4px;
  box-shadow:
    0 2px 1px 0 rgba(46, 47, 66, 0.08),
    0 1px 1px 0 rgba(46, 47, 66, 0.16),
    0 1px 6px 0 rgba(46, 47, 66, 0.08);
  background-color: #ffffff;
}
.team .card-content-wrapper {
  padding: 32px 0;
}
.team-card-name,
.portfolio-card-title {
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #2e2f42;
}
/* #endregion */

/* #region Portfolio */

.portfolio .list {
  --items: 3;
  --indent-y: 48px;
}
.portfolio .card-content-wrapper {
  border-bottom: 1px solid #e7e9fc;
  border-left: 1px solid #e7e9fc;
  border-right: 1px solid #e7e9fc;
}

/* #endregion */

/* #region Footer */
.page-footer {
  padding: 100px 0;
  background-color: #2e2f42;
}
.page-footer .logo {
  margin-bottom: 16px;
}
.page-footer .logo-part,
.footer-text {
  color: #f4f4fd;
}
.footer-text {
  width: 264px;
}
/* #endregion */
