.mac-guide {
  background: radial-gradient(ellipse at 74% 0, #21203a, transparent 34rem), var(--bg);
}

.mac-guide-skip {
  position: absolute;
  z-index: 1;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  color: var(--ink);
  background: var(--accent);
  transform: translateY(calc(-100% - 1rem));
}

.mac-guide-skip:focus { transform: none; }
.mac-guide-header, .mac-guide-main { max-width: 1040px; }
.mac-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  border-bottom: 1px solid var(--edge);
}

.mac-guide-header .btn.small { min-height: 44px; min-width: 44px; }
.mac-guide-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  font-size: 1.125rem;
  font-weight: 650;
  text-decoration: none;
}

.mac-guide-main { padding-block: clamp(24px, 6vw, 72px) 60px; }
.mac-guide-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.62fr);
  align-items: center;
  gap: clamp(20px, 5vw, 68px);
  padding-bottom: clamp(32px, 6vw, 64px);
}

.mac-guide-intro h1 { font-size: clamp(2.35rem, 6.4vw, 4.65rem); }
.mac-guide-intro .lead { margin: 14px 0 22px; }
.mac-guide-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 23px);
  min-width: 0;
  min-height: 164px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--edge);
  border-radius: 23px;
  background: linear-gradient(135deg, #24243a, #11121c);
}

.mac-guide-icon { display: grid; align-items: center; width: clamp(48px, 6vw, 68px); aspect-ratio: 1; }
.mac-guide-icon img { display: block; width: 100%; height: auto; }
.mac-guide-folder {
  height: 54px;
  border-radius: 9px;
  background: linear-gradient(0deg, #3e61b1, #a5b9ef);
  clip-path: polygon(0 5%, 35% 5%, 45% 21%, 100% 21%, 100% 100%, 0 100%);
}

.mac-guide-arrow { color: #b6bce0; font-size: 1.5rem; }
.mac-guide-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, 0.54fr); align-items: start; gap: clamp(20px, 5vw, 58px); }
.mac-guide :is(.mac-guide-install, .mac-guide-panel) { padding: 0; }
.mac-guide-install > h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); }
.mac-guide-steps {
  display: grid;
  margin: 16px 0 0;
  padding-left: 1.65rem;
}

.mac-guide-steps li { padding: 15px 0 16px 0.4rem; border-bottom: 1px solid var(--edge); }
.mac-guide-steps li::marker { color: var(--text); font-weight: 700; }
.mac-guide-steps h3 { font-size: 1.145rem; line-height: 1.3; }
.mac-guide-content p { margin-top: 6px; color: var(--muted); }
.mac-guide-content :is(a, strong) { color: var(--text); }
.mac-guide-content a { text-underline-offset: 0.18em; overflow-wrap: anywhere; }
.mac-guide-side { display: grid; gap: 12px; }
.mac-guide .mac-guide-panel {
  padding: 18px 20px;
  background: #171824;
  border: 1px solid var(--edge);
  border-radius: 16px;
}

.mac-guide .mac-guide-temporary { background: #211e31; }
.mac-guide-panel h2 { font-size: 1.1rem; line-height: 1.35; }
.mac-guide-panel p { font-size: 0.94rem; }

@media (max-width: 680px) {
  .mac-guide-content { grid-template-columns: minmax(0, 1fr); }
  .mac-guide-intro { grid-template-columns: minmax(0, 1fr); }
  .mac-guide-figure { min-height: 100px; }
}
