/* Страница «Контакты» — макет Figma node 1:2036, форма 1:2206 */

.page-hero--contacts {
  padding: 0 0 32px;
  background: var(--color-white);
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.contacts-hero__banner {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  aspect-ratio: 1440 / 360;
  max-height: 360px;
  min-height: 220px;
  background-color: #fff;
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.contacts-hero__banner .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-self: stretch;
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  min-height: 100%;
  flex-direction: column;
}

.contacts-hero__content {
  position: relative;
  z-index: 1;
  max-width: min(42%, 480px);
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.link {
    width: 264px;
    margin: 10px 0;
    padding: 15px 0px;
}

.contacts-hero__title {
  margin: 0 0 12px;
  font-size: 48px;
  font-weight: 700;
  line-height: 55px;
  color: var(--color-primary);
}

.contacts-info-section {
  padding-top: 8px;
  padding-bottom: 48px;
}

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contacts-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.contacts-info__card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  border-radius: 20px;
  background-color: #F0F2F6;
  width: 100%;
  min-height: 157px;
  height: auto;
  box-sizing: border-box;
}

.contacts-info__icon {
  flex-shrink: 0;
  width: 136px;
  height: 136px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.contacts-info__icon--address {
  background-image: url("../images/calendar-clock%201%20(2).png");
}

.contacts-info__icon--phone {
  background-image: url("../images/calendar-clock%201%20(4).png");
  width: 95px;
  height: 95px;
}

.contacts-info__icon--email {
  background-image: url("../images/calendar-clock%201%20(3).png");
  width: 106px;
  height: 106px;
}

.contacts-info__icon--hours {
  background-image: url("../images/calendar-clock%201%20(1).png");
  width: 77px;
  height: 77px;
}

.contacts-info__body {
  min-width: 0;
}

.contacts-info__label {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-primary-dark);
}

.contacts-info__value {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
}

.contacts-info__value a {
  color: var(--color-primary);
  text-decoration: underline;
}

.contacts-info__value a:hover {
  color: var(--color-primary-dark);
}

.contacts-form-section {
  padding-top: 0;
  padding-bottom: 48px;
}

.contacts-form-section .form-notice {
  margin-bottom: 24px;
}

.contacts-form-section__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.45fr;
  gap: 24px;
  align-items: stretch;
}

.contacts-form-box {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 1.05fr);
  gap: 28px 36px;
  align-items: start;
  padding: 36px 40px;
  background: #326ea3;
  color: var(--color-white);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(26, 61, 92, 0.12);
}

.contacts-form-box__lead {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  max-width: 260px;
}

.contacts-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.contacts-form__field input {
  height: 40px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 6px;
  background: var(--color-white);
  color: var(--color-text);
  font: inherit;
  font-size: 15px;
}

.contacts-form__field textarea {
  height: 79px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 6px;
  background: var(--color-white);
  color: var(--color-text);
  font: inherit;
  font-size: 15px;
}

.contacts-form__field input::placeholder,
.contacts-form__field textarea::placeholder {
  color: #94a3b8;
}

.contacts-form__field input:focus,
.contacts-form__field textarea:focus {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 1px;
}

.contacts-form__field textarea {
  min-height: 100px;
  resize: vertical;
}

.contacts-form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
}

.contacts-form__consent {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  max-width: 340px;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.contacts-form__consent input {
  margin-top: 3px;
  flex-shrink: 0;
}

.contacts-form__consent a {
  color: #9ec9ef;
  text-decoration: underline;
}

.contacts-form__submit {
  flex-shrink: 0;
  min-width: 220px;
  width: auto;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contacts-form-section .btn--submit {
  border: 0;
  background: #2d9cdb;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.contacts-form-section .btn--submit:hover {
  background: #3aadf0;
}

.contacts-cta-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 40px;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(26, 61, 92, 0.12);
  background: linear-gradient(160deg, #4a9fd4 0%, #326ea3 100%);
  color: var(--color-white);
}

.contacts-cta-box__icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.contacts-cta-box__icon-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contacts-cta-box__icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.contacts-cta-box__text {
  max-width: 280px;
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.55;
}

.contacts-cta-box__btn {
  min-width: 220px;
}

.contacts-map-section {
  padding-top: 0;
  padding-bottom: 64px;
}

.contacts-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.contacts-map__frame {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
}

@media (max-width: 1024px) {
  .contacts-info {
    grid-template-columns: 1fr;
  }

  .contacts-info__card {
    min-height: 0;
    padding: 20px;
  }

  .contacts-info__icon {
    width: 88px;
    height: 88px;
  }

  .contacts-info__icon--phone {
    width: 72px;
    height: 72px;
  }

  .contacts-info__icon--email {
    width: 72px;
    height: 72px;
  }

  .contacts-info__icon--hours {
    width: 64px;
    height: 64px;
  }

  .contacts-form-section__grid {
    grid-template-columns: 1fr;
  }

  .contacts-form-box {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .contacts-form-box__lead {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .contacts-info__card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 16px;
  }

  .contacts-info__icon {
    width: 64px;
    height: 64px;
  }

  .contacts-info__icon--phone,
  .contacts-info__icon--email {
    width: 56px;
    height: 56px;
  }

  .contacts-info__icon--hours {
    width: 48px;
    height: 48px;
  }

  .contacts-form-box,
  .contacts-cta-box {
    padding: 28px 24px;
  }

  .contacts-form__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .contacts-form__submit {
    width: 100%;
    min-width: 0;
  }

  .contacts-map__frame {
    min-height: 320px;
  }
}
