@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans&display=swap");
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.8),
    rgba(240, 240, 240, 0.8)
  );
}
#loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(255, 255, 255);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #000000;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.allContent {
  margin: 0 auto;
  display: none;
}
.allContent.failed {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
h1,
h2 {
  font-family: "Montserrat", sans-serif;
}
h1 {
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}
.navBar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  background-color: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 100;
  transition: box-shadow 0.3s ease-in-out;
}
.navBar .navContainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 80%;
  margin: 0 auto;
  padding: 15px 0px;
}
.navbarShadow {
  box-shadow: 0 4px 10px rgba(100, 100, 100, 0.1);
}
.companyName {
  width: 150px;
  text-decoration: none;
}
.companyName a img {
  width: 100%;
}
.companyName .yellowText {
  font-size: 30px;
  font-weight: 400;
  border-inline-end: 1px solid black;
  padding-inline-end: 5px;
}

.companyName .products {
  font-size: 16px;
  font-weight: 500;
  color: #666;
}

.headerContent {
  display: flex;
  align-items: baseline;
  resize: horizontal;
  gap: 20px;
  list-style: none;
}
.headerContent li {
  flex-shrink: 0;
}
.headerContent a {
  position: relative;
  color: #333;
  text-decoration: none;
  font-size: 17px;
  transition: 200ms ease-in-out;
}
.headerContent a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #fccc14;
  transition: width 0.3s ease;
}
.headerContent a:hover::after {
  width: 100%;
}

.headerContent a.active {
  color: #fccc14;
  font-weight: 700;
}

.hamburger {
  display: none;
}
.dropdown {
  position: fixed;
  top: 79.3px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 79.3px);
  background-color: rgba(255, 255, 255, 0.5);
  color: white;
  display: none;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.productsHeader {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  text-align: center;
  margin-top: 79px;
  padding-block: 50px;
}
.productsHeader .headerContainer {
  width: 60%;
  margin-inline: auto;
}
.productsHeader h1 {
  text-transform: uppercase;
  color: #000000;
  font-style: normal;
  font-weight: 700;
  font-size: 45px;
  line-height: 1.2;
  margin-bottom: 10px;
  animation: fadeInUp 1s ease-out;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.productsHeader h1 span {
  position: relative;
}
.productsHeader h1 span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 90%;
  width: 60px;
  height: 50px;
  background: linear-gradient(
    90.12deg,
    #f5d64e 0.13%,
    rgba(245, 214, 78, 0) 99.92%
  );
  z-index: -1;
}
.mainSection {
  margin: 0 auto;
  padding-block: 0px 50px;
  width: 80%;
}

.mainSection .ydProducts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 20px;
  row-gap: 40px;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23fccc14' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.ydProducts .card {
  position: relative;
  display: flex;
  flex-direction: column;
  word-wrap: break-word;
  background-color: #fff;
  padding-block: 20px 40px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 7px;
  background-clip: border-box;
  transition: 300ms ease-in-out;
  box-shadow: 0px 0px 20px rgba(66, 66, 66, 0.1);
}
.ydProducts .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card .cardContent {
  padding: 8px 20px 0px;
}
.card .cardContent .cardHeader {
  font-size: 18px;
  font-weight: 600;
  padding: 20px 5px;
  word-wrap: break-word;
  text-align: center;
}
.card .cardContent .cardLink {
  position: relative;
  text-decoration: none;
  color: #000000;
}
.card .cardContent .cardLink::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #fccc14;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.5s ease-out;
}
.card .cardContent .cardLink:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}
/* .card .cardContent .cardText {
} */

.card .moreContent {
  display: flex;
  justify-content: center;
  color: #fccc14;
  cursor: pointer;
}
.card .moreContent:hover {
  text-decoration: underline;
}

#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10;
  font-size: 16px;
  padding: 10px 15px;
  background-color: #fccc14;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out,
    transform 0.3s ease-in-out;
  opacity: 0;
  transform: translateY(50px);
  visibility: hidden;
}
#backToTop.visible {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* .emailSubmit {
  position: relative;
  padding-block: 100px;
  background-color: #fff;
  width: 100%;
  z-index: 0;
}
.emailBackground {
  position: relative;
}
.emailSubmit .emailSubmitContainer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 80%;
  margin: 0 auto;
  padding: 30px 50px;
  background-color: #ccc;
  border-radius: 20px;
}
.emailSubmit .emailBackground::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0px;
  right: 0px;
  bottom: 5px;
  background: linear-gradient(
    45deg,
    #ffe60098,
    #00ffaa8f,
    #ae00ff77,
    #ff008459
  );
  background-size: 400% 400%;
  width: 80%;
  margin: 0 auto;
  filter: blur(10px);
  z-index: -1;
  border-radius: 20px;
  animation: gradientAnimation 5s infinite;
}
@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.emailInput {
  width: 50%;
  display: flex;
}

.emailInput input {
  padding: 15px 12px;
  border: 1px solid #ccc;
  border-radius: 10px 0 0 10px;
  font-size: 18px;
  width: 70%;
}
.emailInput input:focus {
  outline: none;
}
.emailInput button {
  padding: 8px 15px;
  width: 30%;
  background-color: #a0a0a0c9;
  border: none;
  border-radius: 0 10px 10px 0;
  color: white;
  font-weight: 600;
  cursor: pointer;
}
.emailInput button:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.emailSubmit .emailSubmitContainer .emailText {
  font-size: 28px;
  font-weight: 600;
  font-family: inter;
} */
footer {
  position: absolute;
  width: 100%;
  background-color: #363636;
  color: #fff;
  font-size: 12px;
  z-index: 1000;
}
footer a {
  text-decoration: none;
  color: #ccc;
  transition: 300ms ease-in-out;
}
footer a:hover {
  color: #fccc14;
}
.topFooter {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 10px 0;
  width: 80%;
  margin: 0 auto;
  border-bottom: 1px solid black;
  align-items: center;
}
.footerImg {
  width: 150px;
}
.footerImg img {
  width: 100%;
}
.lowFooter {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 10px 0;
  width: 80%;
  margin: 0 auto;
  align-items: baseline;
}
.contacts .actualContacts {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
}
.copyright span {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
}
.socials ul {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  gap: 30px;
}
.socials ul li {
  font-size: 16px;
}
.socials ul li:hover {
  transform: scale(1.1);
  transition: transform 0.5s ease-in-out;
}
.blur {
  filter: blur(5px);
}

.hiddenText {
  display: none;
}
@media screen and (max-device-width: 1024px) {
  .headerContent {
    margin-inline: 0;
  }

  .mainSection .ydProducts {
    grid-template-columns: repeat(3, 1fr);
  }

  .mainSection .productsHeader {
    width: 75%;
  }
}

@media screen and (max-device-width: 768px) {
  .mainSection .ydProducts {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 641px) {
  .headerContent {
    display: none;
  }
  .hamburger {
    display: block;
    font-size: 25px;
  }

  .dropdown.active {
    display: block;
    opacity: 1;
  }
  .dropdown .dropdownContainer {
    padding: 30px 20px;
    height: 350px;
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    background-color: #fff;
  }
  .dropdown .cancelDropdown {
    display: flex;
    justify-content: flex-end;
    font-size: 25px;
    margin: 0 10px 30px;
  }
  .dropdown .headerContentDropdown {
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
  }
  .dropdown .headerContentDropdown li {
    padding: 15px 20px;
    background-color: #f5f5f5;
    border-radius: 100px;
  }
  .dropdown .headerContentDropdown li a {
    text-decoration: none;
    font-size: 18px;
    color: #000000;
  }
  .productsHeader .headerContainer {
    width: 70%;
  }
}
@media screen and (max-device-width: 425px) {
  .navBar .navContainer {
    width: 90%;
    padding: 15px 10px;
  }
  .headerContent {
    display: none;
  }

  .mainSection {
    width: 90%;
  }
  .mainSection .productsHeader {
    width: 100%;
  }
  .productsHeader .headerContainer {
    width: 80%;
  }
  .productsHeader h1 {
    font-size: 35px;
  }
  .productsHeader h1 span::before {
    top: 40px;
    left: 80%;
    height: 40px;
  }
  .mainSection .ydProducts {
    grid-template-columns: repeat(1, 1fr);
  }
  /* .emailSubmit {
    padding: 50px 0;
    margin: 0;
  }
  .emailBackground {
    width: auto;
    margin: 0 10px;
  }
  .emailSubmit .emailBackground::before {
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    width: 90%;
  }
  .emailSubmit .emailSubmitContainer {
    width: 90%;
  }
  .emailSubmit .emailSubmitContainer .emailText {
    font-size: 16px;
  }
  .emailInput input {
    width: 80%;
    font-size: 14px;
  }
  .emailInput button {
    padding: 0;
  } */
  .lowFooter {
    flex-direction: column-reverse;
  }
}
