:root {
  --bg-color: hsl(25, 82%, 95%);
  --black: hsl(0, 0%, 10%);
  --fs-small: clamp(0.75rem, 0.6286rem + 0.5178vw, 1rem);
  --fs-medium: clamp(1.5rem, 0.6966rem + 1.0945vw, 2rem);
  --p-inline: clamp(0.5rem, 1vw + 0.5rem, 2rem);
  --p-block: 1rem;
  --gap-inline: clamp(0.5rem, 1vw + 0.5rem, 2rem);
  --gap-block: 0.5rem;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  min-height: 100dvh;
  width: 100%;
  font-family: "Poppins";
  background-color: var(--bg-color);
}

ul,
menu {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}

.header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding-inline: var(--p-inline);
  padding-block: var(--p-block);
  color: var(--black);
}
.logo-wrapper {
  display: flex;
  align-items: center;
  column-gap: calc(var(--gap-inline) * 0.5);
  font-size: var(--fs-medium);

  > * {
    outline: 1px solid red;
  }
}

.header-title,
.header-logo {
  display: contents;
  font-size: var(--fs-medium);
}

.header-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}
.header-menu {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  row-gap: var(--gap-block);
  font-size: var(--fs-small);
}

.contact__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-inline: calc(var(--p-inline) * 1);
  border: 1px solid var(--black);
  border-radius: 2rem;
  overflow: hidden;

  & .anim-text {
    padding-block: calc(var(--p-block) * 0.5);
    transition: transform 0.5s ease-in-out;
  }

  & .anim-text:nth-child(2) {
    position: absolute;
    top: 100%;
  }

  &:hover {
    & .anim-text {
      transform: translateY(-100%);
    }
  }
}

@media screen and (width > 768px) {
  .header-menu {
    flex-direction: row;
    align-items: center;
    column-gap: var(--gap-inline);
  }
}
