.home-hero {
  position: relative;
  --hero-art-height: 56.28vw;
  --hero-art-shift: -24vw;
  --hero-layout-lift: 116px;
  --hero-crop-top: calc(var(--hero-art-height) * 100 / 941);
  --hero-crop-bottom: calc(var(--hero-art-height) * 70 / 941);
  min-height: 320px;
  overflow: hidden;
  background: #fffaf6;
}

@media (min-width: 1672px) {
  .home-hero {
    --hero-art-height: 941px;
    --hero-art-shift: -400px;
  }
}

.home-hero::before {
  content: "";
  position: absolute;
  top: var(--hero-art-shift);
  left: 0;
  right: 0;
  height: var(--hero-art-height);
  background: url("../images/background.png") center top / 100% auto no-repeat;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  min-height: calc(var(--hero-art-height) - var(--hero-crop-top) - var(--hero-crop-bottom) - var(--hero-layout-lift));
}

.hero-copy {
  width: 58%;
  max-width: 700px;
  padding: 4.4vw 0 38px;
}

@media (max-width: 733px) {
  .hero-copy {
    padding-top: 44px;
  }
}

@media (min-width: 1267px) {
  .hero-copy {
    padding-top: 56px;
  }
}

.hero-brand-visual {
  display: flex;
  align-items: flex-start;
  width: 100%;
  max-width: 472px;
  min-height: 112px;
}

.hero-title-image {
  display: block;
  width: 100%;
  max-width: 472px;
  height: 60px;
  background-image: url("../images/title.png");
  background-size: 1920px 1080px;
  background-position: right -34px;
  background-repeat: no-repeat;
}

.quick-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: -182px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(238, 227, 216, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.quick-card {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 96px;
  padding: 22px 30px;
  border: 0;
  border-right: 1px solid rgba(238, 227, 216, 0.76);
  background: transparent;
  color: inherit;
  text-align: left;
}

.quick-card:last-child {
  border-right: 0;
}

.quick-card .icon {
  width: 42px;
  height: 42px;
  color: var(--brand);
}

.quick-card > .icon + span {
  margin-left: 18px;
}

.quick-card strong {
  display: block;
  color: #201713;
  font-size: 20px;
  line-height: 1.15;
}

.quick-card span {
  display: block;
  margin-top: 5px;
  color: #75675f;
  font-size: 13px;
}

.quick-card .chevron {
  margin-left: auto;
  color: var(--brand);
}

.home-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
  margin-top: 16px;
}

.dept-panel {
  display: flex;
  flex-direction: column;
  padding: 18px 24px 22px;
}

.home-dept-panel {
  gap: 16px;
}

.home-side {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.home-side .side-card {
  flex: 0 0 auto;
}

.side-card {
  min-height: 0;
  border: 1px solid rgba(238, 227, 216, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.notice-panel {
  display: flex;
  flex-direction: column;
  padding: 18px 22px 20px;
}

.home-side .notice-panel {
  overflow: hidden;
}

.home-side .notice-panel .section-head {
  margin-bottom: 0;
}

.home-side .notice-list {
  gap: 8px;
}

.department-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(76px, 1fr));
  gap: 22px 10px;
  flex: 0 0 auto;
  align-content: flex-start;
}

.department-item {
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 86px;
  min-width: 0;
  text-align: center;
}

.department-item .icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f7f0ea;
  color: var(--brand);
}

.department-item strong {
  display: block;
  margin-top: 10px;
  color: #1f1714;
  font-size: 14px;
  white-space: nowrap;
}

.department-state {
  grid-column: 1 / -1;
  padding: 28px 18px;
  border: 1px solid rgba(238, 227, 216, 0.86);
  border-radius: 8px;
  background: #fffaf5;
  color: #76675f;
  text-align: center;
}

.notice-list {
  display: grid;
  gap: 10px;
  flex: 1;
  align-content: start;
}

.notice-loading,
.notice-empty {
  padding: 20px 0;
  color: #8a7e77;
  font-size: 13px;
}

.notice-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 6px 0 7px;
  border-bottom: 1px solid rgba(238, 227, 216, 0.72);
}

.notice-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.notice-doctor-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  aspect-ratio: 35 / 49;
  overflow: hidden;
  border-radius: 6px;
  background: #f8efe8;
  color: var(--brand);
  font-size: 20px;
  line-height: 1.1;
  font-weight: 900;
}

.notice-doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notice-item h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 7px;
  margin: 0;
  color: #201713;
  font-size: 15px;
  line-height: 1.35;
}

.notice-copy {
  min-width: 0;
}

.notice-doctor-name {
  color: #201713;
  font-size: 15px;
  font-weight: 900;
}

.notice-doctor-title {
  color: #75675f;
  font-size: 12px;
  font-weight: 800;
}

.notice-status {
  min-width: 42px;
  min-height: 24px;
  margin-left: auto;
  padding: 2px 8px;
  font-size: 12px;
}

.notice-item p {
  overflow: hidden;
  margin: 4px 0 0;
  color: #8a7e77;
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.home-side .notice-item {
  min-height: 64px;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  gap: 9px;
  padding-top: 7px;
  padding-bottom: 8px;
}

.home-side .notice-doctor-photo {
  width: 40px;
}

.home-side .notice-item h3 {
  font-size: 14px;
}

.home-side .notice-item p {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.4;
}

.notice-item .icon {
  color: var(--brand);
}

.info-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.25fr;
  gap: 0;
  margin-top: 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(238, 227, 216, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.info-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  min-height: 86px;
  padding: 22px 26px;
  border-right: 1px solid rgba(238, 227, 216, 0.76);
}

.info-item:last-child {
  border-right: 0;
}

.info-item .icon {
  color: #231b18;
}

.info-item.is-link {
  color: inherit;
}

.info-item.is-link:hover strong,
.info-item.is-link:focus strong {
  color: var(--brand);
}

.info-item.is-link:hover .info-route,
.info-item.is-link:focus .info-route {
  background: var(--brand);
  color: #fff;
}

.info-item strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}

.info-item p {
  margin: 6px 0 0;
  color: #5f524b;
  font-size: 13px;
  line-height: 1.45;
}

.info-route {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  margin-top: 2px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #f6ede6;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .home-grid {
    grid-template-columns: 1fr;
  }

  .home-side {
    height: auto;
  }

  .department-grid {
    grid-template-columns: repeat(8, minmax(72px, 1fr));
    gap: 22px 10px;
  }

  .quick-card {
    padding: 22px 24px;
  }
}

@media (max-width: 860px) {
  .home-hero {
    min-height: 200px;
    background: #fffaf6 url("../images/background.png") center 10% / 100% auto no-repeat;
  }

  .home-hero::before {
    content: none;
  }

  .hero-inner {
    align-items: flex-start;
    min-height: 200px;
  }

  .hero-copy {
    width: 100%;
    padding: 12px 0 0;
    text-align: center;
  }

  .hero-brand-visual {
    justify-content: center;
    width: 100%;
    min-height: 72px;
  }

  .hero-title-image {
    width: 100%;
    max-width: 344px;
    height: 44px;
    background-size: 1400px 788px;
    background-position: right -25px;
  }

  .quick-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: -22px;
    padding: 8px;
    box-shadow: 0 12px 32px rgba(80, 42, 20, 0.08);
  }

  .quick-card {
    display: flex;
    justify-content: flex-start;
    min-height: 76px;
    padding: 12px;
    border-right: 0;
    text-align: left;
  }

  .quick-card:nth-child(odd) {
    border-right: 1px solid rgba(238, 227, 216, 0.76);
  }

  .quick-card:nth-child(n + 3) {
    border-top: 1px solid rgba(238, 227, 216, 0.76);
  }

  .quick-card .icon {
    width: 34px;
    height: 34px;
  }

  .quick-card > .icon + span {
    margin-left: 10px;
  }

  .quick-card strong {
    font-size: 15px;
  }

  .quick-card span {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.25;
  }

  .quick-card .chevron {
    display: none;
  }

  .home-grid {
    margin-top: 22px;
  }

  .dept-panel {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .home-dept-panel {
    display: flex;
    gap: 12px;
  }

  .home-side {
    display: flex;
  }

  .home-side .notice-item {
    grid-template-columns: 46px minmax(0, 1fr) 18px;
  }

  .home-side .notice-doctor-photo {
    width: 46px;
  }

  .department-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    row-gap: 22px;
    column-gap: 0;
    padding: 12px 0 6px;
  }

  .department-item {
    flex: initial;
  }

  .department-item .icon-wrap {
    width: 42px;
    height: 42px;
  }

  .department-item strong {
    font-size: 12px;
  }

  .info-strip {
    grid-template-columns: 1fr;
    margin-top: 20px;
    margin-bottom: 28px;
    padding: 0 18px;
  }

  .info-item {
    min-height: 74px;
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(238, 227, 216, 0.78);
  }

  .info-item:last-child {
    border-bottom: 0;
  }

  .info-route {
    display: none;
  }
}

@media (max-width: 480px) {
  .department-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .hero-title-image {
    width: 100%;
    max-width: 300px;
    height: 38px;
    background-size: 1240px 697px;
    background-position: right -23px;
  }
}
