.em-guide {
  padding-block: clamp(96px, 8vw, 124px) clamp(40px, 7vw, 88px);
}

.em-guide .em-guide-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 400px;
  overflow: hidden;
  padding: clamp(24px, 6vw, 76px);
  border: 1px solid var(--em-line);
  border-radius: 18px;
  background: var(--em-card);
}

.em-guide .em-guide-hero img,
.em-guide .em-guide-hero::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.em-guide .em-guide-hero img {
  z-index: -2;
  object-fit: cover;
  object-position: 72% 32%;
}

.em-guide .em-guide-hero::before {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, #111417 0%, rgb(17 20 23 / 90%) 33%, rgb(17 20 23 / 15%) 78%);
}

.em-guide .em-guide-hero-copy {
  max-width: 550px;
}

.em-guide .em-guide-hero h1 {
  font-size: clamp(2.55rem, 6vw, 4.6rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.em-guide .em-guide-hero-copy p {
  max-width: 34ch;
  margin-top: 16px;
  color: var(--em-muted);
  font-size: 1.1rem;
}

.em-guide .em-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.em-guide a.em-button {
  color: var(--em-bg) !important;
}

.em-guide a.em-button-outline {
  color: var(--em-ink) !important;
  background: var(--em-bg);
}

.em-guide a.em-button-outline:hover {
  background: var(--em-surface);
}

.em-guide :is(a, button, summary):focus-visible {
  outline: 2px solid var(--em-accent);
  outline-offset: 3px;
}

.em-guide .em-guide-section {
  margin-top: clamp(40px, 7vw, 84px);
  scroll-margin-top: 24px;
}

.em-guide .em-guide-section h2,
.em-guide .em-guide-booking h2 {
  font-size: clamp(1.75rem, 4vw, 2.9rem);
  font-weight: 850;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.em-guide .em-guide-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.em-guide .em-guide-intro p {
  max-width: 46ch;
  margin-top: 12px;
  color: var(--em-muted);
}

.em-guide .em-guide-intro img {
  display: block;
  width: 100%;
  max-height: 250px;
  border: 1px solid var(--em-line);
  border-radius: 14px;
  object-fit: cover;
  object-position: center 15%;
}

.em-guide .em-guide-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.em-guide .em-guide-card {
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid var(--em-line);
  border-radius: 14px;
  background: var(--em-card);
}

.em-guide .em-guide-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.em-guide .em-guide-card :is(ol, ul) {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-inline-start: 1.6em;
  color: var(--em-muted);
}

.em-guide .em-guide-card li::marker {
  color: var(--em-accent);
  font-weight: 750;
}

.em-guide .em-guide-signals {
  grid-column: 1 / -1;
}

.em-guide .em-guide-faq {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.em-guide .em-guide-faq details {
  border: 1px solid var(--em-line);
  border-radius: 12px;
  background: var(--em-card);
}

.em-guide .em-guide-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.em-guide .em-guide-faq summary::-webkit-details-marker {
  display: none;
}

.em-guide .em-guide-faq summary::after {
  content: "";
  flex: 0 0 8px;
  height: 8px;
  border: solid var(--em-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.em-guide .em-guide-faq details[open] summary::after {
  transform: rotate(225deg);
}

.em-guide .em-guide-faq p {
  padding: 0 16px 16px;
  color: var(--em-muted);
}

.em-guide .em-guide-booking {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(40px, 7vw, 84px);
  padding: clamp(18px, 4vw, 40px);
  border: 1px solid var(--em-line);
  border-radius: 18px;
  background: var(--em-card);
}

.em-guide .em-guide-phone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-block: 8px 12px;
}

.em-guide .em-guide-phone a {
  color: var(--em-ink) !important;
  font-weight: 700;
}

.em-guide .em-guide-phone a:hover {
  color: var(--em-accent) !important;
}

.em-guide .em-guide-phone button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

@media (max-width: 767px) {
  .em-guide {
    padding-top: 84px;
  }

  .em-guide .em-guide-hero {
    min-height: 370px;
    align-items: end;
  }

  .em-guide .em-guide-hero img {
    object-position: 90% 45%;
  }

  .em-guide .em-guide-hero::before {
    background: linear-gradient(0deg, #111417 4%, rgb(17 20 23 / 88%) 38%, rgb(17 20 23 / 8%) 83%);
  }

  .em-guide .em-guide-intro,
  .em-guide .em-guide-rules {
    grid-template-columns: minmax(0, 1fr);
  }

  .em-guide .em-guide-intro img {
    height: auto;
    aspect-ratio: 11 / 7;
  }

  .em-guide .em-guide-booking {
    align-items: stretch;
    flex-direction: column;
  }
}
