.site-footer {
  background-color: var(--color-section-bg);
  border-top: 1px solid var(--color-footer-text);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3.125vw, 60px);
  padding: clamp(24px, 2.4vw, 46px) 0;
}

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

.footer-form__title {
  margin: 0;
  max-width: 100%;
  font-size: clamp(40px, 3vw, 48px);
  line-height: 1.16;
  color: var(--color-heading);
}

.footer-form__cf7 .wpcf7 form {
  margin: 0;
}

.footer-form__cf7 input[type='submit'] {
  border: none;
}

.footer-form__cf7 {
  width: 100%;
  max-width: 1266px;
}

.footer-form__cf7 .footer-form-cf7__layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

.footer-form__cf7 .footer-form-cf7__fields {
  flex: 0 0 901px;
  width: 901px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.footer-form__cf7 .footer-form-cf7__row {
  display: flex;
  gap: 24px;
  width: 100%;
}

.footer-form__cf7 .footer-form-cf7__field {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 80px;
  padding: 16px 24px;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.footer-form__cf7 .footer-form-cf7__field .wpcf7-form-control-wrap {
  width: 100%;
}

.footer-form__cf7 .footer-form-cf7__input {
  width: 100%;
  border: none;
  background-color: transparent;
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.36;
  color: var(--color-secondary-text);
}

.footer-form__cf7 .footer-form-cf7__input:focus {
  outline: none;
}

.footer-form__cf7 .footer-form-cf7__input::placeholder {
  color: var(--color-secondary-text);
  opacity: 1;
}

.footer-form__cf7 .footer-form-cf7__actions {
  width: 341px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-form__cf7 .footer-form-cf7__submit,
.footer-form__cf7 .wpcf7-submit {
  width: 100%;
  min-height: 80px;
  padding: 24px 48px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--color-primary-text);
  background-color: var(--color-secondary-btn);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-button);
  border: none;
  appearance: none;
}

.footer-form__cf7 .footer-form-cf7__submit:hover,
.footer-form__cf7 .wpcf7-submit:hover {
  background-color: var(--color-border);
}

.footer-form__cf7 .footer-form-cf7__note {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.48;
  color: var(--color-secondary-text);
  text-align: center;
}

.footer-form__cf7 .footer-form-cf7__consent,
.footer-form__cf7 .footer-form-cf7__consent .wpcf7-acceptance,
.footer-form__cf7 .footer-form-cf7__consent .wpcf7-list-item,
.footer-form__cf7 .footer-form-cf7__consent label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-form__cf7 .footer-form-cf7__consent .wpcf7-list-item {
  margin: 0;
}

.footer-form__cf7 .footer-form-cf7__consent input[type='checkbox'] {
  width: 24px;
  height: 24px;
  border: 1px solid #E5E0EB;
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  appearance: none;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.footer-form__cf7 .footer-form-cf7__consent input[type='checkbox']:checked {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.footer-form__cf7 .footer-form-cf7__consent input[type='checkbox']:checked::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 7px;
  height: 12px;
  border-right: 2px solid var(--color-white);
  border-bottom: 2px solid var(--color-white);
  transform: rotate(45deg);
}

.footer-form__cf7 .footer-form-cf7__consent .wpcf7-list-item-label {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.36;
  color: var(--color-secondary-text);
}

.footer-form__cf7 .wpcf7 form .wpcf7-response-output {
  margin: 12px 0 0;
  font-family: var(--font-secondary);
  font-size: 14px;
  line-height: 1.4;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 2.08vw, 40px);
}

.footer-content__grid {
  --bs-gutter-x: 24px;
  --bs-gutter-y: 24px;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-brand__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}

.footer-brand__logo-text {
  display: flex;
  flex-direction: column;
}

.footer-brand__name {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: 24px;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--color-primary-text);
}

.footer-brand__subtitle {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: var(--fz-logo-sub);
  line-height: var(--lh-logo-sub);
  color: var(--color-primary-text);
}

.footer-brand__legal {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand__line {
  margin: 0;
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: var(--fz-footer);
  line-height: 1.36;
  color: var(--color-secondary-text);
}

.footer-links,
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links__title,
.footer-contacts__title {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.34;
  color: var(--color-accent);
}

.footer-links__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links__list li {
  display: flex;
}

.footer-links__list a {
  display: inline-flex;
  width: 100%;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-primary-text);
  transition: color 0.2s ease;
}

.footer-links__list a:hover {
  color: var(--color-accent);
}

.footer-links__list--docs a {
  padding: 10px 0;
  line-height: 1.6;
}

.footer-contacts__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-contacts__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contacts__label {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: var(--fz-footer);
  line-height: 1.6;
  color: var(--color-secondary-text);
}

.footer-contacts__phone-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-contacts__phone {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.34;
  color: var(--color-primary-text);
}

.footer-contacts__phone:hover {
  color: var(--color-accent);
}

.footer-contacts__schedule,
.footer-contacts__address {
  margin: 0;
}

.footer-contacts__schedule {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-secondary-text);
}

.footer-contacts__address {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.34;
  color: var(--color-primary-text);
}

.footer-contacts__messengers {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-contacts__messenger-link img {
  width: 64px;
  height: 64px;
}

.footer-contacts__messenger-link {
  display: inline-flex;
  transition: opacity 0.2s ease;
}

.footer-contacts__messenger-link:hover {
  opacity: 0.8;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer-bottom__copyright {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: var(--fz-footer);
  line-height: 1.6;
  color: var(--color-secondary-text);
}

.footer-bottom__dev {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-bottom__dev-text {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: var(--fz-footer);
  line-height: 1.36;
  color: var(--color-secondary-text);
}

.footer-bottom__dev-link {
  display: inline-flex;
}

@media (min-width: 1400px) {
  .footer-content__col {
    flex: 0 0 auto;
  }

  .footer-content__col--brand {
    width: 378px;
  }

  .footer-content__col--nav,
  .footer-content__col--popular,
  .footer-content__col--docs {
    width: 244px;
  }

  .footer-content__col--contacts {
    width: 378px;
  }
}

@media (max-width: 1199.98px) {
  .footer-form__cf7 .footer-form-cf7__layout {
    flex-direction: column;
  }

  .footer-form__cf7 .footer-form-cf7__fields {
    width: 100%;
    flex: 1 1 auto;
  }

  .footer-form__cf7 .footer-form-cf7__actions {
    width: 100%;
    max-width: 420px;
    align-items: flex-start;
  }

  .footer-form__cf7 .footer-form-cf7__submit {
    padding: 20px 32px;
  }

  .footer-form__cf7 .footer-form-cf7__note {
    text-align: left;
  }

  .footer-contacts__content {
    gap: 24px;
  }
}

@media (max-width: 991.98px) {
  .site-footer__inner {
    gap: 32px;
  }

  .footer-form {
    gap: 20px;
  }

  .footer-form__title {
    font-size: clamp(30px, 5vw, 40px);
    line-height: 1.18;
  }

  .footer-form__cf7 .footer-form-cf7__fields,
  .footer-form__cf7 .footer-form-cf7__row {
    gap: 16px;
  }

  .footer-form__cf7 .footer-form-cf7__field,
  .footer-form__cf7 .footer-form-cf7__submit,
  .footer-form__cf7 .wpcf7-submit {
    min-height: 64px;
    padding: 14px 20px;
  }

  .footer-content__grid {
    --bs-gutter-x: 16px;
    --bs-gutter-y: 20px;
  }

  .footer-brand,
  .footer-brand__legal {
    gap: 16px;
  }

  .footer-links,
  .footer-contacts {
    gap: 12px;
  }

  .footer-links__title,
  .footer-contacts__title,
  .footer-contacts__phone,
  .footer-contacts__address {
    font-size: clamp(18px, 3vw, 22px);
  }

  .footer-links__list a {
    font-size: 18px;
    line-height: 1.42;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 767.98px) {
  .site-footer__inner {
    gap: 24px;
    padding: 22px 0;
  }

  .footer-form {
    gap: 16px;
  }

  .footer-form__title {
    font-size: clamp(26px, 7.2vw, 32px);
    line-height: 1.2;
  }

  .footer-form__cf7 .footer-form-cf7__row {
    flex-direction: column;
    gap: 10px;
  }

  .footer-form__cf7 .footer-form-cf7__fields {
    gap: 12px;
  }

  .footer-form__cf7 .footer-form-cf7__field,
  .footer-form__cf7 .footer-form-cf7__submit,
  .footer-form__cf7 .wpcf7-submit {
    min-height: 56px;
    padding: 12px 16px;
  }

  .footer-form__cf7 .footer-form-cf7__submit,
  .footer-form__cf7 .wpcf7-submit {
    font-size: 16px;
    line-height: 1.4;
  }

  .footer-form__cf7 .footer-form-cf7__consent .wpcf7-list-item-label {
    font-size: 14px;
    line-height: 1.35;
  }

  .footer-links__list a {
    font-size: 16px;
  }

  .footer-links__list--docs a {
    padding: 8px 0;
  }

  .footer-contacts__content {
    gap: 18px;
  }

  .footer-contacts__label,
  .footer-contacts__schedule,
  .footer-bottom__copyright,
  .footer-bottom__dev-text {
    font-size: 14px;
    line-height: 1.4;
  }

  .footer-contacts__address {
    font-size: 18px;
    line-height: 1.34;
  }

  .footer-contacts__messenger-link img {
    width: 48px;
    height: 48px;
  }

  .footer-bottom__dev-link img {
    width: 140px;
    height: auto;
  }
}

@media (max-width: 575.98px) {
  .site-footer__inner {
    padding: 18px 0;
  }

  .footer-content__col--docs {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .footer-form__cf7 .footer-form-cf7__actions {
    max-width: 100%;
  }

  .footer-form__cf7 .footer-form-cf7__consent input[type='checkbox'] {
    width: 20px;
    height: 20px;
  }

  .footer-form__cf7 .footer-form-cf7__consent input[type='checkbox']:checked::after {
    left: 5px;
    top: 1px;
  }

  .footer-contacts__messenger-link img {
    width: 44px;
    height: 44px;
  }
}
