@media (max-width: 1375px) {
  .nameServ {
    margin: 1rem 0;
    padding: 0.5rem;
  }
}

@media (max-width: 1200px) {
  .container .rows {
    gap: 5rem;
  }
  .aboutCompany .paragrph p,
  .headerText p {
    line-height: 30px;
    font-size: 16px;
    text-align: justify;
  }
  .paper .gallery {
    --size: 100px;
  }
  .gallery img {
    clip-path: path(
      "M 80 20 C 100 0 100 0 120 20 C 140 40 160 60 180 80 C 200 100 200 100 180 120 C 160 140 140 160 120 180 C 100 200 100 200 80 180 C 60 160 40 140 20 120 C 0 100 0 100 20 80 Z"
    );
  }
  .gallery img:hover,
  .gallery img:focus {
    clip-path: path(
      "M 0 0 C 100 0 100 0 200 0 C 200 50 200 50 200 80 C 200 100 200 100 200 120 C 200 150 200 150 200 200 C 100 200 100 200 0 200 C 0 150 0 150 0 120 C 0 100 0 100 0 80 Z"
    );
  }
  .partners .text {
    font-size: 16px;
  }
}
@media (max-width: 1130px) {
  #footer {
    position: absolute;
    bottom: -8%;
  }
}
@media (max-width: 1080px) {
  #footer {
    bottom: -12%;
  }
}
@media (max-width: 1000px) {
  #footer {
    bottom: -15%;
  }
}

@media (max-width: 955px) {
  nav .navbar {
    max-width: 100%;
    padding: 0 25px;
  }
  nav .navbar .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: 0;
    right: -100%;
    background: var(--orangeColor);
    height: inherit;
    max-width: 270px;
    width: 100%;
    line-height: 40px;
    transition: all 0.5s ease;
    z-index: 100;
  }
  nav .navbar .contact-lang {
    display: none;
  }

  nav .navbar .nav-links .links .contactBtn,
  nav .navbar .nav-links .links .lang {
    display: block;
  }

  nav .navbar .nav-links .sidebar-logo {
    text-align: center;
  }
  .navbar .bx-menu {
    color: var(--fontColor);
    font-size: 35px;
    font-weight: 800;
  }

  .nav-links .sidebar-logo .bx-x {
    text-align: center;
    color: var(--fontColor);
    font-size: 25px;
    font-weight: 800;
    margin-top: 10px;
  }

  .navbar .bx-menu,
  nav .navbar .nav-links .sidebar-logo,
  .nav-links .sidebar-logo .bx-x {
    display: block;
  }

  nav .navbar .nav-links .links {
    display: block;
    margin-top: 20px;
  }

  nav .navbar .nav-links .links li {
    display: block;
    font-size: 14px;
  }
  nav .navbar .nav-links .links .subMenu {
    display: none;
    position: relative;
    top: 0;
    left: 0;
    box-shadow: none;
    background: none;
  }
  nav .navbar .nav-links .links .subMenu li {
    border-bottom: solid 1px rgba(0, 0, 0, 0.1);
    line-height: 30px;
  }
  nav .navbar .nav-links .links .subMenu li a {
    white-space: wrap;
  }
  nav .navbar .nav-links .links li:hover .enterprisesSubmenu,
  nav .navbar .contact-lang .links li:hover .contactLangSubmenu {
    display: none;
  }
  nav .navbar .nav-links .links .arrow {
    line-height: 40px;
  }

  nav .navbar .nav-links .links li:hover .enterprisesArrow {
    transform: rotate(0deg);
  }
  nav .navbar .nav-links.show1 .links li .enterprisesArrow {
    transform: rotate(180deg);
  }

  nav .navbar .nav-links.show1 .links .subMenu.enterprisesSubmenu {
    display: block;
  }
  nav .navbar .nav-links .links .subMenu li:hover,
  nav .navbar .contact-lang .links .contactLangSubmenu li:hover {
    background: none;
    border-radius: 0;
  }

  nav .navbar .nav-links .links .lang:hover .langArrow {
    transform: rotate(0deg);
  }
  nav .navbar .nav-links.show2 .links .lang .langArrow {
    transform: rotate(180deg);
  }

  nav .navbar .nav-links.show2 .links .lang .contactLangSubmenu {
    display: block;
    z-index: 99;
  }
  .container .rows {
    gap: 2rem;
  }
  .sideDecor {
    display: none;
  }
  #content {
    position: static;
    margin: 0;
  }
  .aboutCompany .header h1 {
    font-size: 30px;
  }
  .paragrph {
    margin-bottom: 60px;
  }
  .paragrph p {
    font-size: 16px;
  }
  .rows h1.servicesHeader {
    font-size: 30px;
  }
  .services {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .nameServ {
    margin: 1rem 0;
    font-size: 14px;
  }
  .paper .headerText {
    width: 90%;
  }
  .paper .headerText h1 {
    font-size: 30px;
  }
  .partners {
    width: 90%;
  }
  .partners .header h2 {
    font-size: 30px;
  }
  .partners .text {
    line-height: 30px;
  }
  #footer {
    position: static;
  }
  .footerMain,
  .footerRights {
    font-size: 14px;
  }
  #footer .footerWrapper {
    padding-top: 0;
  }
}

@media (max-width: 700px) {
  .aboutCompany .header h1,
  .rows h1.servicesHeader,
  .headerText h1 {
    font-size: 25px !important;
  }
  .aboutCompany .paragrph p {
    font-size: 14px;
  }
  .button a {
    font-size: 14px;
  }
  .services {
    grid-template-columns: repeat(1, 1fr);
  }
  .nameServ {
    font-size: 14px;
  }
  .paper {
    width: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
  }
  .headerText p {
    font-size: 14px;
    text-align: justify;
  }
  .paper .gallery {
    --size: 80px;
    display: grid;
    grid-template-columns: repeat(4, var(--size)); /* 4 columns */
    grid-template-rows: repeat(5, var(--size)); /* 5 rows */
    gap: 5px;
    place-items: center;
  }
  .gallery img {
    object-fit: cover;
    width: calc(var(--size) * 2); /* Width of 2 grid columns */
    height: calc(var(--size) * 2); /* Height of 2 grid rows */
    clip-path: path(
      "M 64 16 C 80 0 80 0 96 16 C 112 32 128 48 144 64 C 160 80 160 80 144 96 C 128 112 112 128 96 144 C 80 160 80 160 64 144 C 48 128 32 112 16 96 C 0 80 0 80 16 64 Z"
    );
    transition: clip-path 0.25s, filter 0.75s;
    border-radius: 1rem;
  }
  .gallery img:nth-child(1) {
    grid-column: 1 / span 2; /* First row, spans 2 columns */
    grid-row: 1;
  }

  .gallery img:nth-child(3) {
    grid-column: 3 / span 2; /* Second row, spans 2 columns */
    grid-row: 1;
  }

  .gallery img:nth-child(2) {
    grid-column: 2 / span 2; /* Third row, spans 2 columns */
    grid-row: 2;
  }

  .gallery img:nth-child(4) {
    grid-column: 1 / span 2; /* Fourth row, spans 2 columns */
    grid-row: 3;
  }

  .gallery img:nth-child(5) {
    grid-column: 3 / span 2; /* Fifth row, spans 2 columns */
    grid-row: 3;
  }

  .gallery img:nth-child(7) {
    grid-column: 2 / span 2; /* Sixth row, spans 2 columns */
    grid-row: 4;
  }

  .gallery img:nth-child(8) {
    grid-column: 3 / span 2; /* Seventh row, spans 2 columns */
    grid-row: 5;
  }

  .gallery img:nth-child(6) {
    grid-column: 1 / span 2; /* Eighth row, spans 2 columns */
    grid-row: 5;
  }
  .gallery img:hover,
  .gallery img:focus {
    clip-path: path(
      "M 0 0 C 80 0 80 0 160 0 C 160 40 160 40 160 64 C 160 80 160 80 160 96 C 160 120 160 120 160 160 C 80 160 80 160 0 160 C 0 120 0 120 0 96 C 0 80 0 80 0 64 Z"
    );
  }
  .partners {
    margin: auto;
  }
  .partners .header h2 {
    font-size: 25px;
  }
  .partners .text {
    font-size: 14px;
    line-height: 30px;
  }
  .partners .schneider{
    margin-bottom: 20px;
  }
  #footer .footerWrapper {
    width: 80%;
    margin: auto;
    gap: 50px;
    padding-top: 0;
  }
  #footer .footerWrapper .footerMain {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    line-height: 20px;
    text-align: center;
  }
  #footer .footerWrapper .footerMain .footerAdress {
    max-width: 100%;
  }
  #footer .footerWrapper .footerMain .footerContacts {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    place-items: center;
    gap: 20%;
    white-space: nowrap;
  }
  #footer .footerWrapper .footerMain .footerMedia {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    place-items: center;
    gap: 20%;
  }
  #footer .footerWrapper .footerRights {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .footerMain,
  .footerRights {
    font-size: 12px;
  }
}

@media (max-width: 370px) {
  nav .navbar .logo {
    width: 50%;
  }
  nav .navbar .logo img {
    width: 100%;
  }
  nav .navbar .nav-links {
    max-width: 100%;
  }
  nav .navbar .nav-links .links {
    text-align: center;
  }
  .aboutCompany .paragrph p,
  .headerText p {
    font-size: 12px;
    line-height: 20px;
  }
  .button a,
  .nameServ {
    font-size: 12px;
  }
  .services {
    grid-template-columns: repeat(1, 1fr);
  }
  .servElement {
    justify-content: start;
  }
  .partners {
    margin: auto;
  }
  .partners .header h2 {
    font-size: 25px;
  }
  .partners .text {
    font-size: 12px;
    line-height: 20px;
  }
  
  #footer {
    padding: 0;
  }
}
