@font-face {
  font-family: "Playfair Display";
  src:
    url("./assets/fonts/PlayfairDisplay-Regular.woff2") format("woff2"),
    url("./assets/fonts/PlayfairDisplay-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("./assets/fonts/Roboto-Bold.woff2") format("woff2");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("./assets/fonts/Roboto-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("./assets/fonts/Roboto-Italic.woff2") format("woff2");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* End css reset */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-size: 16px;
  font-family: "Roboto", sans-serif;
}

.container {
  width: 100%;
  max-width: calc(1384px + 64px);
  padding: 0 32px;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

/* Rich text */
.rich-text {
  line-height: 1.5;
}

.rich-text b,
.rich-text strong {
  font-weight: 700;
}
/* End Rich text */

/* Header */
.header {
  padding-top: 32px;
  padding-bottom: 32px;
}

.header__logo {
  display: block;
  max-width: 368px;
  margin: 0 auto;

  img {
    width: 100%;
    height: auto;
  }
}
/* End Header */

/* Main */
.main__content {
  text-align: center;
  margin: 0 auto 64px;
  max-width: 954px;
}
.main__title {
  margin: 0 auto 32px;
  font-size: 48px;
  line-height: 1.1;
  font-family: "Playfair Display", serif;
}

.main__description {
  /* max-width: 560px; */
  margin: 0 auto;
  font-size: 20px;
  line-height: 1.5;
}

.links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}

.link {
  height: 180px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 51px;
  border-radius: 90px;
  border: 1px solid #000000;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: all 0.4s ease;
}

.link::before {
  content: "";
  z-index: -1;
  width: 100%;
  height: 200%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #ffffff 30%,
    #eeeeee 50%,
    #ffffff 100%
  );
  transition: all 0.14s ease;
}

.link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.products {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.product {
  flex: 1;
}

.product:nth-child(1) .product__img:nth-child(1) {
  height: 264px;
}
.product:nth-child(1) .product__img:nth-child(2) {
  height: 270px;
}

.product:nth-child(2) .product__img:nth-child(1) {
  height: 160px;
}
.product:nth-child(2) .product__img:nth-child(2) {
  height: 145px;
}
.product:nth-child(2) .product__img:nth-child(3) {
  height: 172px;
}

.product:nth-child(3) .product__img:nth-child(1) {
  height: 101px;
}
.product:nth-child(3) .product__img:nth-child(2) {
  height: 101px;
}
.product:nth-child(3) .product__img:nth-child(3) {
  height: 99px;
}

.product:nth-child(4) .product__img:nth-child(1) {
  height: 193px;
}
.product:nth-child(4) .product__img:nth-child(2) {
  height: 183px;
}

.product:nth-child(5) .product__img:nth-child(1) {
  height: 165px;
}
.product:nth-child(5) .product__img:nth-child(2) {
  height: 311px;
}

.product__images-wr {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  /* height: 326px; */
  box-sizing: border-box;
  padding: 0 16px;
}

.product__title {
  text-align: center;
  padding: 12px 0;
  font-size: 16px;
  text-transform: uppercase;
  line-height: 1.5;
  margin-top: 16px;
  border-top: 2px solid #000000;
}

.product__img img {
  display: block;
  height: 100%;
  width: auto;
}
/* End Main */

/* Footer */
.footer {
  margin-top: auto;
  padding-top: 64px;
  padding-bottom: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  width: 151px;
}

.footer__logo img {
  width: 100%;
  height: auto;
  display: block;
}

.copyright {
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.6;
}
/* End Footer */

@media (min-width: 1280px) {
  .link:hover {
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.22);
  }

  .link:hover::before {
    transform: translateY(-50%);
  }
}

@media (max-width: 1279px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .main__title {
    font-size: 42px;
  }

  .links {
    grid-template-columns: repeat(2, 1fr);
  }

  .products {
    flex-wrap: wrap;
  }

  .product {
    flex: 1 1 30%;
  }
}

@media (max-width: 640px) {
  .main__title {
    font-size: 28px;
  }

  .links {
    grid-template-columns: 1fr;
  }

  .link {
    height: 120px;
    padding: 36px 64px;
    border-radius: 60px;
  }

  .products {
    gap: 32px;
  }
  .product {
    flex: 1 1 100%;
  }

  .footer {
    flex-direction: column-reverse;
    gap: 16px;
  }
}
