:root {
  --pg-purple: #5c3d81;
  --pg-green: #20ed8c;
  --pg-white: #fefffe;
  --pg-black: #050505;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--pg-purple) rgba(92, 61, 129, .1);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(92, 61, 129, .1);
}

::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: var(--pg-purple);
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--pg-green);
}

body {
  min-height: 300vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #f8f8f9;
  color: var(--pg-black);
  font-family: "Roboto", sans-serif;
}

.pg-header {
  padding: 18px clamp(18px, 4vw, 36px);
}

.pg-header__shell {
  width: min(1220px, 100%);
  min-height: 42px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.pg-header__brand,
.pg-header__nav {
  display: flex;
  align-items: center;
}

.pg-header__brand {
  flex: 0 0 auto;
  text-decoration: none;
}

.pg-header__logo {
  width: clamp(88px, 9vw, 118px);
  height: auto;
  display: block;
}

@media (min-width: 821px) {
  .pg-header__logo {
    width: clamp(176px, 18vw, 236px);
  }
}

.pg-header__nav {
  flex: 1 1 auto;
  justify-content: center;
}

.pg-header__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(18px, 2.2vw, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-header__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(5, 5, 5, .82);
  text-decoration: none;
  font: 500 .94rem/1 "Roboto", sans-serif;
	transition: color .24s ease;
}

.pg-header__item--dropdown > .pg-header__link::before {
	width: 8px;
	height: 8px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	content: "";
	transform: translateY(-1px) rotate(45deg);
}

.pg-header__caret {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
}

.pg-header__item {
  position: relative;
}

.pg-header__submenu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 5px);
  left: 50%;
  display: flex;
  flex-direction: column;
  min-width: 188px;
  margin: 0;
  padding: 9px;
  border: 1px solid rgba(5, 5, 5, .1);
  border-radius: 16px;
  background: var(--pg-white);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .1);
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity .2s ease, transform .2s ease;
}

.pg-header__item--dropdown:hover .pg-header__submenu,
.pg-header__item--dropdown:focus-within .pg-header__submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.pg-header__submenu-link {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  color: rgba(5, 5, 5, .78);
  font: 500 .88rem/1.3 "Roboto", sans-serif;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}

.pg-header__submenu-link:hover,
.pg-header__submenu-link:focus-visible {
  background: rgba(92, 61, 129, .1);
  color: var(--pg-purple);
  outline: none;
}

.pg-header__link::after,
.pg-footer__link::after {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transition: transform .24s ease;
}

.pg-header__link::after {
  transform-origin: center;
  background: var(--pg-purple);
}

.pg-header__link:hover,
.pg-header__link:focus-visible {
  color: var(--pg-purple);
  outline: none;
}

.pg-header__link--active {
  color: var(--pg-purple);
}

.pg-header__link:hover::after,
.pg-header__link:focus-visible::after,
.pg-footer__link:hover::after,
.pg-footer__link:focus-visible::after {
  transform: scaleX(1);
}

.pg-header__cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border: 1.5px solid rgba(5, 5, 5, .14);
  border-radius: 999px;
  background: rgba(254, 255, 254, .82);
  color: var(--pg-black);
  text-decoration: none;
  font: 700 .76rem/1 "Poppins", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .24s ease, border-color .24s ease, background-color .24s ease;
}

.pg-header__cta:hover,
.pg-header__cta:focus-visible {
  transform: translateY(-1px);
  border-color: var(--pg-green);
  background: var(--pg-green);
  outline: none;
}

.pg-arrow-button>span[aria-hidden="true"] {
  position: relative;
  top: -2px;
  font-size: 1.1rem;
}

main {
  flex: 1 0 auto;
  min-height: 45vh;
}

.pg-footer {
  padding: clamp(34px, 5vw, 56px) clamp(18px, 4vw, 36px);
  background: radial-gradient(circle at 12% 18%, rgba(92, 61, 129, .22), transparent 28%), radial-gradient(circle at 88% 80%, rgba(32, 237, 140, .14), transparent 22%), linear-gradient(180deg, #060607 0%, #111114 100%);
  color: var(--pg-white);
}

.pg-footer__shell {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding-top: 22px;
  display: grid;
  grid-template-columns: minmax(220px, 1.45fr) repeat(3, minmax(130px, 1fr));
  gap: 32px;
  border-top: 1px solid rgba(254, 255, 254, .14);
}

.pg-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pg-footer__brand-logo {
  display: inline-flex;
  width: 88px;
  height: 75px;
}

.pg-footer__brand-logo img {
  display: block;
  width: 88px;
  height: 75px;
  object-fit: contain;
}

.pg-footer__title {
  margin: 0;
  font: 800 clamp(1.15rem, 2vw, 1.35rem)/1 "Poppins", sans-serif;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.pg-footer__text {
  margin: 0;
  color: rgba(254, 255, 254, .68);
  font-size: .95rem;
  line-height: 1.5;
}

.pg-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 6px;
}

.pg-footer__contact a,
.pg-footer__column a {
  color: rgba(254, 255, 254, .7);
  text-decoration: none;
  transition: color .2s ease;
}

.pg-footer__contact a:hover,
.pg-footer__contact a:focus-visible,
.pg-footer__column a:hover,
.pg-footer__column a:focus-visible {
  color: var(--pg-green);
  outline: none;
}

.pg-footer__column {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pg-footer__menu {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pg-footer__column h2 {
  margin: 0 0 4px;
  color: var(--pg-green);
  font: 700 .75rem/1 "Poppins", sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.pg-footer__column a,
.pg-footer__contact {
  font: 400 .9rem/1.45 "Roboto", sans-serif;
}

.pg-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1220px, 100%);
  margin: 30px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(254, 255, 254, .1);
  color: rgba(254, 255, 254, .5);
  font-size: .82rem;
}

.pg-footer__links {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: clamp(16px, 2vw, 28px);
}

.pg-footer__link {
  position: relative;
  color: rgba(254, 255, 254, .88);
  text-decoration: none;
  font: 500 .96rem/1 "Roboto", sans-serif;
  transition: color .24s ease;
}

.pg-footer__link::after {
  transform-origin: left;
  background: linear-gradient(90deg, var(--pg-purple), var(--pg-green));
}

.pg-footer__link:hover,
.pg-footer__link:focus-visible {
  color: var(--pg-green);
  outline: none;
}

@media (max-width: 820px) {
  .pg-header__shell {
    flex-direction: column;
    gap: 18px;
  }

  .pg-header__nav {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .pg-footer__shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
  }

  .pg-footer__brand {
    grid-column: 1 / -1;
  }

  .pg-footer__bottom {
    flex-direction: column;
  }
}

@media (max-width: 520px) {

  .pg-header,
  .pg-footer {
    padding-inline: 14px;
  }

  .pg-header__menu {
    gap: 16px 18px;
  }

  .pg-header__link {
    font-size: .9rem;
  }

  .pg-footer__links {
    gap: 14px 18px;
  }

  .pg-footer__shell {
    grid-template-columns: 1fr;
  }

  .pg-footer__brand {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
