:root {
  --guide-blue: #314531;
  --guide-blue-deep: #243224;
  --guide-blue-soft: #647c53;
  --guide-gold: #efad3f;
  --guide-red: #c82431;
  --guide-cream: #f4efe6;
  --guide-paper: rgba(255, 255, 255, 0.92);
  --guide-paper-strong: rgba(255, 255, 255, 0.97);
  --guide-border: rgba(200, 190, 176, 0.56);
  --guide-text: #233123;
  --guide-text-soft: #4e6141;
  --guide-shadow: 0 18px 42px rgba(30, 41, 29, 0.1);
  font-family: "Montserrat", "Inter", system-ui, -apple-system, sans-serif;
  color: var(--guide-text);
  background:
    radial-gradient(circle at top left, rgba(239, 173, 63, 0.22), transparent 24%),
    radial-gradient(circle at bottom right, rgba(49, 69, 49, 0.16), transparent 28%),
    linear-gradient(180deg, #f7f1e8 0%, #f6f4f0 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--guide-text);
  background: inherit;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

a {
  color: inherit;
}

.guide-shell {
  width: calc(100% - 2 * clamp(16px, 2.5vw, 64px));
  margin: 0 auto;
  padding: 26px 0 72px;
  display: grid;
  gap: 24px;
}

.guide-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 0 4px;
}

.guide-topbar-logo {
  width: 58px;
  height: auto;
}

.guide-topbar-name {
  margin-right: auto;
  color: #1e2a1f;
  font-size: 22px;
  font-weight: 800;
}

.guide-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.72);
  border-left: 1px solid rgba(255, 255, 255, 0.72);
  border-right: 3px solid rgba(184, 171, 152, 0.9);
  border-bottom: 3px solid rgba(184, 171, 152, 0.9);
  background: linear-gradient(180deg, rgba(251, 250, 248, 0.98), rgba(240, 236, 230, 0.96));
  color: #2c3e2c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(44, 62, 44, 0.12);
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    border-color 120ms ease;
}

.guide-back-link:hover {
  transform: translateY(-2px);
  border-right-color: #baad9b;
  border-bottom-color: #baad9b;
  box-shadow: 0 16px 28px rgba(44, 62, 44, 0.14);
}

.guide-back-link:active {
  transform: translateY(0);
}

.guide-back-link-hero {
  position: absolute;
  top: clamp(20px, 3vw, 28px);
  right: 18px;
  width: auto;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 18px;
  z-index: 2;
}

.guide-hero {
  position: sticky;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  top: 18px;
  z-index: 16;
  gap: 12px;
  padding: clamp(20px, 3vw, 28px);
  min-height: clamp(156px, 21vw, 220px);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, var(--guide-blue-deep) 0%, var(--guide-blue) 72%);
  box-shadow: 0 24px 54px rgba(31, 43, 31, 0.18);
  color: #ffffff;
}

.guide-hero::before {
  content: "";
  position: absolute;
  inset: auto auto -140px -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.guide-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: min(860px, calc(100% - 26px));
  align-content: center;
  gap: 12px;
}

.guide-section-label {
  margin: 0;
  color: var(--guide-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.guide-hero h2,
.guide-section h2,
.guide-step h3 {
  margin: 0;
}

.guide-hero h2 {
  max-width: 15ch;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.guide-section-head p {
  margin: 0;
  font-size: 17px;
  line-height: 1.62;
}

.guide-hero-stripes {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 10px;
  display: grid;
  grid-template-rows: 46px 1fr 46px;
}

.guide-stripe {
  display: block;
}

.guide-stripe-red {
  background: var(--guide-red);
}

.guide-stripe-gold {
  background: var(--guide-gold);
}

.guide-stripe-white {
  background: rgba(255, 255, 255, 0.94);
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.guide-content {
  display: grid;
  gap: 20px;
}

.guide-section,
.guide-step {
  border: 1px solid var(--guide-border);
  box-shadow: var(--guide-shadow);
}

.guide-section {
  padding: clamp(22px, 3vw, 32px);
  border-radius: 28px;
  background: var(--guide-paper);
  display: grid;
  gap: 20px;
}

.guide-section-head {
  display: grid;
  gap: 10px;
}

.guide-section h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--guide-blue);
}

.guide-section-head p,
.guide-caption {
  color: var(--guide-text-soft);
}

.guide-note {
  padding: 16px 18px;
  border-left: 6px solid var(--guide-gold);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 246, 228, 0.96), rgba(255, 255, 255, 0.96));
  color: var(--guide-text);
  font-size: 16px;
  line-height: 1.58;
}

.guide-note-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.guide-note-inline {
  width: 100%;
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
}

.guide-note-inline strong {
  color: var(--guide-text);
}

.guide-step {
  padding: 18px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 246, 243, 0.96)),
    var(--guide-paper-strong);
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.guide-step-media {
  display: grid;
  gap: 12px;
}

.guide-media-frame {
  min-height: 250px;
  padding: 18px;
  border-radius: 22px;
  border: 1px dashed rgba(49, 69, 49, 0.28);
  background:
    linear-gradient(180deg, rgba(240, 236, 230, 0.6), rgba(251, 250, 248, 0.96)),
    #ffffff;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 10px;
}

.guide-media-frame-image {
  min-height: auto;
  padding: 16px;
  align-content: start;
  justify-items: stretch;
  gap: 12px;
  text-align: left;
}

.guide-media-tag {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(49, 69, 49, 0.12);
  color: var(--guide-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-media-frame-image .guide-media-tag {
  justify-self: start;
}

.guide-media-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(49, 69, 49, 0.16);
  box-shadow: 0 20px 36px rgba(31, 43, 31, 0.14);
  background: #ffffff;
}

.guide-media-frame p {
  margin: 0;
  max-width: 28ch;
  color: var(--guide-text-soft);
  font-size: 15px;
  line-height: 1.55;
}

.guide-caption {
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .guide-hero,
  .guide-step {
    grid-template-columns: 1fr;
  }

  .guide-hero {
    position: relative;
    top: auto;
  }

  .guide-hero h2 {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .guide-shell {
    width: min(100% - 20px, 1240px);
    padding: 18px 0 42px;
    gap: 18px;
  }

  .guide-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .guide-hero,
  .guide-section,
  .guide-step {
    border-radius: 22px;
  }

  .guide-back-link {
    width: 100%;
  }

  .guide-back-link-hero {
    position: static;
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    font-size: 14px;
  }

  .guide-section-head p,
  .guide-caption {
    font-size: 15px;
  }

  .guide-media-frame {
    min-height: 210px;
  }
}

@media (max-width: 380px) {
  .guide-shell {
    width: min(100% - 16px, 1240px);
  }

  .guide-hero,
  .guide-section,
  .guide-step {
    padding: 16px;
  }

  .guide-hero h2 {
    font-size: clamp(30px, 10vw, 38px);
  }
}
