:root {
  --main-bg-color: #017E8E;
  --gold-color: #D3AA6B;
  --white-color: #ffffff;
  --black-color: #000000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Ubuntu", Arial, sans-serif;
  background-color: var(--main-bg-color);
  color: var(--white-color);
  line-height: 1;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

.container {
  padding: 20px;
  max-width: 1512px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.logo {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 120px;
}

.logo img {
  width: 100%;
  height: auto;
}

.header {
  padding-top: 84px;
  text-align: left;
  margin-bottom: 48px;
}

.header h1 {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 10px;
  font-weight: 500;
}

.header h1 em {
  font-style: italic;
}

.header h1 span {
  font-size: 1.5rem;
  vertical-align: super;
}

.subheader {
  font-size: 18px;
  line-height: 1.3;
}

.subheader em {
  color: var(--gold-color);
}

.body-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 120px;
}

.badge {
  position: absolute;
  top: -130px;
  right: -10px;
  align-self: center;
  width: 230px;
  min-height: 124px;
  text-align: center;
  background-color: transparent;
  background-image: url('/img/formula.png');
  background-size: 100% 100%;
  background-position: 0 0;
  padding-left: 36px;
  padding-right: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: scale(0.6);
  transform-origin: 100% 100%;
}

.badge-content {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 500;
  text-transform: uppercase;
}

.badge-content span {
  display: block;
  font-size: 32px;
  margin-bottom: 6px;
  color: var(--black-color);
}

.partners {
  width: 100%;
}

.partners h2 {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 32px;
  font-weight: normal;
}

.partner-logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.partner-logo {
  border-radius: 8px;
  padding-top: 46.38%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.partner-logo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url(./img/praducts-frame.png);
  background-size: 100% 100%;
  border-radius: 8px;
}

.partner-logo:hover {
  transform: scale(1.05);
}

.partner-logo img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 80%;
}

.products {
  position: relative;
  text-align: center;
}

.product-image {
  max-width: 100%;
  height: auto;
}

/* Tablet styles */
@media (min-width: 740px) {
  .container {
    padding-top: 0;
    padding-bottom: 0;
  }

  .header {
    padding-top: 64px;
  }

  .header h1 {
    font-size: 48px;
    line-height: 1.3;
  }

  .subheader {
    font-size: 24px;
  }

  .logo {
    top: 64px;
  }

  .partners h2 {
    font-size: 24px;
  }

  .partner-logos {
    gap: 32px;
    max-width: 640px;
  }

  .partner-logo {
    border-radius: 16px;
  }
}

/* Desktop styles */
@media (min-width: 1024px) {
  .container {
    height: 100vh;
    padding: 0 4.25%;
  }

  .body-content {
    /* flex-direction: row; */
    align-items: flex-end;
    flex-grow: 0;
    display: grid;
    grid-template-columns: 38%1fr;
    margin-top: auto;
    margin-bottom: auto;
    gap: 32px;
  }

  .header {
    min-height: 174px;
  }

  .partner-logos {
    grid-template-columns: repeat(2, 1fr);
    padding-bottom: 4%;
    max-width: none;
  }

  .partners h2 {
    margin-bottom: 64px;
    font-size: 32px;
  }

  .logo {
    height: 174px;
    width: 322px;
  }

  .badge {
    top: -200px;
    right: auto;
    left: auto;
    transform: scale(1);
  }

  .product-image {
    max-height: 70vh;
    object-fit: contain;
  }

  .badge {
    margin-top: 100px;
  }
}
