/* Project: Message Page */

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

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

.msg-hero {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 96px 16px 72px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(rgba(8, 31, 53, 0.7), rgba(8, 31, 53, 0.62)),
    url("../images/top/fv03.png") center/cover no-repeat;
}

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

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

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

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

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

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

.msg-intro {
  padding: 88px 0 80px;
}

.msg-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.msg-intro__photo {
  position: relative;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 48px -32px rgba(8, 31, 53, 0.55);
}

.msg-intro__photo::before {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  pointer-events: none;
}

.msg-intro__photo img,
.msg-message__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.msg-intro__photo img {
  aspect-ratio: 4 / 3;
}

.msg-intro__label,
.msg-heading__eyebrow {
  color: var(--primary-blue, #3a7ca5);
}

.msg-intro__title {
  margin-top: 10px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.msg-intro__text,
.msg-message__content p {
  margin-top: 18px;
  color: #334b64;
  font-size: 16px;
  line-height: 2;
}

.msg-sign {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: baseline;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #e5edf4;
}

.msg-sign__role {
  color: #60758c;
  font-size: 14px;
}

.msg-sign__name {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: 0.12em;
}

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

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

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

.msg-heading__title {
  margin-top: 6px;
  font-size: clamp(24px, 3.8vw, 36px);
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.msg-policy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.msg-policy__item {
  min-width: 0;
  padding: 26px 22px;
  border: 1px solid rgba(12, 40, 80, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 32px -28px rgba(8, 31, 53, 0.45);
}

.msg-policy__num {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue, #3a7ca5), #174b72);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.msg-policy__item h3 {
  margin-top: 18px;
  font-size: 19px;
  line-height: 1.5;
}

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

.msg-message {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.msg-message__content {
  min-width: 0;
}

.msg-message__image {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 48px -34px rgba(8, 31, 53, 0.55);
}

.msg-message__image img {
  aspect-ratio: 4 / 3;
}

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

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

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

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

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

@media (max-width: 960px) {
  .msg-intro__grid,
  .msg-message,
  .msg-cta__inner {
    grid-template-columns: 1fr;
  }

  .msg-policy {
    grid-template-columns: 1fr;
  }

  .msg-message__image {
    order: -1;
  }

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

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

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

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

  .msg-hero__lead {
    text-align: left;
  }

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

  .msg-intro__title,
  .msg-heading__title,
  .msg-cta__title {
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .msg-intro__text,
  .msg-message__content p,
  .msg-policy__item p {
    font-size: 15px;
    line-height: 1.9;
  }

  .msg-policy__item {
    padding: 22px 18px;
  }

  .msg-sign {
    display: grid;
  }
}
