/* Support page — BEM block `support` */

:root {
  --page-gutter: 12px;
}

.support {
  width: 100%;
  background-color: #f2f2f2;
}

.support__inner {
  width: 100%;
  max-width: 1425px;
  margin-left: auto;
  margin-right: auto;
  padding: 80px 105px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.support__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.support__info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
}

.support__header {
  display: flex;
  flex-direction: column;
  gap: 50px;
  width: 100%;
}

.support__title {
  margin: 0;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: 89px;
  line-height: 1.1;
  color: #051133;
}

.support__lead {
  margin: 0;
  max-width: 930px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  color: #051133;
}

.support__channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.support__channels-item {
  margin: 0;
  padding: 0;
  list-style: none;
}

.support__channel {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.support__channel-icon {
  flex: 0 0 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  color: #0040bf;
  margin-top: 0.1rem;
  transition: color 0.2s ease-in-out;
}

.support__channel:hover .support__channel-icon,
.support__channel:hover .support__channel-label {
  color: #ff840b;
}

.support__channel-label {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.4;
  color: #0040bf;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 4px;
  transition: color 0.2s ease-in-out, text-decoration-color 0.2s ease-in-out;
}

.support__channel:hover .support__channel-label {
  text-decoration-color: #ff840b;
}

.support__form-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.support__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.support__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.support__label {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  color: #051133;
}

.support__input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.75rem 1rem;
  color: #051133;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  background-color: #ffffff;
  border: 1px solid rgba(5, 17, 51, 0.12);
  border-radius: 7px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.support__input--textarea {
  min-height: 9rem;
  resize: vertical;
}

.support__input:hover {
  border-color: rgba(5, 17, 51, 0.22);
}

.support__input:focus {
  border-color: #0040bf;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 64, 191, 0.12);
}

.support__input::placeholder {
  color: rgba(5, 17, 51, 0.45);
}

.support__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.25rem 0 0;
  cursor: pointer;
}

.support__checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.support__checkbox-box {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  border: 1px solid rgba(5, 17, 51, 0.12);
  border-radius: 4px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.support__consent:hover .support__checkbox-box {
  border-color: rgba(5, 17, 51, 0.22);
}

.support__checkbox:checked + .support__checkbox-box {
  background-color: #0040bf;
  border-color: #0040bf;
}

.support__checkbox:checked + .support__checkbox-box::after {
  content: '';
  width: 0.35rem;
  height: 0.625rem;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -0.125rem;
}

.support__checkbox:focus-visible + .support__checkbox-box {
  border-color: #0040bf;
  box-shadow: 0 0 0 3px rgba(0, 64, 191, 0.12);
}

.support__consent-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #051133;
}

.support__link {
  color: #0040bf;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 2px;
  transition: color 0.2s ease-in-out, text-decoration-color 0.2s ease-in-out;
}

.support__link:hover {
  color: #ff840b;
  text-decoration-color: #ff840b;
}

.support__submit-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 0.5rem;
}

.support__submit {
  background-color: #0040bf;
  color: #ffffff;
  border: none;
  padding: 14px 26px;
  border-radius: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.42px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.support__submit:hover {
  background-color: #ff840b;
}

@media screen and (max-width: 1410px) {
  .support__inner {
    padding: 80px 40px;
    gap: 40px;
  }

  .support__header {
    gap: 2rem;
  }

  .support__layout {
    gap: 48px;
  }
}

@media screen and (max-width: 1200px) and (min-width: 768px) {
  .support__inner {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media screen and (max-width: 1200px) {
  .support__inner {
    align-items: center;
  }

  .support__layout {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 40px;
    width: 100%;
  }

  .support__info {
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 1215px;
    margin-left: auto;
    margin-right: auto;
  }

  .support__title,
  .support__lead {
    text-align: center;
    width: 100%;
  }

  .support__lead {
    max-width: none;
  }

  .support__channels {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    width: 100%;
  }

  .support__channels-item {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .support__form-wrap {
    width: 100%;
    max-width: 35rem;
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width: 767px) {
  .support__inner {
    padding: 4rem var(--page-gutter);
    gap: 2rem;
  }

  .support__header {
    gap: 1.5rem;
  }

  .support__title {
    font-size: 2rem;
    line-height: 1.1;
  }

  .support__lead {
    font-size: 1rem;
    line-height: 1.2;
  }

  .support__channels {
    grid-template-columns: minmax(0, 1fr);
  }

  .support__submit {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.2px;
    box-sizing: border-box;
  }
}
