:root {
  --cfont: 'Montserrat', Helvetica, sans-serif;
  --hfont: 'Montserrat Alternates', Helvetica, sans-serif;
  --wrap-width: 1504px;
  --wrap-padding: 55px;
}

* {
  box-sizing: border-box;
  outline: none !important;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html,
body {
  width: 100%;
  padding: 0;
  margin: 0;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  color: #000;
  font-family: var(--cfont);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

body:not(.loaded) {
  opacity: 0;
  transition: .3s ease-in;
}

body.loaded {
  opacity: 1 !important;
}

body.freezed {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

body.scroll-end::-webkit-scrollbar {
  display: none;
}

h1 {
  font-family: var(--hfont);
  font-size: 30px;
  font-weight: 600;
  margin: 0 0 40px;
}

h1 span {
  color: #8FC2CF;
}

h2 {
  font-family: var(--cfont);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px;
}

a {
  color: inherit;
}

a,
a:hover {
  text-decoration: none;
}

b,
strong {
  font-weight: 600;
}

img,
svg,
video {
  max-width: 100%;
}

img {
  vertical-align: middle;
}

.lazy-image {
  opacity: 0;
  transition: opacity .3s ease-in;
}

.lazy-image.image-loaded {
  opacity: 1;
}

svg {
  flex-shrink: 0;
}

p,
ul,
ol {
  line-height: 1.3;
  padding: 0;
  margin: 0 0 16px;
}

ul {
  list-style: none;
}

main ul:not([class]) li:before {
  content: '\00B7';
  padding: 0 .5em 0 .25em;
}

nav ul {
  line-height: inherit;
  margin: 0;
  width: 100%;
  display: flex;
}

label,
input,
select,
button {
  font-family: var(--cfont);
}

input:-webkit-autofill,
input:-webkit-autofill:focus {
  transition: background-color 600000s 0s, color 600000s 0s;
}

input[type="checkbox"] {
  margin: 0;
  position: absolute;
  top: 50%;
  left: 2px;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
}

input[type="checkbox"]+label {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  text-transform: lowercase;
  position: relative;
  cursor: pointer;
}

input[type="checkbox"]+label:before,
input[type="checkbox"]+label::after {
  box-sizing: inherit;
}

input[type="checkbox"]+label:before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border: 1px solid #000;
  border-radius: 50%;
}

input[type="checkbox"]+label:after {
  content: url("data:image/svg+xml,%3Csvg width='16' height='14' viewBox='0 0 16 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.5759 0.445312L15.4653 1.78857L7.27307 13.7636H5.38365L0.815186 7.27593L2.70461 5.48968L6.32836 8.91927L13.5759 0.445312Z' fill='%234973A2'/%3E%3C/svg%3E%0A");
  display: none;
  width: 18px;
  height: 18px;
  position: absolute;
  top: 50%;
  left: 2px;
  transform: translateY(-50%);
  z-index: 1;
}

input[type="checkbox"]:checked+label:after {
  display: block;
}

select {
  display: flex;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 13px 9px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='15' height='9' viewBox='0 0 15 9' fill='none'><path d='M2.87017 0.950195L7.6647 5.74472L12.4592 0.950195L14.377 1.9091L7.6647 8.62144L0.952362 1.9091L2.87017 0.950195Z' fill='black'/></svg>") no-repeat calc(100% - 13px) center;
  border: 1px solid #000;
  color: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

select option {
  cursor: pointer;
}

button {
  color: inherit;
  transition: .3s ease-in;
  cursor: pointer;
}

button[type=button] {
  padding: 0;
  background: 0;
  border: 0;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  background: transparent;
  border: 2px solid #000 !important;
  border-radius: 870px;
  position: relative;
}

.button:after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 870px;
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(7px, 4px);
  z-index: -1;
}

header {
  width: 100%;
  font-size: 15.6px;
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  transition: transform .3s ease-in;
}

body.scrolled header,
body.scroll-down header {
  background: #fff !important;
  box-shadow: 0 4px 4px rgb(0 0 0 / 25%) !important;
}

.wrap {
  padding: 0 var(--wrap-padding);
}

header .wrap {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.header-logo,
.header-nav {
  margin: 0 auto 0 0;
}

.header-logo {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.header-logo a {
    display: block;
}

.header-nav nav,
.header-nav nav>ul {
  height: 100%;
}

.header-nav nav>ul {
  align-items: center;
  justify-content: space-between;
}

.header-nav nav ul ul {
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: space-between;
  gap: 19px;
  font-size: 16px;
}

.header-nav li {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
}

.header-nav a {
  white-space: nowrap;
}

.header-nav nav a.active,
.footer-nav nav a.active {
  font-weight: 600;
}

.header-nav__button {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-nav__button button {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 50px;
}

.header-nav__button button span,
.header-nav__button button:before,
.header-nav__button button:after {
  width: 100%;
  height: 2px;
  background: #000;
  transition: transform .3s ease-in;
}

.header-nav__button button:before,
.header-nav__button button:after {
  content: '';
  display: block;
}

main {
  color: #272727;
  padding: 160px 0 90px;
}

main .wrap {
  max-width: calc(var(--wrap-width) + var(--wrap-padding) * 2);
  margin: 0 auto;
}

.page-descr {
  color: #515151;
  margin: -30px 0 45px;
}

.login form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 300px;
}

.login input {
  font-weight: 500;
  width: 100%;
  padding: 10px;
  border: 1px solid #A8A8A8;
  border-radius: 8px;
}

.login button {
  height: 38px;
  padding-inline: 20px;
}

.login button:hover {
  color: #fff;
  background: #000;
}

.tasks-content__item {
  padding-bottom: 25px;
  margin-bottom: 50px;
  border-bottom: 1px solid #848484;
}

.tasks-content__item a {
  color: #4973A1;
  text-decoration: underline;
}

footer {
  font-size: 12px;
  background: rgb(255 255 255 / 90%);
  padding: 20px 0 0;
  margin: auto 0 0;
  box-shadow: 0 -5px 5px rgb(0 0 0 / 25%);
  z-index: 1;
}

.footer-top,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0;
  position: relative;
}

.footer-bottom {
  border-top: 1px solid #848484;
}

.footer-nav nav .active {
  position: relative;
}

.footer-nav nav .active:before {
  content: '';
  display: block;
  width: 9px;
  height: 9px;
  background: url("data:image/svg+xml;utf8,<svg width='9' height='9' viewBox='0 0 9 9' xmlns='http://www.w3.org/2000/svg'><path d='M3.58035 1.18101C4.00212 0.457971 5.04684 0.457969 5.46861 1.18101L8.66639 6.66292C9.09145 7.39159 8.56585 8.30669 7.72226 8.30669H1.3267C0.483117 8.30669 -0.0424885 7.39159 0.38257 6.66292L3.58035 1.18101Z' fill='%23AECBE9'/></svg>") no-repeat center / cover;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -12px);
  z-index: 1;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 17px;
  font-size: 12px;
}

.footer-meta__policy {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-meta__policy:after {
  content: '';
  display: block;
  width: 1px;
  height: 21px;
  background: #C4C4C4;
}

.footer-meta__policy a {
  color: #3C3C3C;
}

.footer-meta__policy a:last-of-type {
  order: 1;
}

.footer-meta__org {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4973A1;
}

.footer-meta__org span {
  max-width: 360px;
  text-align: right;
}

.nav-mobile .fancybox__backdrop {
  background: transparent;
}

.nav-mobile .header-nav.fancybox__content {
  flex-basis: 100%;
  width: 100vw;
  background: rgb(255 255 255 / 80%);
  top: 0;
  left: 0;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.nav-mobile .fancybox__slide,
.nav-mobile .fancybox__content {
  padding: 0;
}

.nav-mobile .fancybox__content>.carousel__button.is-close {
  color: #000;
  width: 50px;
  height: 50px;
  top: 15px;
  right: 45px;
}

.nav-mobile .carousel__button svg {
  width: 100%;
  height: 100%;
  filter: none;
  stroke-width: 1px;
  stroke-linecap: square;
}

.nav-mobile .header-nav nav ul {
  flex-direction: column;
  align-items: flex-start;
  max-width: 195px;
  height: auto;
}

.nav-mobile .header-nav nav>ul {
  gap: 19px;
  margin: 90px auto;
}

.nav-mobile .header-nav li {
  flex-direction: column;
  align-items: flex-start;
}

.nav-mobile .header-nav li.parent span:after {
  content: url("data:image/svg+xml,%3Csvg width='13' height='8' viewBox='0 0 13 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.1986 7.25949L6.72801 2.78891L2.25743 7.25949L0.469199 6.36537L6.72801 0.106567L12.9868 6.36538L11.1986 7.25949Z' fill='black'/%3E%3C/svg%3E%0A");
  display: inline-block;
  transform: translateX(7px);
}

.nav-mobile .header-nav nav>ul>li>a,
.nav-mobile .header-nav nav>ul>li>span {
  font-size: 18.5px;
  font-weight: 600;
}

.nav-mobile .header-nav nav>ul>li>span {
  pointer-events: none;
}

.nav-mobile .header-nav nav ul ul {
  padding: 19px 0 0 24px;
  opacity: 1 !important;
}

.nav-mobile .header-nav nav ul ul a {
  font-size: 16px;
  font-weight: 500;
}

@media screen and (max-width: 1440px) {
  .header-logo a {
    max-width: 73px;
  }
  .footer-contact a:first-of-type {
    max-width: 24px;
  }
  .footer-contact a:nth-last-of-type(2) {
    max-width: 21px;
  }
  .footer-contact a:last-of-type {
    max-width: 19px;
  }
}

@media screen and (max-width: 980px) {
  .footer-top {
    justify-content: flex-end;
  }
  .footer-bottom {
    justify-content: center;
  }
  .footer-nav {
    display: none;
  }
  .footer-logo {
    width: 100%;
    max-width: 194px;
    position: absolute;
    top: -60px;
    left: 0;
  }
}

@media screen and (max-width: 720px) {
  :root {
    --wrap-padding: 30px;
  }
  body {
    font-size: 13px;
  }
  header {
    padding: 15px 0;
  }
  main {
    padding: 127px 0 93px;
  }
  h1 {
    font-size: 26px;
    margin: 0 0 32px;
  }
  .page-descr {
    margin: 0 0 16px;
  }
  .header-nav__button button {
    gap: 6px;
    width: 32px;
  }
  .nav-mobile .fancybox__content>.carousel__button.is-close {
    width: 32px;
    height: 32px;
    top: 30px;
    right: 25px;
  }
  .nav-mobile .header-nav nav ul li:not(.opened) ul {
    display: none;
  }
}

@media screen and (min-width: 770px) {
  header {
    background: #fff;
    box-shadow: 0 4px 4px rgb(0 0 0 / 25%);
  }
  .footer-nav nav ul {
    gap: 28px;
  }
}

@media screen and (min-width: 981px) {
  .header-nav {
    display: block !important;
  }
  .header-nav__button {
    display: none;
  }
  .header-nav nav>ul {
    gap: 24px;
  }
  header .header-nav nav ul ul {
    width: auto;
    padding: 15px 35px 35px 40px;
    background: #fff;
    box-shadow: 0px 4.92px 4.92px rgb(0 0 0 / 25%);
    position: absolute;
    bottom: -19px;
    left: -40px;
    z-index: -1;
    transform: translateY(100%);
    transition: .3s ease-in;
    opacity: 0;
    pointer-events: none;
  }
  header .header-nav nav ul ul:before {
    content: '';
    display: block;
    width: 100%;
    height: 20px;
    position: absolute;
    top: -20px;
    left: 0;
  }
  header .header-nav nav ul li:hover ul {
    z-index: 1 !important;
    opacity: 1 !important;
    pointer-events: all !important;
  }
  main {
    padding: 130px 0 90px;
  }
}

@media screen and (min-width: 1201px) {
  body.scroll-down header {
    transform: translateY(-100%);
  }
  body.scroll-up header {
    transform: translateY(0);
  }
  .header-nav nav>ul {
    gap: 48px;
  }
}

@media screen and (min-width: 1441px) {
  .button {
    font-size: 22px;
  }
  header {
    font-size: 19px;
  }
  main {
    font-size: 20px;
    padding: 190px 0 90px;
  }
  footer {
    font-size: 16px;
  }
  .footer-contact {
    gap: 25px;
  }
}

@media screen and (min-width: 1600px) {
  .header-nav nav>ul {
    gap: 70px;
  }
  .footer-nav nav ul {
    gap: 37px;
  }
}