/* ========== Inner page: Hero ========== */

.inner-page .header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.japan-hero__overlay {
  background: #00000063;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.inner-page .header .header__link {
  color: #fff;
}

.inner-page .header .header__burger span {
  background: #fff;
}

.inner-page .header .header__burger.active span {
  background: #2c2a29;
}

.inner-page .header .header__cta {
  background: #fff;
  color: var(--color-primary);
}

.inner-page .header .header__cta--mobile {
  background: var(--color-primary);
  color: #fff;
}

.inner-hero {
  position: relative;
  height: 512px;
  overflow: hidden;
}

.inner-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.7);
}

.inner-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgb(165 0 2 / 40%) 0%,
    rgba(0, 0, 0, 0) 60%
  );
}

.inner-hero__content {
  position: relative;
  z-index: 1;
  margin-bottom: 60px;
  /* height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 0 40px; */
}

.inner-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.inner-hero__back:hover {
  opacity: 1;
}

.inner-hero__back svg {
  flex-shrink: 0;
}

.inner-hero__title {
  font-family: "Lora", serif;
  font-size: 40px;
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  max-width: 700px;
}

.inner-hero .container {
  display: flex;
  height: 100%;
  align-items: flex-end;
}

/* ========== Photo cards ========== */

.photo-cards {
  padding: 32px 0;
}

.photo-cards__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.photo-card__img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 16px;
  max-height: 200px;
}

.photo-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.photo-card:hover .photo-card__img-wrap img {
  transform: scale(1.04);
}

.photo-card__title {
  font-size: 20px;
  font-weight: 500;
  padding: 20px;
  padding-bottom: 8px;
  font-family: "Lora";
}

.photo-card__text {
  font-size: 14px;
  line-height: 1.5;
  padding: 0 20px;
  padding-bottom: 40px;
}

.photo-card {
  border: 1px solid #f9b3ba33;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

/* ========== Article text ========== */

.article-text {
}

.article-text__inner {
  max-width: 800px;
  margin: 0 auto;
}

.article-text__inner p {
  font-size: 18px;
  line-height: 1.75;
  color: #2c2a29;
  margin-bottom: 24px;
}

.article-text__inner p:last-child {
  margin-bottom: 0;
}

/* ========== Interesting fact ========== */

.fact-block {
  padding: 32px 0;
}

.fact-block__inner {
  background: linear-gradient(246.28deg, #ffecee 50.32%, #ffd0d5 100%);
  border-top-left-radius: 80px;
  border-bottom-right-radius: 80px;
  padding: 40px 48px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.fact-block__content {
  flex: 1;
}

.fact-block__label {
  font-size: 14px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.fact-block__label-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fact-block__label-icon svg {
  color: #fff;
}

.fact-block__text {
  font-size: 24px;
  color: #2c2a29;
  line-height: 1.6;
  font-family: "Lora";
}

/* ========== Other topics ========== */

.other-topics {
  padding: 56px 0 80px;
}

.other-topics__title {
  font-family: "Lora", serif;
  font-size: 36px;
  font-weight: 400;
  color: #2c2a29;
  margin-bottom: 32px;
}

.other-topics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.other-topics__grid + .other-topics__grid {
  margin-top: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.topic-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  text-decoration: none;
  display: block;
  max-height: 170px;
  width: 100%;
}

.topic-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.topic-card:hover .topic-card__img {
  transform: scale(1.05);
}

.topic-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(248, 56, 58, 0.8) 1%,
    rgba(0, 0, 0, 0) 46%
  );
}

.topic-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.topic-card__name {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.topic-card__arrow {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.topic-card--cta {
  background: var(--color-primary);
  aspect-ratio: 1 / 1;
}

.topic-card--cta .topic-card__body {
  inset: 0;
  padding: 24px;
  align-items: center;
  justify-content: center;
}

.topic-card--cta .topic-card__name {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}

/* ========== Responsive ========== */

@media (max-width: 1024px) {
  .photo-cards__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .other-topics__grid,
  .other-topics__grid + .other-topics__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .inner-hero__title {
    font-size: 30px;
  }
}

@media (max-width: 600px) {
  .photo-cards__grid {
    grid-template-columns: 1fr;
  }

  .other-topics__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .inner-hero {
    height: 320px;
  }

  .inner-hero__title {
    font-size: 24px;
  }

  .fact-block__inner {
    padding: 24px 20px;
  }

  .fact-block__text {
    font-size: 17px;
  }
}
