/*  main tag on page, not header */
.c-home-main {
  background: linear-gradient(180deg, transparent 0%, transparent 20%, rgba(138, 157, 237, 0.35) 40%, var(--c-blue-color) 95%, var(--footer-body-background-color) 100%);
}

.front-page {
  max-width: 100vw;
  overflow-x: hidden;
}

/* header */
.front-page .header {
  min-height: auto; 
  z-index: 2;
}

/* before top */
.с-before-top-header {
  background: var(--secondary-color);
  padding: 10px 20px;
}

.c-contacts-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  /*gap: 15px;*/
}

.c-contacts {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0px;
}

.c-contact {
  display: flex;
  flex-direction: row;
  align-items: center;
  /*gap: 16px;*/
  color: var(--white-color);
}

.c-contact:not(:first-child) {
  margin-left: 60px;
}

.c-contact-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  /*gap: 5px;*/
}

.c-contact-left :not(:first-child) {
  margin-left: 5px;
}

.c-flag:after {
  background-image: url("../assets/ico-flags.svg");
  display: block;
  width: 21px;
  height: 15px;
}

.c-contact-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  /*gap: 5px;*/
  fill: var(--white-color);
  margin-left: 16px;
}

.c-contact-right p.c-phone-link a {
  color: var(--white-color);
  text-decoration: underline;
}

.c-contact-right :not(:first-child) {
  margin-left: 5px;
}

.c-networks-and-hamburger {
  display: flex;
  align-items: center;
  flex-direction: row;
  /*gap: 15px;*/
  stroke: var(--white-color);
  /*margin-top: 15px;*/
  margin-left: 15px;
}

.c-networks-and-hamburger :not(:first-child) {
  margin-left: 15px;
}

.c-networks-and-hamburger span.menu-stripe:first-child {
    margin: 0;
}

.c-networks-and-hamburger span.menu-stripe:not(:first-child) {
    margin: 4px 0 0 0;
}

.c-networks-and-hamburger a.c-contact-link {
  display: flex;
  color: var(--white-color);
}

@media screen and (max-width: 985px) {
  .с-before-top-header {
    padding: 7px 20px;
  }
  
  .c-contacts-container {
    flex-direction: column;
    /*gap: 12px;*/
  }
  
  .c-networks-and-hamburger {
    margin-left: 0;
    margin-top: 12px;
  }
}

@media screen and (max-width: 880px) {
  .c-contacts-container {
    flex-direction: row;
    /*gap: 12px;*/
  }
  
  .c-contacts {
    flex-direction: column;
    /*gap: 7px;*/
    align-items: flex-start;
  }
  
  .c-contact:not(:first-child) {
    margin-left: 0;
    margin-top: 7px;
  }
  
  .c-networks-and-hamburger {
    margin-top: 0;
  }
}

@media screen and (max-width: 565px) {
  .c-contacts-container {
    flex-direction: column;
    /*gap: 12px;*/
  }
  
  .c-contacts {
    /*gap: 7px;*/
    align-items: center;
  }
  
  .c-contact:first-child {
    display: none;
  }
  
  .c-networks-and-hamburger {
    margin-top: 10px;
  }
}

@media screen and (max-width: 435px) {
  .с-before-top-header {
    padding: 6px 8px;
  }
  
  .c-contact {
    /*gap: 12px;*/
    font-size: 15px;
  }
  
  .c-contact-right {
    margin-left: 12px;
  }
  
  /*.c-contact-right {*/
  /*  gap: 3px;*/
  /*}*/
  
  .c-contact-right :not(:first-child) {
    margin-left: 3px;
  }
}

@media screen and (max-width: 400px) {
  .с-before-top-header {
    padding: 6px 6px;
  }
  
  .c-contact-right {
    margin-left: 8px;
  }
  
  /*.c-contact {*/
  /*  gap: 8px;*/
  /*}*/
}

/*  header middle */
.c-middle-header {
  padding: 12px 20px; 
  display: flex;
  align-items: center;
  position: relative;
}

.c-header-middle-container {
  display: flex;
  justify-content: space-between;
  max-width: 1500px;  
  width: 100%;
}

@keyframes headerLogo {
  0% {
    left: 80px;
    transform: scaleX(0.1) scaleY(0.1);
  }
  
  100% {
    left: 0px;
    transform: scaleX(1);
  }
}

.c-header-logo {
  max-width: 100%;
  overflow: hidden;
}

.c-header-logo img {
  animation: headerLogo 1000ms ease 1 forwards;
}

.c-nav-and-lang-wrp {
  display: flex;
  align-items: center;
}

.menu-lang-popover.expanded {
  border-radius: 3px;
}

.menu-main .menu-item {
  margin-left: 13px !important;
}

.menu-main .menu-link {
  text-transform: uppercase !important;
}

.c-middle-header .edy-texteditor-container.image-container.edy-positionable-container-center {
  margin: 0 !important;
}

.c-pages, .c-lang-nav {
  display: flex;
  align-items: center;
}

button.c-hamburger .menu-stripe {
  background-color: var(--white-color);
  opacity: 1 !important;
}

.lang-flag-et.c-flag-btn {
  margin-top: 3px;
}

nav.menu-main.js-menu-main.js-popover.js-prevent-sideclick.c-pages.expanded {
  border-radius: 5px;
}

.menu-main .menu-item {
  margin-right: 0 !important;
}

.menu-main.expanded .menu-item {
  margin-right: 0 !important;
}

@media screen and (max-width: 1340px) {
  .menu-main .menu-item {
    margin-right: 13px !important;
  }
  
  .c-header-middle-container {
    justify-content: center;
  }
  
  .menu-main {
    display: none;
  }
  
  .menu-btn {
    position: static;
    top: 25px;
    right: 20px;
    display: inline-block;
    vertical-align: middle;
    width: 23px;
    height: 30px;
  }
  
  .menu-main.expanded {
    position: absolute;
    z-index: 50;
    top: 6px;
    right: 10px;
    display: block;
    margin-top: 0;
    min-width: 300px;
    margin-bottom: 60px;
    text-align: left;
    background-color: #fff;
    -webkit-box-shadow: 0 5px 25px rgba(0,0,0,.3);
    box-shadow: 0 5px 25px rgba(0,0,0,.3);
  }
  
  .menu-main.expanded .menu-item {
    margin-left: 0;
    border-bottom: 1px solid #000;
    border-bottom: 1px solid rgba(0,0,0,.1);
    margin-right: 13px;
  }
  
  .menu-main.expanded .menu-link.active, .menu-main.expanded .menu-link.active:hover {
    color: var(--secondary-color);
  }
  
  .menu-main.expanded .menu-link {
    padding: 5px 15px 4px;
  }
  
  .menu-main.expanded .menu-lang {
    top: 0;
    display: block;
    margin-left: 0;
    padding-left: 0;
  }
  
  .menu-main.expanded .menu-link.active, .menu-main.expanded .menu-link.active:hover, .menu-main.expanded .menu-link:hover {
    border: none;
    box-shadow: none;
  }
  
  .menu-main.expanded .menu-item, .menu-main.expanded .menu-link {
    display: block;
  }
  
  .menu-main.expanded .menu-lang .menu-link {
    padding: 13px 15px 12px 44px;
  }
  
  .menu-lang .menu-item {
    text-align: left;
  }
  
  .menu-lang {
    display: none;
    line-height: 1.3;
  }
  
  .lang-flag-et.c-flag-btn {
    margin-top: 0;
  }
  
  .menu-lang .menu-link:after, .menu-lang .menu-link:before {
    top: 12px;
    left: 15px;
  }
}

@media screen and (max-width: 640px) {
  .menu-main.c-pages {
    left: 10px;
  }
}

@media screen and (max-width: 435px) {
  .c-middle-header {
    padding: 12px 8px;
  }
}

@media screen and (max-width: 400px) {
  .c-middle-header {
    padding: 12px 6px;
  }
}