/* Project: Office Page */

.p-office {
  background: #fff;
  color: #0b1a2a;
}

.of-container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.of-hero {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 96px 16px 72px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(rgba(9, 33, 55, 0.72), rgba(9, 33, 55, 0.58)),
    url("../images/top/fv08.png") center/cover no-repeat;
}

.of-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -48px;
  height: 96px;
  background: #fff;
  transform: rotate(2deg);
  transform-origin: center;
}

.of-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  text-align: center;
}

.of-hero__eyebrow,
.of-heading__eyebrow,
.of-office-card__label,
.of-cta__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.of-hero__eyebrow {
  color: rgba(255, 255, 255, 0.86);
}

.of-hero__title {
  margin-top: 10px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.16;
  letter-spacing: 0.08em;
}

.of-hero__lead {
  margin-top: 16px;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.9;
}

.of-intro {
  padding: 86px 0 72px;
}

.of-heading {
  margin-bottom: 28px;
}

.of-heading--center {
  max-width: 860px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.of-heading__eyebrow,
.of-office-card__label {
  color: var(--primary-blue, #3a7ca5);
}

.of-heading__title {
  margin-top: 8px;
  font-size: clamp(24px, 3.8vw, 38px);
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.of-intro__text {
  max-width: 820px;
  margin: 0 auto;
  color: #334b64;
  font-size: 16px;
  line-height: 2;
  text-align: center;
}

.of-section {
  padding: 76px 0;
}

.of-section--soft {
  background:
    radial-gradient(820px 260px at 0% 0%, rgba(58, 124, 165, 0.08), transparent 62%),
    #f5f8fc;
}

.of-office-list {
  display: grid;
  gap: 28px;
}

.of-office-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(12, 40, 80, 0.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 36px -30px rgba(8, 31, 53, 0.45);
}

.of-office-card__image {
  min-height: 100%;
  margin: 0;
  background: #eef4f8;
}

.of-office-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.of-office-card__body {
  min-width: 0;
  padding: clamp(24px, 4vw, 40px);
}

.of-office-card__title {
  margin-top: 8px;
  font-size: clamp(25px, 3.4vw, 38px);
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.of-office-card__lead {
  margin-top: 14px;
  color: #334b64;
  font-size: 16px;
  line-height: 1.9;
}

.of-info-list {
  display: grid;
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid #e2ebf2;
}

.of-info-list div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #e2ebf2;
}

.of-info-list dt {
  color: #0e3a6b;
  font-weight: 700;
}

.of-info-list dd {
  min-width: 0;
  color: #40576e;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.of-info-list a {
  color: var(--primary-blue, #3a7ca5);
  font-weight: 700;
}

.of-support {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.of-support__grid {
  display: grid;
  gap: 16px;
}

.of-support__item {
  padding: 24px 22px;
  border: 1px solid rgba(12, 40, 80, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 30px -28px rgba(8, 31, 53, 0.42);
}

.of-support__item h3 {
  position: relative;
  padding-left: 18px;
  font-size: 19px;
  line-height: 1.5;
}

.of-support__item h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-blue, #3a7ca5);
}

.of-support__item p {
  margin-top: 10px;
  color: #40576e;
  font-size: 15px;
  line-height: 1.85;
}

.of-cta {
  padding: 56px 0;
  color: #fff;
  background: linear-gradient(135deg, #0e2a47 0%, var(--primary-blue, #3a7ca5) 100%);
}

.of-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.of-cta__eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.of-cta__title {
  margin-top: 8px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.5;
}

.of-cta .c-btn {
  margin-top: 0;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .of-office-card,
  .of-support,
  .of-cta__inner {
    grid-template-columns: 1fr;
  }

  .of-office-card__image img {
    min-height: 280px;
    aspect-ratio: 16 / 9;
  }

  .of-cta__inner {
    text-align: center;
  }

  .of-cta .c-btn {
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .of-container {
    width: min(100% - 24px, 1120px);
  }

  .of-hero {
    min-height: 360px;
    padding: 88px 12px 64px;
  }

  .of-hero__lead,
  .of-intro__text {
    text-align: left;
  }

  .of-intro,
  .of-section {
    padding: 56px 0;
  }

  .of-heading--center {
    text-align: left;
  }

  .of-heading__title,
  .of-office-card__title,
  .of-cta__title {
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .of-office-card__body,
  .of-support__item {
    padding: 22px 18px;
  }

  .of-office-card__lead,
  .of-intro__text,
  .of-support__item p {
    font-size: 15px;
    line-height: 1.9;
  }

  .of-info-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
