/* ПОДВАЛ */
#footer {
  background-color: #27534f;
  color: #fff;
  padding: 40px 0 25px;
}

#footer .row:first-of-type {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  height: 100%;
  margin-bottom: 40px;
}

#footer .footer-col {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 0;
}

#footer .footer-col:first-child {
  flex: 0 0 370px;
  justify-content: space-between;
  margin-right: 115px;
}

#footer .footer-col:nth-child(2),
#footer .footer-col:nth-child(3) {
  flex: 0;
  margin-right: 65px;
  max-width: none;
}

#footer .footer-col:last-child {
  max-width: none;
  flex: 1;
  margin-left: 47px;
}

#footer .logo {
  margin-bottom: 0;
}

#footer .description {
  font-size: 14px;
  line-height: 22px;
}

#footer .footer-company-wrapper,
#footer .footer-menu-wrapper {
  margin-top: 0;
}

#footer .block-title {
  display: block;
  font-family: "Nunito Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 20px;
  color: #fff;
  text-decoration: none;
}

#footer .footer-company-wrapper a,
#footer .footer-menu-wrapper a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  line-height: 28px;
  font-weight: 600;
  transition: color 0.2s;
}

#footer .footer-company-wrapper a:hover,
#footer .footer-menu-wrapper a:hover {
  text-decoration: underline;
  background: none;
}

#footer .social-links {
  display: flex;
  gap: 8px;
  margin-bottom: 42px;
  justify-content: flex-start;
}

#footer .social-links img {
  width: 36px;
  height: 36px;
}

#footer .contacts-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#footer .contacts-footer .contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

#footer .contacts-footer .contact-item img {
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
}

#footer .contacts-footer .contact-item a,
#footer .contacts-footer .contact-item span {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
}

#footer .contacts-footer .contact-item a:hover {
  text-decoration: underline;
}

#footer .footer-bottom {
  font-weight: 400;
  font-size: 15px;
  line-height: 22px;
  display: flex;
  align-items: center;
  color: #ffffff;
  margin: 0;
}

#footer .footer-bottom-col {
  /* margin: 0 !important; */
  flex: 1;
  text-align: center;
  padding: 0;
}

.ms-6 {
  margin-left: 100px;
}

#footer .footer-bottom-col a {
  color: #fff;
  text-decoration: none;
}

#footer .footer-bottom-col a:hover {
  text-decoration: underline;
}

#footer .footer-company-wrapper a::before,
#footer .footer-menu-wrapper a::before {
  content: none !important;
  display: none !important;
}

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

#footer .footer-menu-wrapper a {
  display: block;
  padding: 0;
  white-space: pre-line;
}

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

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

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

#footer .footer-company-wrapper .nav #footer .footer-company-wrapper .nav-item,
#footer .footer-menu-wrapper .nav-item {
  margin-bottom: 0;
}

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

#footer .footer-company-wrapper .nav-link:hover,
#footer .footer-menu-wrapper .nav-link:hover {
  text-decoration: underline;
}

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

#footer .footer-menu-wrapper .nav > li.dropdown:has(> a[href="/catalog"]) {
  display: block;
}

#footer
  .footer-menu-wrapper
  .nav
  > li.dropdown:has(> a[href="/catalog"])
  > .dropdown-menu {
  display: block !important;
  position: static;
  background: transparent;
  border: none;
  margin: 0;
  padding: 0;
}

#footer
  .footer-menu-wrapper
  .nav
  > li.dropdown:has(> a[href="/catalog"])
  .dropdown-menu
  .dropdown-menu {
  display: none !important;
}

#footer .footer-menu-wrapper .dropdown-toggle::after {
  display: none;
}
@media (max-width: 1399px) {
  #footer .footer-col:first-child {
    flex: 0 0 320px;
    margin-right: 80px;
  }

  #footer .footer-col:nth-child(2),
  #footer .footer-col:nth-child(3) {
    margin-right: 40px;
  }

  #footer .footer-col:last-child {
    margin-left: 20px;
  }

  #footer .social-links img {
    width: 32px;
    height: 32px;
  }

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

  #footer .footer-bottom-col {
    margin: 0 !important;
  }
}

@media (max-width: 1199px) {
  #footer .row:first-of-type {
    flex-wrap: wrap;
    gap: 30px;
  }

  #footer .footer-col:first-child {
    flex: 0 0 270px;
    margin-right: 15px;
  }

  #footer .footer-col:nth-child(2),
  #footer .footer-col:nth-child(3) {
    margin-right: 15px;
  }

  #footer .footer-col:last-child {
    margin-left: 0;
  }
}

@media (max-width: 991px) {
  #footer {
    padding: 30px 0 20px;
  }

  #footer .footer-col:first-child {
    margin-right: 30px;
  }

  #footer .footer-col:nth-child(2),
  #footer .footer-col:nth-child(3) {
    margin-right: 15px;
  }

  #footer .footer-col {
    width: 100%;
    margin: 0;
  }

  #footer .footer-col:first-child .logo {
    max-width: 260px;
    margin: 0;
  }

  #footer .footer-company-wrapper,
  #footer .footer-menu-wrapper {
    display: flex;
    flex-direction: column;
  }

  #footer .block-title {
    margin-bottom: 15px;
  }

  #footer .social-links {
    margin-bottom: 25px;
    justify-content: center;
    gap: 20px;
  }

  #footer .footer-bottom {
    margin-top: 20px;
    font-size: 13px;
  }

  #footer .contacts-footer {
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  #footer .row:first-of-type {
    display: grid;
    grid-template-rows: auto auto;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 0;
  }

  #footer .footer-col:first-child {
    grid-row: 1;
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    margin-bottom: 30px;
    flex: none;
    display: flex;
    justify-content: flex-start;
  }

  #footer .footer-col:first-child .logo {
    margin-bottom: 10px;
  }

  #footer .footer-col:nth-child(2),
  #footer .footer-col:nth-child(3),
  #footer .footer-col:last-child {
    grid-row: 2;
    width: auto;
    margin: 0;
    flex: none;
    text-align: left;
  }

  #footer .social-links {
    display: none;
  }

  #footer .contacts-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  #footer .footer-company-wrapper .nav-link {
    font-size: 13px;
  }

  #footer .social-links {
    gap: 8px;
    justify-content: flex-start;
    margin-bottom: 15px;
  }

  #footer .footer-company-wrapper a,
  #footer .footer-menu-wrapper a {
    font-size: 13px;
    line-height: 22px;
  }
}

@media (max-width: 576px) {
  #footer .row:first-of-type {
    display: grid;
    grid-template-rows: auto auto auto;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 0;
  }

  #footer .footer-col:first-child {
    grid-row: 1;
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    flex: none;
    display: flex;
    justify-content: flex-start;
  }

  #footer .footer-col:nth-child(2) {
    grid-row: 2;
    grid-column: 1 / 2;
    width: auto;
    margin: 0;
    margin-right: 10px;
    flex: none;
    text-align: left;
  }

  #footer .footer-col:nth-child(3) {
    grid-row: 2;
    grid-column: 2 / 3;
    width: auto;
    margin: 0;
    flex: none;
    text-align: left;
  }

  #footer .footer-col:last-child {
    grid-row: 3;
    grid-column: 1 / -1;
    width: auto;
    margin: 0;
    flex: none;
    text-align: left;
  }

  #footer {
    padding: 30px 16px 16px;
  }

  #footer .footer-col:first-child .logo {
    max-width: 300px;
    margin-bottom: 16px;
  }

  #footer .block-title {
    font-size: 16px;
    margin-bottom: 20px;
  }

  #footer .footer-company-wrapper a,
  #footer .footer-menu-wrapper a {
    font-size: 14px;
    line-height: 28px;
  }
  
  #footer
    .footer-menu-wrapper
    .nav
    > li.dropdown:has(> a[href="/catalog"])
    > .dropdown-menu {
    min-width: 10px;
  }

  #footer .contacts-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  #footer .footer-bottom {
    margin-top: 40px;
    font-size: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  #footer .footer-bottom-col {
    text-align: left !important;
    width: 100%;
  }
}

@media (max-width: 360px) {
  #footer .row:first-of-type {
    gap: 30px 0px;
  }

  #footer .container {
    padding: 0;
  }

  #footer .block-title {
    font-size: 14px;
    margin-bottom: 12px;
  }

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

  #footer .footer-company-wrapper a,
  #footer .footer-menu-wrapper a {
    font-size: 13px;
    line-height: 22px;
    word-break: break-word;
  }

  #footer .contacts-footer .contact-item a,
  #footer .contacts-footer .contact-item span {
    font-size: 12px;
    word-break: break-word;
  }

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

  #footer .footer-bottom-col {
    text-align: left;
    width: 100%;
  }

  #footer {
    padding: 30px 16px 16px;
  }
}

#footer .block-title::after {
  display: none;
}
