/* fonts */

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/OpenSans-Light.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/OpenSans-Light.woff') format('woff'); /* Modern Browsers */
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/OpenSans-Light.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/OpenSans-Light.woff') format('woff'); /* Modern Browsers */
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/OpenSans-Regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/OpenSans-Regular.woff') format('woff'); /* Modern Browsers */
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/OpenSans-SemiBold.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/OpenSans-SemiBold.woff') format('woff'); /* Modern Browsers */
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/OpenSans-Bold.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/OpenSans-Bold.woff') format('woff'); /* Modern Browsers */
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/OpenSans-ExtraBold.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/OpenSans-ExtraBold.woff') format('woff'); /* Modern Browsers */
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* all */

:root {
  /* colour */
  --white: #fff;
  --night: #000;
  --dark: #222;
  --dark-text: #333;
  --text: #818181;
  --light-text: #c2c2c2;
  --hero-btn: #7e7e7e;
  --grey: #ccc;
  --light-grey: #f5f5f5;
  --burger: #4c4c4c;
  --btn-hover: #eeeeee;
  --btn-border: #dddddd;
  --green: #50BF3E;
  --hero-half: rgb(0, 0, 0, 0.5);
  --line-medium: rgb(0, 0, 0, 0.2);
  --line-light: rgb(0, 0, 0, 0.1);
  --line-fade: rgb(0, 0, 0, 0.05);
  /* size */
  --sm: 12px;
  --st: 14px;
}

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

a {
  color: currentColor;
  text-decoration: none;
  outline: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: inherit;
  font-size: inherit;
}

html,
body {
  background-color: var(--white);
  color: var(--dark-text);
  font-family: 'Open Sans', sans-serif;
  font-size: var(--st);
  font-weight: 300;
  font-style: normal;
  line-height: calc(var(--st) + 10px);
}

body._lock{
  overflow: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  min-height: 80vh;
}

.container {
  max-width: 1168px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

section {
  margin-bottom: 32px;
}

.link__link {
  color: var(--text);
  transition: color .3s ease;
}

.link__link:hover,
.link__link:focus-visible {
  opacity: .8;
}

.link__link:active {
  opacity: 1;
  color: var(--dark);
}

/* offcanvas menu */

.offcanvas__side-menu {
  position: fixed;
  width: 320px;
  height: 100%;
  background-color: var(--burger);
  color: var(--white);
  position: fixed;
  top: 0;
  right: 0;
  transform: translateX(320px);
  /* visibility: hidden; */
  overflow: auto;
  transition: transform .5s ease;
  z-index: 10000;

}

.offcanvas__side-menu._active {
  width: 320px;
  height: 100%;
  /* visibility: visible; */
  transform: translateX(0);
}

.offcanvas-body {
  position: relative;
  padding: 32px;
}

.offcanvas__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  background-color: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: opacity .3s ease;
}

.offcanvas__close:hover,
.offcanvas__close:focus-visible {
  opacity: .8;
}

.close__body {
  position: absolute;
  top: 0;
  width: inherit;
  height: inherit;
  border: 1px solid var(--white);
  border-radius: 50%;
  transform: rotate(45deg);
}

.close__body span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--white);
}

.close__body span:last-of-type {
  transform: translate(-50%, -50%);
}

.close__body span:first-of-type {
  transform: translate(-50%, -50%) rotate(90deg);
}

.side-menu__list,
.side-menu__item {
  width: inherit;
}

.side-menu__item {
  position: relative;
  transition: background-color .5s ease, opacity .3s ease;
}

.side-menu__item::after {
  position: absolute;
  content: " ";
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: var(--light-text);
}

.side-menu__item._active {
  background-color: var(--line-light);
}

.side-menu__item._active::after {
  background-color: var(--line-medium);
}

.side-menu__link {
  display: block;
  padding: 10px 10px 10px 25px;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  color: var(--white);
}

.side-menu__link::before {
  display: inline-block;
  content: " ";
  width: 5px;
  height: 5px;
  border-bottom: 1.5px solid var(--white);
  border-right: 1.5px solid var(--white);
  transform: translate(-8px, -2px) rotate(-45deg);
}

.side-menu__item:hover,
.side-menu__item:focus-visible {
  background-color: var(--line-light);
}

.side-menu__item._active:hover > .side-menu__link_main,
.side-menu__item._active:focus-visible > .side-menu__link_main,
.side-menu__item._active .side-menu__sub-list > li:hover .side-menu__link,
.side-menu__item._active .side-menu__sub-list > li:focus-visible .side-menu__link {
  opacity: .8;
}

.side-menu__arrow {
  position: absolute;
  top: 0px;
  right: 0px;
  display: inline-block;
  width: 42px;
  height: 42px;
  border-radius: 0;
  background-color: transparent;
  transform-origin: center;
  transition: transform .3s ease;
  cursor: pointer;
}

.side-menu__arrow::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: " ";
  width: 5px;
  height: 5px;
  border-bottom: 1px solid var(--white);
  border-right: 1px solid var(--white);
  transform: translate(-50%, -50%) rotate(-45deg);
  z-index: 1;
}

.side-menu__sublime {
  height: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform-origin: top;
  transform: scaleY(0);
  transition: opacity .5s ease, transform .5s ease;
}

.side-menu__sub-list > li {
  position: relative;
  transition: opacity .3s ease;
}

.side-menu__sub-list > li:not(:last-child):after {
position: absolute;
content: " ";
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: .5px;
background-color: var(--line-light);
}

.side-menu__item._active .side-menu__sub-list > li:not(:last-child):after {
  background-color: var(--burger);
}

.side-menu__sub-link {
  padding-left: 37px;
}

.side-menu__sub-link.active {
  background-color: var(--line-medium);
 }

.body__wrapper {
  transition: transform .5s ease;
}

.body__wrapper._active {
  right: 0;
  transform: translateX(-320px);
}

.side-menu__item._active > .side-menu__sublime {
  height: auto;
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: scaleY(1);
}

.side-menu__item._active > .side-menu__arrow  {
  transform: rotate(-90deg);
}

/* social header */

.header__social {
  position: sticky;
  background-color: var(--dark);
}

.social__container {
  display: flex;
  flex-direction: column;
  justify-content: unset;
  align-items: center;
  padding: 8px 16px;
}

.social__social-list {
  display: flex;
  flex-direction: row;
}

.social__contact-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.social__social-list {
  margin-bottom: 8px !important;
}

.social-list__item {
  width: 14px;
  height: 14px;
}

.social-list__item:nth-child(2) {
  width: 15px;
}

.social-list__item:not(:last-child) {
  margin-right: 16px;
}

.social-list__link,
.contact-list__link {
  width: inherit;
  height: inherit;
}

.social-list__link-icon {
  width: inherit;
  height: inherit;
}

.contact-list__icon_whatsapp {
  width: 12px !important;
  height: 12px !important;
  margin-bottom: -1px;
}

.contact-list__item {
  color: var(--white);
  font-size: var(--sm);
  line-height: calc(var(--sm) + 10px);
  margin: 0px 5px;
}

.contact-list__link,
.social-list__link {
  transition: opacity .2s ease-in-out;
}

.contact-list__link:hover,
.social-list__link:hover,
.contact-list__link:focus-visible,
.social-list__link:focus-visible {
  opacity: .8;
}

.contact-list__link:active,
.social-list__link:active {
  opacity: 1;
  color: var(--hero-btn);
}

.social-list__link:active > svg > path,
.contact-list__link:active > svg > path {
  fill: var(--hero-btn);
}

.contact-list__link,
.contact-list__item:last-child {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.contact-list__icon {
  display: block;
  width: 10px;
  height: 10px;
  margin-right: 4px;
}

.contact-list__icon_time {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  background-color: transparent;
  background-image: url(/img/icons/clock.svg);
}

/* header */

.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 899;
}

.header__main {
  position: sticky;
  width: 100%;
  height: 64px;
  background-color: var(--white);
  box-shadow: 0 3px 3px var(--line-fade);
}

.main__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: inherit;
}

.main__img {
  width: 120px;
}

.main__menu {
  height: inherit;
}

.menu__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: inherit;
  border: none;
  border-radius: 0;
  background-color: transparent;
  cursor: pointer;
}

.menu__button:hover > .menu__icon > *,
.menu__button:focus-visible > .menu__icon > *,
.menu__button:hover > .menu__icon::before,
.menu__button:focus-visible > .menu__icon::before,
.menu__button:hover > .menu__icon::after,
.menu__button:focus-visible > .menu__icon::after {
  background-color: var(--light-text);
}

.menu__button:active > .menu__icon > *,
.menu__button:active > .menu__icon::before,
.menu__button:active > .menu__icon::after {
  background-color: var(--dark-text) !important;
}

.menu__icon {
  position: relative;
  width: 18px;
  height: 15px;
}

.menu__icon span,
.menu__icon::before,
.menu__icon::after {
  left: 0;
  position: absolute;
  height: 3px;
  width: 100%;
  background-color: var(--dark-text);
  -webkit-transition: all .3s ease;
  -o-transition: all .3s ease;
  -moz-transition: all .3s ease;
  transition: all .3s ease;
}

.menu__icon::before,
.menu__icon::after {
  content: '';
}

.menu__icon::before {
  top: 0;
}

.menu__icon::after {
  bottom: 0;
}

.menu__icon span {
  top: 50%;
  -webkit-transform: scale(1) translate(0px, -50%);
     -moz-transform: scale(1) translate(0px, -50%);
      -ms-transform: scale(1) translate(0px, -50%);
       -o-transform: scale(1) translate(0px, -50%);
          transform: scale(1) translate(0px, -50%);
}

.main__menu._active > .menu__icon span {
  -webkit-transform: scale(0) translate(0px, -50%);
     -moz-transform: scale(0) translate(0px, -50%);
      -ms-transform: scale(0) translate(0px, -50%);
       -o-transform: scale(0) translate(0px, -50%);
          transform: scale(0) translate(0px, -50%);
}

.main__menu._active > .menu__icon::before {
  top: 50%;
  -webkit-transform: rotate(-45deg) translate(0px, -50%);
     -moz-transform: rotate(-45deg) translate(0px, -50%);
      -ms-transform: rotate(-45deg) translate(0px, -50%);
       -o-transform: rotate(-45deg) translate(0px, -50%);
          transform: rotate(-45deg) translate(0px, -50%);
}

.main__menu._active > .menu__icon::after {
  bottom: 45%;
  -webkit-transform: rotate(45deg) translate(0px, 50%);
     -moz-transform: rotate(45deg) translate(0px, 50%);
      -ms-transform: rotate(45deg) translate(0px, 50%);
       -o-transform: rotate(45deg) translate(0px, 50%);
          transform: rotate(45deg) translate(0px, 50%);
}

.menu__body {
  display: none;
}

.menu__sublime {
  display: none;
}

/* main */
/* backwards */

.backwards {
  margin-bottom: 32px;
  min-width: 40px;
  background-color: var(--light-grey);
}

.backwards__navigation {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  padding: 7.5px 0;
}

.navigation__item {
  display: inline-flex;
  align-items: center;
}

.navigation__item {
  font-size: 14px;
  font-weight: 300;
  line-height: 24px;
  color: var(--text);
}

.navigation__icon {
  display: inline-block;
  background: center / contain no-repeat url(/img/icons/house.svg);
  width: 12px;
  height: 14px;
  transform: translateY(2px);
}

.navigation__item:not(:last-of-type) {
  position: relative;
}

.navigation__item::after {
  display: inline-block;
  content: "/";
  margin-top: 1px;
  margin-left: 4px;
  margin-right: 4px;
  opacity: .4;
}

.navigation__item:last-child::after {
  display: none;
}

.navigation__item_none::after {
  display: none;
  content: "" !important;
  margin: 0;
}

.navigation__item_none .navigation__icon {
  transform: translateY(0px);
}

.navigation__item > a {
  transition: color .3s ease;
}

.navigation__item > a:hover,
.navigation__item > a:focus-visible {
  color: var(--dark-text);
}

/* footer */

.footer {
  margin-top: auto;
  color: var(--light-text);
  background-color: var(--night);
}

.footer__container {
  width: 100%;
  padding: 20px 16px
}

.footer__footer-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.footer__footer-item {
  display: none;
  position: relative;
  cursor: pointer;
  padding: 4px 0;
  transition: color .3s ease, opacity .3s ease;
}

.footer__footer-item > * {
  padding: 5px 0;
}

.footer__footer-list,
.footer__footer-item,
.footer-item__button,
.footer-item__link,
.footer-item__copyright {
  width: inherit;
}

.footer__footer-item_burger {
  display: unset;
  opacity: 1;
  pointer-events: all;
  visibility: visible;
}

.footer__footer-item.link::after {
  content: " ";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 1px;
  background-color: var(--light-text);
}

.footer__footer-item_link:hover,
.footer__footer-item_link:focus-visible {
  opacity: .8;
}

.footer__footer-item_link:active {
  color: var(--white);
  opacity: 1;
}

.footer__footer-item_link:active > span {
  color: var(--white);
}

.footer__footer-list._active > .footer__footer-item {
  display: block;
}

.footer-item__button {
  padding: 4px 0px;
  border: none;
  background-color: transparent;
  cursor: pointer;
}

.button__icon {
  margin-left: auto;
  margin-right: 0;
  z-index: 5;
  display: block;
  position: relative;
  width: 18px;
  height: 15px;
  cursor: pointer;
}

.button__icon span,
.button__icon::before,
.button__icon::after {
  left: 0;
  position: absolute;
  height: 16%;
  width: 100%;
  -webkit-transition: all .3s ease;
  -o-transition: all .3s ease;
  -moz-transition: all .3s ease;
  transition: all .3s ease;
  background-color: var(--light-text);
}

.button__icon::before,
.button__icon::after {
  content: '';
}

.button__icon::before {
  top: 0;
}

.button__icon::after {
  bottom: 0;
}

.button__icon span {
  top: 50%;
  -webkit-transform: scale(1) translate(0px, -50%);
     -moz-transform: scale(1) translate(0px, -50%);
      -ms-transform: scale(1) translate(0px, -50%);
       -o-transform: scale(1) translate(0px, -50%);
          transform: scale(1) translate(0px, -50%);
}

.footer-item__button._active > .button__icon span {
  -webkit-transform: scale(0) translate(0px, -50%);
     -moz-transform: scale(0) translate(0px, -50%);
      -ms-transform: scale(0) translate(0px, -50%);
       -o-transform: scale(0) translate(0px, -50%);
          transform: scale(0) translate(0px, -50%);
}

.footer-item__button._active > .button__icon::before {
  top: 50%;
  -webkit-transform: rotate(-45deg) translate(0px, -50%);
     -moz-transform: rotate(-45deg) translate(0px, -50%);
      -ms-transform: rotate(-45deg) translate(0px, -50%);
       -o-transform: rotate(-45deg) translate(0px, -50%);
          transform: rotate(-45deg) translate(0px, -50%);
}

.footer-item__button._active > .button__icon::after {
  bottom: 45%;
  -webkit-transform: rotate(45deg) translate(0px, 50%);
     -moz-transform: rotate(45deg) translate(0px, 50%);
      -ms-transform: rotate(45deg) translate(0px, 50%);
       -o-transform: rotate(45deg) translate(0px, 50%);
          transform: rotate(45deg) translate(0px, 50%);
}

.footer-item__link {
  display: flex;
  height: 100%;
  width: inherit;
  position: relative;
}

.footer-item__link > span {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin:0 8px 2px 0;
  border-right: 1px solid var(--light-text);
  border-top: 1px solid var(--light-text);
  opacity: .8;
  transform: rotate(45deg);
  transition: color .3s ease;
}

.footer-item__link,
.footer-item__copyright {
  display: block;
  text-align: center;
}

.footer-item__copyright {
  font-size: var(--st);
  line-height: calc(var(--st) + 10px);
}

/* Media */

@media (min-width: 480px) {

  .footer__footer-item_burger {
    display: none;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  .footer__footer-item:not(:first-of-type) {
    display: block;
  }

  .social__contact-list {
    justify-content: center;
  }

  .contact-list__item {
    margin: 0px 0px;
  }

  .contact-list__item:not(:last-child) {
    margin-right: 20px;
  }
}

@media (min-width: 768px) {
  /* header */

  .social__container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 9px 16px;
  }

  .social__contact-list {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 1024px) {

  /* side menu */

  .offcanvas__side-menu {
    display: none;
  }

  .body__wrapper {
    transform: translateX(0px) !important;
  }

  .social__social-list {
    margin-bottom: 0px;
  }

  .header__main {
    height: 90px;
  }

  .main__img {
    width: 140px;
  }

  .menu__button {
    display: none;
  }

  .menu__body {
    height: inherit;
    display: block;
  }

  .menu__list {
    display: flex;
    flex-direction: row;
    height: inherit;
  }

  .menu__item {
    position: relative;
    height: 100%;
  }

  .menu__link {
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    text-transform: uppercase;
  }

  .menu__link_main {
    padding: 34px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    transition: opacity .3s ease;
  }

  .menu__link_main:hover,
  .menu__link_main:focus-visible {
    opacity: .6;
  }

  .menu__arrow {
    width: 5px;
    height: 5px;
    margin-left: 8px;
    border-bottom: 1px solid var(--dark-text);
    border-right: 1px solid var(--dark-text);
    transform: rotate(45deg) translateY(0px);
    transform-origin: top;
    cursor: pointer;
  }

  .menu__sublime {
    display: none;
    position: absolute;
    top: 90px;
    max-width: 240px;
    width: 240px;
    padding: 12px;
    background-color: var(--white);
    box-shadow: 0 3px 5px 0 var(--line-medium);
  }

  .menu__item:last-of-type .menu__sublime {
    right: 0px;
  }

  body._pc .menu__item:hover .menu__sublime {
    display: block;
  }

  .menu__sub-list {
    display: flex;
    flex-direction: column;
  }

  .menu__sub-list > li {
    padding: 4px;
    transition: background-color .3s ease;
  }

  .menu__sub-list > li:hover,
  .menu__sub-list > li:focus-visible {
    background-color: var(--burger);
  }

  .menu__sub-list > li > .menu__sub-link {
    display: block;
    padding: 4px;
    font-weight: 300;
    color: var(--dark-text);
    transition: color .3s ease;
  }

  .menu__sub-list > li:hover  > .menu__sub-link,
  .menu__sub-list > li:focus-visible  > .menu__sub-link {
    color: var(--white);
  }

  .menu__link_main.active,
  .menu__sub-link.active {
    color: var(--hero-btn) !important;
  }

  .menu__link_main.active > .menu__arrow {
    border-bottom: 1px solid var(--hero-btn);
    border-right: 1px solid var(--hero-btn);
  }
}
