/* Контакты */

.contact-hero,
.contact-channels {
  background: var(--color-bg);
}

.contact-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 56px 64px 26px;
}

.contact-hero__eyebrow,
.contact-channels__eyebrow,
.contact-question__eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1.68px;
  text-transform: uppercase;
  color: var(--color-accent);
}

.contact-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 700;
  line-height: 78.4px;
  text-transform: uppercase;
}

.contact-hero__lead {
  max-width: 560px;
  margin: 0;
  padding-top: 2px;
  font-size: 18px;
  line-height: normal;
  color: var(--color-muted);
}

.contact-hero__aside {
  display: none;
}

.contact-channels__inner {
  display: flex;
  align-items: stretch;
  gap: 28px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 40px 64px 72px;
}

.contact-channels__head {
  display: none;
}

.contact-channels__media {
  position: relative;
  flex: 0 0 346px;
  width: 346px;
}

.contact-channels__accent {
  position: absolute;
  top: -14px;
  left: -4.04%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 14px;
  background: var(--color-accent);
}

.contact-channels__frame {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 433px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--color-line);
  box-shadow: 0 16px 40px rgba(13, 12, 11, 0.18);
}

.contact-channels__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.contact-channels__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: linear-gradient(to top, rgba(13, 12, 11, 0.88), rgba(13, 12, 11, 0));
  color: #fff;
}

.contact-channels__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 27.3px;
  text-transform: uppercase;
}

.contact-channels__note {
  margin: 0;
  font-size: 13px;
  line-height: 20.15px;
}

.contact-channels__grid {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: var(--color-surface);
  box-shadow: 0 1px 2px rgba(13, 12, 11, 0.08);
  color: inherit;
}

.contact-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.contact-card__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 41px;
  border-radius: 8px;
  background: #fbeaeb;
}

.contact-card__glyph {
  display: block;
}

.contact-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 19.55px;
  text-transform: uppercase;
}

.contact-card__text {
  margin: 0;
  font-size: 12.5px;
  line-height: 18.13px;
  color: var(--color-muted);
}

.contact-card__action {
  margin-top: auto;
  padding-top: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.36px;
  text-transform: uppercase;
  color: var(--color-accent);
}

.page-contacts .locations {
  background: #f5f4f3;
}

.contact-question__inner {
  display: flex;
  align-items: center;
  gap: 56px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 74px 64px 76px;
}

.contact-question__copy {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.contact-question__eyebrow {
  line-height: 16px;
}

.contact-question__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 59px;
  text-transform: uppercase;
}

.contact-question__lead {
  max-width: 420px;
  margin: 0;
  padding-top: 3px;
  font-size: 16px;
  line-height: 25.6px;
  color: var(--color-muted);
}

.contact-question__points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 12px 0 0;
  list-style: none;
}

.contact-question__points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 19px;
  color: var(--color-muted);
}

.contact-question__points li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
}

.contact-form {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 29px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: var(--color-surface);
  box-shadow: 0 16px 20px rgba(13, 12, 11, 0.18);
}

.contact-form__row {
  display: flex;
  gap: 16px;
}

.contact-form__field {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.contact-form__label {
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.48px;
  text-transform: uppercase;
  color: var(--color-muted);
}

.contact-form__input,
.contact-form__select {
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  background: var(--color-surface);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: var(--color-ink);
}

.contact-form__input::placeholder {
  color: #757575;
}

.contact-form__select {
  height: 50px;
  padding: 12px 30px 12px 18px;
  line-height: 22px;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1.15 5 4.85 9 1.15' stroke='%2347423e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 6px;
}

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__input:focus-visible,
.contact-form__select:focus-visible {
  outline: 0;
  border-color: var(--color-accent);
}

.contact-form__check {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 18px;
  padding-left: 4px;
  font-size: 12.5px;
  line-height: 18px;
  color: var(--color-muted);
}

.contact-form__check input {
  flex: none;
  width: 13px;
  height: 13px;
  margin: 0;
  border: 1px solid #767676;
  border-radius: 2.5px;
  background: #fff;
  appearance: none;
}

.contact-form__check input:checked {
  border-color: var(--color-accent);
  background: var(--color-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='7' fill='none'%3E%3Cpath d='M1 3.2 3.2 5.5 8 1' stroke='%23fff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 9px 7px no-repeat;
}

.contact-form__check input:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.contact-form__submit {
  width: 100%;
  height: 53px;
  min-height: 53px;
  padding: 0 28px;
  border-radius: 8px;
  font-size: 14px;
  letter-spacing: 0.56px;
  line-height: 19px;
}

@media (max-width: 1100px) {
  .contact-channels__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-channels__media {
    flex-basis: auto;
    width: min(346px, 100%);
  }

  .contact-channels__frame {
    height: auto;
  }
}

@media (max-width: 1024px) {
  .contact-hero__inner {
    padding: 48px 32px 24px;
  }

  .contact-hero__title {
    font-size: 64px;
    line-height: 0.98;
  }

  .contact-channels__inner,
  .contact-question__inner {
    padding-right: 32px;
    padding-left: 32px;
  }

  .contact-question__inner {
    align-items: stretch;
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

@media (max-width: 768px) {
  .contact-hero__inner {
    gap: 7px;
    padding: 24px 20px 28px;
  }

  .contact-hero__eyebrow,
  .contact-channels__eyebrow,
  .contact-question__eyebrow {
    font-size: 11px;
    letter-spacing: 0.66px;
  }

  .contact-hero__title {
    font-size: 24px;
    line-height: 25.92px;
  }

  .contact-hero__lead {
    max-width: none;
    padding-top: 3px;
    font-size: 14px;
  }

  .contact-hero__aside {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 13px;
  }

  .contact-hero__shot {
    position: relative;
    flex: none;
    width: 150px;
  }

  .contact-hero__accent {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 105px;
    height: 105px;
    border-radius: 8px;
    background: var(--color-accent);
  }

  .contact-hero__photo {
    position: relative;
    z-index: 1;
    display: block;
    width: 150px;
    height: 187.5px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(13, 12, 11, 0.1);
  }

  .contact-hero__copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .contact-hero__note {
    margin: 0;
    font-size: 13px;
    line-height: 19.5px;
    color: var(--color-muted);
  }

  .contact-hero__more {
    align-self: flex-start;
    margin-top: 12px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--color-accent);
    font-size: 12.5px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-accent);
  }

  .contact-hero__more:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
  }

  .contact-channels__inner {
    flex-direction: column;
    gap: 7px;
    padding: 40px 20px;
  }

  .contact-channels__head {
    display: flex;
    flex-direction: column;
    gap: 7px;
  }

  .contact-channels__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    line-height: 26px;
    text-transform: uppercase;
  }

  .contact-channels__media {
    display: none;
  }

  .contact-channels__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-top: 7px;
  }

  .contact-card {
    gap: 7px;
    padding: 17px;
  }

  .contact-card__icon {
    height: 40px;
  }

  .contact-card__glyph {
    transform: scale(0.8);
  }

  .contact-question {
    background: #f5f4f3;
  }

  .contact-question__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    padding: 40px 20px;
  }

  .contact-question__copy {
    gap: 7px;
  }

  .contact-question__title {
    font-size: 22px;
    line-height: 25.3px;
  }

  .contact-question__lead {
    max-width: none;
    padding-top: 1px;
    font-size: 13px;
    line-height: normal;
  }

  .contact-question__points {
    gap: 8px;
    padding-top: 7px;
  }

  .contact-question__points li {
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    line-height: 19.5px;
  }

  .contact-question__points li::before {
    margin-top: 6px;
  }

  .contact-form {
    gap: 14px;
    padding: 32px 21px 21px;
    box-shadow: 0 6px 10px rgba(13, 12, 11, 0.1);
  }

  .contact-form__row {
    flex-direction: column;
  }

  .contact-form__check {
    align-items: flex-start;
    height: auto;
    line-height: 17.5px;
  }

  .contact-form__check input {
    margin-top: 2px;
  }

  .page-contacts .locations {
    background: #fff;
  }

  .page-contacts .locations__title {
    line-height: 26px;
  }

  .page-contacts .locations__map {
    height: 249px;
  }

  .page-contacts .locations__list {
    padding-top: 9px;
  }

  .page-contacts .locations__card {
    gap: 12px;
    padding: 15.25px 16px;
  }

  .page-contacts .locations__card-main {
    align-items: flex-start;
    gap: 12px;
  }

  .page-contacts .locations__dot {
    width: 8px;
    height: 8px;
    margin-top: 6px;
  }

  .page-contacts .locations__name {
    font-size: 15px;
    font-weight: 600;
    line-height: 22px;
  }

  .page-contacts .locations__address {
    font-size: 12.5px;
    line-height: 18px;
    white-space: nowrap;
  }

  .page-contacts .locations__break {
    display: none;
  }

  .page-contacts .locations__more {
    width: 7px;
    height: 11px;
    overflow: hidden;
    font-size: 0;
    line-height: 0;
    opacity: 1;
    background: center / 7px 11px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='%23be1e2d' d='M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z'/%3E%3C/svg%3E");
  }
}
