body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: #f2f4f6;
  font-family: 'Poppins', sans-serif;
}

/* Header */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  padding: 10px 150px;
  box-sizing: border-box;
  transition: 0.5s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 99;
}

.navbar__black {
  height: 80px;
  padding: 10px 50px;
  background: rgba(000, 000, 000, 0.8);
}

.navbar__logo {
  float: left;
}

.logo-name {
  font-weight: 900;
  font-size: 36px;
  line-height: 80px;
  text-transform: uppercase;
  transition: 0.5s;
  color: #262626;
}

.navbar__black .logo-name {
  color: #ffffff;
  font-size: 30px;
}

.navbar__list {
  float: right;
  margin: 0;
  padding: 0;
  display: flex;
}

.navbar__item {
  list-style: none;
}

.navbar__link {
  padding: 5px 20px;
  line-height: 80px;
  font-family: 'Roboto', sans-serif;
  text-decoration: none;
  text-transform: uppercase;
  color: #262626;
  transition: 0.5s;
}

.navbar__black .navbar__link {
  color: #ffffff;
  line-height: 60px;
}

.navbar__link--active,
.navbar__link:hover {
  color: #ffffff;
  background: #e21212;
}

/* Section "Intro" */

.intro {
  width: 100%;
  height: 100vh;
  background: url('../img/hero-bg.jpg');
  background-size: cover;
}

.title--visually-hidden {
  position: absolute;
  clip: rect(0 0 0 0);
  width: 1px;
  height: 1px;
  margin: -1px;
}

/* Section "Hero" */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 10px;
  padding: 50px;
  align-items: center;
  justify-items: center;
}

.hero-card {
  position: relative;
  width: 300px;
  height: 400px;
  background: rgba(000, 000, 000, 0.05);
  transform-style: preserve-3d;
  transform: perspective(1000px);
  box-shadow: 10px 20px 40px rgba(0, 0, 0, 0.25);
  transition: 1s;
}

.hero-card:hover {
  transform: translateX(50%);
}

.hero-card__image-box {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  transform-origin: left;
  transform-style: preserve-3d;
  background: #000000;
  box-shadow: 10px 20px 40px rgba(0, 0, 0, 0.25);
  transition: 1s;
}

.hero-card:hover .hero-card__image-box {
  transform: rotateY(-180deg);
}

.hero-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.hero-card__image:nth-child(2) {
  transform: rotateY(180deg);
}

.hero-card__details {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.hero-card__title {
  margin: 0;
  font-size: 24px;
  text-align: center;
  font-weight: 700;
  line-height: 1em;
}

.hero-card__title--addition {
  color: #e21212;
  font-size: 0.8em;
}

.social-icons {
  position: relative;
  display: flex;
  margin-top: 10px;
}

.social-icons__link {
  display: inline-block;
  width: 35px;
  height: 35px;
  background: #333333;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  margin: 5px;
  font-size: 18px;
  transition: 0.2s;
}

.social-icons__link:hover {
  background: #e21212;
}

.hero-text__title {
  font-size: 30px;
  font-weight: 900;
  line-height: 30px;
}

.hero-text__text {
  font-size: 20px;
  line-height: 36px;
}

/* Section "Catalog" */

.catalog {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 50px;
}

.catalog-intro__title {
  font-size: 30px;
  font-weight: 900;
  line-height: 30px;
}

.catalog-intro__text {
  margin: 0;
  font-size: 20px;
  line-height: 36px;
}

.catalog-container {
  position: relative;
  width: 90%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: auto;
  gap: 0 30px;
  padding: 50px 0;
}

.box {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  width: 300px;
  height: 400px;
  background: #f2f4f6;
  display: flex;
  justify-content: center;
  align-items: center;
}

.box::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: #ffffff;
  box-shadow: 10px 20px 40px rgba(0, 0, 0, 0.25);
  transform: skew(2deg, 2deg);
  z-index: -1;
}

.box:nth-child(1)::before {
  background: linear-gradient(315deg, #ff0057, #e64a19);
}

.box:nth-child(2)::before {
  background: linear-gradient(315deg, #89ff00, #00bcd4);
}

.box:nth-child(3)::before {
  background: linear-gradient(315deg, #e91e63, #5d02ff);
}

.box:nth-child(4)::before {
  background: linear-gradient(315deg, #ff0000, #ffc107);
}

.box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: rgba(000, 000, 000, 0.05);
  pointer-events: none;
}

.box__content {
  position: relative;
  padding: 20px;
  transform: translateY(40px);
}

.box__title {
  position: absolute;
  top: -60px;
  right: 20px;
  margin: 0;
  padding: 0;
  font-size: 10em;
  color: rgba(000, 000, 000, 0.2);
  transition: 0.5s;
}

.box:hover .box__title {
  top: -140px;
}

.box__subtitle {
  margin: 0 0 10px;
  padding: 0;
  font-size: 24px;
  color: #000000;
}

.box__text {
  margin: 0;
  padding: 0;
  color: #000000;
  font-size: 16px;
}

.box__link {
  position: relative;
  margin: 20px 0 0;
  padding: 10px 20px;
  text-decoration: none;
  border: 1px solid #000000;
  display: inline-block;
  color: #000000;
  transition: 0.5s;
  transform: translateY(-40px);
  opacity: 0;
  visibility: hidden;
}

.box:hover .box__link {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.box .box__link:hover {
  color: #f2f4f6;
  background: #e21212;
  border: 1px solid #e21212;
}

/* Footer */

.footer {
  padding: 50px;
  background: rgba(000, 000, 000, 0.8);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__email {
  padding-left: 30px;
  font-size: 20px;
  font-weight: 600;
  background-image: url('../img/icon-email-footer.svg');
  background-repeat: no-repeat;
  background-position: left;
  text-decoration: none;
  color: #ffffff;
}

.footer__logo {
  padding: 25px;
  border: 1px solid #ffffff;
}

.footer__logo-name {
  line-height: 36px;
  font-weight: 900;
  font-size: 36px;
  text-transform: uppercase;
  transition: 0.5s;
  color: #ffffff;
}
.footer__logo-name--wide {
  letter-spacing: 6px;
}
