@charset "UTF-8";

.allergy-hero {
  position: relative;
  height: 477px;
  margin-top: 10px;
  overflow: hidden;
  background: var(--color-cream-deep);
}

.allergy-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.allergy-hero__veil {
  position: absolute;
  top: 51%;
  left: 50%;
  width: min(843px, 72vw);
  height: 149px;
  background: rgb(255 255 255 / 92%);
  filter: blur(27.6px);
  transform: translate(-50%, -50%);
}

.allergy-hero__copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 25px;
  text-align: center;
}

.allergy-hero__title {
  color: var(--color-orange);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.017em;
}

.allergy-hero__lead {
  margin-top: 8px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.045em;
}

.allergy-about {
  min-height: 559px;
  padding: 30px 0;
  background: var(--color-white);
}

.breadcrumb {
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0.03em;
}

.breadcrumb a {
  transition: color 0.2s ease;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--color-primary);
}

.numbered-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.numbered-heading__number {
  color: var(--color-primary-soft);
  font-size: 58px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.017em;
}

.numbered-heading__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.07em;
}

.allergy-about .numbered-heading {
  margin-top: 36px;
}

.allergy-about__row {
  display: grid;
  grid-template-columns: minmax(0, 704px) 480px;
  gap: 56px;
  align-items: start;
  margin-top: 36px;
}

.allergy-about__text {
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0;
}

.allergy-about__photo {
  width: 480px;
  height: 320px;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
}

.allergy-about__photo img {
  width: 502px;
  max-width: none;
  height: 320px;
  object-fit: cover;
  object-position: center;
  transform: translateX(-11px);
}

.conditions-index {
  min-height: 387px;
  padding: 68px 0 80px;
  background: var(--color-cream);
}

.conditions-index__note {
  margin-top: -4px;
  font-size: 16px;
  letter-spacing: 0.03em;
}

.condition-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 27px;
}

.condition-links__link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 66px;
  padding: 11px 36px 10px 14px;
  background: var(--color-white);
  border: 1.5px solid #f0dfb4;
  border-radius: 10px;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.condition-links__link:hover,
.condition-links__link:focus-visible,
.condition-links__link.is-current {
  color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 5px 14px rgb(209 168 92 / 12%);
  transform: translateY(-2px);
}

.condition-links__number {
  color: #d2a63f;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.1em;
}

.condition-links__name {
  margin-top: 2px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.015em;
}

.condition-links__arrow {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--color-primary);
  font-size: 15px;
  line-height: 1;
  transform: translateY(-50%);
}

.conditions-detail {
  padding: 70px 0 90px;
  background: #fbf4e4;
}

.condition-cards {
  display: grid;
  gap: 20px;
}

.condition-card {
  padding: 29px 35px 31px;
  background: var(--color-white);
  border: 1px solid #f1e7d2;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgb(209 168 92 / 16%);
  scroll-margin-top: calc(var(--header-height) + 22px);
}

.condition-card:target {
  border-color: #e9bf55;
  box-shadow: 0 8px 24px rgb(209 168 92 / 26%);
}

.condition-card__heading {
  position: relative;
  padding-left: 16px;
  color: #3e3e3e;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.025em;
}

.condition-card__heading::before {
  position: absolute;
  top: 2.5px;
  left: 0;
  width: 4px;
  height: 24px;
  background: var(--color-primary);
  border-radius: 2px;
  content: "";
}

.condition-card__text {
  margin-top: 14px;
  color: #5c5c5c;
  font-size: 15.5px;
  line-height: 29px;
  letter-spacing: 0;
}

@media (max-width: 1199px) {
  .allergy-hero {
    height: 410px;
  }

  .allergy-hero__title {
    font-size: 40px;
  }

  .allergy-hero__lead {
    font-size: 29px;
  }

  .allergy-about {
    min-height: 0;
  }

  .allergy-about__row {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 42%);
    gap: 36px;
  }

  .allergy-about__photo {
    width: 100%;
  }

  .condition-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .allergy-hero {
    height: 360px;
  }

  .allergy-hero__title {
    font-size: 34px;
  }

  .allergy-hero__lead {
    font-size: 24px;
  }

  .allergy-about__row {
    grid-template-columns: 1fr;
  }

  .allergy-about__photo {
    width: min(100%, 560px);
    height: auto;
    aspect-ratio: 3 / 2;
    margin-inline: auto;
  }

  .allergy-about__photo img {
    width: 100%;
    height: 100%;
    transform: none;
  }

  .conditions-index {
    min-height: 0;
  }
}

@media (max-width: 767px) {
  .allergy-hero {
    height: 300px;
    margin-top: 6px;
  }

  .allergy-hero__image {
    object-position: 48% center;
  }

  .allergy-hero__veil {
    width: 88vw;
    height: 130px;
  }

  .allergy-hero__copy {
    padding: 20px 18px 0;
  }

  .allergy-hero__title {
    font-size: clamp(27px, 8vw, 34px);
  }

  .allergy-hero__lead {
    max-width: 24em;
    margin-top: 8px;
    font-size: clamp(16px, 4.6vw, 21px);
    line-height: 1.7;
  }

  .allergy-about {
    padding: 24px 0 46px;
  }

  .breadcrumb {
    font-size: 12px;
  }

  .numbered-heading {
    gap: 10px;
  }

  .numbered-heading__number {
    font-size: 43px;
  }

  .numbered-heading__title {
    font-size: 20px;
    letter-spacing: 0.04em;
  }

  .allergy-about .numbered-heading {
    margin-top: 22px;
  }

  .allergy-about__row {
    gap: 26px;
    margin-top: 23px;
  }

  .allergy-about__text {
    font-size: 14px;
    line-height: 1.95;
  }

  .conditions-index {
    padding: 46px 0 50px;
  }

  .conditions-index__note {
    margin-top: 2px;
    font-size: 13px;
  }

  .condition-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
  }

  .condition-links__link {
    height: 64px;
    padding-left: 12px;
  }

  .condition-links__name {
    font-size: 14px;
  }

  .conditions-detail {
    padding: 46px 0 60px;
  }

  .condition-cards {
    gap: 14px;
  }

  .condition-card {
    padding: 24px 20px 26px;
    border-radius: 12px;
  }

  .condition-card__heading {
    font-size: 17px;
  }

  .condition-card__heading::before {
    height: 21px;
  }

  .condition-card__text {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.9;
  }
}

@media (max-width: 420px) {
  .condition-links {
    grid-template-columns: 1fr;
  }

  .condition-links__link {
    height: 58px;
  }
}
