/* Contacts Page Styles */

.contacts-hero {
  background-color: var(--color-gray-light);
  padding-top: 40px;
  padding-bottom: 40px;
}

.contacts-hero__title {
  margin: 0 0 30px;
  text-align: left;
  font-size: 25px;
  line-height: 1.5;
  color: #33302E;
}

.contacts-service-card {
  background: #fff;
  border: 2px solid var(--color-orange-light);
  border-radius: 16px;
  padding: 28px 20px;
}

.contacts-service-card__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.contacts-service-card__main {
  display: grid;
  gap: 10px;
}

.contacts-service-card__phone {
  font-family: Magistral, sans-serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.5;
  color: var(--color-orange-light);
  margin: 0;
}

.contacts-service-card__label {
  font-family: Magistral, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: #33302E;
  margin: 0;
}

.contacts-service-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.contacts-service-feature {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
}

.contacts-service-feature__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.contacts-service-feature__title {
  font-family: Rubik, sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.5;
  color: #33302E;
  margin: 0 0 2px;
}

.contacts-service-feature__text {
  font-family: Rubik, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
  color: #33302E;
  margin: 0;
}

.contacts-departments {
  margin-top: 18px;
  background: #fff;
  border: 2px solid #EBECF0;
  border-radius: 16px;
  padding: 30px 20px;
}

.contacts-departments__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.contacts-department__title {
  font-family: Magistral, sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.5;
  color: #33302E;
  margin: 0 0 14px;
}

.contacts-department__list {
  margin: 0 0 14px;
  padding-left: 21px;
  font-family: Rubik, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: #33302E;
}

.contacts-department__list li {
  margin-bottom: 6px;
}

.contacts-department__list li:last-child {
  margin-bottom: 0;
}

.contacts-department__mail {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.contacts-department__mail-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.contacts-department__mail-text {
  font-family: Rubik, sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  color: var(--color-orange-light);
}

.contacts-department__mail:hover .contacts-department__mail-text {
  opacity: 0.85;
}

/* === Client office === */

.contacts-office {
  padding-top: 40px;
  padding-bottom: 40px;
  background: #fff;
}

.contacts-office__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.contacts-office__title {
  font-family: Magistral, sans-serif;
  font-weight: 700;
  font-size: 25px;
  line-height: 1.5;
  color: #33302E;
  margin: 0 0 20px;
}

.contacts-office__list {
  margin: 0 0 24px;
  padding-left: 21px;
  font-family: Rubik, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: #33302E;
}

.contacts-office__list li {
  margin-bottom: 6px;
}

.contacts-office__list li:last-child {
  margin-bottom: 0;
}

.contacts-office__items {
  display: grid;
  gap: 20px;
  max-width: 440px;
}

.contacts-office-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
}

.contacts-office-item__icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  display: block;
}

.contacts-office-item__title {
  font-family: Magistral, sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: #33302E;
  margin: 0 0 6px;
}

.contacts-office-item__subtitle {
  font-family: Rubik, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: #33302E;
  margin: 0;
}

.contacts-office-item__text {
  font-family: Rubik, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: #33302E;
  margin: 0;
}

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

.contacts-office-item a:hover {
  color: var(--color-orange-light);
}

.contacts-map {
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  background: #eee;
}

.contacts-map__box {
  width: 100%;
  height: 375px;
}

.contacts-map__fallback {
  display: none;
  padding: 24px;
  font-family: Rubik, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #33302E;
}

.contacts-map.is-fallback .contacts-map__box {
  display: none;
}

.contacts-map.is-fallback .contacts-map__fallback {
  display: block;
}

/* Tablet: 768–1919px */
@media (min-width: 768px) {
  .contacts-hero {
    padding-top: 80px;
    padding-bottom: 60px;
  }

  .contacts-hero__title {
    font-size: 52px;
    margin-bottom: 50px;
  }

  .contacts-service-card {
    padding: 46px 40px;
  }

  .contacts-service-card__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .contacts-service-card__phone {
    font-size: 44px;
  }

  .contacts-service-card__label {
    font-size: 20px;
  }

  .contacts-service-features {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .contacts-service-feature__title,
  .contacts-service-feature__text {
    font-size: 14px;
  }

  .contacts-departments {
    padding: 40px;
  }

  .contacts-departments__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .contacts-department__title {
    font-size: 24px;
  }

  .contacts-department__list {
    font-size: 16px;
    padding-left: 24px;
  }

  .contacts-office {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .contacts-office__title {
    font-size: 40px;
    margin-bottom: 30px;
  }

  .contacts-office__list {
    font-size: 16px;
    padding-left: 24px;
  }

  .contacts-map__box {
    height: 577px;
  }
}

/* Desktop: 1200–1919px */
@media (min-width: 1200px) {
  .contacts-hero__title {
    text-align: center;
  }

  .contacts-service-card__grid {
    grid-template-columns: 393px 1fr;
    gap: 60px;
    align-items: start;
  }

  .contacts-service-features {
    align-content: start;
  }

  .contacts-office__grid {
    grid-template-columns: minmax(380px, 440px) minmax(0, 1fr);
    align-items: start;
    gap: 60px;
  }
}

/* Full width: 1920px+ */
@media (min-width: 1920px) {
  .contacts-hero__title {
    text-align: center;
  }

  .contacts-service-card__grid {
    grid-template-columns: 1fr;
  }

  .contacts-office__grid {
    grid-template-columns: 440px 1fr;
    align-items: start;
    gap: 60px;
  }

  .contacts-map {
    border-radius: 0;
  }

  .contacts-map__box {
    height: 577px;
  }
}

