/* Contacts page */
.breadcrumbs {
  color: #a4a8ad;
  font-size: 12px;
  line-height: 1.2;
}

.breadcrumbs a,
.breadcrumbs span {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs a,
.breadcrumbs .breadcrumb_last {
  min-height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  background: #eceef1;
  color: #a4a8ad;
}

.breadcrumbs .breadcrumb_last {
  color: #7d8288;
}

.contacts-hero {
  position: relative;
  overflow: hidden;
  padding: 24px 0;
}

.contacts-hero__breadcrumbs {
  margin-bottom: 72px;
}

.contacts-hero__grid {
  display: grid;
  grid-template-columns: 625px minmax(0, 1fr);
  gap: 78px;
  align-items: center;
}

.contacts-hero__content h1 {
  max-width: 625px;
  margin: 0 0 34px;
  font-size: clamp(42px, 3.85vw, 58px);
  line-height: .98;
  letter-spacing: -0.045em;
}

.contacts-hero__content p {
  max-width: 560px;
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  color: var(--color-muted);
}

.contacts-hero__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.contacts-hero__phone {
  display: block;
  width: min(100%, 600px);
  max-height: 600px;
  object-fit: contain;
  scale: 1.2;
}

.contacts-offices {
  padding: 42px 0;
}

.contacts-offices h2 {
  margin-bottom: 42px;
}

.contacts-offices__grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.contacts-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 370px;
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(12, 12, 12, .04);
}

.contacts-card__item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.32;
  transition: color .2s ease;
}

.contacts-card__item+.contacts-card__item,
.contacts-card__hours+.contacts-card__item {
  margin-top: 18px;
}

.contacts-card__item:hover {
  color: var(--color-accent);
}

.contacts-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f1f2f5;
  flex: 0 0 auto;
}

.contacts-card__icon img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.contacts-card__icon--max {
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
}

.contacts-card__icon--max img {
  width: 40px;
  height: 40px;
}

.contacts-card__hours {
  display: grid;
  gap: 5px;
  margin-top: 22px;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.25;
}

.contacts-card__hours strong {
  color: var(--color-text);
  font-weight: 700;
}

.contacts-map {
  min-height: 370px;
  overflow: hidden;
  border-radius: 18px;
  background: #e8edf1;
}

.contacts-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 370px;
  border: 0;
}

.contacts-form-section {
  padding: 80px 0;
}

.contacts-form {
  position: relative;
  top: 0;
  transform: translateY(0);
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 44px 42px 40px;
  border-radius: 18px;
  background: var(--color-accent);
  color: #fff;
}

.contacts-form h2 {
  margin: 0 0 26px;
  color: #fff;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.contacts-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(260px, 430px);
  gap: 16px;
  align-items: end;
}

.contacts-form__field {
  display: grid;
  gap: 8px;
}

.contacts-form__field span {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.contacts-form__field input {
  display: block;
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 8px;
  background: #f1f2f5;
  color: var(--color-text);
  padding: 0 16px;
  font-size: 17px;
  outline: none;
  transition: box-shadow .2s ease, background .2s ease;
}

.contacts-form__field input:focus {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .28);
}

.contacts-form__field input::placeholder {
  color: #b0b3b8;
}

.contacts-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: #0c0c0c;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease, background .2s ease, color .2s ease;
}

.contacts-form__submit:not(:disabled):hover {
  transform: translateY(-1px);
  background: #1d1d1d;
}

.contacts-form__submit:disabled {
  opacity: 1;
  background: #0c0c0cd4;
  color: #b0b3b8;
  cursor: not-allowed;
}

.contacts-form__agree {
  display: grid;
  grid-template-columns: 40px minmax(0, max-content);
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: max-content;
  max-width: 100%;
  margin: 18px auto 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.25;
  cursor: pointer;
}

.contacts-form__agree input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.contacts-form__check {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f1f2f5;
  box-shadow: inset 0 0 0 1px rgba(12, 12, 12, .06);
  transition: background .2s ease, box-shadow .2s ease;
}

.contacts-form__agree input:checked+.contacts-form__check {
  background: #0c0c0c;
  box-shadow: none;
}

.contacts-form__agree input:checked+.contacts-form__check::after {
  content: '';
  position: absolute;
  left: 14px;
  top: 8px;
  width: 9px;
  height: 18px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(45deg);
}

.contacts-form__bot-fields {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.contacts-form__message {
  display: none;
  margin-top: 18px;
  text-align: center;
  color: #fff;
  font-weight: 700;
}

.contacts-form__message.is-visible {
  display: block;
}

@media (max-width: 1180px) {
  .contacts-hero__grid {
    grid-template-columns: minmax(0, .95fr) minmax(300px, 1.05fr);
    gap: 42px;
  }

  .contacts-hero__breadcrumbs {
    margin-bottom: 56px;
  }

  .contacts-hero__phone {
    width: min(100%, 560px);
  }

  .contacts-offices__grid {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .contacts-form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contacts-form__submit {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .contacts-hero {
    padding-bottom: 48px;
  }

  .contacts-hero__grid,
  .contacts-offices__grid {
    grid-template-columns: 1fr;
  }

  .contacts-hero__media {
    min-height: auto;
  }

  .contacts-hero__phone {
    width: min(100%, 520px);
    height: auto;
    max-height: 520px;
  }

  .contacts-card {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .contacts-hero {
    padding: 20px 0 42px;
  }

  .contacts-hero__breadcrumbs {
    margin-bottom: 36px;
  }

  .contacts-hero__grid {
    gap: 30px;
  }

  .contacts-hero__content h1 {
    margin-bottom: 24px;
    font-size: clamp(36px, 11vw, 48px);
  }

  .contacts-hero__content p {
    font-size: 16px;
  }

  .contacts-offices {
    padding: 36px 0 54px;
  }

  .contacts-offices h2 {
    margin-bottom: 24px;
  }

  .contacts-map,
  .contacts-map iframe {
    min-height: 320px;
  }

  .contacts-form-section {
    padding-bottom: 46px;
  }

  .contacts-form {
    padding: 30px 20px 28px;
    border-radius: 16px;
  }

  .contacts-form__row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contacts-form__agree {
    width: 100%;
    grid-template-columns: 40px 1fr;
    justify-content: start;
    margin-top: 18px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .contacts-card {
    padding: 20px;
  }

  .contacts-card__item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    font-size: 14px;
  }

  .contacts-card__icon {
    width: 36px;
    height: 36px;
  }

  .contacts-card__icon img {
    width: 20px;
    height: 20px;
  }

  .contacts-card__icon--max img {
    width: 36px;
    height: 36px;
  }
}