@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700;900&family=Pacifico&display=swap");

/* ---- RESET BASE STYLES & BODY STYLES ---- */
* {
  margin: 0;
  padding: 0;
  border: none;
  font-weight: normal;
  position: relative;
}

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

html,
body {
  margin: 0;
  width: 100vw;
  min-width: 350px;
  min-height: 100vh;
  overflow-x: hidden;
}

html {
  background-color: #d4d4d4;
  scroll-behavior: smooth;
}

body {
  max-width: 1344px;
  margin: 0 auto;
  color: #282828;
  background-color: #fbfbfb;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: normal;
  line-height: 120%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
}

body._lock {
  position: fixed;
  overflow: hidden;
}

.wrapper {
  display: grid;
  grid-template: auto 1fr minmax(173px, auto) / 1fr;
  grid-template-areas:
    "header"
    "main"
    "footer";
  box-shadow: 0px 0px 40px 0px rgba(0, 0, 0, 0.05);
  min-height: 100vh;
}

img {
  max-width: 100%;
  vertical-align: top;
}

h1,
h2,
h3,
p {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

ul,
ol,
li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---- TYPO & COMPONENTS ---- */
h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #0499dd;
  line-height: 29px;
  margin: 0px 0px 20px;
}

@media screen and (min-width: 768px) {
  h2 {
    margin: 0px 0px 40px;
  }
}

h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #282828;
  line-height: 22px;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 160px;
  border-radius: 40px;
  background: linear-gradient(93deg, #0499dd 0%, #17c1bc 100%);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s;
  cursor: pointer;
}

.button_big {
  display: flex;
  height: 50px;
  min-width: 230px;
  font-size: 14px;
}

.button:hover {
  transform: scale(1.1);
  transition: transform 0.3s;
}

.button_big a {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
}

.controls {
  display: none;
}

@media screen and (pointer: fine) {
  .controls {
    grid-column: 2;
    display: flex;
    height: 43px;
    width: 108px;
    gap: 30px;
    margin-top: 40px;
  }
}

.controls_arrow {
  width: 24px;
  height: 43px;
}

.controls_arrow img {
  width: 100%;
  height: 100%;
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.3s;
}

.controls_arrow img:hover,
.controls_arrow img:hover {
  opacity: 1;
  transition: opacity 0.3s;
}

.pre-btn {
  left: 0px;
  transform: rotate(180deg);
}

.nxt-btn {
  right: 0;
}

/** ---- HEADER SECTION STYLES ---- **/
.header {
  grid-area: header;
  display: grid;
  background: url(../img/cite.webp) 50% / cover no-repeat;
  grid-template:
    minmax(60px, auto) 1fr / minmax(1.5rem, 1fr) minmax(auto, 40px) minmax(
      auto,
      1080px
    )
    minmax(1.5rem, 1fr);
  grid-template-areas:
    ". header__logo header__menu ."
    ". header__title header__title .";
  padding: 1.5rem 0;
}

.header__logo {
  grid-area: header__logo;
  position: relative;
  width: 40px;
  transition: transform 0.3s;
  cursor: pointer;
  z-index: 5;
}

.header__logo:hover {
  transform: scale(1.1);
  transition: transform 0.3s;
}

.header__logo img {
  display: block;
  width: 40px;
  max-width: 100%;
  height: 57px;
  object-fit: cover;
}

.header__menu {
  grid-area: header__menu;
  display: grid;
  justify-items: end;
  align-content: space-between;
  overflow: hidden;
}

.header__title {
  grid-area: header__title;
  display: grid;
  font-family: "Montserrat", sans-serif;
  color: #ffffff;
  line-height: 100%;
  text-align: center;
  align-items: center;
}

.header__vkontakte {
  width: 32px;
  height: 32px;
}

.header__facebook,
.header__instagram {
  width: 30px;
  height: 30px;
}

/** ---- MOBILE-MENU SECTION STYLES ---- **/
@media screen and (max-width: 767px) {
  .menu__burger {
    display: grid;
    position: relative;
    align-items: center;
    justify-self: end;
    width: 40px;
    height: 27px;
    cursor: pointer;
    z-index: 5;
  }

  .menu__burger span,
  .menu__burger::before,
  .menu__burger::after {
    position: absolute;
    left: 0;
    height: 12%;
    width: 100%;
    background-color: #ffffff;
    border-radius: 20px;
    transition: all 0.3s ease 0s;
  }

  .menu__burger::before,
  .menu__burger::after {
    content: "";
  }

  .menu__burger::before {
    top: 0;
  }

  .menu__burger::after {
    bottom: 0;
  }

  .menu__burger span {
    top: 49%;
    transform: scale(1) translate(0px, -50%);
  }

  .menu__burger._active span {
    transform: scale(0) translate(0px, -50%);
  }

  .menu__burger._active::before {
    top: 50%;
    transform: rotate(-45deg) translate(0px, -80%);
  }

  .menu__burger._active::after {
    bottom: 50%;
    transform: rotate(45deg) translate(0px, 80%);
  }

  .menu__body {
    position: fixed;
    top: 0;
    right: -120%;
    width: 100%;
    height: 100%;
    background-color: #282828;
    padding: 150px 30px 30px;
    transition: right 0.3s ease 0s;
    overflow: auto;
    z-index: 4;
  }

  .menu__body._active {
    right: 0;
  }

  .menu__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style-type: none;
    padding-inline-start: 0px;
    overflow-x: hidden;
  }

  .menu__list li {
    margin: 0px 0px 60px;
  }

  .menu__list li:last-child {
    margin-bottom: 0px;
  }

  .menu__link {
    color: #ffffff;
    text-decoration: none;
  }
}

@media screen and (min-width: 768px) {
  .header__menu {
    align-items: center;
  }

  .menu__burger {
    display: none;
  }

  .menu__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    align-items: center;
    padding-inline-start: 0px;
    list-style-type: none;
    transition: transform 0.3s;
  }

  .menu__link {
    font-family: "Montserrat", sans-serif;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s linear;
    margin: 0px 0px 0px 24px;
  }

  .menu__link:hover {
    color: #ffc700;
    transition: color 0.3s linear;
  }
}

/** ---- MAIN SECTION STYLES ---- **/

section {
  margin: 120px 0 0;
}

/** ---- FOOTER SECTION STYLES ---- **/
.footer {
  grid-area: footer;
  display: grid;
  grid-template-columns:
    minmax(1.5rem, 1fr) minmax(auto, 1120px)
    minmax(1.5rem, 1fr);
  padding: 1.5rem 0;
  background-color: #ededed;
  font-size: 14px;
  overflow: hidden;
}

.footer__logo,
.footer__social,
.footer__menu {
  grid-column: 2;
}

.footer__logo {
  justify-self: center;
  max-width: 80px;
  cursor: pointer;
  transition: transform 0.3s;
}

.footer__logo img {
  width: 80px;
  max-width: 100%;
  height: 114px;
  object-fit: contain;
}

.footer__logo:hover {
  transform: scale(1.1);
  transition: transform 0.3s;
}

.footer__social {
  display: flex;
  justify-self: center;
  align-items: center;
  gap: 8px;
  margin: 16px 0px 60px;
  overflow: hidden;
}

.footer__menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  overflow: hidden;
}

.footer__menu .menu {
  padding-right: 40px;
  margin-bottom: 20px;
  overflow: hidden;
}

.footer__social_big {
  display: none;
}

.footer__social li,
.footer__menu li,
.footer__social_big li {
  display: flex;
  align-items: center;
  color: #282828;
  list-style-type: none;
}

.footer__social li:not(:last-of-type),
.footer__menu li:not(:last-of-type),
.footer__social_big li:not(:last-of-type) {
  margin-bottom: 8px;
}

.footer__social li > img,
.footer__menu li > img,
.footer__social_big li > img {
  width: 20px;
  height: 20px;
  margin-right: 5px;
}

.footer__menu .menu li a,
.footer__social_big li a,
.tels li a {
  font-weight: 500;
  font-size: 14px;
  color: #282828;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s linear;
}

.menu li:hover a,
.footer__social_big li:hover a,
.tels li:hover a {
  color: #ffc700;
  text-decoration: none;
  transition: color 0.3s linear;
}

.footer__social li > a,
.footer__social_big li > a {
  transition: transform 0.3s;
}

.footer__social li > a:hover,
.footer__social_big li:last-of-type > a:hover {
  transform: scale(1.3);
  transition: transform 0.3s;
}

.footer__vkontakte {
  width: 38px;
  height: 38px;
}

.footer__instagram {
  width: 32px;
  height: 32px;
}

.footer__facebook {
  height: 30px;
  width: 18px;
}

@media screen and (min-width: 691px) {
  .footer {
    grid-area: footer;
    display: grid;
    grid-template-columns:
      minmax(1.5rem, 1fr) minmax(auto, 65px) minmax(auto, 1055px)
      minmax(1.5rem, 1fr);
    grid-template-rows: 1fr;
    padding: 1.5rem 0;
  }

  .footer__logo {
    grid-column: 2;
  }

  .footer__logo img {
    width: 65px;
    max-width: 100%;
    height: 93px;
    object-fit: contain;
  }

  .footer__menu {
    grid-column: 3;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-left: 40px;
  }

  .footer__social_big {
    display: block;
  }

  .footer__social_big-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
  }

  .footer__social {
    display: none;
  }

  .tels li:last-of-type {
    display: none;
  }
}

@media screen and (min-width: 1024px) {
  .footer {
    grid-area: footer;
    display: grid;
    grid-template-columns:
      minmax(1.5rem, 1fr) minmax(auto, 80px) minmax(auto, 1040px)
      minmax(1.5rem, 1fr);
    grid-template-rows: 1fr;
    padding: 1.5rem 0;
  }

  .footer__logo img {
    width: 80px;
    max-width: 100%;
    height: 114px;
    object-fit: contain;
  }

  .footer__menu {
    grid-column: 3;
    display: grid;
    gap: 0px;
    grid-template-columns: minmax(auto, 205px) repeat(2, 1fr);
    padding-left: 40px;
  }
}
