@media only screen and (min-width: 200px) {
  .navigation_bar {
    padding: 10px 0 0;
  }
  .navigation_top_div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 10px 10px;
  }
  .navigation_top_div .logo {
    display: none;
  }
  .navigation_top_div .logo a {
    display: block; /* or flex */
    width: 100%; /* or specific width */
    height: auto; /* or specific height */
    overflow: hidden; /* hides anything that overflows */
  }

  .navigation_top_div .logo a img {
    max-width: 100%; /* image won't be wider than parent */
    max-height: 100%; /* image won't be taller than parent */
    width: auto; /* maintains aspect ratio */
    height: auto; /* maintains aspect ratio */
    object-fit: contain; /* ensures image fits while maintaining aspect ratio */
    display: block; /* removes any unwanted space below image */
  }
  .navigation_contacts {
    display: flex;
    font-size: 18px;
    align-items: center;
    margin: 0 0 6px;
    color: #2373b4;
  }
  .navigation_contacts i {
    margin: 0 10px 0 0;
  }
  .navigation_contacts p {
    margin: 0;
    font-size: 17px;
  }
  .navigation_top_div a {
    width: 115px;
    font-size: 17px;
    background-color: #ef4100;
    color: #fce9e3;
    border: none;
    border-radius: 10px;
    padding: 10px 5px;
    transition: all 0.3s ease;
  }
  .navigation_top_div a:hover {
    text-decoration: none;
    background-color: #ff8052;
    color: #ffffff;
  }
  nav {
    display: flex;
    justify-content: space-between;
    padding: 0;
    background-color: #004882;
    color: #c7dff3;
    position: relative;
  }
  .nav_logo {
    width: 50%;
    background-color: #c7dff3;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
  }
  .nav_logo a {
    display: block;
  }
  .nav_logo a img {
    width: 115px;
    margin: 0 0 0 10px;
  }
  .nav_ul {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding: 20px 0;
    background-color: #004882;
    z-index: 2000;

    /* Remove scrolling from nav_ul */
    overflow: hidden;

    /* Optional: initially hidden, to be shown when hamburger is clicked */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
  }
  .nav_ul_2 {
    display: none;
  }

  .nav_ul_inner {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    padding: 20px 0;

    /* Optional: hide scrollbar for webkit browsers */
    &::-webkit-scrollbar {
      display: none;
    }
  }
  .nav_ul.active {
    opacity: 1;
    visibility: visible;
  }
  .hamburger,
  .hamburger_2 {
    width: 41px;
    height: 41px;
    margin: 11px 10px 0 0;
    cursor: pointer;
  }
  .hamburger .line,
  .hamburger_2 .line {
    width: 100%;
    height: 5px;
    background-color: #c7dff3;
  }
  .hamburger .line_1,
  .hamburger_2 .line_1 {
    margin: 0 0 7px;
  }
  .hamburger .line_2,
  .hamburger_2 .line_2 {
    margin: 0;
  }
  .hamburger .line_3 {
    display: block;
    width: 100%;
    white-space: nowrap; /* Keep text in a single line */
    text-align: justify; /* Spread text across the width */
  }
  .hamburger .line_3 span {
    color: #c7dff3;
    display: inline-block; /* Make the span behave like a block element */
    width: 100%; /* Take full width of the parent */
    text-align: center; /* Center the text horizontally */
    text-overflow: ellipsis;
    font-size: 14px;
  }
  .hamburger .line_1,
  .hamburger .line_2,
  .hamburger_2 .line_1,
  .hamburger_2 .line_2 {
    transition: all 0.3s ease-in-out; /* Smooth transition */
    transform-origin: center; /* Rotate from center */
  }
  .hamburger .line_3 {
    transition: all 0.3s ease-in-out; /* Smooth transition */
    transform-origin: center; /* Rotate from center */
  }

  /* Animation classes when hamburger is clicked */
  .hamburger.active .line_1,
  .nav_ul_header .hamburger_2 .line_1 {
    transform: translateY(10px) rotate(45deg); /* Adjust translateY value based on your lines spacing */
  }

  .hamburger.active .line_2,
  .nav_ul_header .hamburger_2 .line_2 {
    transform: translateY(-2px) rotate(-45deg); /* Adjust translateY value based on your lines spacing */
  }

  .hamburger.active .line_3 {
    opacity: 0;
    /*transform: translateX(-20px); /* Slide out to left */
  }
  .nav_ul_header {
    position: relative;
    padding: 75px 0 30px;
    display: flex;
    justify-content: center;
  }
  .nav_ul_header a {
    display: block;
  }
  .nav_ul_header a img {
    display: block;
    width: 170px;
    margin: 0 auto;
  }
  .nav_ul_header .hamburger_2 {
    position: fixed;
    top: 20px;
    right: 5px;
  }
  .nav_ul ul {
    padding: 0 35px 20px;
  }
  .nav_ul ul li {
    list-style: none;
  }
  .nav_ul ul li a {
    display: block;
    color: #c7dff3;
    font-size: 28px;
    line-height: 55px;
    text-decoration: none;
  }
  .nav_ul ul li a i {
    color: #c7dff3;
    font-size: 25px;
    transition: transform 0.3s ease; /* Add smooth rotation transition */
  }

  /* Add rotation class for the icon */
  .nav_ul ul li a.active i {
    transform: rotate(180deg);
  }

  .nav_ul ul li ul {
    padding: 0 20px 5px;
    background-color: transparent;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease; /* Add smooth height transition */
  }

  /* Show submenu when parent is active */
  .nav_ul ul li ul.active {
    max-height: 500px; /* Adjust this value based on your content */
    padding: 10px 20px;
    background-color: #01dd7347;
  }

  .nav_ul ul li ul li a {
    font-size: 22px;
    color: #a6c8e4;
    line-height: 36px;
  }
}
@media only screen and (min-width: 360px) {
  .navigation_contacts p {
    font-size: 18px;
  }
  .navigation_top_div a {
    width: 140px;
    font-size: 19px;
  }
}
@media only screen and (min-width: 600px) {
  .nav_logo {
    width: 35%;
  }
  .nav_logo a img {
    width: 120px;
    margin: 0 0 0 15px;
  }
  .hamburger,
  .hamburger_2 {
    margin: 11px 15px 0 0;
  }
  .navigation_top_div {
    padding: 0 18px 10px;
  }
  .navigation_top_div a {
    width: auto;
    border-radius: 15px;
    padding: 10px 16px;
  }
  .nav_ul_header .hamburger_2 {
    right: 18px;
  }
  .nav_ul_header a img {
    width: 210px;
  }
  .nav_ul ul {
    padding: 0 140px 20px;
  }
}
@media only screen and (min-width: 712px) {
  .navigation_top_div {
    justify-content: center;
    gap: 30px;
  }
  .navigation_contacts_basket {
    display: flex;
    gap: 25px;
  }
  .navigation_contacts i {
    font-size: 23px;
  }
  .navigation_contacts p {
    font-size: 18px;
  }
  .nav_ul ul {
    padding: 0 200px 20px;
  }
}
@media only screen and (min-width: 768px) {
  .nav_logo {
    width: 30%;
  }
  .nav_ul ul {
    padding: 0 250px 20px;
  }
}
@media only screen and (min-width: 912px) {
  nav {
    position: relative;
  }
  .nav_logo {
    width: 20%;
  }
  .nav_ul {
    display: none;
  }
  .nav_ul_2 {
    display: flex;
    justify-content: end;
    padding: 0;
    width: 725px;
  }
  .nav_ul_2 ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .nav_ul_2 ul li {
    position: relative;
    display: flex;
  }
  .nav_ul_2 ul li a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #c7dff3;
    font-size: 21px;
    text-decoration: none;
    padding: 0 12px;
    transition: all 0.3s ease;
  }
  .nav_ul_2 ul li:hover > a {
    background-color: #0061b1;
  }
  .nav_ul_2 ul li a i {
    color: #c7dff3;
    font-size: 21px;
    transition: transform 0.6s ease;
  }
  /* Hover state for icon rotation */
  .nav_ul_2 ul li:hover > a i {
    transform: rotate(180deg);
  }
  .nav_ul_2 ul li ul {
    position: absolute;
    top: 85%;
    left: 10px;
    min-width: 220px;
    background-color: #00bf63;
    padding: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.6s ease;
    box-shadow: 2px 3px 10px 1px #001c3294;
    z-index: 1000;
  }
  /* Show dropdown on hover */
  .nav_ul_2 ul li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    padding: 2px 0;
  }
  .nav_ul_2 ul li ul li {
    width: 100%;
  }
  .nav_ul_2 ul li ul li a {
    padding: 8px 20px;
    font-size: 19px;
    line-height: 1.2;
    white-space: nowrap;
    color: #fff;
    width: 100%;
    transition: all 0.3s ease;
  }
  .nav_ul_2 ul li ul li a:hover {
    background-color: #bdf8db;
    color: #00bf63;
    padding-left: 25px;
  }
  .hamburger,
  .nav_ul_header {
    display: none;
  }
}
@media only screen and (min-width: 1024px) {
  .nav_logo {
    width: 23%;
  }
  .nav_logo a img {
    margin: 0 0 0 30px;
  }
  .nav_ul_2 {
    width: 76%;
    padding: 0 15px 0 0;
  }
  .nav_ul_2 ul li a {
    padding: 0 14px;
  }
}
@media only screen and (min-width: 1280px) {
  .nav_ul_2 {
    padding: 0 20px 0 0;
  }
  .nav_ul_2 ul li a {
    font-size: 24px;
    padding: 0 18px;
  }
  .nav_ul_2 ul li ul li a {
    font-size: 21px;
    line-height: 1.5;
  }
}
