/* ========== Contacts page ========== */

/* --- Hero --- */
.contacts-hero {
  background: #f5f6f7;
  padding-top: 25px;
  padding-bottom: 25px;
  margin-bottom: 30px;
}

.contacts-hero__inner.trv-container {
  box-sizing: border-box;
}

.contacts-hero__crumbs {
  margin: 0 0 16px;
  color: #9aa0a6;
  font-size: 13px;
  line-height: 1.3;
}

.contacts-hero__crumbs a {
  color: #9aa0a6;
  text-decoration: none;
}

.contacts-hero__crumbs a:hover {
  color: #4e5459;
}

.contacts-hero__crumbs span {
  color: #4e5459;
}

.contacts-hero__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.contacts-hero__text {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 720px;
}

.contacts-hero__title {
  margin: 0 0 15px;
  color: #1d1d1b;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
}

.contacts-hero__brand-fun {
  color: #e73039;
}

.contacts-hero__brand-sun {
  color: #fecc0f;
}

.contacts-hero__desc {
  margin: 0;
  color: #4e5459;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}

.contacts-hero__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 16px;
}

.contacts-hero__socs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contacts-hero__soc {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  transition: transform 0.2s linear;
}

.contacts-hero__soc:hover {
  transform: scale(1.1);
}

.contacts-hero__soc img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.contacts-hero__call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: #fecc0f;
  color: #1d1d1b;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.contacts-hero__call:hover {
  filter: brightness(0.97);
}

/* Phone popup */
.contacts-phone-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10060;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.contacts-phone-popup.is-open {
  display: flex;
}

.contacts-phone-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 29, 27, 0.45);
}

.contacts-phone-popup__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  padding: 28px 24px 22px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  border-top: 4px solid #fecc0f;
}

.contacts-phone-popup__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #9aa0a6;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.contacts-phone-popup__title {
  margin: 0 0 16px;
  color: #1d1d1b;
  font-size: 20px;
  font-weight: 700;
}

.contacts-phone-popup__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contacts-phone-popup__list a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid #ececec;
  border-radius: 8px;
  color: #1d1d1b;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.contacts-phone-popup__list a:hover {
  border-color: #fecc0f;
  background: #fffdf3;
}

.contacts-phone-popup__num {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.contacts-phone-popup__hint {
  color: #9aa0a6;
  font-size: 13px;
}

/* --- Requisites (внутри таба офиса) --- */
.contacts-req {
  background: #f5f6f7;
  border-radius: 12px;
  padding: 40px;
  box-sizing: border-box;
}

.contacts-req__eyebrow {
  margin: 0 0 8px;
  color: #e73039;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.contacts-req__title {
  margin: 0 0 28px;
  color: #1d1d1b;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  text-transform: uppercase;
}

.contacts-req__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
  margin-bottom: 24px;
}

.contacts-req__col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contacts-req__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e4e6e8;
}

.contacts-req__row--director {
  margin-bottom: 20px;
}

.contacts-req__label {
  color: #9aa0a6;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
  flex: 0 1 auto;
}

.contacts-req__value {
  color: #1d1d1b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
  flex: 1 1 auto;
  word-break: break-word;
}

.contacts-req__address {
  margin: 0;
  padding: 18px 20px;
  border-radius: 8px;
  background: #fff;
  color: #1d1d1b;
  font-size: 14px;
  line-height: 1.45;
}

.contacts-req__address strong {
  font-weight: 700;
}

/* --- Offices: contacts + map + photo + requisites per tab --- */
.contacts-offices-section {
  margin: 0 0 30px;
}

.contacts-offices-section__inner.trv-container {
  box-sizing: border-box;
}

.contacts-offices__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}

.contacts-offices__title {
  margin: 0;
  color: #1d1d1b;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.contacts-offices__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contacts-offices__tab {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: #f5f6f7;
  color: #4e5459;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.contacts-offices__tab:hover {
  background: #eceef0;
}

.contacts-offices__tab.is-active {
  background: #e73039;
  color: #fff;
}

.contacts-offices__panel[hidden] {
  display: none !important;
}

.contacts-offices__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}

.contacts-offices__card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(29, 29, 27, 0.06);
  box-sizing: border-box;
}

.contacts-offices__label {
  margin: 0 0 6px;
  color: #9aa0a6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.contacts-offices__value {
  margin: 0;
  color: #1d1d1b;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
}

.contacts-offices__value a {
  color: #1d1d1b;
  text-decoration: none;
}

.contacts-offices__value a:hover {
  color: #e73039;
}

.contacts-offices__value--mail a {
  color: #e73039;
}

.contacts-offices__muted {
  color: #9aa0a6;
  font-weight: 400;
  font-size: 14px;
}

.contacts-offices__socs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.contacts-offices__soc {
  display: inline-flex;
  width: 40px;
  height: 40px;
  transition: transform 0.2s linear;
}

.contacts-offices__soc:hover {
  transform: scale(1.1);
}

.contacts-offices__soc img {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
}

.contacts-offices__media {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.contacts-offices__map-wrap {
  position: relative;
  min-height: 280px;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f6f7;
  flex: 1 1 auto;
}

.contacts-offices__map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

.contacts-offices__map-card {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  max-width: calc(100% - 32px);
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.contacts-offices__map-card-title {
  margin: 0 0 4px;
  color: #1d1d1b;
  font-size: 15px;
  font-weight: 700;
}

.contacts-offices__map-card-text {
  margin: 0 0 10px;
  color: #9aa0a6;
  font-size: 13px;
  line-height: 1.35;
}

.contacts-offices__map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  background: #e73039;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
}

.contacts-offices__pano {
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #e8eaed;
}

.contacts-offices .contacts-req {
  margin-top: 10px;
}

@media screen and (max-width: 991px) {
  .contacts-hero__title {
    font-size: 36px;
  }

  .contacts-hero__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .contacts-req {
    padding: 28px 24px;
  }

  .contacts-req__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contacts-req__title {
    font-size: 24px;
  }

  .contacts-offices__title {
    font-size: 26px;
  }

  .contacts-offices__grid {
    grid-template-columns: 1fr;
  }

  .contacts-offices__map-wrap,
  .contacts-offices__map {
    min-height: 260px;
  }
}

@media screen and (max-width: 575px) {
  .contacts-hero__title {
    font-size: 28px;
  }

  .contacts-hero__actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .contacts-hero__call {
    width: 100%;
  }

  .contacts-req {
    padding: 22px 16px;
  }

  .contacts-offices__tab {
    flex: 1 1 auto;
    padding: 0 10px;
    font-size: 13px;
  }

  .contacts-offices__card {
    padding: 20px 16px;
  }

  .contacts-offices__map-card {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
  }
}
