:root {
  --bjc-green: #66b64b;
  --footer-bg: #0b0b0b;
  --footer-line: rgba(255, 255, 255, 0.15);
  --footer-text: rgba(255, 255, 255, 0.88);
  --footer-muted: rgba(255, 255, 255, 0.7);
}

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
}

.site-footer__top {
  padding: 56px 0 42px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.9fr 1.25fr;
  gap: 54px;
  align-items: start;
}

.footer-brand__logo {
  font-weight: 900;
  font-size: 74px;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--bjc-green);
  margin-bottom: 14px;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 8px;
}

.footer-contact__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--footer-text);
}

.footer-contact__row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}

.footer-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--footer-text);
  flex: 0 0 auto;
}

.footer-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--footer-text);
  opacity: 0.95;
}

.footer-link {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 16px;
}

.footer-link:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 26px;
  margin-top: 24px;
}

.social-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
}

.social-btn svg {
  width: 36px;
  height: 36px;
  fill: #fff;
  opacity: 0.95;
}

.footer-list__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.footer-list__link {
  display: block;
  padding: 8px 0;
  font-size: 18px;
  color: var(--footer-text);
  text-decoration: none;
}

.footer-list__link:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.footer-actions__link {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.footer-actions__link:hover {
  text-decoration: underline;
}

.footer-newsletter {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer-newsletter__title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 16px;
  text-align: left;
  width: 100%;
  color: #fff;
}

.footer-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-input {
  width: 100%;
  height: 56px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  outline: none;
  padding: 0 16px;
  font-size: 16px;
  background: #fff;
  color: #111;
}

.footer-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 16px;
  color: var(--footer-text);
}

.footer-check__box {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  accent-color: var(--bjc-green);
}

.footer-check__text {
  line-height: 1.35;
}

.footer-check__link {
  color: var(--bjc-green);
  text-decoration: none;
}

.footer-check__link:hover {
  text-decoration: underline;
}

.footer-btn {
  height: 64px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.footer-btn:hover {
  border-color: #fff;
}

.site-footer__bottom {
  border-top: 1px solid var(--footer-line);
  padding: 28px 0 34px;
}

.site-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
}

.footer-legal {
  max-width: 620px;
  color: var(--footer-muted);
  font-size: 16px;
  line-height: 1.6;
}

.footer-policies {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  justify-content: flex-end;
  text-align: right;
}

.footer-policy {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 18px;
  white-space: nowrap;
}

.footer-policy:hover {
  text-decoration: underline;
}

@media (max-width: 1200px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 42px;
  }
  .footer-col--right {
    grid-column: 1 / -1;
  }
  .footer-actions {
    align-items: flex-start;
  }
  .footer-newsletter {
    align-items: flex-start;
  }
  .footer-newsletter__title {
    max-width: 520px;
  }
  .footer-form {
    max-width: 520px;
  }
}

@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-col--right {
    grid-column: auto;
  }
  .footer-actions {
    align-items: flex-start;
  }
  .footer-newsletter {
    align-items: flex-start;
  }
  .footer-list__link {
    font-size: 20px;
  }
}

@media (max-width: 640px) {
  .site-footer__top {
    padding: 44px 0 34px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand__logo {
    font-size: 64px;
  }

  .footer-contact__title {
    font-size: 18px;
  }

  .footer-link {
    font-size: 16px;
  }

  .footer-list__title {
    font-size: 20px;
  }

  .footer-list__link {
    font-size: 18px;
  }

  .footer-newsletter__title {
    font-size: 22px;
  }

  .footer-check {
    font-size: 16px;
  }

  .footer-btn {
    height: 58px;
    font-size: 18px;
  }

  .site-footer__bottom-inner {
    flex-direction: column;
    gap: 18px;
  }

  .footer-policies {
    justify-content: flex-start;
    text-align: left;
    gap: 16px 18px;
  }

  .footer-policy {
    font-size: 16px;
    white-space: normal;
  }

  .footer-legal {
    font-size: 15px;
  }
}
