.about-page {
  background: var(--white);
}

.about-hero {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.about-hero::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 640px;
  background: url("../img/about/bg.jpg") center top / cover no-repeat;
  content: "";
}

.about-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: min(var(--section-max), calc(100% - 180px));
  margin: 0 auto;
  padding: 214px 0 88px;
}

.about-hero-copy h1 {
  color: #ffffff;
  font-size: clamp(44px, 4.2vw, 68px);
  line-height: 1.18;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 8px 28px rgba(8, 62, 145, 0.18);
}

.about-hero-copy h1 em {
  color: #114ce3;
  font-style: normal;
}

.about-hero-copy p {
  margin-top: 20px;
  color: #000000;
  font-size: 20px;
  line-height: 1.5;
}

.about-hero-img {
  width: min(478px, 100%);
  justify-self: end;
}

.about-company-card {
  display: grid;
  grid-template-columns: 7fr 3fr;
  align-items: start;
  column-gap: 42px;
  width: min(1180px, 100%);
  margin-top: 210px;
  background: rgba(255, 255, 255, 0.96);
  padding: 48px 58px 54px;
  box-shadow: 0 22px 52px rgba(20, 72, 150, 0.18);
}

.about-company-card > .about-company-copy {
  display: contents;
}

.about-company-card h2 {
  grid-column: 1;
  margin: 0 0 22px;
  color: #000000;
  font-size: 30px;
  line-height: 1.4;
  font-weight: 700;
}

.about-company-body {
  grid-column: 1;
}

.about-company-card p {
  margin: 0;
  color: #475569;
  font-size: 17px;
  line-height: 2.2;
}

.about-company-card p + p {
  margin-top: 20px;
}

.about-company-side-img {
  align-self: center;
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  width: 100%;
  min-width: 0;
  border-radius: 10px;
  object-fit: cover;
  object-position: center;
}

.about-company {
  min-height: 660px;
  background: linear-gradient(180deg, #ffffff 0%, #f4fbff 100%);
}

.about-company-inner {
  display: grid;
  grid-template-columns: minmax(0, 596px) minmax(420px, 582px);
  align-items: center;
  justify-content: space-between;
  gap: clamp(56px, 7vw, 91px);
  width: min(var(--section-max), calc(100% - 180px));
  min-height: 660px;
  margin: 0 auto;
  padding: 80px 0 74px;
}

.about-company-copy h2 {
  color: #000000;
  font-size: 32px;
  line-height: 1.45;
  font-weight: 700;
}

.about-company-copy p {
  margin-top: 20px;
  color: #000000;
  font-size: 18px;
  line-height: 1.8;
}

.about-company-img {
  width: min(582px, 100%);
  border-radius: 10px;
  object-fit: cover;
}

.about-culture {
  min-height: 607px;
  padding: 104px clamp(20px, 7vw, 99px) 96px;
  background: linear-gradient(135deg, #eff8ff 0%, #dcefff 52%, #8ebcff 100%);
}

.culture-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: min(var(--section-max), 100%);
  margin: 58px auto 0;
}

.culture-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 272px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(31, 72, 150, 0.08);
  text-align: center;
}

.culture-card img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.culture-card h3 {
  margin-top: 30px;
  color: #000000;
  font-size: 28px;
  line-height: 1.45;
}

.culture-card p {
  margin-top: 6px;
  color: #555555;
  font-size: 18px;
  line-height: 1.5;
}

@media (min-width: 1600px) {
  .about-hero-inner,
  .about-company-card,
  .about-company-inner,
  .culture-grid {
    width: min(var(--section-wide-max), calc(100% - 128px));
  }

  .about-company-side-img {
    width: min(88%, 360px);
  }
}

@media (max-width: 1279px) {
  .about-company-card {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-company-card > .about-company-copy {
    display: block;
  }

  .about-company-card h2,
  .about-company-body,
  .about-company-side-img {
    grid-column: auto;
    grid-row: auto;
  }

  .about-company-side-img {
    width: 100%;
    aspect-ratio: 16 / 5;
    max-height: 320px;
    object-fit: cover;
  }
}

@media (max-width: 1120px) {
  .about-hero-inner,
  .about-company-card,
  .about-company-inner {
    width: calc(100% - 48px);
  }

  .culture-grid {
    width: calc(100% - 48px);
  }
}

@media (max-width: 820px) {
  .about-company-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 64px 0;
  }

  .about-hero {
    min-height: auto;
    background-size: cover;
  }

  .about-hero::before {
    height: 430px;
  }

  .about-hero-inner {
    width: calc(100% - 40px);
    min-height: auto;
    padding: 120px 0 64px;
  }

  .about-company-card {
    gap: 28px;
    width: 100%;
    margin-top: 86px;
    padding: 34px 28px 38px;
  }

  .about-company-side-img {
    max-height: 260px;
  }

  .about-hero-img,
  .about-company-img {
    justify-self: center;
  }

  .culture-grid {
    grid-template-columns: 1fr;
  }

  .about-culture {
    padding-block: 72px;
  }
}

@media (max-width: 560px) {
  .about-hero-inner,
  .about-company-card,
  .about-company-inner,
  .culture-grid {
    width: calc(100% - 32px);
  }

  .about-hero-copy h1 {
    font-size: 34px;
  }

  .about-hero-copy p,
  .about-company-card p,
  .about-company-copy p,
  .culture-card p {
    font-size: 16px;
  }

  .about-company-card {
    margin-top: 68px;
    padding: 28px 22px 32px;
  }

  .culture-card {
    min-height: 230px;
  }
}
