*,
*::before,
*::after {
  box-sizing: border-box;
}
.header-title {
  background-color: #ffffff;
  border-bottom: 1px solid #e7e9fc;
  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 {
  color: #434455;
  background-color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 2%;
}

a {
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
}

p {
  margin: 0;
}

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

img {
  display: block;
  width: 100%;
}

.section {
  padding: 120px 0;
}

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

/* Top line */

.header-container {
  display: flex;
}

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

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

.page-nav {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0;
  margin: 0;
  gap: 40px;
}

.page-nav .link-title.active::after {
  content: "";
  width: 100%;
  position: absolute;
  bottom: -1px;
  height: 4px;
  left: 0;
  background-color: #404bbf;
  border-radius: 2px;
}

.logo-title-logo {
  color: #2e2f42;
}

.link-title.active {
  color: #404bbf;
  position: relative;
}

.link-title {
  display: block;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  padding: 24px 0;
  text-decoration: none;
  color: #2e2f42;
  position: relative;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.link-title:hover,
.link-title:focus {
  color: #404bbf;
}

.link-title-tel {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.02em;
  color: #434455;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.link-title-tel:hover {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.02em;
  color: #404bbf;
}

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

.header-conteiner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
}

.addreess-list {
  display: flex;
  gap: 40px;
}

/* Title and button */

.section-title {
  display: flex;
  background-color: #2e2f42;
  background-image: linear-gradient(
      rgba(46, 47, 66, 0.7),
      rgba(46, 47, 66, 0.7)
    ),
    url(/images/people-office.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 188px 0;
  max-width: 1440px;
  margin: 0 auto;
}

.heading-title {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-size: 56px;
  line-height: 1.07;
  text-align: center;
  letter-spacing: 0.02em;
  color: #ffffff;
  margin-bottom: 30px;
  max-width: 496px;
  margin: 0 auto;
  padding-bottom: 48px;
}

.button-title {
  display: block;
  background-color: #4d5ae5;
  font-family: "Roboto", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #ffffff;
  cursor: pointer;
  padding: 12px 32px;
  border: none;
  border-radius: 4px;
  min-width: 169px;
  height: 56px;
  margin: 0 auto;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Our Portfolio */

.container-our {
  background-color: #e7e9fc;
  color: #ffffff;
  display: block;
  padding: 120px 0;
}

.op-title {
  font-family: "Roboto", sans-serif;
  font-weight: bold;
  font-size: 36px;
  letter-spacing: 0.02em;
  line-height: 1.11;
  text-align: center;
  text-transform: capitalize;
  color: #2e2f42;
  margin-bottom: 72px;
}

.ul-title {
  background-color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 48px;
}

.spdt-title {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: #2e2f42;
  margin-bottom: 8px;
}
.spdt-title-section {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  margin-bottom: 8px;
}

.svg-conteiner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 112px;
  background-color: #f4f4fd;
  border-radius: 4px;
  border: 1px solid #8e8f99;
  margin-bottom: 8px;
}

.section-spdt {
  padding: 120px 0;
  display: block;
}

.photo-list {
  background-color: #ffffff;
  width: calc((100% - 72px) / 4);
  border-radius: 0px 0px 4px 4px;
  box-shadow: 0px 1px 6px rgba(46, 47, 66, 0.08),
    0px 1px 1px rgba(46, 47, 66, 0.16), 0px 2px 1px rgba(46, 47, 66, 0.08);
}

.spdt-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.name-photo {
  padding: 32px 0;
}
.item {
  width: calc((100% - 72px) / 4);
}

.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;
}

.our-list {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.section-our {
  background-color: #f4f4fd;
  padding: 120px 0;
  text-align: center;
}

.port-list {
  position: relative;
  overflow: hidden;
  width: calc((100% - 48px) / 3);
  transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.port-list:hover {
  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);
  cursor: pointer;
}

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

.svg-our {
  display: flex;
  justify-content: center;
  gap: 24px;
  cursor: pointer;
}

.svg-team {
  display: flex;
  width: 100%;
  height: 100%;
  background-color: #4d5ae5;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.svg-team:hover,
.svg-team:focus {
  background-color: #404bbf;
}

.svg-footer {
  width: 40px;
  height: 40px;
}

.svg-link {
  fill: #f4f4fd;
}

.port-transform {
  position: relative;
  overflow: hidden;
}

.port-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 40px 32px;
  background-color: #4d5ae5;
  color: #f4f4fd;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  transform: translateY(100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.port-list:hover .port-overlay {
  transform: translateY(0);
}
/* footer */

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

.logo-footer {
  margin-right: 0;
  margin-bottom: 16px;
}

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

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

.footer-list {
  display: flex;
  gap: 120px;
}

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

.footer-h {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #ffffff;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.footer-svg {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-right: 120px;
}

.svg-b {
  width: 100%;
  height: 100%;
  background-color: #4d5ae5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.svg-b:hover,
.svg-b:focus {
  background-color: #31d0aa;
}

.svg-icon-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
}
