.pd-footer {
  width: 100%;
  background: var(--pd-color-footer);
  color: var(--pd-color-footer-text);
  font-family: var(--pd-font-sans);
}

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

.pd-footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 48px 24px 21px;
}

.pd-footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 2fr 1fr 0.9fr 0.8fr;
  gap: 46px;
}

.pd-footer-logo {
  width: 165px;
  height: auto;
  display: block;
  margin-bottom: 24px;
}

.pd-footer-brand p,
.pd-footer-newsletter p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}

.pd-footer-brand p {
  max-width: 280px;
}

.pd-social-icons {
  display: flex;
  gap: 20px;
  margin-top: 26px;
}

.pd-social-icons a,
.pd-footer-column a,
.pd-footer-bottom a {
  color: var(--pd-color-footer-text);
  text-decoration: none;
  font-weight: 500;
  text-transform: none;
}

.pd-footer h3 {
  margin: 0 0 18px;
  font-family: var(--pd-font-serif);
  font-size: 17px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.pd-footer-newsletter h3 {
  white-space: nowrap;
}

.pd-newsletter-form {
  margin-top: 26px;
}

.pd-newsletter-row {
  display: flex;
  gap: 12px;
}

.pd-newsletter-row input {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 4px;
  padding: 0 18px;
  color: var(--pd-color-footer-text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.pd-newsletter-row input::placeholder {
  color: #8aa08f;
}

.pd-newsletter-row button {
  height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 0 24px;
  background: #2f5b3f;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.pd-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
}

.pd-checkbox input {
  width: 16px;
  height: 16px;
}

.pd-footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pd-footer-column li {
  margin-bottom: 11px;
}

.pd-footer-column a,
.pd-footer-dropdown-btn,
.pd-footer-submenu a {
  color: var(--pd-color-footer-text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
  text-decoration: none;
  text-transform: none !important;
}

.pd-footer-dropdown {
  position: relative;
  z-index: 1;
}

.pd-footer-dropdown.is-open {
  z-index: 10;
}

.pd-footer-dropdown-btn {
  border: 0 !important;
  border-radius: 6px;
  margin: -5px -8px;
  padding: 5px 8px;
  background: transparent !important;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease;
}

.pd-footer-dropdown-btn:hover,
.pd-footer-dropdown-btn:active,
.pd-footer-dropdown-btn:focus {
  background: rgba(255, 255, 255, 0.3) !important;
  color: var(--pd-color-footer-text) !important;
  outline: none !important;
  box-shadow: none !important;
}

.pd-footer-dropdown-btn:focus-visible {
  outline: 2px solid rgba(36, 79, 52, 0.45) !important;
  outline-offset: 2px;
}

.pd-footer-arrow {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--pd-color-footer-text);
  border-bottom: 1.5px solid var(--pd-color-footer-text);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.pd-footer-dropdown.is-open .pd-footer-arrow {
  transform: translateY(3px) rotate(225deg);
}

.pd-footer-submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: -8px;
  z-index: 20;
  width: max-content;
  min-width: 210px;
  margin: 0;
  padding: 10px !important;
  overflow: visible;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-7px) scale(0.98);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(36, 79, 52, 0.12);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(36, 79, 52, 0.15);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.pd-footer-submenu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 22px;
  width: 11px;
  height: 11px;
  background: #ffffff;
  border-top: 1px solid rgba(36, 79, 52, 0.12);
  border-left: 1px solid rgba(36, 79, 52, 0.12);
  transform: rotate(45deg);
}

.pd-footer-dropdown.is-open .pd-footer-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.pd-footer-submenu li,
.pd-footer-submenu li + li {
  margin: 0;
}

.pd-footer-submenu a {
  position: relative;
  display: block;
  padding: 8px 10px;
  border-radius: 7px;
  transition: background 0.2s ease;
}

.pd-footer-submenu a:hover,
.pd-footer-submenu a:focus {
  background: rgba(188, 216, 190, 0.55);
  color: var(--pd-color-footer-text);
  outline: none;
}

.pd-footer-bottom {
  border-top: 1px solid rgba(36, 79, 52, 0.22);
  margin-top: 39px;
  padding-top: 17px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 13px;
  font-weight: 500;
}

.pd-footer-bottom a {
  border-left: 1px solid var(--pd-color-footer-text);
  padding-left: 28px;
}

@media (max-width: 1100px) {
  .pd-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pd-footer-newsletter h3 {
    white-space: normal;
  }
}

@media (max-width: 700px) {
  .pd-footer-inner {
    padding: 42px 22px 21px;
  }

  .pd-footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .pd-newsletter-row {
    flex-direction: column;
  }

  .pd-newsletter-row button {
    width: 100%;
  }

  .pd-footer-submenu {
    min-width: min(230px, calc(100vw - 44px));
  }

  .pd-footer-bottom {
    justify-content: flex-start;
    gap: 14px;
  }

  .pd-footer-bottom a {
    border-left: 0;
    padding-left: 0;
  }
}