.hero-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 24px;
  margin-block-start: 24px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 22px;
  background: rgba(250, 243, 233, .92);
  color: var(--apple-text);
  text-align: start;
  box-shadow: 0 14px 40px rgba(19, 15, 12, .17);
  backdrop-filter: blur(10px);
}

.hero-guide-kicker {
  margin-block-end: 7px;
  color: #5b4d40;
  font-size: .82rem;
  font-weight: 800;
}

.hero-guide h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  line-height: 1.25;
  text-wrap: balance;
}

.hero-guide-description {
  margin-block-start: 8px;
  color: #4f4841;
  font-size: .96rem;
  line-height: 1.55;
}

.guide-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: .75em;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--korea-navy);
  color: #fff;
  font-size: .94rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.guide-link::after {
  content: "";
  width: .46em;
  height: .46em;
  flex: 0 0 auto;
  border-block-start: 2px solid currentColor;
  border-inline-end: 2px solid currentColor;
  rotate: 45deg;
}

.guide-link:dir(rtl)::after {
  rotate: -45deg;
}

.guide-link:hover {
  background: var(--apple-blue-hover);
}

.hero-guide .guide-link {
  border-color: rgba(29, 29, 31, .15);
  background: #fff;
  color: var(--apple-text);
}

.hero-guide .guide-link:hover {
  background: #faf7f2;
}

.guide-link:focus-visible,
.site-nav-menu .nav-guides:focus-visible {
  outline: 3px solid var(--apple-blue-hover);
  outline-offset: 3px;
}

.hero .scroll-hint {
  display: table;
  margin-inline: auto;
  text-decoration: none;
}

.hero .scroll-hint:hover,
.hero .scroll-hint:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.hero .scroll-hint:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 5px;
}

.site-nav-menu .nav-guides {
  color: var(--korea-navy);
  background: rgba(31, 58, 95, .07);
}

.digital-guides,
.custom-itinerary {
  width: min(calc(100% - 40px), 1132px);
  margin-inline: auto;
}

.digital-guides {
  padding-block: clamp(48px, 7vw, 84px) 0;
}

.digital-guides-header {
  margin: 0 auto clamp(24px, 4vw, 38px);
  max-width: 62ch;
  text-align: center;
}

.digital-guides-header h2,
.custom-itinerary h2 {
  color: var(--korea-navy);
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.2;
  text-wrap: balance;
}

.digital-guides-header p,
.custom-itinerary p {
  margin-block-start: 12px;
  color: #595d66;
  line-height: 1.65;
}

.digital-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.digital-guide-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--soft-border);
  border-radius: 22px;
  background: var(--apple-card);
  box-shadow: 0 10px 28px rgba(31, 58, 95, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.digital-guide-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--hanok-beige);
}

.digital-guide-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: start;
  padding: clamp(16px, 2vw, 22px);
}

.digital-guide-card h3 {
  color: var(--korea-navy);
  font-size: 1.25rem;
  line-height: 1.3;
}

.digital-guide-card p {
  margin-block: 7px 16px;
  color: #595d66;
  font-size: .95rem;
  line-height: 1.5;
}

.digital-guide-card .guide-purchase-info {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  margin-block: auto 9px;
}

.guide-purchase-info .guide-coverage {
  color: #484f5c;
  font-size: .88rem;
  line-height: 1.35;
}

.guide-purchase-info .guide-price {
  color: var(--korea-navy);
  font-size: 1.2rem;
  font-weight: 900;
}

.digital-guide-card .guide-link {
  width: 100%;
}

.guide-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px clamp(12px, 2.5vw, 30px);
  margin-block-start: clamp(25px, 4vw, 40px);
  padding-block: 22px;
  border-block: 1px solid rgba(31, 58, 95, .14);
  list-style: none;
}

.guide-benefits li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
}

.guide-benefits svg {
  width: 26px;
  height: 26px;
  color: var(--korea-navy);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guide-benefits strong {
  display: block;
  margin-block-end: 3px;
  color: var(--korea-navy);
  line-height: 1.3;
}

.guide-benefits p {
  color: #595d66;
  font-size: .9rem;
  line-height: 1.5;
}

.custom-itinerary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 36px;
  margin-block-start: clamp(34px, 5vw, 56px);
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(31, 58, 95, .12);
  border-radius: 24px;
  background: #eef2f7;
}

.custom-itinerary h2 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.custom-itinerary p {
  max-width: 68ch;
}

.custom-itinerary .custom-itinerary-price {
  color: var(--korea-navy);
  font-weight: 900;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .digital-guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(31, 58, 95, .12);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-guide {
    animation: guide-appear .35s ease-out both;
  }

  @keyframes guide-appear {
    from { opacity: .75; transform: translateY(4px); }
  }
}

@media (max-width: 950px) {
  .digital-guide-grid,
  .guide-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 769px) and (max-height: 920px) {
  .hero {
    padding-block-start: clamp(50px, 8svh, 78px);
  }
}

@media (min-width: 769px) and (max-height: 790px) {
  .hero h1 {
    font-size: clamp(2.6rem, 7vw, 4rem);
  }
}

@media (max-width: 768px) {
  .hero {
    padding-block-start: 42px;
  }

  .hero .flag {
    margin-block-end: 10px;
    font-size: 2.7rem;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 7vw, 4.2rem);
  }

  .hero-subtitle {
    margin-block-start: 12px;
  }

  .hero-actions {
    gap: 8px;
    margin-block-start: 16px;
  }

  .hero-guide {
    gap: 10px;
    margin-block-start: 18px;
  }
}

@media (max-width: 700px) {
  .hero-guide,
  .custom-itinerary {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-guide .guide-link,
  .custom-itinerary .guide-link {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .digital-guide-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .digital-guide-card img {
    aspect-ratio: 16 / 10;
  }

  .guide-benefits li {
    grid-template-columns: 23px minmax(0, 1fr);
    gap: 7px;
  }

  .guide-benefits svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 420px) {
  .guide-benefits {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero:dir(ltr) {
    padding-block-start: 28px;
  }

  .hero:dir(ltr) .flag {
    margin-block-end: 4px;
  }

  .hero:dir(ltr) h1 {
    font-size: 2rem;
  }

  .hero:dir(ltr) .hero-actions {
    gap: 6px;
    margin-block-start: 12px;
  }

  .hero-guide:dir(ltr) {
    margin-block-start: 12px;
  }
}

.footer-services {
  width: min(100%, 760px);
  margin: 0 auto 18px;
  padding-block-end: 18px;
  border-block-end: 1px solid var(--soft-border);
}

.footer-services ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 18px;
  margin-block-start: 5px;
  list-style: none;
}

.footer-services a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  color: var(--korea-navy);
  text-underline-offset: .2em;
}

.footer-services a:focus-visible {
  outline: 2px solid var(--apple-blue-hover);
  outline-offset: 2px;
}

html[lang="he"] .footer-services li[lang="en"],
html[lang="en"] .footer-services li[lang="he"] {
  display: none;
}
