/* Figma dIR4Mx7AVYMvtN34DlBz2W — «Поддержка» 731:4742 desktop 1440 */

.page-support .main {
  background-color: #f5f6f7;
}

/* sticky у .support-nav ломается из-за overflow-x на html/body/.page — только на этой странице */
html:has(body.page-support),
body.page-support,
body.page-support .page {
  overflow-x: visible;
}

.hero-community--support .hero-community__title {
  top: 369px;
  width: 368px;
  max-width: calc(100% - var(--container-padding) * 2);
}

/* Hero CTA — Figma 1958:16354 / 1958:15081 / 1958:13813, скрыт на desktop 1440 */
.hero-community__cta--support {
  display: none;
  box-sizing: border-box;
  align-items: center;
  gap: 20px;
  height: 50px;
  padding: 0 4px 0 30px;
  border-radius: 2px;
  background-color: #ffffff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: #0c3eb3;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.hero-community__cta--support:hover,
.hero-community__cta--support:focus-visible {
  opacity: 0.92;
}

.hero-community__cta-icon {
  flex: none;
  width: 42px;
  height: 42px;
  background-color: #0c3eb3;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Crect width='8' height='8' fill='%23000'/%3E%3C/svg%3E") center / 8px 8px no-repeat;
}

/* Layout */
.support-page {
  padding-bottom: 80px;
}

.support-page__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 40px;
}

.support-page__layout {
  display: grid;
  grid-template-columns: 222px minmax(0, 1fr);
  gap: 123px;
  align-items: start;
  padding-top: 60px;
}

/* Side nav */
.support-nav {
  position: sticky;
  top: calc(var(--header-height, 80px) + 60px);
  align-self: start;
}

.support-nav__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 0 0 0 15px;
  list-style: none;
}

.support-nav__list::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 1px;
  height: calc(100% - 6px);
  background-color: #d9d9d9;
}

.support-nav__link {
  display: block;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #5f6062;
  text-decoration: none;
  transition: color 0.2s ease;
}

.support-nav__link:hover,
.support-nav__link:focus-visible {
  color: #0c3eb3;
}

.support-nav__link.is-active {
  color: #0c3eb3;
}

/* Content */
.support-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.support-section {
  scroll-margin-top: calc(var(--header-height, 80px) + 20px);
}

.support-section + .support-section {
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid #d9d9d9;
}

.support-section__title {
  margin: 0 0 30px;
  font-family: var(--font-heading);
  font-size: 50px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #212123;
}

.support-section__subtitle {
  margin: 0 0 20px;
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #212123;
}

.support-section__text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  color: #5f6062;
}

.support-section__text + .support-section__text,
.support-section__subtitle + .support-section__text {
  margin-top: 20px;
}

.support-section__block + .support-section__block {
  margin-top: 40px;
}

/* Bullet list */
.support-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 0;
  padding: 0 0 10px;
  list-style: none;
}

.support-list__item {
  position: relative;
  padding-left: 20px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  color: #5f6062;
}

.support-list__item::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: #0c3eb3;
}

.support-list--numbered {
  list-style: decimal;
  padding-left: 20px;
}

.support-list--numbered .support-list__item {
  padding-left: 0;
}

.support-list--numbered .support-list__item::before {
  display: none;
}

/* Link */
.support-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 20px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  color: #0c3eb3;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.support-link__icon {
  flex: none;
  width: 15px;
  height: 15px;
}

/* Contact table */
.support-contacts-table {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.support-contacts-table__row {
  display: grid;
  grid-template-columns: 439px minmax(0, 1fr);
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #d9d9d9;
}

.support-contacts-table__label {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  color: #5f6062;
}

.support-contacts-table__value {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  color: #5f6062;
}

.support-contacts-table__value a {
  color: #0c3eb3;
  text-decoration: none;
}

.support-contacts-table__value a:hover {
  text-decoration: underline;
}

.support-contacts-table__phone {
  color: #0c3eb3;
}

/* Form section */
.support-form-section {
  scroll-margin-top: calc(var(--header-height, 80px) + 20px);
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid rgba(13, 8, 64, 0.2);
}

.support-form-section__hint {
  margin: 0 0 20px;
  max-width: 533px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #212123;
}

.support-form-section__group-title {
  margin: 30px 0 20px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #212123;
}

.support-form-section__group-title:first-of-type {
  margin-top: 30px;
}

.support-form {
  max-width: 669px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.support-form > .support-form__select-wrap + .support-form__row,
.support-form > .support-form__input + .support-form__input,
.support-form > .support-form__input + .support-form__select-wrap,
.support-form > .support-form__select-wrap + .support-form__input,
.support-form > .support-form__input + .support-form__consent,
.support-form > .support-form__consent + .support-form__submit {
  margin-top: 20px;
}

.support-form__radios + .support-form-section__group-title,
.support-form__file + .support-form-section__group-title {
  margin-top: 30px;
}

.support-form__textarea + .support-form__file {
  margin-top: 20px;
}

.support-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

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

.support-form__input,
.support-form__select,
.support-form__textarea {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  border: none;
  border-radius: 2px;
  background-color: #ffffff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: #212123;
}

.support-form__input,
.support-form__select {
  height: 60px;
}

.support-form__input,
.support-form__textarea {
  padding: 10px 15px;
}

.support-form__input::placeholder,
.support-form__textarea::placeholder {
  color: #939ca6;
}

.support-form__input:disabled {
  background-color: rgba(255, 255, 255, 0.5);
  color: rgba(147, 156, 166, 0.4);
  cursor: not-allowed;
}

.support-form__input:disabled::placeholder {
  color: rgba(147, 156, 166, 0.4);
}

.support-form__textarea {
  min-height: 100px;
  height: 100px;
  padding: 15px;
  resize: vertical;
  line-height: 1.4;
}

.support-form__select-wrap {
  position: relative;
  width: 100%;
}

.support-form__select {
  appearance: none;
  padding: 10px 40px 10px 15px;
  cursor: pointer;
}

.support-form__select:invalid {
  color: #939ca6;
}

.support-form__select-icon {
  position: absolute;
  top: 50%;
  right: 15px;
  width: 10px;
  height: 6px;
  pointer-events: none;
  transform: translateY(-50%);
}

/* Radio */
.support-form__radios {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.support-form__radio {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 115px;
  height: 60px;
  padding: 10px 15px;
  border-radius: 4px;
  background-color: #ffffff;
  cursor: pointer;
}

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

.support-form__radio-text {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: #939ca6;
  transition: color 0.2s ease;
}

.support-form__radio-mark {
  flex: none;
  width: 20px;
  height: 20px;
  border: 1px solid #a6a8b6;
  border-radius: 50%;
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.support-form__radio-input:checked + .support-form__radio-text {
  color: #212123;
}

.support-form__radio-input:checked ~ .support-form__radio-mark {
  border-color: #0c3eb3;
  box-shadow: inset 0 0 0 5px #0c3eb3;
}

.support-form__radio:has(.support-form__radio-input:focus-visible) {
  outline: 2px solid #0c3eb3;
  outline-offset: 2px;
}

/* File */
.support-form__file {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.support-form__file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 10px 5px 10px 15px;
  border-radius: 4px;
  background-color: #ffffff;
}

.support-form__file-label {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  cursor: pointer;
}

.support-form__file-icon {
  flex: none;
  width: 24px;
  height: 24px;
  color: #0c3eb3;
}

.support-form__file-name {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.17;
  color: #0c3eb3;
}

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

.support-form__file-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 50px;
  padding: 16px 24px;
  border: none;
  border-radius: 2px;
  background-color: #0c3eb3;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: #ffffff;
  cursor: pointer;
}

.support-form__file-hint {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: #8a8e92;
}

.support-form__file-list:empty {
  display: none;
}

.support-form__file-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.support-form__file-item {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 2px;
  background-color: #ffffff;
}

.support-form__file-item-name {
  min-width: 0;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.2;
  color: #5f6062;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-form__file-remove {
  flex: none;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  color: #0c3eb3;
  cursor: pointer;
}

.support-form__file-remove:hover,
.support-form__file-remove:focus-visible {
  color: #092f86;
}

/* Consent */
.support-form__consent {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 630px;
  padding-left: 25px;
  cursor: pointer;
}

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

.support-form__consent-box {
  position: absolute;
  left: 0;
  top: 3px;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border: 1px solid #d6dbe0;
  border-radius: 2px;
  background-color: #ffffff;
}

.support-form__consent-input:checked + .support-form__consent-box {
  border-color: #0c3eb3;
  background-color: #0c3eb3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='7' viewBox='0 0 9 7' fill='none'%3E%3Cpath d='M1 3.25L3.5 5.75L8 1' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.support-form__consent-text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: #8a8e92;
}

.support-form__consent-text a {
  color: inherit;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.support-form__consent-text a:hover,
.support-form__consent-text a:focus-visible {
  color: #0c3eb3;
}

.support-form__submit {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  align-self: flex-start;
  gap: 20px;
  width: 261px;
  height: 50px;
  padding: 0 4px 0 30px;
  border: 1px solid #0c3eb3;
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  color: #0c3eb3;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.support-form__submit span:first-child {
  flex: none;
}

.support-form__submit-icon {
  flex: none;
  width: 8px;
  height: 8px;
  background-color: currentColor;
}

.support-form__submit:hover,
.support-form__submit:focus-visible {
  background-color: #0c3eb3;
  color: #ffffff;
}

/* Changelog strip */
.support-changelog {
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid rgba(13, 8, 64, 0.2);
}

.support-changelog__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 139px;
  padding: 40px;
  background-color: #00175e;
}

.support-changelog__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 50px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.support-changelog__btn {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  height: 50px;
  padding: 0 30px;
  border: 1px solid #ffffff;
  border-radius: 2px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.support-changelog__btn::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  background-color: #ffffff;
}

.support-changelog__btn:hover,
.support-changelog__btn:focus-visible {
  opacity: 0.85;
}

/* Responsive — Figma 1958:16354 (1024), 1958:15081 (768), 1958:13813 (375) */
@media (max-width: 1200px) {
  .support-page__layout {
    gap: 60px;
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .support-contacts-table__row {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}

/* 1024 */
@media (max-width: 1024px) {
  .page-support {
    --container-padding: 40px;
  }

  .hero-community--support,
  .hero-community--support .hero-community__content {
    height: 460px;
  }

  .hero-community--support .hero-community__content {
    position: relative;
    box-sizing: border-box;
  }

  .hero-community--support .hero-community__breadcrumbs {
    top: 80px;
    left: 40px;
    right: 40px;
  }

  .hero-community--support .hero-community__title {
    top: 274px;
    left: 40px;
    width: auto;
    max-width: calc(100% - 80px);
    font-size: 60px;
  }

  .hero-community__cta--support {
    display: inline-flex;
    position: absolute;
    left: 40px;
    bottom: 40px;
  }

  .support-nav {
    display: none;
  }

  .support-page__layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 40px;
  }

  .support-page__inner {
    padding-inline: 40px;
  }

  .support-section + .support-section,
  .support-form-section,
  .support-changelog {
    margin-top: 40px;
    padding-top: 40px;
  }

  .support-section__title {
    margin-bottom: 20px;
    font-size: 40px;
  }

  .support-section__subtitle {
    font-size: 24px;
  }

  .support-section__text,
  .support-list__item,
  .support-contacts-table__label,
  .support-contacts-table__value,
  .support-link,
  .support-form-section__hint,
  .support-form-section__group-title {
    font-size: 16px;
  }

  .support-list {
    gap: 10px;
  }

  .support-list__item {
    padding-left: 20px;
  }

  .support-list__item::before {
    top: 7px;
    width: 5px;
    height: 5px;
  }

  .support-contacts-table__row {
    grid-template-columns: 462px minmax(0, 1fr);
  }

  .support-form {
    max-width: none;
  }

  .support-changelog__inner {
    min-height: 139px;
    padding: 40px;
  }

  .support-changelog__title {
    font-size: 40px;
  }
}

/* 768 */
@media (max-width: 768px) {
  .hero-community--support .hero-community__title {
    top: 280px;
  }

  .support-contacts-table__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .support-form__row,
  .support-form__row--license {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* 375 — после responsive-375.css, переопределяет общие hero-правила */
@media (max-width: 687px) {
  .page-support {
    --container-padding: 15px;
  }

  .page-support .hero-community--support,
  .page-support .hero-community--support .hero-community__content {
    height: 460px;
    min-height: 460px;
  }

  .page-support .hero-community--support .hero-community__content {
    display: block;
    padding: 0;
  }

  .page-support .hero-community--support .hero-community__breadcrumbs {
    position: absolute;
    top: 80px;
    left: 15px;
    right: 15px;
    margin: 0;
    font-size: 12px;
    line-height: 1.33;
  }

  .page-support .hero-community--support .hero-community__title {
    position: absolute;
    top: 306px;
    left: 15px;
    width: auto;
    max-width: calc(100% - 30px);
    margin: 0;
    font-size: 40px;
  }

  .page-support .hero-community__cta--support {
    left: 15px;
    max-width: calc(100% - 30px);
  }

  .support-page__inner {
    padding-inline: 15px;
  }

  .support-form {
    max-width: 345px;
  }

  .support-form-section__hint {
    margin-bottom: 10px;
  }

  .support-form-section__group-title {
    margin: 20px 0 10px;
  }

  .support-form__input,
  .support-form__select {
    height: 50px;
    font-size: 14px;
  }

  .support-form__textarea {
    min-height: 120px;
    height: 120px;
    font-size: 14px;
    line-height: 1.2857;
  }

  .support-form > .support-form__select-wrap + .support-form__row,
  .support-form > .support-form__input + .support-form__input,
  .support-form > .support-form__input + .support-form__select-wrap,
  .support-form > .support-form__select-wrap + .support-form__input,
  .support-form > .support-form__input + .support-form__consent,
  .support-form > .support-form__consent + .support-form__submit {
    margin-top: 8px;
  }

  .support-form__radios + .support-form-section__group-title,
  .support-form__file + .support-form-section__group-title {
    margin-top: 20px;
  }

  .support-form__textarea + .support-form__file {
    margin-top: 8px;
  }

  .support-form__submit {
    width: fit-content;
    max-width: 100%;
    padding: 0 30px;
  }

  .support-section__title {
    font-size: 30px;
  }

  .support-section__text,
  .support-list__item,
  .support-contacts-table__label,
  .support-contacts-table__value,
  .support-form-section__hint,
  .support-form-section__group-title {
    font-size: 14px;
    line-height: 1.2857;
  }

  .support-list__item {
    padding-left: 15px;
  }

  .support-list__item::before {
    top: 6px;
  }

  .support-link {
    font-size: 14px;
  }

  .support-changelog__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    min-height: 193px;
    padding: 40px 20px;
  }

  .support-changelog__title {
    font-size: 30px;
  }
}
