.of-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--of-hero-img);
  background-size: cover;
  background-position: 50% 40%;
  opacity: .26;
}

.of-hero > .container {
  position: relative;
  z-index: 1;
}

.of-offices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-bottom: clamp(20px, 16px + .8vw, 32px);
}

.of-office {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 30px 28px;
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-r);
  background: #fff;
  box-shadow: 0 2px 10px rgba(12, 28, 52, .04);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.of-office:hover {
  transform: translateY(-3px);
  border-color: rgba(48, 96, 168, .3);
  box-shadow: 0 20px 42px rgba(12, 28, 52, .11);
}

.of-office__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.of-office__ico {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--tp-blue-soft), #dbe6f6);
  color: var(--tp-blue);
}

.of-office__ico svg { width: 22px; height: 22px; }

.of-office__badge {
  font-family: GothamPro-Medium;
  font-size: 12.5px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--tp-gold);
}

.of-office__addr {
  margin: 0;
  font-family: GothamPro-Medium;
  font-size: clamp(17px, 15px + .3vw, 19px);
  line-height: 1.35;
  color: var(--tp-ink);
}

.of-office__meta {
  display: grid;
  gap: 6px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--tp-text);
}

.of-office__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.of-btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid var(--tp-line);
  border-radius: 50px;
  background: rgba(48, 96, 168, .05);
  font-family: GothamPro-Medium;
  font-size: 14px;
  color: var(--tp-blue-deep);
  transition: background .3s, border-color .3s, color .3s, transform .3s, box-shadow .3s;
}

.of-btn-sm svg { width: 17px; height: 17px; }

.of-btn-sm:hover {
  border-color: transparent;
  background: linear-gradient(135deg, #3f74c4, var(--tp-blue));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(48, 96, 168, .26);
}

.of-map {
  position: relative;
  aspect-ratio: 16 / 8;
  min-height: 320px;
  border: 1px solid var(--tp-line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(12, 28, 52, .12);
}

@media (max-width: 767px) {
  .of-map { aspect-ratio: 4 / 5; }
}

.of-contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.of-contact {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 26px 24px;
  border: 1px solid var(--tp-line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.of-contact:hover {
  transform: translateY(-3px);
  border-color: rgba(48, 96, 168, .3);
  box-shadow: 0 18px 38px rgba(12, 28, 52, .1);
}

.of-contact__label {
  margin-bottom: 5px;
  font-family: GothamPro-Medium;
  font-size: 12.5px;
  letter-spacing: 1.1px;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--tp-gold);
}

.of-contact__name {
  font-family: GothamPro-Medium;
  font-size: 16px;
  color: var(--tp-ink);
}

.of-contact__tel {
  display: block;
  font-family: GothamPro-Medium;
  font-size: 17px;
  color: var(--tp-ink);
  transition: color .25s;
}

.of-contact__mail {
  display: block;
  font-size: 15px;
  color: var(--tp-blue);
  word-break: break-word;
  transition: color .25s;
}

.of-contact__tel:hover { color: var(--tp-blue); }
.of-contact__mail:hover { color: var(--tp-blue-deep); }