/* ------ large and medium devices (dekstops and laptops, 1800px and up) -----*/
@media (min-width: 1240px) {
  html {
    font-size: 62.5%;
  }
  .container {
    max-width: 1160px;
  }
}

/* ------ large and medium devices (dekstops and laptops, 1800px and up) -----*/
@media (min-width: 992px) and (max-width: 1239.98px) {
  html {
    font-size: 50%;
  }
  .container {
    max-width: 920px;
  }
}

/* ------ Medium devices (tablets, 991px and down) -----*/
@media (max-width: 991px) {
  html {
    font-size: 50%;
  }

  .container {
    padding: 0;
  }

  .container-fluid,
  .menu_container {
    width: 720px;
  }

  .col-md-0 {
    width: 0;
    padding: 0;
  }

  br {
    display: none;
  }

  :root {
    --menuHeight: 7rem;
  }

  /* =========== Header area ========== */
  .primary_menu {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    padding: 0;
    pointer-events: none;
    overflow: auto;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    padding: 11rem 2.5rem 2.5rem 2.5rem;
    justify-content: space-between !important;
  }

  .primary_menu::-webkit-scrollbar {
    scrollbar-width: 0;
    display: none;
  }

  .menu_active .primary_menu {
    pointer-events: all;
  }

  .main_menu {
    flex-direction: column;
    gap: 4rem;
    align-items: flex-start !important;
  }

  .main_menu li a {
    font-size: 2.4rem;
    letter-spacing: -0.03em;
    line-height: 1;
  }

  body.menu_active {
    overflow: hidden !important;
  }

  .menu_overlay {
    width: 200vw;
    height: 200vh;
    content: "";
    background: rgb(255, 255, 255);
    position: fixed;
    left: -200vw;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 0 50% 50% 0;
    transition: all 1.5s cubic-bezier(0.68, 0, 0.27, 1.55); /* elastic wave effect */
    z-index: 1;
  }

  .menu_active .menu_overlay {
    left: -50vw;
  }

  .menu_container {
    transition: 0.25s ease;
    transform: translateX(-2rem);
    opacity: 0;
    pointer-events: none;
  }

  .menu_active .menu_container {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
    transition-delay: 1.05s;
  }

  /* ============== Hamburger ============= */
  .hamburger img {
    width: 2.2rem;
    position: absolute;
    transition: 0.35s ease;
  }

  .hamburger .close_icon {
    width: 2.2rem;
    opacity: 0;
    transform: scale(0.5);
    filter: brightness(0) saturate(100%) invert(6%) sepia(49%) saturate(2769%)
      hue-rotate(246deg) brightness(84%) contrast(96%);
  }

  .hamburger {
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 999;
  }

  .menu_active .hamburger .close_icon {
    opacity: 1;
    transform: scale(1);
    filter: brightness(0) saturate(100%) invert(7%) sepia(18%) saturate(5515%)
      hue-rotate(241deg) brightness(95%) contrast(97%);
  }

  .menu_active .hamburger .Hamburger_icon {
    opacity: 0;
    transform: scale(0.5);
  }

  .sticky .hamburger .Hamburger_icon {
    filter: brightness(0) saturate(100%) invert(6%) sepia(49%) saturate(2769%)
      hue-rotate(246deg) brightness(84%) contrast(96%) !important;
  }

  body.menu_active .logo img {
    filter: brightness(0) saturate(100%) invert(7%) sepia(18%) saturate(5515%)
      hue-rotate(241deg) brightness(95%) contrast(97%);
  }

  /* ================= */
  .menu_bottom .hero_right {
    justify-content: space-between;
    padding: 4rem 0 12rem;
  }

  .menu_bottom {
    flex-direction: column;
  }

  .menu_bottom .fbr_bottom {
    padding-top: 0;
  }

  .menu_bottom .social_links a img {
    filter: brightness(0) saturate(100%) invert(4%) sepia(35%) saturate(6491%)
      hue-rotate(256deg) brightness(85%) contrast(93%);
  }

  .menu_bottom .fbr_bottom p {
    font-size: 1.4rem;
    line-height: 2.8rem;
  }

  .main_menu {
    padding: 0 0 5rem 0;
  }

  .menu_link img {
    width: 2.5rem;
    display: none !important;
  }

  .menu_link.active img {
    display: block !important;
  }

  .menu_link {
    display: flex;
  }

  .site_header.sticky .main_menu li a.active {
    filter: brightness(0) saturate(100%) invert(83%) sepia(53%) saturate(5758%)
      hue-rotate(213deg) brightness(98%) contrast(97%);
  }

  .main_menu li a:hover,
  .main_menu li a.active {
    opacity: 0.65;
  }

  .hero_btn {
    width: 100%;
  }

  /* ================ Hero area =============== */
  .hero_area .row {
    --bs-gutter-x: 5rem;
  }

  .before_after_img {
    width: 35rem;
  }

  .hero_img {
    margin: 0 auto;
  }

  /* ================ Result area =============== */
  .result_img_v2 {
    height: 34rem;
  }

  .result_img_v1 {
    height: 29rem;
  }

  /* ================ service area =============== */
  .service_info {
    padding: 3rem 2rem 3rem 2rem;
  }

  /* ================ Partner area =============== */
  .partner1 {
    width: 20rem;
  }

  .partner2 {
    width: 22rem;
  }

  .partner3 {
    width: 23rem;
  }

  .partner_box {
    padding: 5rem 2rem 4rem 2rem;
  }

  .partner_img {
    margin-bottom: 3.5rem;
  }

  /* ================ CTA area =============== */
  .cta_content {
    padding: 5rem 4rem 5rem 5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    gap: 4rem;
  }

  .cta_left {
    padding: 0;
    text-align: center;
  }

  .cta_content .button {
    margin-left: 0;
  }

  .arrow_right_icon {
    width: 9rem;
    transform: rotate(120deg);
    position: absolute;
    right: 16rem;
    bottom: 9rem;
  }

  .contact_infos {
    padding-right: 5rem;
  }

  .contact_infos br {
    display: none;
  }

  .arrow_right_icon,
  .arrow_icon {
    display: none;
  }
}

/*----- sm devices (tablets, 767px and down) -----*/
@media (max-width: 767px) {
  /* ============ default styles ============ */
  html {
    font-size: 55%;
  }

  .primary_menu,
  .container-fluid,
  .menu_container {
    width: 540px;
  }

  .row_gap_28,
  .row_gap_30 {
    --bs-gutter-x: 2rem;
    --bs-gutter-y: 2rem;
  }

  /* ============= hero_area =============== */

  .before_after_img {
    width: 28.5rem;
  }

  .hero_area {
    height: auto;
    min-height: auto;
    padding: 10rem 0 12rem;
  }

  .hero_area .row {
    --bs-gutter-y: 4rem;
    flex-direction: column-reverse;
  }

  .hero_btns a {
    width: 100%;
  }

  .hero_btns {
    flex-direction: column;
  }

  .hero_btns {
    gap: 1rem;
    padding-top: 2rem;
  }

  .title_60 {
    font-size: 4.6rem;
    line-height: 1.1;
  }

  .beforeAfter_text {
    height: 3rem;
    width: 7rem;
    font-size: 1.4rem;
  }

  .before_text {
    left: -2.5rem;
  }

  .bafter_after {
    right: -2.5rem;
  }

  .beforeAfter_btn {
    width: 6rem;
  }

  .hero_link {
    justify-content: center;
  }

  .hero_content.content {
    text-align: center;
  }

  /* ============== Header =========== */
  .logo img {
    width: 21rem;
  }

  .title_40 {
    font-size: 3.2rem;
  }

  .pb_40 {
    padding-bottom: 2.5rem;
  }

  .pb_45 {
    padding-bottom: 3.2rem;
  }

  .dots_title_left {
    width: 14rem;
    margin: 0;
    padding: 0;
    left: 1.8rem;
    top: -9rem;
    z-index: -1;
  }

  .title_40 {
    font-size: 3.2rem;
  }

  .pb_40 {
    padding-bottom: 2.5rem;
  }

  .pb_45 {
    padding-bottom: 3.2rem;
  }

  .dots_title_left {
    width: 14rem;
    margin: 0;
    padding: 0;
    left: 1.8rem;
    top: -9rem;
    z-index: -1;
  }

  .pakal_box .button {
    position: static;
    margin-top: 3rem;
    width: 100%;
  }

  .pakal_box {
    padding: 3.5rem 2.5rem;
  }

  .pakalpojumi_area,
  .service_area {
    padding-top: 8rem;
  }

  .nav_link {
    height: 3.2rem;
    padding: 0 2.2rem;
    font-size: 1.4rem;
  }

  .nav_links {
    padding: 0.8rem;
    margin-top: 2.5rem;
  }

  .pb_60 {
    padding-bottom: 4rem;
  }

  .arrow_icon {
    width: 4rem;
    right: -4rem;
    top: -5rem;
    transform: rotate(-25deg);
  }

  .results_area p {
    max-width: 90%;
    margin: 0 auto;
  }

  .result_img_v1 {
    height: 22rem;
  }

  .result_img_v2 {
    height: 24rem;
  }

  .contact_area .row {
    gap: 4rem;
  }

  .contact_box .button {
    margin: 0 auto;
    margin-top: 3rem;
  }

  .contact_box {
    padding: 3rem 2.5rem;
  }

  .contact_info_boxes {
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem 0;
    width: 100%;
  }

  .contact_info_box br {
    display: block;
  }

  .contact_info_box {
    font-size: 1.4rem;
    line-height: 1.35;
  }

  .contact_infos {
    padding-right: 0;
  }
}

/*----- xs devices (landscape phones, 575px and down) -----*/
@media (max-width: 575px) {
  html {
    font-size: 2.5vw;
  }

  /* menu */
  .primary_menu,
  .container-fluid,
  .menu_container {
    width: calc(100%);
  }

  .container {
    padding: 0 2rem;
  }

  .contact_box .button {
    width: 100%;
  }
}
