.site-footer {
  --footer-blue: #1654ff;
  --footer-form: #eef4ff;
  --footer-text: #111827;
  --footer-muted: rgba(255, 255, 255, 0.78);
  padding: 92px 0 72px;
  color: #ffffff;
  background: var(--footer-blue);
  font-family: "Manrope", sans-serif;
}

.footer-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(560px, 1fr);
  gap: 92px;
  align-items: start;
  width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  display: inline-flex;
  width: 194px;
  margin-bottom: 42px;
}

.footer-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.footer-contact-stack {
  display: grid;
  gap: 28px;
}

.footer-contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--footer-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  text-decoration: none;
}

.footer-contact-item span:last-child {
  margin-top: 8px;
}

.footer-contact-item:hover,
.footer-contact-item:focus {
  color: #ffffff;
}

.footer-address p {
  margin: 0;
}

.footer-address-mobile {
  display: none;
}

.footer-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: fit-content;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.footer-contact-icon img {
  display: block;
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.footer-links {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 28px;
  margin-top: 76px;
  padding-left: 49px;
}

.footer-links h3 {
  margin: 0 0 20px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.footer-links a {
  display: block;
  width: max-content;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #ffffff;
}

.footer-form-card {
  width: 100%;
  border-radius: 16px;
  background: var(--footer-form);
  color: var(--footer-text);
}

.footer-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
  padding: 40px 48px;
}

.footer-field {
  display: grid;
  gap: 13px;
}

.footer-field label {
  color: #1d2433;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.footer-field input,
.footer-field select {
  width: 100%;
  min-height: 34px;
  padding: 0 2px 12px;
  border: 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 0;
  outline: 0;
  color: #1d2433;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
}

.footer-field input::placeholder,
.footer-field select:invalid {
  color: rgba(17, 24, 39, 0.55);
}

.footer-field input:focus,
.footer-field select:focus {
  border-color: var(--footer-blue);
}

.footer-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23111827' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px top 6px;
  background-size: 10px auto;
}

.footer-field select:disabled {
  color: #1d2433;
  cursor: default;
  opacity: 1;
}

.footer-field.is-invalid input,
.footer-field.is-invalid select {
  border-color: #d92d20;
}

.footer-consent {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0;
  color: rgba(17, 24, 39, 0.72);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: 0.1px;
}

.footer-consent input {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  accent-color: var(--footer-blue);
}

.footer-submit {
  position: relative;
  display: inline-flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: #204cc7;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  transition: background-color 0.22s ease, transform 0.22s ease;
}

.footer-submit:hover,
.footer-submit:focus {
  background: #00339c;
  transform: translateY(-1px);
}

.footer-submit:disabled {
  cursor: default;
  opacity: 0.78;
  transform: none;
}

.footer-submit.is-submitting {
  pointer-events: none;
}

.footer-submit.is-submitting img,
.footer-submit.is-submitting .footer-submit-desktop,
.footer-submit.is-submitting .footer-submit-mobile {
  opacity: 0;
}

.footer-submit.is-submitting::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
  animation: footer-submit-spin 0.75s linear infinite;
}

@keyframes footer-submit-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.footer-submit img {
  display: none;
  width: 15px;
  height: 15px;
  margin-right: 10px;
}

.footer-submit-mobile {
  display: none;
}

.footer-form-status {
  grid-column: 1 / -1;
  min-height: 16px;
  margin: -14px 0 24px;
  color: #204cc7;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.footer-form-status:empty {
  display: none;
}

.careers-application-form {
  padding-bottom: 34px;
}

.careers-application-form .careers-upload-field {
  grid-column: 1 / -1;
  gap: 10px;
}

.careers-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.careers-upload-dropzone,
.careers-uploaded-file {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  width: 100%;
  border: 1px solid #c4c4c4;
  border-radius: 16px;
  background: transparent;
  color: #1d2433;
  text-align: center;
}

.careers-upload-dropzone {
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
}

.careers-upload-dropzone:focus {
  outline: 2px solid rgba(22, 84, 255, 0.22);
  outline-offset: 3px;
}

.careers-upload-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.careers-upload-title span {
  color: var(--footer-blue);
}

.careers-upload-note {
  color: rgba(17, 24, 39, 0.62);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.careers-uploaded-file {
  gap: 20px;
  padding: 18px;
}

.careers-uploaded-file span {
  display: inline-grid;
  gap: 6px;
  min-width: 0;
}

.careers-uploaded-file strong {
  font-size: 16px;
  line-height: 1.3;
}

.careers-uploaded-file [data-career-file-name] {
  color: rgba(17, 24, 39, 0.66);
  font-size: 14px;
}

.careers-uploaded-file button {
  border: 0;
  background: transparent;
  color: var(--footer-blue);
  font-size: 28px;
  line-height: 1;
}

.careers-application-form .footer-field.is-invalid .careers-upload-dropzone,
.careers-application-form .footer-field.is-invalid .careers-uploaded-file {
  border-color: #d92d20;
}

.footer-mobile-bottom {
  display: none;
}

@media (max-width: 1919px) and (min-width: 1440px) {
  .footer-wrapper {
    width: 1200px;
    grid-template-columns: minmax(0, 410px) minmax(540px, 1fr);
    gap: 130px;
  }
}

@media (max-width: 1439px) and (min-width: 1024px) {
  .footer-wrapper {
    width: 1100px;
    grid-template-columns: minmax(0, 380px) minmax(520px, 1fr);
    gap: 54px;
  }

  .footer-form {
    padding: 36px 38px 32px;
  }
}

@media (max-width: 1023px) and (min-width: 768px) {
  .footer-wrapper {
    width: 700px;
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .footer-info {
    max-width: 520px;
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding: 50px 0;
  }

  .footer-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 0 24px;
  }

  .footer-info {
    display: block;
    margin-bottom: 40px;
  }

  .footer-brand {
    width: 118px;
    margin-bottom: 24px;
  }

  .footer-contact-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 30px;
  }

  .footer-contact-stack {
    gap: 20px;
  }

  .footer-contact-item {
    gap: 10px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
  }

  .footer-address-desktop {
    display: none;
  }

  .footer-address-mobile {
    display: block;
    max-width: 330px;
  }

  .footer-contact-icon {
    width: fit-content;
    height: fit-content;
    flex-basis: 22px;
  }

  .footer-contact-icon img {
    width: 25px;
    height: 25px;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 70px;
    max-width: none;
    margin-top: 40px;
    padding-left: 0;
  }

  .footer-links h3 {
    margin-bottom: 14px;
    font-size: 16px;
    font-weight: 600;
  }

  .footer-links a {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 400;
  }

  .footer-form-card {
    border-radius: 16px;
  }

  .footer-form {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 26px 20px;
  }

  .footer-field {
    gap: 12px;
  }

  .footer-field label {
    font-size: 14px;
    font-weight: 600;
  }

  .footer-field input,
  .footer-field select {
    min-height: 31px;
    padding-bottom: 11px;
    font-size: 12px;
    font-weight: 500;
  }

  .footer-consent {
    gap: 10px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.55;
  }

  .footer-submit {
    min-height: 44px;
    margin-top: 2px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
  }

  .footer-submit img {
    display: none;
  }

  .footer-submit-desktop {
    display: none;
  }

  .footer-submit-mobile {
    display: inline;
  }

  .footer-form-status {
    margin: -8px 0 18px;
    font-size: 10px;
  }

  .careers-application-form {
    padding-bottom: 24px;
  }

  .careers-upload-dropzone,
  .careers-uploaded-file {
    min-height: 112px;
    border-radius: 14px;
  }

  .careers-upload-title,
  .careers-uploaded-file strong {
    font-size: 14px;
  }

  .careers-upload-note,
  .careers-uploaded-file [data-career-file-name] {
    font-size: 12px;
  }

  .footer-mobile-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 18px 0 0;
    color: #ffffff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 auto;
  }

  .footer-mobile-bottom a {
    position: relative;
    color: #ffffff;
    text-decoration: none;
  }

  .footer-mobile-bottom a::before {
    position: absolute;
    top: 50%;
    left: -14px;
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.22);
    content: "";
    transform: translateY(-50%);
  }

  .brand-mark img{
    width: 200px;
    height: 30px;
  }
}

@media (max-width: 374px) {
  .footer-wrapper {
    padding: 0 16px;
  }
}
