/* Страница «Контакты» — адаптив: Figma 6145:11586, 6598:5859, 6598:6191, 6598:6855, 6598:7166 */

.contacts-page {
  color: #5a5b6c;
  padding-bottom: 140px;
}

.contacts-page__title-wrap {
  padding-top: 150px;
  padding-bottom: 70px;
}

.contacts-page__title {
  color: #5a5b6c;
}

.contacts-page__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px 135px;
}

.contacts-page__main {
  flex: 0 1 322px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contacts-page__main-heading {
  margin: 0;
  color: #5a5b6c;
}

.contacts-page__legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #5a5b6c;
}

.contacts-page__legal p {
  margin: 0;
}

.contacts-page__aside {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 69px;
}

.contacts-page__contacts-block {
  display: grid;
  gap: 26px;
}

.contacts-page__contacts-heading {
  margin: 0;
  color: #5a5b6c;
}

.contacts-page__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contacts-page__row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.contacts-page__icon {
  flex-shrink: 0;
  width: 39px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contacts-page__icon-img {
  display: block;
  width: 39px;
  height: auto;
  max-width: 100%;
}

.contacts-page__value {
  margin: 0;
  font-size: 28px;
  font-weight: 400;
  line-height: 36px;
  color: #5a5b6c;
}

.contacts-page__value a {
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) {
  .contacts-page__value a:hover {
    opacity: 0.85;
  }
}

.contacts-page__address {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: #5a5b6c;
}

.contacts-page__address b,
.contacts-page__address strong {
  font-weight: 700;
}

.contacts-page__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 123px;
  align-items: flex-start;
}

.contacts-page__bottom-col {
  display: grid;
  gap: 30px;
}

.contacts-page__social-heading,
.contacts-page__opt-heading {
  margin: 0;
  color: #5a5b6c;
}

.contacts-page__social-icons {
  display: flex;
  gap: 30px;
  align-items: center;
}

.contacts-page__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity 0.2s ease-out;
}

.contacts-page__social-img {
  display: block;
  width: 39px;
  height: 39px;
}

@media (hover: hover) {
  .contacts-page__social-link:hover {
    opacity: 0.85;
  }
}

.contacts-page__opt-link {
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  color: #5a5b6c;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (hover: hover) {
  .contacts-page__opt-link:hover {
    opacity: 0.85;
  }
}

/* Планшет / средняя ширина: узлы 6598:5859, 6598:6191 */
@media (max-width: 1199px) and (min-width: 901px) {
  .contacts-page {
    padding-bottom: 105px;
  }

  .contacts-page__title-wrap {
    padding-bottom: 56px;
  }

  .contacts-page__grid {
    gap: 40px 86px;
  }
}

/* Мобильная вёрстка: 6598:6855, 6598:7166 */
@media (max-width: 900px) {
  .contacts-page {
    padding-bottom: 80px;
  }

  .contacts-page__title-wrap {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .contacts-page .title.title--1 {
    font-size: 58px;
    line-height: 58px;
  }

  .contacts-page__grid {
    flex-direction: column;
    gap: 40px;
  }

  .contacts-page__main {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
  }

  .contacts-page__aside {
    gap: 40px;
    width: 100%;
  }

  .contacts-page__bottom {
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .contacts-page__row {
    align-items: flex-start;
  }

  .contacts-page__value {
    white-space: normal;
  }
}

/* Веб-форма контактов — Figma node 6509:13985 */

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

.contacts-form-section {
  background: #e6e7ed;
  color: #5a5b6c;
}

.contacts-form-section__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 58px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 100px 24px;
  box-sizing: border-box;
}

.contacts-form-section__intro {
  flex: 1 1 280px;
  max-width: 662px;
  min-width: 0;
}

.contacts-form-intro {
  margin: 0;
}

.contacts-form-intro__muted {
  margin: 0 0 0;
  font-size: 46px;
  font-weight: 400;
  line-height: 52px;
  color: #acaeb8;
}

.contacts-form-intro__accent {
  margin: 0;
  font-size: 46px;
  font-weight: 400;
  line-height: 52px;
  color: #5a5b6c;
}

.contacts-form-section__form {
  flex: 0 1 460px;
  width: 100%;
  max-width: 460px;
  min-width: 0;
}

.contacts-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  width: 100%;
}

.contacts-form__field {
  position: relative;
  width: 100%;
}

.contacts-form__input {
  box-sizing: border-box;
  width: 100%;
  height: 50px;
  padding: 14px 21px 15px;
  border: 1px solid #fff;
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: #5a5b6c;
  outline: none;
  transition: box-shadow 0.2s ease-out;
}

.contacts-form__input::placeholder {
  color: #5a5b6c;
  opacity: 0.5;
}

.contacts-form__input:focus {
  box-shadow: 0 0 0 1px #868bab;
}

.contacts-form__field .iti {
  width: 100%;
  display: block;
}

.contacts-form__field .iti__flag-container {
  border-radius: 10px 0 0 10px;
}

.contacts-form__field .iti__selected-flag {
  padding: 0 10px 0 14px;
  border-radius: 10px 0 0 10px;
}

.contacts-form__input--phone.iti__tel-input {
  padding-left: 58px;
  border-radius: 10px;
}

.contacts-form__fieldset {
  margin: 0;
  padding: 3px 0 0;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contacts-form__option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 21px;
}

.contacts-form__option label {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #5a5b6c;
  cursor: pointer;
}

.contacts-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.contacts-form__consent label,
.contacts-form__consent .contacts-form__consent-label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #acaeb8;
  cursor: pointer;
}

.contacts-form__consent label a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Чекбоксы «как связаться» — прежний вид */
.contacts-form__option .contacts-form__checkbox {
  appearance: none;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  border: 2px solid rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  /* background: #fff; */
  cursor: pointer;
  transition: background 0.15s ease-out, box-shadow 0.15s ease-out;
}

.contacts-form__option .contacts-form__checkbox:checked {
  background: #000;
  box-shadow: inset 0 0 0 4px #fff;
}

/* Согласие на обработку данных — как чекбокс в модалке партнёра */
.contacts-form__consent .contacts-form__checkbox {
  appearance: none;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  border: 2px solid rgba(90, 91, 108, 0.6);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease-out, box-shadow 0.15s ease-out;
}

.contacts-form__consent .contacts-form__checkbox:checked {
  background: #5a5b6c;
  box-shadow: inset 0 0 0 2px #e6e7ed;
}

.contacts-form__option .contacts-form__checkbox:focus-visible,
.contacts-form__consent .contacts-form__checkbox:focus-visible {
  outline: 2px solid #868bab;
  outline-offset: 2px;
}

.contacts-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.contacts-form__submit.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 30px;
  border: none;
  border-radius: 50px;
  background: #868bab;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  cursor: pointer;
  transition: opacity 0.2s ease-out;
}

@media (hover: hover) {
  .contacts-form__submit.btn:hover {
    opacity: 0.9;
  }
}

.contacts-form__submit.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.contacts-form-section__errors {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 24px;
  color: #c00;
  font-size: 14px;
  line-height: 1.4;
}

.contacts-form-section__note {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px;
  font-size: 16px;
  line-height: 1.5;
  color: #5a5b6c;
}

.contacts-form-section__note + .contacts-form-section {
  margin-top: 0;
}

.contacts-form__field-error {
  position: absolute;
  left: 0;
  top: -2px;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23c00'%3E%3Cpath d='M8 1a7 7 0 100 14A7 7 0 008 1zm.5 10h-1V7h1v4zm0-5.5h-1v-1h1v1z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.contacts-form__field--captcha {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.contacts-form-modal {
  padding: 8px 4px;
  max-width: 400px;
  color: #5a5b6c;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

.contacts-form-modal p,
.contacts-form-modal .notetext {
  margin: 0;
}

.contacts-form-modal__text {
  margin: 0;
}

/* Форма: широкий планшет 6598:5859 — padding 100px, колонки gap 38px */
@media (max-width: 1199px) and (min-width: 1024px) {
  .contacts-form-section__inner {
    padding: 100px 20px;
    gap: 38px;
  }
}

/* Форма: узкий планшет 6598:6191 — padding 60px, текст 36px/44px */
@media (max-width: 1023px) and (min-width: 901px) {
  .contacts-form-section__inner {
    padding: 60px 20px;
    gap: 38px;
  }

  .contacts-form-intro__muted,
  .contacts-form-intro__accent {
    font-size: 36px;
    line-height: 44px;
  }
}

/* Форма: мобильная колонка 6598:6855 */
@media (max-width: 900px) {
  .contacts-form-section__inner {
    flex-direction: column;
    padding: 60px 20px;
    gap: 38px;
  }

  .contacts-form-section__intro {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
  }

  .contacts-form-section__form {
    max-width: none;
    width: 100%;
  }

  .contacts-form-intro__muted,
  .contacts-form-intro__accent {
    font-size: 36px;
    line-height: 44px;
  }

  .contacts-form__submit.btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .contacts-form__option {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Узкий экран: 6598:7166 — текст формы 20px/24px */
@media (max-width: 420px) {
  .contacts-form-section__inner {
    padding: 60px 16px;
  }

  .contacts-form-intro__muted,
  .contacts-form-intro__accent {
    font-size: 20px;
    line-height: 24px;
  }
}
