#footer {
  background-color: #39160E;
  color: #fff;
}

#footer .container {
  max-width: 1171px;
  margin-left: auto;
  margin-right: auto;
  padding: 50px 0;
  box-sizing: border-box;
}

#footer a {
  color: #fff;
  text-decoration: underline;
  transition: opacity 0.2s;
}

#footer a:hover {
  opacity: 0.8;
}

#footer a {
  color: #fff;
  transition: opacity 0.2s;
}

#footer .logo {
  width: 170px;
  margin-bottom: 25px;
}

#footer .copyright {
  font-size: 14px;
  margin-bottom: 25px;
}

#footer .row {
  --bs-gutter-x: 30px;
}

#footer .block-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #fff;
}

#footer .footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer .footer-menu li {
  margin-bottom: 15px;
}

#footer .time-block {
  display: flex;
  max-width: 190px;
  flex-direction: column;
  gap: 15px;
}

#footer .contact-item {
  display: flex;
  align-items: center;
  font-size: 12px;
  gap: 5px;
  max-width: 270px;
}

#footer .contact-item img {
  flex-shrink: 0;
}

#footer .footer-bottom {
  font-size: 16px;
  margin-top: 30px;
  gap: 15px;
}

#footer .footer-bottom-col {
  padding-left: 0;
  padding-right: 0;
}

#footer .footer-bottom a {
  color: #FFFFFF;
}

#footer .social-links a {
  display: inline-block;
  font-size: 16px;
}

#footer .contacts-footer {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

#footer .footer-menu-wrapper .nav>li:not(.dropdown) {
  display: none;
}

#footer .footer-menu-wrapper .nav-item.dropdown>.nav-link {
  display: none;
}

#footer .footer-menu-wrapper .dropdown-menu {
  display: flex;
  position: static !important;
  float: none !important;
  background: transparent;
  flex-direction: column;
  gap: 15px;
  border: none;
  box-shadow: none;
  padding-left: 0;
  margin-top: 0;
}

#footer .footer-menu-wrapper .dropdown-toggle::after {
  display: none;
}

#footer .footer-menu-wrapper .dropdown-item {
  padding: 0;
  background: transparent;
  color: #fff;
  white-space: normal;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
}

#footer .footer-menu-wrapper .dropdown-menu {
  list-style: none;
}

#footer .footer-company-wrapper .nav {
  display: block;
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer .footer-company-wrapper .nav-item {
  display: block;
  margin-bottom: 8px;
}

#footer .footer-company-wrapper .nav-item.dropdown {
  display: none;
}

#footer .footer-company-wrapper .dropdown-menu {
  display: none;
}

#footer .footer-company-wrapper .nav-link {
  color: #fff;
  text-decoration: none;
  padding-left: 0;
  font-size: 16px;
}

#footer .callback-block a,
#footer .callback-block button {
  display: inline-block;
  background-color: #DE7D1F;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  padding: 16px 65px;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  width: auto;
  text-align: center;
  line-height: 1.2;
  box-sizing: border-box;
}

#footer .callback-block a:hover,
#footer .callback-block button:hover {
  background-color: #B35A03;
  opacity: 1;
  text-decoration: none;
}

#scrollToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #546D46;
  cursor: pointer;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  padding: 0;
}

#scrollToTop img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

#footer .footer-menu-wrapper a,
#footer .footer-company-wrapper a {
  transition: color 0.2s;
}

#footer .footer-menu-wrapper a:hover,
#footer .footer-company-wrapper a:hover,
#footer .footer-menu-wrapper a:focus,
#footer .footer-company-wrapper a:focus,
#footer .footer-menu-wrapper a:active,
#footer .footer-company-wrapper a:active {
  color: #F1DFD6 !important;
  outline: none;
  background-color: transparent;
  box-shadow: none;
  text-decoration: none;
  opacity: 1;
}

.contacts-footer .contact-item a.contact-item-el {
  pointer-events: none;
  cursor: default;
}

@media screen and (max-width: 1899px) {
  #footer .container {
    max-width: 1140px;
    padding: 45px 15px;
  }
  #footer .block-title {
    font-size: 18px;
    margin-bottom: 12px;
  }
  #footer .footer-menu li,
  #footer .footer-company-wrapper .nav-item {
    margin-bottom: 10px;
  }
  #footer .footer-menu li a,
  #footer .footer-company-wrapper .nav-link {
    font-size: 15px;
  }
  #footer .contacts-footer .contact-item {
        font-size: 12px;
    max-width: 240px;
  }
  #footer .callback-block a,
  #footer .callback-block button {
    padding: 14px 50px;
    font-size: 15px;
  }
  #footer .time-block {
    max-width: 170px;
    gap: 10px;
  }
  #footer .copyright {
    font-size: 13px;
  }
  #scrollToTop {
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
  }
}

@media screen and (max-width: 1399px) {
  #footer .container {
    max-width: 960px;
    padding: 40px 0;
  }
  #footer .block-title {
    font-size: 17px;
  }
  #footer .footer-menu li a,
  #footer .footer-company-wrapper .nav-link {
    font-size: 14px;
  }
  #footer .contacts-footer .contact-item {
    max-width: 220px;
  }
  #footer .callback-block a,
  #footer .callback-block button {
    padding: 12px 45px;
    font-size: 14px;
  }
  #footer .time-block {
    max-width: 150px;
  }
  #footer .copyright {
    font-size: 12px;
  }
  #scrollToTop {
    width: 55px;
    height: 55px;
  }
#footer .footer-bottom {
    margin-top: 25px;
    font-size: 14px;
  }
}

@media screen and (max-width: 1199px) {
  #footer .container {
    max-width: 720px;
    padding: 35px 0;
  }
  #footer .block-title {
    font-size: 16px;
  }
  #footer .footer-menu li a,
  #footer .footer-company-wrapper .nav-link {
    font-size: 13px;
  }
  #footer .contacts-footer .contact-item {
    max-width: 200px;
  }
  #footer .callback-block a,
  #footer .callback-block button {
    padding: 10px 20px;
    font-size: 13px;
  }
  #footer .time-block {
    max-width: 130px;
  }
  #scrollToTop {
    width: 50px;
    height: 50px;
  }
  .footer-col.menu-col {
    display: none;
  }
  #footer .row {
    justify-content: space-between;
    --bs-gutter-x: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 9px; 
  }

  #footer .col-lg-3 {
    flex: 0 0 calc(33.333% - 20px); 
    width: auto;
    padding-left: 0;
    padding-right: 0;
  }

  #footer .col-lg-3 {
    align-self: flex-start;
  }
}

@media screen and (max-width: 991px) {
  .footer-col.menu-col {
    display: none;
  }

  #footer .row {
    --bs-gutter-x: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px; 
  }

  #footer .footer-col:not(.menu-col) {
    flex: 0 0 calc(33.333% - 10px); 
    max-width: calc(33.333% - 10px);
    padding-left: 0;
    padding-right: 0;
  }

  #footer .block-title {
    text-align: left;
  }

  #footer .contacts-footer .contact-item {
    justify-content: flex-start;
  }

  #footer .callback-block a,
  #footer .callback-block button {
    max-width: 100%;
    padding: 12px 20px;
    font-size: 14px;
  }
  #footer .footer-bottom {
    margin-top: 15px;
    font-size: 12px;
  }
}

@media screen and (max-width: 767px) {
  .footer-col.company-col {
    display: none;
  }

  #footer .row {
    --bs-gutter-x: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  .footer-col:first-child {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
    text-align: center;
  }

  .footer-col:last-child {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
    text-align: center;
  }

  .logo img {
    max-width: 120px;
    margin: 0 auto;
  }

  .contacts-footer .contact-item {
    justify-content: center;
    margin-left: 0;
  }

  .callback-block a,
  .callback-block button {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
  }
#footer .copyright {
  margin-bottom: 15px;
}
  .copyright {
    text-align: center;
  }
  #footer .contacts-footer {
    margin-top: 20px;
  }
}

@media screen and (max-width: 576px) {
  #footer .container {
    padding: 20px 10px;
  }

  #footer .logo img {
    max-width: 120px;
  }

  #footer .contacts-footer .contact-item {
    flex-wrap: wrap;
    gap: 5px;
  }

  #footer .contacts-footer .contact-item img {
    width: 14px;
    height: 14px;
  }

  #footer .callback-block a,
  #footer .callback-block button {
    padding: 10px 20px;
    font-size: 14px;
  }

  #scrollToTop {
    width: 35px;
    height: 35px;
    bottom: 15px;
    right: 15px;
  }
}

@media screen and (max-width: 480px) {
  .footer-col:first-child,
  .footer-col:last-child {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    text-align: center !important;
  }

  #footer .row {
    gap: 15px;
  }

  .logo {
    max-width: 100px;
    margin: 0 auto;
        text-align: center;
  }

  .callback-block a,
  .callback-block button {
    max-width: 100%;
    padding: 8px 15px;
    font-size: 13px;
    margin-left: auto;
    margin-right: auto;
  }

  .contacts-footer {
    align-items: center;
  }

  .contacts-footer .contact-item {
    font-size: 11px;
    gap: 3px;
    justify-content: center !important;
  }

  .contacts-footer .contact-item img {
    width: 12px;
    height: 12px;
  }

  .time-block {
    align-items: center !important;
    margin: 0 auto;  
  }

  .copyright {
    font-size: 10px;
    text-align: center !important;
  }

  #footer .contacts-footer {
    align-items: center;
  }
    .callback-block {
    text-align: center;
  }
  .callback-block a,
  .callback-block button {
    max-width: 100%;
    padding: 8px 15px;
    font-size: 13px;
    margin-left: auto;
    margin-right: auto;
    display: inline-block; 
  }
}