*,
*::after,
*::before {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

:root {
  --color-blue: #05f9ff;
  --color-black: #1e222a;
  --color-charcoal: #050506;
  --color-yellow: #d9ff40;
  --color-gray: #1e222a;
  --color-gray-l: #bbbbbb;

  --font-monserrat: "Montserrat", sans-serif;
  --font-oswald: "Oswald", sans-serif;
}

body {
  display: block;
  position: relative;
  margin: 0;
  overflow-x: clip;
  background-color: var(--color-charcoal);
  
  font-family: var(--font-monserrat);
  font-size: 24px;
  font-weight: 500;
  color: #fff;
}

body::before,
body::after {
  content: "";
  display: block;
  position: absolute;
  width: 47%;
  background-size: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  pointer-events: none;
}



.wrapper {
  display: block;
  margin-inline: auto;
  max-width: 1280px;
  padding-inline: 20px;
}

.preview {
	position: absolute;
	inset: 0;
	z-index: 9999;
	pointer-events: none;
        height: auto;
}

.preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

@media screen and (max-width: 767.9px) {
  body {
    font-size: 16px;
  }

  body::before {
    position: absolute;
    width: 72%;
    right: 0;
    rotate: 180deg;
    translate: -40% 0;
  }

  body::after {
    position: absolute;
    width: 55%;
  }
}



/* Base Template */

.base-template__wrapper {
  display: flex;
	flex-direction: column;
	justify-content: center;
  min-height: calc(100dvh - 160px);
}

.base-template__title {
  display: block;
  margin: 0;
  /* margin-bottom: 30px; */
  font-family: var(--font-oswald);
  font-weight: 400;
  font-size: 48px;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.15;
}

.base-template__text {
  display: block;
  /* margin-bottom: 80px; */
  font-weight: 300;
  text-align: center;
  line-height: 1.35;
  color: var(--color-gray-l);
}

.base-template__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 60px 90px;
  max-width: 100%;
  margin-inline: auto;
}

@media screen and (max-width: 767.9px) {
  .base-template__title {
    font-size: 32px;
  }
}



/* Petal Menu */

.petal-menu {
  --lines-height: 2px;
  --lines-gap: 8px;
  --transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.3);

  display: flex;
  align-items: center;
  position: relative;
  margin-top: 120px;
  gap: 12px;
  white-space: nowrap;
}

.petal-menu__inner {
  position: relative;
}

.petal-menu__lines {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  aspect-ratio: 1;
  width: 70px;
  padding: 20px;
  background: var(--color-black);
  border-radius: 100%;
  cursor: pointer;
  flex-direction: column;
  gap: var(--lines-gap);
}

.petal-menu__lines input {
  all: unset;
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  cursor: pointer;
  border-radius: 100%;
}

.petal-menu__lines i {
  display: block;
  position: relative;
  width: 100%;
  height: var(--lines-height);
  background: var(--color-blue);
  transform-origin: 50% 50%;
  transition: var(--transition);
}

.petal-menu__lines:has(input:checked) i:nth-of-type(2) {
  display: none;
}

.petal-menu__lines:has(input:checked) i:nth-of-type(1) {
  transform: translate3d(0, calc(var(--lines-height) / 2 + var(--lines-gap) / 2), 0) rotate(45deg);
}

.petal-menu__lines:has(input:checked) i:nth-of-type(3) {
  transform: translate3d(0, calc((var(--lines-height) / 2 + var(--lines-gap) / 2) * -1), 0) rotate(-45deg);
}

.petal-menu__text {
  transition: opacity 0.3s;
}

.petal-menu:has(input:checked) .petal-menu__text {
  opacity: 0;
}

.petal-menu__item {
  display: block;
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 2;
  rotate: -90deg;
  pointer-events: none;
  transition: var(--transition);
}

.petal-menu:has(input:checked) .petal-menu__item {
  opacity: 1;
}

.petal-menu:has(input:checked) .petal-menu__item:nth-child(1) {
  rotate: -70deg;
}

.petal-menu:has(input:checked) .petal-menu__item:nth-child(2) {
  rotate: 0deg;
}

.petal-menu:has(input:checked) .petal-menu__item:nth-child(3) {
  rotate: 70deg;
}

.petal-menu__link {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  width: 105px;
  height: 77px;
  background: url("https://bato-web-agency.github.io/bato-shared/img/petal.svg") center center no-repeat;
  background-size: 100%;
  pointer-events: auto;
  cursor: pointer;
  transition: scale 0.3s ease-out;
}

.petal-menu__item:nth-child(1) img {
  rotate: 70deg;
}

.petal-menu__item:nth-child(3) img {
  rotate: -70deg;
}

@media (hover: hover) and (pointer: fine) {
  .petal-menu__link:hover {
    scale: 1.15;
  }
}

@media (hover: none) {
  .petal-menu__link:active {
    scale: 1.15;
  }
}

@media screen and (max-width: 1366px) {
  .petal-menu {
    justify-content: center;
  }
}