:root {
  --color-gray: #565050;
  --color-pink: #ff5ebf;
  --font-family: 'Inter', sans-serif;

  --container-width: 1438px;
  --container-padding-x: clamp(1.25rem, -1.391rem + 11.268vw, 8.75rem);
}

body {
  font-family: var(--font-family);
  color: var(--color-gray);
}

h2 {
  font-weight: 900;
  font-size: 32px;
  text-align: center;
  color: var(--color-pink);
}

h3, h4 {
  font-weight: 900;
  font-size: 20px;
}

.margin-y {
  margin-block: 64px;
}

.header-gap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.description {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-align: center;
}

.container {
  width: 100%;
  max-width: calc(var(--container-width) + var(--container-padding-x) * 2);
  margin-inline: auto;
  padding-inline: var(--container-padding-x);
}

.wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-wrapper {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  gap: 16px;
}


/* === HEADER & MENU === */

.header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  background-color: #fff;
  z-index: 100;
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: end;
  padding: 11px 22px 11px 0;
}

.header-menu {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 49px;
  height: 100%;
  inset-inline: 0;
  background-color: #fff;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.header-menu.is-open {
  opacity: 1;
  visibility: visible;
  border-top: 14px solid #565050;
}

.header-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.header-item--link {
  position: relative;
  display: inline-block;
  padding: 24px;
  font-size: 12px;
  color: inherit;
  text-decoration: none;
  transition: color .3s ease, transform .3s ease;
}

.header-item--link::before {
  position: absolute;
  content: '';
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-pink);
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
}

.header-item--link:hover {
  color: var(--color-pink);
}

.header-item--link:hover::before,
.header-item--link.is-active::before {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.header-burger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 29px;
  border: none;
  background: transparent;
  padding: 0;
  z-index: 100;
  cursor: pointer;
  transition: transform .3s ease;
}

.header-burger:hover {
  transform: scale(1.05);
}

.header-burger--line {
  position: relative;
  display: block;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background-color: var(--color-pink);
  transition: background-color .3s ease;
}

.header-burger--line::after,
.header-burger--line::before {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 6px;
  border-radius: inherit;
  background-color: var(--color-pink);
  transition: transform .3s ease, top .3s ease;
}

.header-burger--line::after {
  top: 12px;
}

.header-burger--line::before {
  top: -12px;
}

.header-burger.is-open .header-burger--line {
  background-color: transparent;
}

.header-burger.is-open .header-burger--line::after {
  top: 0;
  transform: rotate(45deg);
}

.header-burger.is-open .header-burger--line::before {
  top: 0;
  transform: rotate(-45deg);
}


/* === HERO SECTION === */

.hero {
  background: url('img/background-hero.png') center / cover no-repeat;
  min-height: 100dvh;
  margin-bottom: 64px;
}

.hero-wrapper {
  padding-inline: 0;
  margin-inline: 0 auto;
  padding-block: clamp(10.938rem, 12.28rem + -5.728vw, 7.125rem) clamp(3.75rem, 3.486rem + 1.127vw, 4.5rem);
  width: 100%;
  max-width: 820px;
}

.hero-inner {
  background-color: #fff;
  padding-inline: 17px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
}

.hero-logo {
  margin-top: -60px;
  transition: transform .3s ease;
}

.hero-logo:hover {
  transform: scale(1.03);
}

.hero-content {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 24px;
}

.hero-content--title {
  font-weight: 900;
  font-size: 32px;
  color: var(--color-pink);
}

.hero-content--description {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 11px;
}

.hero-footer--image {
  margin-bottom: -15px;
}


/* === HISTORY & TIMELINE === */

.history {
  background-color: #f9fdce;
}

.history-inner {
  padding-block: clamp(2.25rem, 1.678rem + 2.441vw, 3.875rem);
}

.timeline-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 52px;
}

.timeline-item {
  padding: 24px;
  width: 100%;
  max-width: 367px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  transition: transform .3s ease;
}

.timeline-item:hover {
  transform: translateX(6px);
}

.timeline-item::before {
  content: '';
  grid-column: 1;
  grid-row: 1;
  width: 20px;
  height: 20px;
  background-color: var(--color-pink);
  border-radius: 50%;
  margin-top: 4px;
  transition: transform .3s ease, box-shadow .3s ease;
}

.timeline-item:hover::before {
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(255, 94, 191, 0.5);
}

.timeline-item--title {
  grid-column: 2;
  grid-row: 1;
}

.timeline-item--text {
  grid-column: 2;
  grid-row: 2;
}


/* === CANDY SWIPER === */

.candy-swiper {
  position: relative;
}

.candy-list {
  margin-top: 78px;
}

.candy-item {
  width: 100%;
  max-width: 280px;
  height: 444px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px 25px 120px 25px;
  row-gap: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  background-color: #fff;
  transition: transform .3s ease, box-shadow .3s ease;
}

.candy-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.candy-item--image {
  margin-top: -25px;
  transition: transform .3s ease;
}

.candy-item:hover .candy-item--image {
  transform: scale(1.05);
}

.candy-swiper .swiper-pagination {
  position: static;
  margin-top: 48px;
}

.candy-swiper .swiper-pagination-bullet {
  width: 20px;
  height: 20px;
  background-color: var(--color-pink);
  opacity: .2;
  margin-inline: 12px;
  transition: opacity .3s ease, transform .3s ease;
}

.candy-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background-color: var(--color-pink);
  transform: scale(1.1);
}

.candy-footer--text {
  text-align: center;
  margin-top: 37px;
}


/* === TYPES & SCIENCE === */

.types-content {
  margin-top: 48px;
}

.types-column,
.science-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.types-column--title,
.science-column--title {
  font-weight: 700;
  padding: 22px 65px;
  text-align: center;
  color: #fff;
  background-color: var(--color-gray);
  width: 100%;
  max-width: 392px;
}

.science-column--title {
  padding: 22px 60px;
}

.types-list--first,
.types-list--second,
.science-list--first {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 25px 60px 68px 60px;
  width: 100%;
  max-width: 392px;
  row-gap: 20px;
}

.types-list--second,
.science-list--first {
  padding: 25px 60px 0px 60px;
}

.types-item,
.science-item {
  display: flex;
  flex-direction: column;
  row-gap: 12px;
}

.fun {
  background-color: #f9fdce;
  padding-block: 54px;
}

.fun-info {
  text-align: left;
}

.fun-list {
  list-style: disc;
}

.science {
  background-color: #f9fdce;
  padding-block: 54px clamp(3.125rem, 2.619rem + 2.16vw, 4.563rem);
}

.science-info--text {
  text-align: left;
}

.science-content {
  margin-top: 32px;
}


/* === FAQ === */

.faq-header--image {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.faq-content {
  margin-top: 32px;
}

.faq-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item--title {
  font-weight: 700;
  transition: color .3s ease;
  cursor: pointer;
}

.faq-item--title:hover {
  color: var(--color-pink);
}


/* === FOOTER === */

.footer-inner {
  padding-bottom: 64px;
}

.footer-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-top: clamp(1.625rem, 0.767rem + 3.662vw, 4.063rem);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-item {
  padding: 24px;
  text-align: center;
}

.footer-item--link {
  display: inline-block;
  font-size: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform .3s ease, color .3s ease;
}

.footer-item--link:hover {
  transform: scale(1.1);
  color: var(--color-pink);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 12px;
}

.footer-bottom--copyright {
  font-weight: 900;
  font-size: 12px;
}

.footer-bottom--link {
  display: inline-block;
  font-weight: 900;
  font-size: 24px;
  text-decoration: none;
  color: inherit;
  transition: transform .3s ease, color .3s ease;
}

.footer-bottom--link:hover {
  transform: scale(1.08);
  color: var(--color-pink);
}

.footer-bottom--contact,
.footer-bottom--copyright,
.footer-bottom--link {
  padding: 24px;
}


/* === MEDIA QUERIES === */

@media (min-width: 768px) {
  .hero-inner {
    padding: 34px 86px 77px 82px;
  }

  .hero-logo {
    margin-top: 0;
  }

  .hero-footer--image {
    margin-bottom: 0;
  }
}

@media (min-width: 1024px) {
  .header-burger {
    display: none;
  }

  .header-wrapper {
    justify-content: center;
    padding: 0;
  }

  .header-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    background-color: transparent;
  }

  .header-menu.is-open {
    border-top: none;
  }

  .header-list {
    flex-direction: row;
  }

  .timeline-list {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
  }

  .timeline-list::before {
    position: absolute;
    content: '';
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-gray);
  }

  .timeline-item:nth-child(odd) {
    grid-column: 1;
    justify-self: end;
  }

  .timeline-item:nth-child(even) {
    grid-column: 2;
    justify-self: start;
  }
  
  .timeline-item:nth-child(1) { grid-row: 1; }
  .timeline-item:nth-child(2) { grid-row: 2; }
  .timeline-item:nth-child(3) { grid-row: 3; }
  .timeline-item:nth-child(4) { grid-row: 4; }
  .timeline-item:nth-child(5) { grid-row: 5; }

  .candy-gradient {
    position: absolute;
    width: calc(50% - 150px);
    height: 100%;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
    z-index: 2;
    pointer-events: none;
  }

  .candy-gradient--left {
    top: 0;
    left: 0;
  }

  .candy-gradient--right {
    top: 0;
    right: 0;
    transform: rotate(-180deg);
  }

  .types-content,
  .science-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    column-gap: 68px;
  }

  .types-list--first {
    padding: 25px 60px 0px 60px;
  }

  .footer-list,
  .footer-bottom {
    flex-direction: row;
    align-items: center;
  }

  .footer-bottom--legal {
    display: flex;
  }
}