:root {
    --md-primary: #6e4fb8;
    --md-primary-dark: #513990;
    --md-primary-soft: #f1ebff;
    --md-mint: #dff5e9;
    --md-ink: #24212a;
    --md-muted: #6c6872;
    --md-line: #e8e2ee;
    --md-bg: #fbf8fd;
    --md-card: #ffffff;
    --md-warn: #fff6e8;
}

.md-page { background: linear-gradient(180deg, #fdfaff 0, #fff 360px); color: var(--md-ink); min-height: 70vh; }
.md-page * { box-sizing: border-box; }
.md-page .container { max-width: 1160px; }

.md-subnav-wrap { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--md-line); backdrop-filter: blur(10px); margin-top:100px; }
.md-subnav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.md-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--md-ink); text-decoration: none; font-size: 22px; font-weight: 800; }
.md-brand img { width: 38px; height: 38px; object-fit: contain; }
.md-navlinks { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.md-navlinks a { color: #4c4752; text-decoration: none; padding: 10px 13px; border-radius: 10px; font-weight: 700; font-size: 14px; }
.md-navlinks a:hover, .md-navlinks a.active { color: var(--md-primary-dark); background: var(--md-primary-soft); }
.md-navlinks .md-play { color: #fff; background: var(--md-primary); margin-left: 6px; }
.md-navlinks .md-play:hover { color: #fff; background: var(--md-primary-dark); }

.md-hero { padding: 64px 0 38px; }
.md-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 36px; align-items: center; }
.md-eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--md-primary-dark); background: var(--md-primary-soft); padding: 7px 11px; border-radius: 999px; font-weight: 800; font-size: 13px; margin-bottom: 16px; }
.md-hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.04; letter-spacing: -1.7px; margin: 0 0 18px; color: #211d27; }
.md-hero p { font-size: 19px; line-height: 1.7; color: var(--md-muted); max-width: 760px; margin: 0; }
.md-hero-card { background: linear-gradient(145deg, var(--md-primary-soft), #fff); border: 1px solid #ded3f1; border-radius: 24px; padding: 26px; box-shadow: 0 18px 50px rgba(67,45,105,.10); }
.md-hero-card h3 { margin: 0 0 12px; font-size: 19px; }
.md-hero-card ul { margin: 0; padding-left: 20px; color: #56505d; line-height: 1.8; }

.md-section { padding: 34px 0 56px; }
.md-section + .md-section { border-top: 1px solid #f2edf5; }
.md-section h2 { font-size: 30px; margin: 0 0 10px; color: #29232f; }
.md-section-lead { color: var(--md-muted); font-size: 17px; line-height: 1.7; margin: 0 0 26px; max-width: 850px; }

.md-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.md-card { background: var(--md-card); border: 1px solid var(--md-line); border-radius: 18px; padding: 22px; box-shadow: 0 8px 26px rgba(54,38,70,.06); }
.md-card h3 { font-size: 18px; margin: 0 0 9px; color: #2d2634; }
.md-card p, .md-card li { color: var(--md-muted); line-height: 1.65; font-size: 15px; }
.md-card p:last-child { margin-bottom: 0; }
.md-icon { width: 42px; height: 42px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; background: var(--md-primary-soft); color: var(--md-primary-dark); font-size: 21px; margin-bottom: 14px; font-weight: 800; }

.md-toc { background: #fff; border: 1px solid var(--md-line); border-radius: 18px; padding: 20px; display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.md-toc a { text-decoration: none; color: #51485d; background: #faf7fc; padding: 8px 11px; border-radius: 9px; font-size: 14px; font-weight: 700; }
.md-toc a:hover { background: var(--md-primary-soft); color: var(--md-primary-dark); }

.md-steps { counter-reset: mdstep; display: grid; gap: 14px; }
.md-step { position: relative; padding: 19px 20px 19px 62px; border: 1px solid var(--md-line); border-radius: 16px; background: #fff; }
.md-step::before { counter-increment: mdstep; content: counter(mdstep); position: absolute; left: 18px; top: 18px; width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; background: var(--md-primary); color: #fff; font-weight: 800; }
.md-step h3 { margin: 0 0 5px; font-size: 17px; }
.md-step p { margin: 0; color: var(--md-muted); line-height: 1.65; }

.md-security { background: linear-gradient(135deg, #2e2342, #594080); color: #fff; border-radius: 24px; padding: 30px; }
.md-security h2, .md-security h3 { color: #fff; }
.md-security p, .md-security li { color: rgba(255,255,255,.83); }
.md-security-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.md-security-item { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); border-radius: 15px; padding: 17px; }

.md-callout { border-left: 4px solid var(--md-primary); background: var(--md-primary-soft); padding: 18px 20px; border-radius: 0 14px 14px 0; color: #4b4059; line-height: 1.65; }
.md-warning { border-left-color: #d89426; background: var(--md-warn); color: #65502c; }

.md-faq { display: grid; gap: 10px; }
.md-faq details { background: #fff; border: 1px solid var(--md-line); border-radius: 14px; padding: 0 18px; }
.md-faq summary { cursor: pointer; font-weight: 800; padding: 17px 32px 17px 0; position: relative; list-style: none; }
.md-faq summary::-webkit-details-marker { display: none; }
.md-faq summary::after { content: '+'; position: absolute; right: 0; top: 12px; font-size: 24px; color: var(--md-primary); }
.md-faq details[open] summary::after { content: '–'; }
.md-faq details p { color: var(--md-muted); line-height: 1.65; margin: 0 0 17px; }

.md-video-shell { background: #211b2a; border-radius: 24px; padding: 12px; box-shadow: 0 24px 60px rgba(28,19,39,.18); }
.md-video-shell video { display: block; width: 100%; max-height: 650px; border-radius: 16px; background: #000; }
.md-video-note { text-align: center; color: var(--md-muted); margin-top: 11px; font-size: 14px; }

.md-tour-list { display: grid; gap: 24px; margin-top: 24px; }
.md-tour-item { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: center; background: #fff; border: 1px solid var(--md-line); border-radius: 22px; padding: 20px; box-shadow: 0 10px 32px rgba(54,38,70,.055); }
.md-tour-item:nth-child(even) { grid-template-columns: minmax(0, 1fr) 300px; }
.md-tour-item:nth-child(even) .md-tour-shot { order: 2; }
.md-tour-shot { display: flex; justify-content: center; background: #fbf7fd; border-radius: 16px; padding: 13px; min-height: 330px; align-items: center; }
.md-tour-shot img { width: auto; max-width: 100%; max-height: 520px; border-radius: 12px; box-shadow: 0 6px 18px rgba(39,27,50,.12); }
.md-tour-copy .md-num { color: var(--md-primary); font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.md-tour-copy h3 { font-size: 24px; margin: 5px 0 10px; }
.md-tour-copy p { margin: 0; color: var(--md-muted); line-height: 1.7; font-size: 16px; }

.md-policy { background: #fff; border: 1px solid var(--md-line); border-radius: 22px; padding: 30px; box-shadow: 0 8px 28px rgba(54,38,70,.05); }
.md-policy h2 { margin-top: 30px; font-size: 23px; }
.md-policy h2:first-child { margin-top: 0; }
.md-policy p, .md-policy li { color: #5e5864; line-height: 1.75; }
.md-policy code { background: #f6f2f8; border-radius: 6px; padding: 2px 6px; word-break: break-all; }

.md-cta { text-align: center; background: linear-gradient(135deg, var(--md-primary-soft), #eef8f2); border: 1px solid #dfd7e8; border-radius: 24px; padding: 34px 22px; }
.md-cta h2 { margin-bottom: 8px; }
.md-cta p { color: var(--md-muted); margin-bottom: 18px; }
.md-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; padding: 12px 19px; border-radius: 12px; font-weight: 800; background: var(--md-primary); color: #fff !important; }
.md-btn:hover { background: var(--md-primary-dark); text-decoration: none; }
.md-btn-secondary { background: #fff; color: var(--md-primary-dark) !important; border: 1px solid #cfc2e3; margin-left: 8px; }

@media (max-width: 900px) {
    .md-hero-grid, .md-grid, .md-security-grid { grid-template-columns: 1fr; }
    .md-grid { gap: 13px; }
    .md-tour-item, .md-tour-item:nth-child(even) { grid-template-columns: 1fr; }
    .md-tour-item:nth-child(even) .md-tour-shot { order: initial; }
    .md-tour-shot { min-height: 0; }
    .md-tour-shot img { max-height: 560px; }
}

@media (max-width: 700px) {
    .md-subnav { align-items: flex-start; flex-direction: column; padding-top: 12px; padding-bottom: 12px; gap: 8px; }
    .md-navlinks { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
    .md-navlinks a { white-space: nowrap; }
    .md-navlinks .md-play { margin-left: 0; }
    .md-hero { padding-top: 38px; }
    .md-hero h1 { font-size: 38px; letter-spacing: -.8px; }
    .md-hero p { font-size: 17px; }
    .md-section { padding: 28px 0 42px; }
    .md-section h2 { font-size: 26px; }
    .md-policy { padding: 20px; }
    .md-btn-secondary { display: flex; margin: 8px auto 0; width: fit-content; }
}
