
:root {
    --bg: #181f1d;
    --panel: #151c1a;
    --text: #f2f5f3;
    --muted: #cfd6d2;
    --accent: #2f8b8d;
    --accent-2: #93ad82;
    --accent-grad: linear-gradient(135deg,var(--accent),rgba(47,139,141,.60));
    --shadow: 0 8px 20px rgba(0,0,0,.22);
    --radius: 18px;
    --fs-base: 19px;
    --fs-small: 16.5px;
    --lh-base: 1.7;
    --tap: 50px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    background: radial-gradient(1400px 1000px at 10% -10%,rgba(47,139,141,.38),transparent 75%), radial-gradient(1200px 900px at 120% 0%,rgba(147,173,130,.30),transparent 75%), var(--bg);
    background-repeat: no-repeat,no-repeat,no-repeat;
    background-size: cover,cover,cover;
    background-position: center,center,center;
    color: var(--text);
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
:focus-visible {
    outline: 3px solid rgba(147,173,130,.75);
    outline-offset: 3px;
    border-radius: 12px;
}
.wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 12px 32px;
}
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 2px 18px;
}
.header-top { display: contents; }
.brand {
    order: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}
.brand-text {
    order: 2;
    margin-left: 12px;
}
.header-actions {
    order: 3;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-img {
    width: clamp(48px,6vw,62px);
    height: clamp(48px,6vw,62px);
    display: block;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.brand-text strong {
    font-size: 19px;
    letter-spacing: .2px;
}
.brand-text span {
    font-size: var(--fs-small);
    color: var(--muted);
    display: block;
    margin-top: 4px;
}
.theme-toggle {
    min-height: var(--tap);
    width: var(--tap);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: var(--text);
    cursor: pointer;
    transition: .15s;
    user-select: none;
}
.theme-toggle:hover {
    background: rgba(255,255,255,.10);
    transform: translateY(-1px);
}
.support-btn,
.btn {
    min-height: var(--tap);
    padding: 12px 18px;
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    font-weight: 700;
    letter-spacing: .2px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: .15s;
    white-space: nowrap;
    min-width: 0;
}
.support-btn:hover,
.btn:hover {
    background: rgba(255,255,255,.10);
    transform: translateY(-1px);
}
.support-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent-2);
    box-shadow: 0 0 0 6px rgba(147,173,130,.12);
    flex: 0 0 auto;
}
.support-text { display: inline-block; white-space: nowrap; }
.grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}
.grid.grid-single { grid-template-columns: 1fr; }
.panel {
    background: rgba(21,28,26,.92);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.panel-head {
    padding: 18px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: linear-gradient(180deg,rgba(255,255,255,.03),transparent);
}
.panel-head h1, .panel-head h2 {
    margin: 0;
    font-size: 21px;
    letter-spacing: .2px;
}
.panel-head p {
    margin-top: 8px;
    color: var(--muted);
    font-size: var(--fs-small);
}
.panel-body, .cards { padding: 18px; }
.steps { display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.marker { position: relative; display: flex; justify-content: center; }
.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(47,139,141,.18);
    margin-top: 6px;
}
.marker:after {
    content: "";
    position: absolute;
    top: 28px;
    height: 100%;
    border-left: 2px dashed rgba(255,255,255,.18);
}
.step:last-child .marker:after { display: none; }
.step h3 { margin: 0; font-size: 17.5px; letter-spacing: .15px; }
.step p, .card p { margin-top: 6px; font-size: var(--fs-small); color: var(--muted); line-height: 1.65; }
.primary {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.btn {
    justify-content: center;
    color: var(--text);
    cursor: pointer;
    font-weight: 800;
}
.btn:not(.btn-accent):hover { background: rgba(255,255,255,.10); }
.btn-accent {
    background: var(--accent-grad);
    border-color: rgba(47,139,141,.70);
    box-shadow: 0 10px 22px rgba(0,0,0,.18);
}
.btn-accent:hover {
    background: var(--accent-grad);
    box-shadow: 0 14px 28px rgba(0,0,0,.22);
}
.cards { display: grid; gap: 14px; }
.card {
    padding: 16px;
    border-radius: 16px;
    background: rgba(17,24,22,.92);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 6px 16px rgba(0,0,0,.18);
    transition: .15s;
    min-height: var(--tap);
}
.card:hover {
    background: rgba(17,24,22,.98);
    transform: translateY(-1px);
}
.card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 17.5px;
    font-weight: 900;
    letter-spacing: .2px;
}
.chip {
    font-size: 13.5px;
    color: #fff;
    background: var(--accent-grad);
    border: 1px solid rgba(47,139,141,.70);
    padding: 7px 10px;
    border-radius: 999px;
    white-space: nowrap;
    font-weight: 800;
}
footer {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: var(--fs-small);
    color: var(--muted);
}
.footer-link {
    color: rgba(242,245,243,.90);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(242,245,243,.35);
}
.footer-link:hover { text-decoration-color: rgba(242,245,243,.70); }
form { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 8px; }
label {
    font-weight: 800;
    letter-spacing: .1px;
    font-size: var(--fs-small);
}
.hint {
    color: var(--muted);
    font-size: 14.5px;
    margin-top: -4px;
}
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: var(--text);
    font-size: var(--fs-small);
    outline: none;
    appearance: none;
}
textarea {
    min-height: 140px;
    resize: vertical;
}
input::placeholder, textarea::placeholder { color: rgba(207,214,210,.75); }
.notice {
    margin: 0 0 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(47,139,141,.18);
    border: 1px solid rgba(47,139,141,.55);
    color: var(--text);
    font-size: var(--fs-small);
}
.checks { display: grid; gap: 10px; }
.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
}
.check input { margin-top: 4px; flex: 0 0 auto; }
.check .txt {
    font-size: var(--fs-small);
    color: var(--muted);
}
.check a {
    color: rgba(242,245,243,.92);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(242,245,243,.35);
}
.check a:hover { text-decoration-color: rgba(242,245,243,.70); }
.hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.survey-widget {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: min(380px, calc(100vw - 20px));
    z-index: 2000;
    display: grid;
    gap: 10px;
}
.survey-widget.is-collapsed .survey-panel { display: none; }
.survey-toggle {
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(21,28,26,.96);
    color: var(--text);
    box-shadow: var(--shadow);
    font-weight: 800;
    letter-spacing: .2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}
.survey-toggle:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.10);
}
.survey-panel {
    background: rgba(21,28,26,.98);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0,0,0,.30);
    overflow: hidden;
}
.survey-panel-inner {
    max-height: min(72vh, 760px);
    overflow: auto;
    padding: 16px;
}
.survey-head { display: grid; gap: 8px; margin-bottom: 12px; }
.survey-head strong { font-size: 18px; letter-spacing: .2px; }
.survey-head p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.survey-question {
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    display: grid;
    gap: 10px;
}
.survey-question + .survey-question { margin-top: 10px; }
.survey-question-title {
    margin: 0;
    font-size: 15.5px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.45;
}
.survey-options { display: grid; gap: 8px; }
.survey-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.survey-option:hover {
    background: rgba(255,255,255,.08);
    transform: translateY(-1px);
}
.survey-option:has(input:checked) {
    background: rgba(47,139,141,.18);
    border-color: rgba(47,139,141,.60);
    box-shadow: 0 0 0 1px rgba(47,139,141,.35);
}
.survey-option input { margin-top: 4px; flex: 0 0 auto; }
.survey-range-wrap { display: grid; gap: 10px; }
.survey-range-labels {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13.5px;
    color: var(--muted);
}
.survey-range-value { font-size: 14px; color: var(--muted); font-weight: 700; }
.survey-range { width: 100%; }
.survey-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.survey-status {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14.5px;
    line-height: 1.45;
}
.survey-status.success {
    background: rgba(147,173,130,.15);
    border: 1px solid rgba(147,173,130,.35);
}
.survey-status.error {
    background: rgba(180,72,72,.16);
    border: 1px solid rgba(180,72,72,.35);
}
body.light-mode {
    --bg: #f3f6f5;
    --panel: #ffffff;
    --text: #1c1f1e;
    --muted: #4f5b57;
    --accent: #2f8b8d;
    --accent-2: #7d9a6c;
    --shadow: 0 10px 24px rgba(0,0,0,.10);
}
body.light-mode {
    background: radial-gradient(1400px 1000px at 10% -10%,rgba(47,139,141,.20),transparent 75%), radial-gradient(1200px 900px at 120% 0%,rgba(147,173,130,.18),transparent 75%), var(--bg);
    background-repeat: no-repeat,no-repeat,no-repeat;
    background-size: cover,cover,cover;
    background-position: center,center,center;
}
body.light-mode .panel {
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: var(--shadow);
}
body.light-mode .panel-head {
    border-bottom: 1px solid rgba(0,0,0,.06);
    background: linear-gradient(180deg,rgba(0,0,0,.03),transparent);
}
body.light-mode .support-btn,
body.light-mode .theme-toggle,
body.light-mode .btn:not(.btn-accent),
body.light-mode input[type="text"],
body.light-mode input[type="email"],
body.light-mode input[type="tel"],
body.light-mode textarea,
body.light-mode select {
    background: rgba(0,0,0,.04);
    border: 1px solid rgba(0,0,0,.10);
    color: var(--text);
}
body.light-mode .support-btn:hover,
body.light-mode .theme-toggle:hover,
body.light-mode .btn:not(.btn-accent):hover { background: rgba(0,0,0,.06); }
body.light-mode input::placeholder,
body.light-mode textarea::placeholder { color: rgba(79,91,87,.70); }
body.light-mode .card {
    background: rgba(250,251,250,.96);
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 8px 18px rgba(0,0,0,.08);
}
body.light-mode .card:hover { background: rgba(250,251,250,1); }
body.light-mode .marker:after { border-left-color: rgba(0,0,0,.18); }
body.light-mode footer { color: rgba(28,31,30,.70); }
body.light-mode .footer-link {
    color: rgba(28,31,30,.85);
    text-decoration-color: rgba(28,31,30,.30);
}
body.light-mode .footer-link:hover { text-decoration-color: rgba(28,31,30,.55); }
body.light-mode .survey-toggle,
body.light-mode .survey-panel {
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(0,0,0,.10);
}
body.light-mode .survey-question,
body.light-mode .survey-option {
    background: rgba(0,0,0,.03);
    border: 1px solid rgba(0,0,0,.08);
}
body.light-mode .survey-option:hover { background: rgba(0,0,0,.05); }
body.light-mode .survey-option:has(input:checked) {
    background: rgba(47,139,141,.12);
    border-color: rgba(47,139,141,.45);
    box-shadow: 0 0 0 1px rgba(47,139,141,.22);
}
@media (max-width:860px) {
    .grid { grid-template-columns: 1fr; }
    .card-title {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        align-items: start;
    }
    .card-title .chip {
        justify-self: end;
        white-space: normal;
    }
    .wrap { padding-left: 10px; padding-right: 10px; }
    .header {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 10px;
    }
    .header-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    .brand, .header-actions, .brand-text { order: 0; margin-left: 0; }
    .theme-toggle { min-height: 44px; width: 44px; border-radius: 12px; }
    .support-btn,
    .btn {
        min-height: 44px;
        padding: 10px 12px;
        font-size: 14px;
        gap: 8px;
        border-radius: 12px;
        white-space: normal;
    }
    .support-text { white-space: normal; line-height: 1.05; }
    .support-dot { width: 9px; height: 9px; box-shadow: 0 0 0 5px rgba(147,173,130,.12); }
    .brand-text strong { font-size: 18px; }
    .brand-text span { font-size: 15px; }
    .row { grid-template-columns: 1fr; }
    .survey-widget {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
    }
    .survey-panel-inner { max-height: 68vh; }
}
@media (max-width:420px) {
    .support-btn { padding: 9px 10px; font-size: 13px; }
    .theme-toggle { width: 42px; min-height: 42px; }
}


.page-stack {
    display: grid;
    gap: 16px;
}
.lead-copy {
    font-size: 18px;
    color: var(--text);
}
.content-block + .content-block { margin-top: 18px; }
.content-block h2, .content-block h3 {
    margin: 0 0 10px;
    font-size: 20px;
}
.content-block p, .content-block li {
    color: var(--muted);
    font-size: var(--fs-small);
    line-height: 1.7;
}
.content-block ul {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 8px;
}
.highlight-box {
    padding: 16px;
    border-radius: 16px;
    background: rgba(47,139,141,.10);
    border: 1px solid rgba(47,139,141,.35);
}
.split-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.small-note {
    font-size: 14px;
    color: var(--muted);
}
.alpha-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.alpha-pill {
    min-width: 42px;
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}
.term-list {
    display: grid;
    gap: 14px;
}
.term-card {
    padding: 16px;
    border-radius: 16px;
    background: rgba(17,24,22,.92);
    border: 1px solid rgba(255,255,255,.08);
}
.term-card h3 {
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}
.term-card p {
    margin: 0;
    color: var(--muted);
    font-size: var(--fs-small);
}
.term-alert {
    margin-top: 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
}
.media-grid {
    display: grid;
    gap: 14px;
}
.media-card {
    padding: 16px;
    border-radius: 16px;
    background: rgba(17,24,22,.92);
    border: 1px solid rgba(255,255,255,.08);
    display: grid;
    gap: 12px;
}
.media-thumb {
    min-height: 180px;
    border-radius: 16px;
    border: 1px dashed rgba(255,255,255,.18);
    background: linear-gradient(135deg, rgba(47,139,141,.12), rgba(147,173,130,.10));
    display: grid;
    place-items: center;
    text-align: center;
    padding: 18px;
    color: var(--muted);
    font-weight: 700;
}
.media-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.quiz-box {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
}
.quiz-options {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}
.quiz-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
}
.side-section + .side-section { margin-top: 16px; }
.side-list {
    display: grid;
    gap: 10px;
}
.side-item {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
}
.side-item strong { display: block; margin-bottom: 6px; }
.side-item p { margin: 0; color: var(--muted); font-size: 14.5px; }
body.light-mode .term-card,
body.light-mode .media-card {
    background: rgba(250,251,250,.96);
    border: 1px solid rgba(0,0,0,.06);
}
body.light-mode .term-alert,
body.light-mode .quiz-box,
body.light-mode .quiz-option,
body.light-mode .side-item,
body.light-mode .alpha-pill,
body.light-mode .highlight-box {
    background: rgba(0,0,0,.03);
    border: 1px solid rgba(0,0,0,.08);
}
@media (max-width:860px) {
    .split-boxes { grid-template-columns: 1fr; }
}
