footer {
  position: relative;
  padding: 3rem 1.5rem;
  background-color: #eff3e8;
}

@media (min-width: 1024px) {
  footer {
    padding: 80px 79px 56px;
  }
}

.footerBckImage {
  position: absolute;
  left: 0;
  bottom: 10%;
}

.btnScrollUp {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  padding: 1rem 1.25rem;
  background-color: #75926e;
  border-radius: 50%;
  font-size: 0;
  height: 55px;
  width: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btnScrollUp:hover,
.btnScrollUp :focus {
  background: #264437;
}

.footerContainer {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .footerContainer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footerContainer {
    grid-template-columns: 0.8fr 1.2fr 1fr;
    align-items: start;
    gap: 2rem;
    max-width: 1152px;
  }
}

.footerLogo {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 1024px) {
  .footerLogo {
    align-self: start;
    height: auto;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .footerLogo {
    gap: 16px;
  }
}

.footerLogo > p {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.5px;
  color: #264437;
}

@media (max-width: 768px) {
  .footerLogo > p {
    font-size: 12px;
    line-height: 1.5;
  }
}

.footerLogoImg {
  width: 223px;
}

@media (max-width: 768px) {
  .footerLogoImg {
    width: 147px;
  }
}

.lightLogo {
  display: none;
}

.footerNavList {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  justify-content: center;
  align-items: center;
  justify-items: center;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  ul.footerNavList {
    margin-top: 1.5rem;
    grid-row: 1 / span 2;
    grid-column: 2;
  }
}

@media (min-width: 1200px) {
  .footerNavList {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
}

.footerNavList > li {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.5px;
  color: #264437;
}

@media (max-width: 768px) {
  .footerNavList > li {
    font-size: 14px;
    line-height: 1.6;
  }
}

.footerNavList > li:not(.active):hover {
  color: rgb(var(--colour-dark-text-main));
}

.footerNavList > li.active,
[data-theme="dark"] .footerNavList > li.active {
  color: rgb(var(--colour-red));
}

.socialList {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .socialList {
    justify-content: flex-start;
  }
}

.socialListItem {
  cursor: pointer;
}

.socialIcons {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #d9dcd6;
}

.socialIcons:hover,
.socialIcons :focus {
  background-color: #aacfa1;
}

.socialIconLight {
  display: none;
}

.subscribe {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  padding: 32px 34px 24px;
  background: #aacfa1;
  border-radius: 16px;
}

.subscribeTitle {
  font-weight: 500;
  font-size: 24px;
  line-height: 125%;
  color: #264437;
}

.subscribeForm {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 258px;
}

.subscribeForm input[type="text"],
.subscribeForm input[type="submit"] {
  width: 100%;
  padding: 11px 62px 10px 16px;
  display: inline-block;
  box-sizing: border-box;
  background-color: #fff;
  border: 2px solid #fff;
  border-radius: 8px;
  height: 55px;
  font-size: 16px;
}

.subscribeForm input[type="text"]::placeholder {
  line-height: 20px;
  color: #a1a1a1;
}

.subscribeForm input:focus {
  border: 2px solid #6a8c62;
}

.subscribeFormInput {
  margin: 0;
  border-radius: 5px;
}

.subscribeFormBtn {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  padding: 1.15rem;
  margin: 0;
  background: #b0344a;
  border-radius: 3px;
  cursor: pointer;
}

.subscribeDescription {
  font-weight: 400;
  font-size: 14px;
  line-height: 21px;
  color: #223629;
}

[data-theme="dark"] .subscribeDescription {
  color: #121414;
}

[data-theme="dark"] .subscribeFormInput {
  color: #e6e6e6;
}

.iconLeaves1 {
  position: absolute;
  top: 25%;
  left: 87%;
  transform: translate(-50%, -50%);
  width: 134px;
}

@media (max-width: 768px) {
  .iconLeaves1 {
    width: auto;
  }
}

.iconLeaves2 {
  position: absolute;
  top: 60%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 134px;
}

@media (max-width: 768px) {
  .iconLeaves2 {
    width: auto;
  }
}

.maker {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px 34px 28px;
  background: #264437;
  border-radius: 16px;
  color: #fff;
}

.makerLink {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  color: #fff;
}

.makerLink > span {
  text-wrap: balance;
}

.makerLink:hover > span {
  text-decoration: underline;
}

.makerLink:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
  border-radius: 4px;
}

.makerLogo {
  flex: none;
  width: 64px;
  height: auto;
}

.makerCopyright {
  font-size: 13px;
  line-height: 1.5;
  color: #d4ddd7;
}

@media (min-width: 768px) and (max-width: 849px) {
  .maker {
    margin-right: 1rem;
  }
}

.subscribeContainer {
  position: relative;
  max-width: 326px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .subscribeContainer {
    max-width: 338px;
  }
}

@media (min-width: 1024px) {
  .subscribeContainer {
    grid-row: 1 / span 2;
    grid-column: 3;
  }
}

[data-theme="dark"] footer {
  background-color: var(--color-dark);
}

[data-theme="dark"] .footerLogo > p,
[data-theme="dark"] .footerNavList li {
  color: var(--color-light-main);
}

[data-theme="dark"] ul.footerNavList li a:hover {
  color: #75926e;
}

[data-theme="dark"] .darkLogo {
  display: none;
}

[data-theme="dark"] .lightLogo {
  display: block;
}

[data-theme="dark"] .socialIconLight {
  display: block;
}

[data-theme="dark"] .socialIconDark {
  display: none;
}

[data-theme="dark"] .socialIcons:hover,
[data-theme="dark"] .socialIcons :focus {
  background-color: #75926e;
}

[data-theme="dark"] input[type="text"] {
  background-color: var(--color-background-dark);
  border-color: var(--color-background-dark);
}

[data-theme="dark"] .btnScrollUp {
  background-color: rgba(225, 241, 221, 0.53);
}

[data-theme="dark"] .subscribe {
  background-color: #878d85;
}

@media (min-width: 768px) {
  .subscribe {
    margin-right: 1rem;
  }
}

@media (min-width: 850px) {
  .subscribe {
    margin-right: 0;
  }

  .iconLeaves1 {
    left: 93%;
  }
}
