:root {
    --red: #ff0000;
    --red-dark: #d90000;
    --pink: #d277df;
    --pink-soft: #faeafa;
    --sky: #9bd8e7;
    --sky-soft: #eefafd;
    --ink: #171717;
    --muted: #686868;
    --line: #e8e8e8;
    --white: #ffffff;
    --page-gray: #eef1f4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--page-gray); }
body {
    margin: 0;
    color: var(--ink);
    background: var(--page-gray);
    font-family: Tahoma, Arial, sans-serif;
    line-height: 1.8;
}

a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: rgba(238,241,244,.96);
}
.site-nav {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
}
.brand-mark {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
}
.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.site-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--muted);
    font-size: 13px;
}
.site-links a:hover { color: var(--red); }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 9px;
    color: white;
    background: var(--red);
    font-size: 13px;
    font-weight: 800;
}
.button:hover { background: var(--red-dark); }

.page-hero {
    padding: 74px 0 48px;
    background: var(--pink-soft);
    border-bottom: 1px solid #efd9ef;
}
.page-hero .eyebrow {
    display: inline-block;
    padding: 4px 13px;
    border: 1px solid #efccef;
    border-radius: 999px;
    color: var(--red);
    background: white;
    font-size: 12px;
    font-weight: 800;
}
.page-hero h1 {
    max-width: 800px;
    margin: 17px 0 10px;
    font-size: clamp(34px, 5vw, 55px);
    line-height: 1.2;
}
.page-hero p { max-width: 730px; margin: 0; color: var(--muted); font-size: 17px; }

.page-main { padding: 52px 0 75px; }
.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 25px;
    align-items: start;
}
.content-card {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: white;
    box-shadow: 0 12px 30px rgba(0,0,0,.04);
}
.content-card h2 { margin: 0 0 12px; color: var(--ink); font-size: 25px; line-height: 1.35; }
.content-card h3 { margin: 28px 0 7px; color: var(--ink); font-size: 18px; }
.content-card p { margin: 0 0 13px; color: var(--muted); }
.content-card ul,
.content-card ol { margin: 0 0 17px; padding-inline-start: 23px; color: var(--muted); }
.content-card li { margin: 7px 0; }
.notice {
    padding: 16px 18px;
    border-inline-start: 4px solid var(--red);
    border-radius: 9px;
    background: var(--pink-soft);
    color: var(--ink);
}
.side-card {
    position: sticky;
    top: 98px;
    padding: 21px;
    border: 1px solid #d9eef3;
    border-radius: 14px;
    background: var(--sky-soft);
}
.side-card h3 { margin: 0 0 10px; font-size: 17px; }
.side-card a { display: block; padding: 7px 0; color: var(--muted); font-size: 13px; }
.side-card a:hover { color: var(--red); }

.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 24px;
}
.guide-step {
    padding: 23px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--red);
    border-radius: 13px;
    background: white;
}
.guide-step:nth-child(2n) { border-top-color: var(--pink); }
.guide-step:nth-child(3n) { border-top-color: var(--sky); }
.guide-step strong { color: var(--red); }
.guide-step h3 { margin: 0 0 6px; font-size: 18px; }
.guide-step p { margin: 0; color: var(--muted); font-size: 14px; }
.guide-image {
    width: 100%;
    display: block;
    margin: 18px 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.guide-image.mobile { max-width: 430px; margin-inline: auto; }

.site-footer {
    padding: 27px 0 20px;
    border-top: 1px solid var(--line);
    background: var(--page-gray);
}
.site-footer-top { display: flex; justify-content: space-between; gap: 25px; align-items: flex-start; }
.site-footer p { max-width: 390px; margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 13px; }
.site-footer-links a:hover { color: var(--red); }
.site-copyright { padding-top: 17px; margin-top: 17px; border-top: 1px solid var(--line); color: #888; font-size: 12px; }

@media (max-width: 800px) {
    .site-links { display: none; }
    .content-layout { grid-template-columns: 1fr; }
    .side-card { position: static; }
}
@media (max-width: 560px) {
    .container { width: min(100% - 28px, 1120px); }
    .page-hero { padding-top: 50px; }
    .content-card { padding: 23px; }
    .guide-grid { grid-template-columns: 1fr; }
    .site-footer-top { flex-direction: column; }
}
