:root {
    --color-bg: #f3f5fa;
    --color-raise: #ffffff;
    --color-text: #1a1932;
    --color-muted: #545276;
    --color-accent: #4f46e5;
    --color-accent-deep: #3b32c4;
    --color-border: #e0e3ee;
    --font-head: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-mark: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --container: 1120px;
    --radius: 16px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
}

.fv-inner {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 22px;
}

a { color: var(--color-accent); }
a:hover { color: var(--color-accent-deep); }

img { max-width: 100%; }

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

h1, h2, h3 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.16;
    margin: 0 0 18px;
    letter-spacing: -0.022em;
}

h1 { font-size: clamp(2.1rem, 6.2vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 3.6vw, 2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 18px; }

.fv-rail { position: sticky; top: 0; z-index: 30; background: var(--color-bg); }

.fv-rail__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 18px;
    min-height: 58px;
}

.fv-sign {
    font-family: var(--font-head);
    font-size: 1.14rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: var(--color-accent);
    text-decoration: none;
    text-transform: uppercase;
}

.fv-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }

.fv-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.93rem;
    color: var(--color-muted);
    text-decoration: none;
}

.fv-links a:hover { color: var(--color-accent); }

.fv-start { padding-top: 52px; }
.fv-start h1 { max-width: 15ch; }
.fv-start__sub { font-size: 1.12rem; color: var(--color-muted); max-width: 56ch; }

.fv-keys { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }

.fv-keys li {
    background: var(--color-raise);
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.fv-keys b { color: var(--color-text); font-weight: 700; }

.fv-zone { padding-top: 56px; }
.fv-zone > p, .fv-zone li { max-width: 68ch; }
.fv-zone ul, .fv-zone ol { padding-left: 24px; margin: 0 0 18px; }
.fv-zone li { margin-bottom: 10px; }

.fv-panel { background: var(--color-raise); border-radius: var(--radius); padding: 26px; }

.fv-slide { overflow-x: auto; margin: 0 0 12px; }

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 700px;
    font-size: 0.93rem;
    line-height: 1.55;
}

caption { text-align: left; color: var(--color-muted); font-size: 0.91rem; padding-bottom: 14px; }

th, td {
    text-align: left;
    padding: 13px 16px 13px 0;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

thead th {
    font-family: var(--font-mark);
    font-size: 0.69rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-muted);
    font-weight: 600;
}

tbody th { font-weight: 700; }

td.fv-val { text-align: right; font-variant-numeric: tabular-nums; padding-right: 8px; }

.fv-note { color: var(--color-muted); font-size: 0.91rem; font-style: italic; max-width: 68ch; }

.fv-dia { background: var(--color-raise); border-radius: var(--radius); padding: 24px; margin: 6px 0 14px; }
.fv-dia svg { display: block; width: 100%; height: auto; max-width: 560px; margin: 0 auto; }
.fv-dia text { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; fill: #545276; }
.fv-dia .fv-dia__cap { font-size: 12px; fill: #4f46e5; }
.fv-dia .fv-dia__grid { stroke: #c9cee0; stroke-width: 1.4; fill: none; }
.fv-dia .fv-dia__no { stroke: #545276; stroke-width: 2.2; stroke-linecap: round; }
.fv-dia .fv-dia__ok { stroke: #4f46e5; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.fv-dia .fv-dia__hint { stroke: #4f46e5; stroke-width: 1.4; stroke-dasharray: 5 5; fill: none; }

.fv-app {
    background: var(--color-raise);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}

.fv-app__head { display: flex; gap: 15px; align-items: center; margin-bottom: 14px; }
.fv-app__head img { flex: none; border-radius: 22px; }
.fv-app h3 { margin: 0 0 2px; }

.fv-app__maker {
    font-family: var(--font-mark);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-muted);
    margin: 0;
}

.fv-app__text { min-width: 0; }
.fv-app__text p { max-width: 60ch; }
.fv-app__terms { color: var(--color-muted); font-size: 0.91rem; }
.fv-app figure { margin: 0; min-width: 0; }
.fv-app figure img { display: block; width: 100%; max-width: 260px; height: auto; border-radius: 10px; border: 1px solid var(--color-border); }
.fv-app figcaption { font-size: 0.86rem; color: var(--color-muted); padding-top: 8px; }

.fv-words { margin: 0; display: grid; grid-template-columns: 1fr; gap: 0 44px; }
.fv-words dt { font-weight: 700; margin-top: 20px; font-size: 1.02rem; }
.fv-words dd { margin: 5px 0 0; color: var(--color-muted); max-width: 56ch; }

.fv-pill {
    display: inline-block;
    min-height: 44px;
    padding: 14px 26px;
    border: 1px solid var(--color-accent);
    border-radius: 999px;
    background: var(--color-accent);
    color: #ffffff;
    font: inherit;
    font-size: 0.93rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 140ms ease, transform 140ms ease, border-color 140ms ease;
}

.fv-pill:hover { background: var(--color-accent-deep); border-color: var(--color-accent-deep); color: #ffffff; transform: translateY(-1px); }
.fv-pill--hollow { background: transparent; color: var(--color-accent); }
.fv-pill--hollow:hover { background: transparent; color: var(--color-accent-deep); }

.fv-more { display: inline-block; font-weight: 600; text-decoration: none; }
.fv-more::after { content: " \2192"; display: inline-block; transition: transform 140ms ease; }
.fv-more:hover { text-decoration: underline; }
.fv-more:hover::after { transform: translateX(4px); }

.fv-reach { padding-top: 56px; }

.fv-reach__addr {
    font-size: clamp(1.25rem, 4.6vw, 1.75rem);
    font-weight: 800;
    word-break: break-word;
    display: inline-block;
    margin-bottom: 10px;
}

.fv-base {
    margin-top: 80px;
    padding: 34px 0 54px;
    background: var(--color-raise);
    color: var(--color-muted);
    font-size: 0.92rem;
}

.fv-base h2 { font-size: 1.02rem; color: var(--color-text); }
.fv-base p { max-width: 70ch; }
.fv-base__set { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 0 24px; }
.fv-base__set a { display: inline-flex; align-items: center; min-height: 44px; }

.fv-ask {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 40;
    max-width: 600px;
    background: var(--color-raise);
    border-radius: var(--radius);
    padding: 22px 24px;
}

.fv-ask p { font-size: 0.92rem; margin-bottom: 15px; }
.fv-ask__row { display: flex; flex-wrap: wrap; gap: 10px; }
.fv-ask__row .fv-pill { flex: 1 1 165px; text-align: center; }

.fv-sheet { padding-top: 40px; max-width: 860px; }
.fv-sheet h2 { margin-top: 38px; }
.fv-sheet p, .fv-sheet li { max-width: 72ch; }
.fv-sheet ul { padding-left: 24px; }
.fv-sheet li { margin-bottom: 10px; }

.fv-mark {
    font-family: var(--font-mark);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--color-muted);
}

@media (min-width: 760px) {
    .fv-ask__row .fv-pill { flex: 0 0 auto; }
    .fv-panel { padding: 32px; }
    .fv-app { grid-template-columns: 1fr 210px; gap: 32px; padding: 30px; }
    .fv-app figure img { max-width: 100%; }
    .fv-words { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1000px) {
    .fv-start { padding-top: 92px; }
    .fv-zone { padding-top: 100px; }
    .fv-reach { padding-top: 100px; }
    .fv-base { margin-top: 108px; }
    .fv-app { grid-template-columns: 1fr 240px; }
}
