.sp-page {
    --sp-ink: #1a2744;
    --sp-steel: #5c6b7c;
    --sp-paper: #ffffff;
    --sp-mist: #f3f7fb;
    --sp-line: #dce6ef;
    --sp-accent: #08adef;
    --sp-deep: #066bb3;
    --sp-free: #0f9d58;
    --sp-paid: #c45c26;
    color: var(--sp-ink);
}

.sp-page .sp-wrap {
    padding: 28px 0 72px;
}

.sp-subnav {
    margin: 0 0 28px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sp-subnav ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 6px 0 10px;
    min-width: min-content;
}

.sp-subnav a {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--sp-line);
    background: var(--sp-paper);
    color: var(--sp-steel);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.sp-subnav a:hover,
.sp-subnav a.is-current {
    color: var(--sp-deep);
    border-color: #b9dcf0;
    background: #e8f6fd;
}

.sp-subnav a.is-current {
    box-shadow: 0 0 0 3px rgba(8, 173, 239, .12);
}

.sp-lead {
    max-width: 760px;
    margin: 0 0 28px;
    color: var(--sp-steel);
    font-size: 15px;
    line-height: 1.85;
}

.sp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 768px) {
    .sp-grid.cols-2 { grid-template-columns: 1fr 1fr; }
    .sp-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}

@media (min-width: 992px) {
    .sp-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.sp-card {
    display: block;
    background: var(--sp-paper);
    border: 1px solid var(--sp-line);
    border-radius: 16px;
    padding: 26px 24px 22px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 24px rgba(26, 39, 68, .04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

a.sp-card:hover {
    transform: translateY(-3px);
    border-color: #c5d7e6;
    box-shadow: 0 16px 32px rgba(26, 39, 68, .08);
    color: inherit;
}

.sp-card-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin-bottom: 14px;
}

.sp-card h3,
.sp-h {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 800;
    color: var(--sp-ink);
}

.sp-card p,
.sp-copy {
    margin: 0;
    color: var(--sp-steel);
    font-size: 14px;
    line-height: 1.75;
}

.sp-era {
    display: inline-block;
    margin-bottom: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #e8f6fd;
    color: var(--sp-deep);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}

.sp-era.legacy {
    background: #f3f5f8;
    color: var(--sp-steel);
}

.sp-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: var(--sp-accent);
    font-size: 14px;
    font-weight: 700;
}

.sp-section {
    margin-top: 42px;
}

.sp-section > h2 {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 800;
}

.sp-section > h3 {
    margin: 28px 0 10px;
    font-size: 18px;
    font-weight: 800;
}

.sp-note {
    background: #fff8e8;
    border: 1px solid #f0ddb0;
    border-radius: 12px;
    padding: 14px 16px;
    color: #7a5a16;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.sp-list {
    margin: 0 0 18px;
    padding-left: 18px;
    color: var(--sp-steel);
    line-height: 1.85;
}

.sp-list li + li {
    margin-top: 6px;
}

.sp-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--sp-line);
    border-radius: 12px;
    background: var(--sp-paper);
    margin: 0 0 22px;
}

.sp-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 13px;
}

.sp-table th,
.sp-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--sp-line);
    text-align: left;
    vertical-align: top;
    line-height: 1.6;
}

.sp-table thead th {
    background: var(--sp-mist);
    color: var(--sp-deep);
    font-weight: 700;
    white-space: nowrap;
}

.sp-table tbody th {
    font-weight: 700;
    color: var(--sp-ink);
    background: #fafcfe;
    white-space: nowrap;
}

.sp-table tr:last-child th,
.sp-table tr:last-child td {
    border-bottom: 0;
}

.sp-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.sp-badge.free {
    background: #e7f7ee;
    color: var(--sp-free);
}

.sp-badge.paid {
    background: #fbeee6;
    color: var(--sp-paid);
}

.sp-steps {
    display: grid;
    gap: 14px;
}

@media (min-width: 768px) {
    .sp-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.sp-step {
    background: var(--sp-paper);
    border: 1px solid var(--sp-line);
    border-radius: 14px;
    padding: 18px 18px 16px;
}

.sp-step .sp-badge {
    margin-bottom: 10px;
}

.sp-step h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.sp-offices {
    display: grid;
    gap: 16px;
}

@media (min-width: 768px) {
    .sp-offices {
        grid-template-columns: 220px 1fr;
        align-items: start;
    }
}

.sp-office-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

@media (min-width: 768px) {
    .sp-office-list {
        flex-direction: column;
        overflow: visible;
    }
}

.sp-office-btn {
    flex: none;
    border: 1px solid var(--sp-line);
    background: var(--sp-paper);
    color: var(--sp-ink);
    border-radius: 10px;
    padding: 10px 14px;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.sp-office-btn.is-active,
.sp-office-btn:hover {
    background: var(--sp-accent);
    border-color: var(--sp-accent);
    color: #fff;
}

.sp-office-panel {
    background: var(--sp-paper);
    border: 1px solid var(--sp-line);
    border-radius: 14px;
    padding: 22px 24px;
    min-width: 0;
}

.sp-office-panel dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 8px 12px;
    margin: 0;
}

.sp-office-panel dt {
    color: var(--sp-accent);
    font-weight: 700;
}

.sp-office-panel dd {
    margin: 0;
    color: var(--sp-ink);
    word-break: break-all;
}

.sp-office-panel .sp-office-desc {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--sp-line);
    color: var(--sp-steel);
    font-size: 14px;
    line-height: 1.75;
}

.sp-qr {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border: 1px solid var(--sp-line);
    border-radius: 8px;
    background: #fff;
}

.sp-figure {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px auto 24px;
    background: #fff;
    border: 1px solid var(--sp-line);
    border-radius: 12px;
    padding: 12px;
}

.sp-cta {
    margin-top: 48px;
    padding: 36px 24px;
    border-radius: 18px;
    background: linear-gradient(140deg, #113f8a, #08adef);
    color: #fff;
    text-align: center;
}

.sp-cta h2 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #fff;
}

.sp-cta p {
    margin: 0 0 18px;
    opacity: .9;
}

.sp-cta-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.sp-cta-links a {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.sp-cta-links a:hover {
    background: rgba(255,255,255,.24);
    color: #fff;
}

.sp-back {
    margin-top: 18px;
}

.sp-back a {
    color: var(--sp-accent);
    font-weight: 700;
    text-decoration: none;
}

.sp-hl {
    background: #e8f6fd;
}

@media (max-width: 767px) {
    .sp-card h3,
    .sp-h {
        font-size: 18px;
    }
    .sp-table {
        min-width: 520px;
    }
}
