@font-face {
  font-family: "Montserrat-Regular";
  src: url(./../assets/fonts/Montserrat/Montserrat-Regular.ttf)
    format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Montserrat-SemiBold";
  src: url(./../assets/fonts/Montserrat/Montserrat-SemiBold.ttf)
    format("truetype");
  font-weight: 600;
}

@font-face {
  font-family: "Allura";
  src: url(./../assets/fonts/Allura/Allura-Regular.ttf) format("truetype");
  font-style: normal;
  font-weight: 400;
}

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

.scroll {
  overflow: hidden;
}

html {
  font-size: 0.625rem;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

li {
  list-style-type: none;
}

:root {
  --primary: #ff4646;
  --dark: #181c29;
  --static-white: #fff;
  --content-background: #ecf3f8;
  --tag-purple: #4361ff;
  --tag-pink: #ff43f7;
  --tag-green: #06a44f;
  --primary-10: rgba(255, 70, 70, 0.1);
  --static-white-20: rgba(255, 255, 255, 0.2);
  --static-white-40: rgba(255, 255, 255, 0.4);
  --overlay: rgba(24, 28, 41, 0.8);
}

:root {
  --font-regular: Montserrat-Regular, sans-serif;
  --font-bold: Montserrat-SemiBold, sans-serif;
  --font-allura: Allura, cursive;
}

:root {
  --width-fixed: 1440px;
  --margin-center: 0 auto;
}

.wrapper {
  max-width: var(--width-fixed);
  margin: var(--margin-center);
}

/* Typography */

.caption {
  font-family: var(--font-allura);
  font-size: 2.4rem;
  line-height: 100%;
  letter-spacing: 0.05em;
}

.text-paragraph {
  font-family: var(--font-regular);
  font-size: 1.6rem;
  line-height: 149%;
}

.title-2 {
  font-family: var(--font-bold);
  font-size: 2.4rem;
  line-height: 152%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.title-3 {
  font-family: var(--font-bold);
  font-size: 1.6rem;
  line-height: 152%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  padding-top: 0.8rem;
}

.text {
  font-family: var(--font-bold);
  font-size: 1.2rem;
  line-height: 130%;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dark);
}

/* Section logo navigation */

.container__logo__menu {
  max-width: 127.6rem;
  padding: 1.2rem 0;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--static-white);
}

.logo__container {
  display: flex;
  align-items: center;
  padding: 0.8rem 2rem;
  border-radius: 1.2rem;
}

@media screen and (max-width: 1250px) {
  .logo__container {
    margin-left: 0.8rem;
  }
}

.menu__container {
  width: 37.6rem;
  height: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.burger-menu {
  display: inline-block;
  position: relative;
  width: 4rem;
  height: 4rem;
  padding: 15px 10px;
  margin-right: 8px;
  cursor: pointer;
}

.burger-menu::after {
  content: "";
  position: absolute;
  width: 1.8rem;
  border: 0.05rem solid var(--dark);
  bottom: 15px;
  transition: transform 0.5s ease-in-out;
}

.burger-line {
  position: absolute;
  width: 2rem;
  border: 0.05rem solid var(--dark);
  transition: transform 0.5s ease-in-out;
}

.burger-menu.cross .burger-line {
  transform: rotate(45deg) translateY(5.5px);
}

.burger-menu.cross::after {
  transform: rotate(-45deg) translateY(-5.5px);
}

@media screen and (width < 769px) {
  .menu__container {
    display: inline-block;
    text-align: center;
    position: fixed;
    background-color: var(--static-white);
    width: 100%;
    height: 100vh;
    top: 64px;
    right: -100%;
    z-index: 5;
    padding-top: calc(50vh - 168px);
    transition: right 0.8s ease-in-out;
  }

  .title-burger {
    font-family: var(--font-bold);
    font-size: 2.4rem;
    line-height: 152%;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .menu__container.visible {
    right: 0;
  }

  .menu__item {
    padding: 1.2rem 0;
    margin: 8px 0;
  }
}

@media screen and (width > 769px) {
  .burger-menu {
    display: none;
  }
}

.menu__item {
  list-style-type: none;
}

.link-active {
  color: var(--primary);
  background-color: var(--primary-10);
  cursor: default;
}

.link-padding {
  padding: 1.2rem 2rem;
  border-radius: 1.2rem;
  transition: all 0.4s ease-in-out;
}

.menu-hover:hover {
  color: var(--primary);
  background-color: var(--primary-10);
  cursor: pointer;
}

.title-logo {
  margin: 0.4rem 0 0.4rem 0.8rem;
}

/* Section gifts */

.container {
  max-width: var(--width-fixed);
  margin: var(--margin-center);
  border-radius: 2rem 2rem 0 0;
  padding: 0 8px;
}

.bg-garland {
  display: flex;
  justify-content: center;
  background: url(./../assets/background-img/bg-garland.png) center no-repeat
    var(--primary);
  background-position: top;
  background-size: contain;
}

.title-1 {
  font-family: var(--font-bold);
  font-size: 3.2rem;
  line-height: 150%;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.title-container {
  width: 42.6rem;
  color: var(--static-white);
  margin-top: 6rem;
  text-align: center;
}

.section-gifts {
  border-radius: 0 0 2rem 2rem;
  background-color: var(--primary);
}

/* Tabs in Gifts page */

.nav-gifts {
  padding: 2rem 0 2rem;
}

.list-items {
  display: flex;
  justify-content: center;
  column-gap: 0.8rem;
}

.nav-item {
  border-radius: 1.2rem;
  padding: 1.2rem 2rem;
  color: var(--static-white);
}

.nav-active {
  cursor: default;
  background-color: var(--static-white-20);
}

.tabs {
  transition: background-color 0.4s ease-in-out;
}

@media (hover: hover) {
  .tabs:hover {
    background-color: var(--static-white-20);
    cursor: pointer;
  }
}

@media screen and (max-width: 760px) {
  .list-items {
    column-gap: clamp(1px, 1vw, 8px);
  }
  .nav-item {
    padding: 1.2rem clamp(8px, 2vw, 20px);
  }
}

@media screen and (max-width: 385px) {
  .nav-item {
    padding: 1.2rem 0.8rem;
  }
  .list-items {
    column-gap: 0;
  }
}

/* Cards gifts*/

.wrapper-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding-bottom: 6rem;
  border-radius: 2rem;
}

.card {
  display: flex;
  flex-direction: column;
  border-radius: 2rem;
  width: 31rem;
  height: 34.2rem;
  background: var(--content-background);
}

.text-card {
  border-radius: 2rem;
  padding: 2rem;
  height: 11.2rem;
  background: var(--static-white);
}

.color-text-1 {
  color: var(--tag-purple);
}

.color-text-2 {
  color: var(--tag-green);
}

.color-text-3 {
  color: var(--tag-pink);
}

.title-3 {
  font-family: var(--font-bold);
  font-size: 1.6rem;
  line-height: 152%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  padding-top: 0.8rem;
}

.img-container {
  width: 31rem;
  height: 23rem;
}

.card .title-3,
.img-container,
.text-card {
  transition: color 0.3s ease-in-out;
}

@media (hover: hover) {
  .card:hover .title-3 {
    cursor: pointer;
    color: var(--primary);
  }

  .card:hover .img-container,
  .text-card {
    cursor: pointer;
  }
}

.gift-for-work {
  background: url(./../assets/background-img/gift-for-work.png) center;
  background-size: cover;
}

.gift-for-health {
  background: url(./../assets/background-img/gift-for-health.png) center;
  background-size: cover;
}

.gift-for-harmony {
  background: url(./../assets/background-img/gift-for-harmony.png) center;
  background-size: cover;
}

/* Section Footer */

.footer-container {
  background: var(--static-white);
  padding: 6rem 0.8rem;
}

.contacts-container {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 6rem;
}

.link-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 1.2rem;
  width: 41.7rem;
  padding: 2rem;
  border-radius: 2rem;
  background: var(--content-background);
  cursor: pointer;
  color: var(--dark);
}

@media screen and (max-width: 1060px) {
  .contacts-container {
    flex-wrap: wrap;
  }
  .link-container {
    flex-grow: 1;
  }
}

.link-container .title-2,
.title-3 {
  transition: color 0.3s ease-in-out;
}

@media (hover: hover) {
  .link-container:hover .title-2 {
    color: var(--primary);
  }

  .link-container:hover .title-3 {
    color: var(--primary);
  }
}

.remove-padding {
  padding-top: 0;
}

.santa-claus,
.christmas-tree,
.snake {
  width: 8rem;
  height: 8rem;
  background: url(./../assets/svg/santa-claus/Group.svg);
}

.christmas-tree {
  background: url(./../assets/svg/christmas-tree/christmas-tree.svg);
}

.snake {
  background: url(./../assets/svg/snake/snake.svg);
}

/* Social links */

.section-link {
  display: flex;
  flex-direction: column;
  row-gap: 1.2rem;
  align-items: center;
  background-color: var(--static-white);
}

.social-link-wrapper {
  display: flex;
  column-gap: 1.2rem;
}

.social-link {
  width: 4rem;
  height: 4rem;
  padding: 0.8rem;
}

.social-link svg path {
  transition: stroke 0.3s ease-in-out;
}

.link-school {
  transition: color 0.3s ease-in-out;
  color: var(--dark);
}

@media (hover: hover) {
  .link-school:hover {
    color: var(--primary);
  }
  .social-link:hover svg path {
    stroke: var(--primary);
  }
}

/* Button UP */

.button-up {
  display: none;
}

@media screen and (max-width: 768px) {
  .button-up {
    display: flex;
    position: fixed;
    right: 8px;
    bottom: -50%;
    border: 1px solid var(--primary);
    border-radius: 100px;
    height: 56px;
    width: 56px;
    background: url(./../assets/arrows/arrow-up.svg) center no-repeat;
    background-color: var(--static-white);
    z-index: 200;
    transition: bottom 0.3s ease;
  }
}

.show-button-up {
  bottom: 8px;
}

/* Modal */

.modal-background {
  display: flex;
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--overlay);
}

.modal-container {
  display: flex;
  flex-direction: column;
  border-radius: 2rem;
  width: 40rem;
  position: relative;
  background: var(--content-background);
}

.modal-img {
  width: 40rem;
  height: 23rem;
}

.description {
  height: auto;
}

.margin-paragraph-modal {
  margin: 8px 0 0;
}

.margin-text {
  margin: 20px 0 8px;
}

.container-description {
  display: flex;
  flex-direction: column;
}

.container-subtitle {
  display: flex;
  align-items: center;
}

.subtitle {
  width: 51.1%;
  text-transform: capitalize;
}

.subtitle-gap {
  margin: 0 12px;
}

.container-snowflake {
  display: flex;
  width: 112px;
  gap: 8px;
  align-items: center;
  padding: 4px 0;
}

.snowflake {
  position: absolute;
  width: 16px;
  height: 16px;
  z-index: 10;
  background: url(./../assets/modal/snowflake.svg);
}

.snowflake-opacity {
  position: relative;
  width: 16px;
  height: 16px;
  z-index: 5;
  background: url(./../assets/modal/Vector.svg) center no-repeat;
}

/* Button close */

button {
  all: unset;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 4rem;
  height: 4rem;
  background: url(./../assets/modal/close.svg) center;
}

@media screen and (max-width: 450px) {
  .modal-container {
    width: 36.4rem;
  }
}

@media (hover: hover) {
  .close-btn:hover {
    cursor: pointer;
  }
  .modal-background:hover {
    cursor: pointer;
  }
  .modal-container:hover,
  .description:hover {
    cursor: default;
  }
}

.no-active {
  display: none;
}
