@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.marg101-footer {
  width: 100%;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #f8fafc;
}

.marg101-footer * {
  box-sizing: border-box;
}

.marg101-footer-lead {
  background: #f6f8f5;
  border-top: 1px solid rgba(15, 26, 22, 0.08);
}

.marg101-footer-lead__inner {
  max-width: 1480px;
  margin: 0 auto;
  min-height: 136px;
  display: grid;
  grid-template-columns: 132px minmax(260px, 0.9fr) minmax(620px, 1.45fr);
  gap: clamp(22px, 3vw, 42px);
  align-items: center;
  padding: 16px clamp(28px, 5vw, 76px);
}

.marg101-footer-lead__visual {
  width: 112px;
  height: 112px;
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(15, 26, 22, 0.14);
}

.marg101-footer-lead__visual svg {
  display: block;
  width: 100%;
  height: 100%;
}

.marg101-footer-lead__eyebrow {
  margin: 0 0 5px;
  color: #2f7d3b;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.marg101-footer-lead__title {
  max-width: 430px;
  margin: 0;
  color: #111827;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
}

.marg101-footer-lead__text {
  max-width: 430px;
  margin: 8px 0 10px;
  color: #46524a;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.55;
}

.marg101-footer-lead__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.marg101-footer-lead__badges li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #37443c;
  font-size: 0.8rem;
  font-weight: 700;
}

.marg101-footer-lead__badges svg {
  width: 14px;
  height: 14px;
}

.marg101-footer-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 10px;
}

.marg101-footer-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.marg101-footer-form span {
  color: #374151;
  font-size: 0.76rem;
  font-weight: 800;
}

.marg101-footer-form input,
.marg101-footer-form select {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 4px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 0.88rem;
  outline: none;
}

.marg101-footer-form input:focus,
.marg101-footer-form select:focus {
  border-color: rgba(47, 125, 59, 0.55);
  box-shadow: 0 0 0 3px rgba(47, 125, 59, 0.12);
}

.marg101-footer-form button {
  align-self: end;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 0;
  border-radius: 5px;
  background: #5aa347;
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(47, 125, 59, 0.22);
}

.marg101-footer-main {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 64% 0%, rgba(47, 125, 59, 0.12), transparent 28%),
    linear-gradient(115deg, #10241f 0%, #0c1f1b 42%, #15221d 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.marg101-footer-main__inner {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(230px, 1.3fr) minmax(120px, 0.7fr) minmax(150px, 0.85fr) minmax(140px, 0.75fr) minmax(180px, 1fr) minmax(230px, 1.3fr);
  gap: clamp(22px, 3vw, 42px);
  padding: 22px clamp(28px, 5vw, 76px) 24px;
}

.marg101-footer-brand img {
  display: block;
  width: min(220px, 100%);
  height: auto;
  margin: 0 0 8px;
  filter: brightness(0) invert(1);
}

.marg101-footer-brand p {
  max-width: 300px;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
  line-height: 1.58;
}

.marg101-footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.marg101-footer-socials a {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.marg101-footer-socials a:hover {
  background: #2f7d3b;
  border-color: #2f7d3b;
}

.marg101-footer-socials svg {
  width: 15px;
  height: 15px;
}

.marg101-footer-col,
.marg101-footer-contact {
  min-width: 0;
}

.marg101-footer-col h3,
.marg101-footer-contact h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.marg101-footer-col a,
.marg101-footer-col span {
  display: block;
  width: fit-content;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
  line-height: 1.45;
  text-decoration: none;
}

.marg101-footer-col a:hover,
.marg101-footer-contact a:hover {
  color: #86efac;
}

.marg101-footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 11px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
  line-height: 1.48;
}

.marg101-footer-contact strong {
  color: #fff;
  font-weight: 800;
}

.marg101-footer-contact svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: #6fd256;
}

.marg101-footer-contact a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.marg101-footer-contact--right {
  padding-left: clamp(18px, 2vw, 32px);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.marg101-footer-legal {
  display: flex;
  gap: 18px;
  margin-top: 12px;
}

.marg101-footer-legal a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  text-decoration: none;
}

.marg101-footer-top {
  position: absolute;
  right: clamp(20px, 3vw, 38px);
  bottom: 18px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #4f9b43;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

@media (max-width: 1180px) {
  .marg101-footer-lead__inner {
    grid-template-columns: 104px 1fr;
  }

  .marg101-footer-form {
    grid-column: 1 / -1;
  }

  .marg101-footer-lead__visual {
    width: 96px;
    height: 96px;
  }

  .marg101-footer-main__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .marg101-footer-contact--right {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .marg101-footer-lead__inner {
    grid-template-columns: 1fr;
    padding: 22px 16px;
  }

  .marg101-footer-lead__visual {
    width: 86px;
    height: 86px;
  }

  .marg101-footer-form {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .marg101-footer-form button {
    width: 100%;
  }

  .marg101-footer-main__inner {
    grid-template-columns: 1fr;
    padding: 26px 16px 72px;
  }

  .marg101-footer-brand p {
    max-width: none;
  }

  .marg101-footer-top {
    right: 16px;
  }
}
