.all-offices {
  padding: 20px;
  padding-bottom: 33px;
  box-sizing: border-box;
}

.all-offices * {
  box-sizing: border-box;
}

.all-offices__head-contact,
.all-offices__card {
  font-style: normal;
}

.all-offices__head-content,
.all-offices__media,
.all-offices__head-address,
.all-offices__head-address p:has(.all-offices__head-phone) {
  width: 100%;
}

.all-offices__media,
.all-offices__phone-icon,
.all-offices__dropdown-button,
.all-offices__dropdown-button i {
  display: flex;
}

.all-offices__image,
.all-offices__image img,
.all-offices__phone-icon img,
.all-offices__dropdown-button i img[src*="caret-down"],
.all-offices__dropdown-button i img[src*="caret-up"] {
  display: block;
}

.all-offices__image,
.all-offices__image img {
  width: 100%;
  height: auto;
}

.all-offices__head-phone,
.all-offices__phone {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.all-offices__head-address,
.all-offices__office-name,
.all-offices__office-address,
.all-offices__phone {
  overflow-wrap: break-word;
  word-break: normal;
}

.all-offices__head-office {
  display: flex;
  margin: 0 0 64px;
  padding: 12px;
  flex-direction: column-reverse;
  gap: 16px;
  border: 1px solid var(--corp-border-blue);
  border-radius: 20px;
  background: var(--corp-color-white);
}

.all-offices__phone-icon {
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.all-offices__phone-icon img,
.all-offices__dropdown-button i img {
  width: 20px;
  height: 20px;
  aspect-ratio: 1/1;
}

.all-offices__head-content {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.all-offices__head-contact {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.all-offices__head-address p:has(.all-offices__head-phone) {
  margin-top: 20px;
  flex-shrink: 0;
}

.all-offices__media {
  overflow: hidden;
}

.all-offices__image {
  overflow: hidden;
  border-radius: 12px;
  background: var(--corp-color-surface-300);
  object-fit: contain;
}

.all-offices__image img {
  object-fit: contain;
}

.all-offices__head-label {
  margin: 0 0 32px;
  color: var(--corp-hero-blue);
  font-size: var(--corp-type-mobile-body-1-font-size);
  font-weight: var(--corp-type-mobile-display-3-font-weight);
  line-height: var(--corp-type-mobile-body-1-line-height);
  text-transform: uppercase;
}

.all-offices__address-label {
  margin: 0 0 12px;
  color: var(--corp-color-neutral-black);
  opacity: 0.6;
  font-size: var(--corp-type-mobile-body-1-font-size);
  font-weight: var(--corp-type-mobile-display-3-font-weight);
  line-height: var(--corp-type-mobile-body-2-line-height);
  text-transform: uppercase;
}

.all-offices__head-address {
  margin: 0 0 0px;
  color: var(--corp-color-neutral-black);
  font-size: var(--corp-type-mobile-heading-2-medium-font-size);
  font-weight: var(--corp-type-mobile-display-3-font-weight);
  line-height: var(--corp-type-mobile-body-1-line-height);
}

.all-offices__head-phone {
  width: 100%;
  height: 44px;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  color: var(--corp-color-white);
  background: var(--corp-color-primary);
  border-radius: 12px;
  font-size: var(--corp-type-mobile-body-1-font-size);
  font-weight: var(--corp-type-mobile-display-3-font-weight);
  line-height: var(--corp-type-mobile-body-2-line-height);
  letter-spacing: -0.14px;
}

.all-offices__head-phone-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.all-offices__title {
  margin: 64px auto 24px;
  color: var(--corp-color-neutral-black);
  text-align: center;
  font-size: var(--corp-type-mobile-display-2-font-size);
  font-weight: var(--corp-type-mobile-display-2-font-weight);
  line-height: var(--corp-type-mobile-display-5-line-height);
  letter-spacing: -0.56px;
}

.all-offices__tabs {
  display: none;
}

.all-offices__dropdown {
  position: relative;
  display: block;
  margin-bottom: 20px;
}

.all-offices__dropdown-button {
  width: 100%;
  padding: 16px 20px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--corp-color-neutral-black);
  font-size: var(--corp-type-mobile-body-1-font-size);
  font-weight: var(--corp-type-mobile-display-3-font-weight);
  line-height: var(--corp-type-mobile-body-2-line-height);
  cursor: pointer;
}

.all-offices__dropdown-button i {
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.all-offices__dropdown-button i img[src*="caret-down"] {
  width: 14px;
  height: 8px;
}

.all-offices__dropdown-menu {
  position: absolute;
  z-index: 2;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  padding: 16px 20px;
  border-radius: 8px;
  background: var(--corp-color-white);
}

.all-offices__dropdown.is-open .all-offices__dropdown-menu {
  display: grid;
  gap: 16px;
}

.all-offices__dropdown-item {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--corp-color-neutral-black);
  text-align: left;
  font-size: var(--corp-type-mobile-body-1-font-size);
  font-weight: var(--corp-type-mobile-body-2-font-weight);
  line-height: var(--corp-type-mobile-body-2-line-height);
  cursor: pointer;
}

.all-offices__dropdown-item.is-active {
  font-weight: var(--corp-type-mobile-display-3-font-weight);
}

.all-offices__cards {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.all-offices__cards::-webkit-scrollbar {
  display: none;
}

.all-offices__card {
  display: flex;
  flex: 0 0 calc(100% - 24px);
  width: calc(100% - 24px);
  padding: 24px 24px 16px;
  flex-direction: column;
  align-items: flex-start;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  border: 1px solid #d1d1d1;
  border-radius: 8px;
  background: var(--corp-color-white);
  overflow: hidden;
}

.all-offices__office-name {
  margin: 0 0 8px;
  color: var(--corp-color-neutral-black);
  font-size: var(--corp-type-mobile-heading-2-medium-font-size);
  font-weight: var(--corp-type-mobile-display-3-font-weight);
  line-height: var(--corp-type-mobile-body-1-line-height);
  text-transform: uppercase;
}

.all-offices__office-address {
  margin: 0 0 20px;
  color: var(--corp-color-neutral-black);
  font-size: var(--corp-type-mobile-body-1-font-size);
  font-weight: var(--corp-type-mobile-body-2-font-weight);
  line-height: var(--corp-type-mobile-body-2-line-height);
  letter-spacing: -0.14px;
}

.all-offices__office-address p:has(.all-offices__phone) {
  margin-top: 20px;
  margin-bottom: 12px;
}

.all-offices__phone {
  gap: 8px;
  color: var(--corp-color-primary);
  font-size: var(--corp-type-mobile-body-1-font-size);
  font-weight: var(--corp-type-mobile-body-2-font-weight);
  line-height: var(--corp-type-mobile-body-2-line-height);
  letter-spacing: -0.14px;
}

@media (width >=768px) {
  .all-offices {
    padding-right: 16px;
    padding-bottom: 44px;
  }

  .all-offices__head-office {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    min-height: 291px;
    overflow: visible;
    background: var(--corp-color-surface-300);
    padding: 0;
    margin-bottom: 70px;
    border: 0;
    border-radius: 4.689px;
  }

  .all-offices__head-content {
    grid-column: 1 / span 4;
    padding: 23.1px 0 0px 21.11px;
  }

  .all-offices__head-label {
    margin: 0 0 88px;
    font-size: var(--corp-type-tablet-body-1-font-size);
    font-weight: var(--corp-type-tablet-body-3-font-weight);
    line-height: var(--corp-type-tablet-body-7-line-height);
    letter-spacing: -0.12px;
  }

  .all-offices__address-label {
    margin: 0 0 9.38px;
    font-size: var(--corp-type-tablet-body-1-font-size);
    font-weight: var(--corp-type-tablet-body-3-font-weight);
    line-height: var(--corp-type-tablet-body-7-line-height);
    letter-spacing: -0.12px;
  }

  .all-offices__head-address {
    max-width: 236.93px;
    margin: 0 0 0px;
    font-size: var(--corp-type-tablet-body-xl-font-size);
    font-weight: var(--corp-type-tablet-body-2-font-weight);
    line-height: var(--corp-type-tablet-body-4-line-height);
  }

  .all-offices__head-address p:has(.all-offices__head-phone) {
    width: auto;
    margin-top: 20px;
    margin-bottom: 21px;
  }

  .all-offices__head-phone {
    width: 127px;
    height: 44px;
    gap: 4.69px;
    padding: 0;
    border-radius: 8px;
    font-size: var(--corp-type-tablet-body-sm-font-size);
    line-height: var(--corp-type-tablet-body-sm-3-line-height);
    letter-spacing: 0;
  }

  .all-offices__head-phone-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }

  .all-offices__media {
    grid-column: 5 / -1;
    width: auto;
    height: 100%;
    padding: 9.38px;
  }

  .all-offices__image {
    height: 100%;
    border-radius: 8px;
    flex: 0 1 auto;
  }

  .all-offices__image img {
    height: 100%;
    object-fit: contain;
  }

  .all-offices__title {
    margin: 0 auto 21px;
    font-size: var(--corp-type-tablet-display-font-size);
    font-weight: var(--corp-type-tablet-display-font-weight);
    line-height: var(--corp-type-tablet-display-3xl-line-height);
    letter-spacing: -0.42px;
  }

  .all-offices__tabs {
    display: flex;
    width: fit-content;
    margin-inline: auto;
    margin-bottom: 35.17px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    overflow: hidden;
  }

  .all-offices__tab {
    padding: 18px;
    border: 0;
    background: transparent;
    color: var(--corp-color-neutral-black);
    font-size: var(--corp-type-tablet-body-1-font-size);
    font-weight: var(--corp-type-tablet-body-2-font-weight);
    line-height: var(--corp-type-tablet-body-8-line-height);
    letter-spacing: -0.36px;
    text-transform: uppercase;
    cursor: pointer;
  }

  .all-offices__tab.is-active {
    border-radius: 12px;
    background: var(--corp-color-primary);
    color: var(--corp-color-white);
  }

  .all-offices__dropdown {
    display: none;
  }

  .all-offices__cards {
    display: grid;
    flex-wrap: initial;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 11.72px;
    row-gap: 11.72px;
    padding: 0 35.17px;
    overflow: visible;
  }

  .all-offices__card {
    flex: initial;
    width: 100%;
    min-height: 120.157px;
    padding: 14px;
    border-radius: 4.689px;
    border-width: 0.586px;
  }

  .all-offices__office-name {
    margin: 0 0 4.69px;
    font-size: var(--corp-type-tablet-body-1-font-size);
    line-height: var(--corp-type-tablet-body-7-line-height);
    letter-spacing: -0.12px;
  }

  .all-offices__office-address {
    margin: 0;
    font-size: var(--corp-type-tablet-body-sm-font-size);
    line-height: var(--corp-type-tablet-body-sm-3-line-height);
    letter-spacing: -0.3px;
  }

  .all-offices__office-address p:has(.all-offices__phone) {
    margin-top: 20px;
    margin-bottom: 21px;
  }

  .all-offices__phone {
    gap: 4.69px;
    margin-bottom: 0;
    font-size: var(--corp-type-tablet-body-sm-font-size);
    font-weight: var(--corp-type-tablet-body-3-font-weight);
    line-height: var(--corp-type-tablet-body-sm-3-line-height);
  }
}

@media (width >=1200px) {
  .all-offices-wrapper {
    padding-inline: 60px;
    padding-bottom: 93px;
  }

  .all-offices {
    padding: 24px;
    border-radius: 8px;
  }

  .all-offices__head-office {
    grid-template-columns: 592px 1fr;
    min-height: 459px;
    margin: 0 auto 120px;
    border-radius: 8px;
    overflow: hidden;
    gap: 87px;
  }

  .all-offices__head-content {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    height: 100%;
    padding: 36px 0 0px 36px;
    flex-direction: column;
    align-items: flex-start;
  }

  .all-offices__media {
    grid-column: 2;
    grid-row: 1;
    display: block;
    max-width: none;
    height: 100%;
    padding: 16px 16px 16px 0;
  }

  .all-offices__image {
    height: 100%;
    max-height: none;
    border-radius: 12px;
  }

  .all-offices__head-label {
    margin: 0 0 146px;
    font-size: var(--corp-type-desktop-heading-4-font-size);
    font-weight: var(--corp-type-desktop-heading-4-font-weight);
    line-height: var(--corp-type-desktop-caption-5-line-height);
    letter-spacing: -0.4px;
  }

  .all-offices__address-label {
    margin: 0 0 16px;
    font-size: var(--corp-type-desktop-body-3-font-size);
    font-weight: var(--corp-type-desktop-body-5-font-weight);
    line-height: var(--corp-type-desktop-disclaimer-line-height);
    letter-spacing: -0.28px;
  }

  .all-offices__head-address {
    max-width: calc((var(--grid-formula) * 5) + (var(--grid-gutter-width) * 4));
    margin: 0 0 0;
    font-size: var(--corp-type-desktop-heading-1-font-size);
    font-weight: var(--corp-type-desktop-heading-1-font-weight);
    line-height: var(--corp-type-desktop-heading-1-line-height);
  }

  .all-offices__head-address p:has(.all-offices__head-phone) {
    margin-top: 36px;
    margin-bottom: 27px;
  }

  .all-offices__head-phone {
    width: 182px;
    gap: 6px;
    border-radius: 8px;
    font-size: var(--corp-type-desktop-body-xs-font-size);
    font-weight: var(--corp-type-desktop-body-xs-font-weight);
    line-height: var(--corp-type-desktop-body-2xs-line-height);
    letter-spacing: 0;
  }

  .all-offices__head-phone-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .all-offices__title {
    margin: 0 auto 36px;
    font-size: var(--corp-type-desktop-heading-xxl-font-size);
    font-weight: var(--corp-type-desktop-heading-xxl-font-weight);
    line-height: var(--corp-type-desktop-heading-4xxl-line-height);
    letter-spacing: -1.5px;
  }

  .all-offices__tabs {
    margin-bottom: 60px;
  }

  .all-offices__tab {
    font-size: var(--corp-type-desktop-body-font-size);
    font-weight: var(--corp-type-desktop-body-font-weight);
    line-height: var(--corp-type-desktop-caption-5-line-height);
    letter-spacing: -0.16px;
  }

  .all-offices__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 20px;
    padding: 0 60px;
  }

  .all-offices__card {
    min-height: 205px;
    padding: 24px;
    border-radius: 8px;
    border-width: 1px;
  }

  .all-offices__office-name {
    margin: 0 0 8px;
    font-size: var(--corp-type-desktop-body-font-size);
    font-weight: var(--corp-type-desktop-body-2-font-weight);
    line-height: var(--corp-type-desktop-body-2-line-height);
    letter-spacing: 0.16px;
  }

  .all-offices__office-address {
    margin: 0;
    font-size: var(--corp-type-desktop-body-3-font-size);
    font-weight: var(--corp-type-desktop-body-3-font-weight);
    line-height: var(--corp-type-desktop-body-xs-line-height);
    letter-spacing: -0.42px;
  }

  .all-offices__office-address p:has(.all-offices__phone) {
    margin-top: 36px;
    margin-bottom: 27px;
  }

  .all-offices__phone {
    gap: 8px;
    font-size: var(--corp-type-desktop-body-font-size);
    font-weight: var(--corp-type-desktop-body-2-font-weight);
    line-height: var(--corp-type-desktop-body-2-line-height);
    letter-spacing: 0.16px;
  }
}