/* Light, quiet design: white page, soft gray panels, near-black ink, one blue accent. */
/* Inter (SIL Open Font License, see /static/fonts/LICENSE.txt), self-hosted and split by script:
   the browser downloads only the files whose characters appear on the page. Arabic, Hebrew, Hindi,
   Thai, Chinese, Japanese and Korean use the device's own fonts. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/static/fonts/Inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BA, U+2122, U+2190-2193, U+2212, U+2215, U+221E, U+2248, U+25A0, U+25B2, U+25CF, U+2713, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/static/fonts/Inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-0130, U+0132-0151, U+0154-017F, U+0218-021B, U+1E9E, U+2020, U+20A0-20AB, U+20AD-20B9, U+20BB-20C0;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/static/fonts/Inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/static/fonts/Inter-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
:root {
  color-scheme: light;
  /* warm paper and ink, three shape colours: cobalt, coral, sun */
  --bg: #f5f1e8; --card: #fffdf8; --soft: #ece6d8; --ink: #15130f; --muted: #6b6659; --faint: #9c9686;
  --line: #e0d9c8; --line-strong: #cbc3ae; --track: #e2dccd;
  --accent: #2f4bff; --accent-soft: #e2e6ff; --coral: #ff5b3a; --sun: #ffc83d; --sun-deep: #e3a500;
  --ok: #17805a; --ok-soft: #dff1e7; --bad: #c5381f; --bad-soft: #fbe5df;
  --panel: var(--soft);
  --r-panel: 30px; --r-card: 24px; --r-ctl: 16px;
  --shadow: 0 1px 0 rgba(21, 19, 15, .04), 0 14px 34px rgba(21, 19, 15, .08);
  --font: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 var(--font); letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { margin: 0; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6.4vw, 3.9rem); line-height: 1.04; letter-spacing: -.038em; }
h2 { font-size: clamp(1.6rem, 3.8vw, 2.35rem); line-height: 1.1; letter-spacing: -.028em; }
h3 { font-size: 1.12rem; line-height: 1.25; letter-spacing: -.012em; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 600px; }
.stack { display: grid; gap: 16px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pad { padding-top: 20px; padding-bottom: 56px; }
.page-title { font-size: clamp(1.8rem, 5vw, 2.5rem); }
.label { font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
[hidden] { display: none !important; }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(20px, calc((100% - 1040px) / 2)); border-bottom: 1px solid var(--line);
  background: rgba(245, 241, 232, .9); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.nav { display: flex; gap: 30px; }
.nav a { color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500; }
.nav a:hover { color: var(--accent); }
.brand { display: inline-flex; align-items: center; font-weight: 800; font-size: 1.25rem;
  letter-spacing: -.035em; color: var(--ink); text-decoration: none; line-height: 1; direction: ltr; }
.brand span { font-weight: 500; }
.brand::before { content: ""; width: 26px; height: 26px; flex: none; margin-inline-end: 9px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none'%3E%3Crect x='3' y='3' width='26' height='26' rx='8' stroke='%23111318' stroke-width='2.2'/%3E%3Ccircle cx='11.5' cy='11.5' r='2.7' fill='%23111318'/%3E%3Ccircle cx='20.5' cy='11.5' r='2.7' fill='%23111318'/%3E%3Ccircle cx='11.5' cy='20.5' r='2.7' fill='%23111318'/%3E%3Ccircle cx='20.5' cy='20.5' r='2.1' stroke='%23111318' stroke-width='1.8'/%3E%3C/svg%3E") center/contain no-repeat; }
.top-right { display: flex; align-items: center; gap: 14px; }
.langs { position: relative; display: inline-flex; }
.flag { width: 20px; height: 15px; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(17, 19, 24, .1); object-fit: cover; }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink); font: 500 .86rem var(--font); padding: 7px 14px 7px 10px; cursor: pointer; }
.lang-btn::after { content: ""; width: 10px; height: 10px; margin-inline-start: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%236b7080' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5l3 3 3-3'/%3E%3C/svg%3E") center/contain no-repeat; }
.lang-btn:hover { border-color: var(--line-strong); }
.lang-menu { position: absolute; z-index: 30; top: calc(100% + 8px); inset-inline-end: 0; width: min(92vw, 400px);
  max-height: min(70vh, 520px); overflow: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.lang-menu button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink); font: 500 .88rem var(--font); text-align: start; cursor: pointer; }
.lang-menu button:hover { background: var(--soft); }
.lang-menu button[aria-selected=true] { background: var(--soft); font-weight: 700; }
.lang-btn:focus-visible, .lang-menu button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px;
  padding: 0 22px; border: 1.5px solid var(--ink); border-radius: 16px; background: transparent; color: var(--ink);
  font: 650 .98rem var(--font); letter-spacing: -.01em; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease, opacity .15s ease; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #1f38e0; border-color: #1f38e0; color: #fff; }
.btn.primary::after { content: "→"; transition: transform .15s ease; }
.btn.primary:hover::after { transform: translateX(3px); }
[dir=rtl] .btn.primary::after { content: "←"; }
[dir=rtl] .btn.primary:hover::after { transform: translateX(-3px); }
.btn.big { min-height: 60px; padding: 0 30px; font-size: 1.08rem; border-radius: 18px; }
.btn.sm { min-height: 38px; padding: 0 15px; font-size: .88rem; border-radius: 12px; }
.btn.block { width: 100%; }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.btn.danger:hover { background: var(--bad); color: #fff; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn:focus-visible, .opt:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--sun-deep); outline-offset: 2px; }

/* ---- surfaces ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px; }
.panel { background: var(--panel); border-radius: var(--r-panel); padding: 28px; }
.tag { display: inline-flex; align-items: center; font-size: .75rem; font-weight: 600; padding: 3px 10px;
  border-radius: 999px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 28px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .28em; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%232f4bff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9.5l3.2 3.2L14 5.8'/%3E%3C/svg%3E") center/contain no-repeat; }
.note { background: var(--soft); border-radius: var(--r-card); padding: 16px 20px; font-size: .95rem; color: var(--muted); }
.banner { background: var(--soft); color: var(--muted); border-radius: 999px; padding: 7px 14px; font-size: .82rem;
  text-align: center; justify-self: center; }
.bar { height: 6px; background: var(--track); border-radius: 99px; overflow: hidden; }
.bar > div { height: 100%; background: var(--accent); border-radius: 99px; }
.curve { width: 100%; height: auto; display: block; color: var(--accent); }
.curve text { font-family: var(--font); }
.spinner { width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--ink);
  border-radius: 50%; margin: 0 auto 18px; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- landing ---- */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
.kicker { display: inline-flex; align-items: center; gap: 9px; font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.kicker::before { content: ""; width: 9px; height: 9px; background: var(--coral); border-radius: 2px; transform: rotate(45deg); flex: none; }
.c-blue { color: var(--accent); }
.c-coral { color: var(--coral); }
.c-sun { color: var(--sun-deep); }

.hero3 { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; padding-top: 76px; padding-bottom: 92px; }
.hero3 h1 { font-size: clamp(2.7rem, 6.2vw, 4.7rem); letter-spacing: -.052em; line-height: .98; margin-top: 20px; }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: var(--muted); line-height: 1.45; margin: 22px 0 30px; max-width: 30em; }
.price-note { margin: 18px 0 0; font-size: .875rem; color: var(--muted); max-width: 34em; }
.sample-wrap { position: relative; }
.sample-wrap::before { content: ""; position: absolute; inset: 20px -16px -16px 20px; background: var(--accent); border-radius: 36px; transform: rotate(3deg); }
.sample-wrap::after { content: ""; position: absolute; width: 74px; height: 74px; top: -26px; inset-inline-end: -18px; background: var(--sun); border-radius: 50%; }
.sample { position: relative; z-index: 1; background: var(--card); border-radius: 30px; padding: 26px; direction: ltr; }
.sample-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.sample-head .label { text-align: end; }
.sample .matrix { max-width: 290px; margin: 0 auto 18px; gap: 8px; }
.sample .cell { background: var(--bg); }
.sample .cell.c-blue { color: var(--accent); }
.sample .cell.c-coral { color: var(--coral); }
.sample .cell.c-sun { color: var(--sun-deep); }
.sample .cell.missing { background: var(--card); }
.sample-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 290px; margin: 0 auto; }
.sample-opts button { aspect-ratio: 1; border: 1.5px solid var(--line-strong); border-radius: 16px; background: var(--card); padding: 16%;
  cursor: pointer; transition: border-color .12s ease, background .12s ease, transform .12s ease; }
.sample-opts button:hover { border-color: var(--ink); transform: translateY(-2px); }
.sample-opts button.ok { border-color: var(--ok); background: var(--ok-soft); }
.sample-opts button.no { border-color: var(--bad); animation: shake .3s; }
.sample-opts svg { width: 100%; height: 100%; display: block; }
.sample-msg { min-height: 1.5em; margin: 16px 0 0; text-align: center; font-weight: 650; font-size: .95rem; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.strip { background: var(--ink); color: var(--bg); padding: 20px 0; }
.strip-in { display: flex; justify-content: center; align-items: center; gap: 14px 30px; flex-wrap: wrap; font-weight: 700; letter-spacing: -.01em; }
.strip-in span { display: inline-flex; align-items: center; gap: 10px; }
.strip-in span::before { content: ""; width: 12px; height: 12px; background: var(--sun); border-radius: 50%; }
.strip-in span:nth-child(3n+2)::before { background: var(--coral); border-radius: 2px; }
.strip-in span:nth-child(3n)::before { background: #7f93ff; border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }

.sec { padding-top: 112px; }
.sec-head { max-width: 40em; margin: 0 0 40px; }
.sec-head h2 { font-size: clamp(2rem, 4.8vw, 3.3rem); letter-spacing: -.048em; line-height: 1.02; margin-top: 14px; }
.sec-head p { color: var(--muted); font-size: 1.1rem; margin: 16px 0 0; }

.feat { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.ft { grid-column: span 2; min-width: 0; min-height: 300px; display: flex; flex-direction: column; padding: 28px;
  border-radius: 28px; background: var(--card); border: 1px solid var(--line); }
.ft.w3 { grid-column: span 3; }
.ft.w4 { grid-column: span 4; }
.ft h3 { font-size: 1.4rem; letter-spacing: -.035em; line-height: 1.1; }
.ft p { margin: 10px 0 0; font-size: .96rem; color: var(--muted); max-width: 30em; }
.ft .vis { margin-top: auto; padding-top: 24px; }
.ft.blue { background: var(--accent); border-color: transparent; color: #fff; }
.ft.blue p { color: rgba(255, 255, 255, .84); }
.ft.blue .kicker::before { background: var(--sun); }
.ft.ink { background: var(--ink); border-color: transparent; color: var(--bg); }
.ft.ink p { color: rgba(245, 241, 232, .7); }
.ft.sun { background: var(--sun); border-color: transparent; }
.ft.sun p { color: #5a4810; }
.ft.coral { background: var(--coral); border-color: transparent; color: #fff; }
.ft.coral p { color: rgba(255, 255, 255, .88); }
.mind-name { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; margin-top: 12px; }
.mind-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.emblem { flex: none; width: 124px; height: 124px; }
.emblem svg { width: 100%; height: 100%; display: block; }
.dots100 { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; flex: 0 0 min(230px, 62%); width: min(230px, 62%); direction: ltr; }
.dots100 i { aspect-ratio: 1; border-radius: 50%; background: var(--track); }
.dots100 i.on { background: var(--accent); }
.dots100 i.me { background: var(--coral); }
.room-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.room-row b { font-size: 3.2rem; font-weight: 800; letter-spacing: -.05em; line-height: .9; }
.quad { position: relative; aspect-ratio: 1.55; border-radius: 16px; background: rgba(21, 19, 15, .1); direction: ltr; }
.quad::before, .quad::after { content: ""; position: absolute; background: rgba(21, 19, 15, .22); }
.quad::before { left: 50%; top: 10%; bottom: 10%; width: 1.5px; }
.quad::after { top: 50%; left: 6%; right: 6%; height: 1.5px; }
.quad b { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--ink); border: 4px solid var(--card); z-index: 1; }
.quad span { position: absolute; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.quad .qx { right: 10px; top: calc(50% + 6px); }
.quad .qy { left: calc(50% + 8px); top: 8px; }
.names { list-style: none; padding: 0; margin: 0; display: grid; }
.names li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid rgba(245, 241, 232, .16); }
.names li:first-child { border-top: 0; padding-top: 0; }
.names b { font-size: 1.05rem; letter-spacing: -.02em; }
.names span { font-size: .86rem; color: rgba(245, 241, 232, .66); }
.card .names li, .ft:not(.ink) .names li { border-top-color: var(--line); }
.card .names span { color: var(--muted); }
.skill { display: grid; grid-template-columns: 5.5em 1fr 2em; gap: 10px; align-items: center; font-size: .86rem; padding: 7px 0; }
.skill span:last-child { text-align: end; font-weight: 700; font-variant-numeric: tabular-nums; }
.mini-rev { display: grid; gap: 12px; font-size: .86rem; }
.mini-rev .series { max-width: none; margin: 0; gap: 6px; }
.mini-rev .cell { border-radius: 10px; }
.cert-mock { text-align: center; display: grid; gap: 6px; justify-items: center; background: var(--card); color: var(--ink); border-radius: 18px; padding: 24px 18px; }
.cert-kicker { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 6px; }
.cert-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; }
.cert-score { font-size: 2.4rem; font-weight: 800; color: var(--accent); letter-spacing: -.04em; line-height: 1.1; }
.cert-no { font-size: .76rem; color: var(--muted); }

.steps-big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps-big > div { border-top: 2px solid var(--ink); padding-top: 20px; }
.steps-big .n { font-size: clamp(3.6rem, 8vw, 5.6rem); font-weight: 800; letter-spacing: -.06em; line-height: .9; margin-bottom: 16px;
  color: transparent; -webkit-text-stroke: 2px var(--ink); }
.steps-big > div:nth-child(2) .n { -webkit-text-stroke-color: var(--accent); }
.steps-big > div:nth-child(3) .n { -webkit-text-stroke-color: var(--coral); }
.steps-big h3 { font-size: 1.25rem; letter-spacing: -.03em; }
.steps-big p { color: var(--muted); margin: 8px 0 0; }

.more2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.more2 .tcard { padding: 32px; border: 0; border-radius: 28px; min-height: 190px; }
.more2 .tcard:first-child { background: var(--accent-soft); }
.more2 .tcard:last-child { background: #ffeab5; }
.more2 h3 { font-size: 1.6rem; letter-spacing: -.035em; }
.more2 .go { color: var(--ink); }

.pricebar { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 48px;
  background: var(--ink); color: var(--bg); border-radius: 36px; }
.pricebar h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.045em; line-height: 1.04; margin: 14px 0 22px; }
.pb-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 15px 0; border-top: 1px solid rgba(245, 241, 232, .18); color: rgba(245, 241, 232, .8); }
.pb-row b { color: var(--bg); font-size: 1.2rem; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pb-side { display: grid; gap: 22px; }
.pricebar .ticks { color: rgba(245, 241, 232, .82); gap: 12px; }
.pricebar .ticks li::before { filter: brightness(0) invert(1); }
.pricebar .btn.primary { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.pricebar .btn.primary:hover { background: #ffd666; border-color: #ffd666; color: var(--ink); }
.pricebar .cur-note { margin: 0; color: rgba(245, 241, 232, .6); }

.faq { max-width: 780px; }
details { border-bottom: 1px solid var(--line); break-inside: avoid; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 650; padding: 20px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; transition: transform .2s ease;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' stroke='%2315130f' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M7 1.5v11M1.5 7h11'/%3E%3C/svg%3E") center/contain no-repeat; }
.faq details[open] summary::after { transform: rotate(45deg); }
details > p { margin: 0 0 20px; color: var(--muted); }

.foot { margin-top: 112px; background: var(--ink); color: rgba(245, 241, 232, .68); padding: 60px 0 36px; font-size: .9rem; }
.foot-in { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.foot .brand { color: var(--bg); margin-bottom: 14px; font-size: 1.5rem; }
.foot .brand::before { filter: brightness(0) invert(1); }
.foot p { margin: 0; max-width: 24em; font-size: .85rem; }
.foot h4 { margin: 0 0 14px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(245, 241, 232, .46); font-weight: 700; }
.foot nav { display: grid; gap: 11px; align-content: start; }
.foot a { color: var(--bg); text-decoration: none; overflow-wrap: anywhere; }
.foot a:hover { color: var(--sun); }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(245, 241, 232, .16); font-size: .8rem; }

.cur-note { margin: 0; }

.faq { columns: 2; column-gap: 56px; }
details { border-bottom: 1px solid var(--line); break-inside: avoid; }
summary { cursor: pointer; font-weight: 600; padding: 20px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; transition: transform .2s ease;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' stroke='%23111318' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M7 1.5v11M1.5 7h11'/%3E%3C/svg%3E") center/contain no-repeat; }
.faq details[open] summary::after { transform: rotate(45deg); }
details > p { margin: 0 0 20px; color: var(--muted); }
.cta2 { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 56px; background: var(--soft); }
.cta2 h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta2 p { color: var(--muted); margin: 12px 0 0; }
.cta-side { text-align: end; flex: none; max-width: 17em; }
.cta-side p { font-size: .82rem; }

.cur-note { margin: 16px 0 0; font-size: .82rem; color: var(--muted); }
.sum + .cur-note { margin: 4px 0 18px; }

/* Puzzles, digits and formulas are always read left to right, also on right-to-left pages. */
.matrix, .series, .digits, .lines, .mock-opts, .retake, .curve, .mock-iq { direction: ltr; }
/* Scripts that the tight Latin tracking and line heights do not suit. */
:is(:lang(ar), :lang(he), :lang(hi), :lang(th), :lang(ja), :lang(ko), :lang(zh)) :is(body, h1, h2, h3, .btn, .brand, .word) { letter-spacing: 0; }
:is(:lang(ar), :lang(he), :lang(hi), :lang(th)) :is(h1, h2) { line-height: 1.3; }
:is(:lang(ja), :lang(ko), :lang(zh)) :is(h1, h2) { line-height: 1.25; word-break: keep-all; }

/* ---- blog ---- */
a.tcard { text-decoration: none; color: inherit; }
.article { max-width: 780px; }
.crumb { margin: 20px 0 14px; font-size: .9rem; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.article h1 { font-size: clamp(2rem, 5.4vw, 3rem); line-height: 1.08; }
.article-meta { color: var(--faint); font-size: .85rem; margin: 16px 0 30px; }
.prose { font-size: 1.08rem; line-height: 1.72; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-size: clamp(1.35rem, 3vw, 1.65rem); margin: 1.9em 0 .6em; }
.prose h3 { font-size: 1.15rem; margin: 1.6em 0 .5em; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-inline-start: 1.3em; }
.prose li { margin: .4em 0; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose .note { background: var(--accent-soft); border-radius: 16px; padding: 16px 20px; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; line-height: 1.45; }
.prose th, .prose td { text-align: start; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 700; background: var(--soft); }
.prose tr:last-child td { border-bottom: 0; }
.article-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
  background: var(--ink); color: var(--bg); border-radius: 28px; padding: 32px 36px; margin: 52px 0; }
.article-cta h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); }
.article-cta p { margin: 8px 0 0; color: rgba(245, 241, 232, .7); }
.more-title { font-size: 1.3rem; margin: 0 0 16px; }
.article .cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ---- test ---- */
.test-meta { display: flex; gap: 16px; font-size: .9rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress { height: 3px; background: var(--line); }
.progress > div { height: 100%; width: 0; background: var(--ink); transition: width .3s ease; }
.stage { max-width: 600px; margin: 0 auto; padding: 44px 20px 72px; }
.stage > h2 { text-align: center; font-size: clamp(1.3rem, 4.4vw, 1.7rem); letter-spacing: -.02em; line-height: 1.25; margin-bottom: 28px; }
.stage .card { border: 0; background: var(--soft); border-radius: var(--r-panel); padding: 32px 28px; }
.stage .card h2 { font-size: 1.5rem; margin-bottom: 18px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.word { font-size: clamp(2.2rem, 9vw, 3.2rem); font-weight: 700; letter-spacing: -.04em; text-align: center; margin: 8px 0 10px; }
.matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 312px; margin: 0 auto 28px; }
.series { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-width: 520px; margin: 0 auto 28px; }
.cell { aspect-ratio: 1; background: var(--soft); border-radius: 16px; display: grid; place-items: center; color: var(--ink); padding: 8%; }
.cell svg, .opt svg { width: 100%; height: 100%; display: block; }
.cell.missing { background: var(--card); border: 1.5px dashed var(--line-strong); color: var(--faint); font-size: 1.4rem; font-weight: 600; }
.lines { text-align: center; font-size: clamp(1.4rem, 5.4vw, 1.9rem); font-weight: 600; letter-spacing: -.01em; margin: 0 0 30px;
  font-variant-numeric: tabular-nums; display: grid; gap: 8px; }
.digits { display: flex; justify-content: center; gap: 8px; margin: 8px 0 22px; }
.digits span { width: 54px; height: 68px; display: grid; place-items: center; font-size: 2rem; font-weight: 700;
  background: var(--soft); border-radius: 14px; font-variant-numeric: tabular-nums; }
.fuse { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; max-width: 260px; margin: 18px auto 0; }
.fuse > div { height: 100%; background: var(--ink); width: 100%; }
.opts { display: grid; gap: 10px; }
.opts.pics { grid-template-columns: repeat(3, 1fr); max-width: 390px; margin: 0 auto; }
.opt { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; text-align: start;
  background: var(--card); color: var(--ink); border: 1.5px solid var(--line); border-radius: var(--r-ctl); padding: 12px 16px;
  font: 500 1.02rem var(--font); cursor: pointer; transition: border-color .12s ease, background .12s ease, transform .12s ease; }
.opt:hover { border-color: var(--line-strong); }
.opt:active { transform: scale(.985); }
.opt.sel { border-color: var(--ink); background: var(--soft); }
.opt .key { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
  background: var(--soft); color: var(--muted); font-size: .75rem; font-weight: 600; }
.opt.sel .key { background: var(--ink); color: #fff; }
.opts.pics .opt { aspect-ratio: 1; min-height: 0; padding: 14%; justify-content: center; border-radius: 16px; }
.opts.pics .opt .key { position: absolute; top: 7px; inset-inline-start: 7px; width: 20px; height: 20px; font-size: .66rem; background: transparent; color: var(--faint); }
.opts.pics .opt.sel .key { background: transparent; color: var(--ink); }

/* ---- tests hub, questionnaires, games ---- */
.hub-head { padding: 40px 0 28px; }
.hub-head p { color: var(--muted); font-size: 1.08rem; margin: 12px 0 0; max-width: 34em; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tcard { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-card);
  color: var(--ink); text-decoration: none; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.tcard:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.tcard h3 { font-size: 1.08rem; }
.tcard p { margin: 0; color: var(--muted); font-size: .92rem; flex: 1; }
.tcard .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tcard .go { font-weight: 600; font-size: .92rem; color: var(--accent); }
.tcard.feature { background: var(--panel); border-color: transparent; }
.scale { display: grid; gap: 10px; }
.scale .opt { justify-content: flex-start; }
.qz-statement { text-align: center; font-size: clamp(1.25rem, 4.2vw, 1.6rem); font-weight: 600; letter-spacing: -.02em;
  line-height: 1.3; margin: 8px 0 30px; min-height: 3.9em; display: grid; place-items: center; }
.qz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; color: var(--muted); font-size: .9rem; }
.linkbtn { border: 0; background: none; color: var(--muted); font: 500 .92rem var(--font); cursor: pointer; padding: 8px 0; }
.linkbtn:hover { color: var(--ink); }
.qz-lead { background: var(--soft); border-radius: var(--r-panel); padding: 34px 26px; text-align: center; }
.qz-lead h2 { font-size: clamp(1.7rem, 6vw, 2.4rem); margin: 8px 0 12px; }
.qz-lead p { color: var(--muted); margin: 0 auto; max-width: 34em; }
.qz-dim { padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.qz-dim:first-of-type { border-top: 0; padding-top: 0; }
.qz-dim p { margin: 0; color: var(--muted); font-size: .95rem; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; }
.back::before { content: "←"; }
[dir=rtl] .back::before { content: "→"; }
.game-page .page-title { margin-top: 6px; }
.game-root { max-width: 560px; margin: 8px auto 0; direction: ltr; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.g-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.g-stat { display: grid; gap: 1px; }
.g-stat span { font-size: .72rem; font-weight: 600; color: var(--muted); }
.g-stat b { font-size: 1.15rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.g-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.g-msg { background: var(--soft); border-radius: var(--r-card); padding: 26px 20px; text-align: center; display: grid; gap: 12px; justify-items: center; margin-top: 14px; }
.g-msg b { font-size: 1.3rem; letter-spacing: -.02em; }
.g-seg { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 3px; }
.g-seg button { border: 0; background: transparent; color: var(--muted); font: 600 .84rem var(--font); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.g-seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(17, 19, 24, .12); }

/* ---- unlock ---- */
.lockbox { background: var(--soft); border-radius: var(--r-panel); padding: 30px 24px; text-align: center; }
.lock { width: 52px; height: 52px; border-radius: 50%; background: var(--card); display: grid; place-items: center; margin: 0 auto 14px; box-shadow: var(--shadow); }
.lock svg { width: 22px; height: 22px; }
.lockbox b { display: block; font-size: 1.1rem; letter-spacing: -.015em; }
.field { display: grid; gap: 8px; margin: 18px 0 14px; }
.field input[type=email], .field input[type=text] { width: 100%; min-height: 54px; padding: 0 16px; border-radius: var(--r-ctl);
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 500 1.02rem var(--font); }
.field input:focus { border-color: var(--ink); outline: none; }
.field input::placeholder { color: var(--faint); font-weight: 400; }
.err { color: var(--bad); font-size: .875rem; min-height: 1.4em; }
.sum { width: 100%; border-collapse: collapse; margin-top: 22px; }
.sum td { padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .96rem; }
.sum td:last-child { text-align: end; white-space: nowrap; padding-inline-start: 12px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.sum tr.total td { font-size: 1.12rem; font-weight: 700; color: var(--ink); }
.disclosure { background: var(--soft); border-radius: var(--r-card); padding: 20px 22px; margin: 6px 0 16px; }
.disclosure h3 { margin-bottom: 8px; }
.disclosure > p { margin: 0 0 14px; }
.disclosure .ticks { color: var(--muted); gap: 6px; }
.consent { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1.5px solid var(--line);
  border-radius: var(--r-card); cursor: pointer; margin-bottom: 14px; font-size: .95rem; line-height: 1.45; }
.consent:has(input:checked) { border-color: var(--ink); }
.consent input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--ink); }

/* ---- result ---- */
.scorecard { text-align: center; border: 0; background: var(--soft); border-radius: var(--r-panel); padding: 40px 24px 30px; }
.scorecard .iq { font-size: clamp(5rem, 22vw, 7.5rem); font-weight: 700; line-height: .95; letter-spacing: -.055em;
  font-variant-numeric: tabular-nums; margin: 10px 0 14px; }
.scorecard > p { color: var(--muted); margin: 0; }
.facts { display: flex; justify-content: center; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.facts div { display: grid; gap: 2px; padding: 0 22px; }
.facts div + div { border-inline-start: 1px solid var(--line); }
.facts b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.card > h2 { font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: 16px; }
.dom { display: grid; gap: 9px; padding: 14px 0; border-top: 1px solid var(--line); }
.dom:first-of-type { border-top: 0; padding-top: 0; }
.dom-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.dom-top > span { display: inline-flex; gap: 10px; align-items: center; font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.rev summary { padding: 15px 0; font-size: .95rem; font-weight: 500; }
.rev summary span:first-child { min-width: 0; }
.rev .matrix { max-width: 210px; margin: 4px 0 16px; gap: 6px; }
.rev .series { max-width: 350px; margin: 4px 0 16px; gap: 6px; }
.rev .cell { border-radius: 10px; }
.rev .lines { text-align: start; margin: 4px 0 16px; font-size: 1.2rem; }
.rev .digits { justify-content: flex-start; margin: 4px 0 16px; }
.rev .digits span { width: 40px; height: 50px; font-size: 1.4rem; border-radius: 10px; }
.pair { display: flex; gap: 14px; flex-wrap: wrap; margin: 0 0 14px; }
.pair > div { display: grid; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.mini { width: 76px; min-height: 46px; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px;
  display: grid; place-items: center; color: var(--ink); font-weight: 600; font-size: .92rem; text-align: center; }
.mini.txt { width: auto; min-width: 76px; padding: 8px 14px; }
.mini svg { width: 100%; height: auto; }
.cert { border: 1px solid var(--line); border-radius: var(--r-card); padding: 44px 24px; text-align: center; }
.cert h2 { font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 6px 0 22px; }
.cert .c-name { font-size: 1.9rem; font-weight: 700; letter-spacing: -.03em; margin: 0 0 6px; overflow-wrap: anywhere; }
.cert .c-score { font-size: 4rem; font-weight: 700; letter-spacing: -.05em; line-height: 1.05; margin: 10px 0 18px; }

.feat-result { display: grid; gap: 16px; }
.feat-result .ft, .stack > .ft { min-height: 0; grid-column: auto; }
.feat-result .mind-row { margin: 14px 0 6px; align-items: center; }
.feat-result .ft p.small { margin-top: 16px; font-size: .8rem; }
.legal { max-width: 720px; padding-top: 28px; padding-bottom: 20px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 10px; }
.legal h2 { margin: 2em 0 .5em; font-size: 1.2rem; letter-spacing: -.015em; }
.legal p { color: #3b3f4a; }

@media (max-width: 980px) {
  .hero3 { grid-template-columns: 1fr; gap: 56px; padding-top: 44px; padding-bottom: 72px; }
  .sample-wrap { max-width: 420px; margin-inline-end: 16px; }
  .nav { display: none; }
  .ft, .ft.w3, .ft.w4 { grid-column: span 3; }
}
@media (max-width: 820px) {
  .steps-big { grid-template-columns: 1fr; }
  .pricebar { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; }
  .sec { padding-top: 80px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .panel { border-radius: 22px; padding: 18px; }
  .top .btn.sm { display: none; }
}
@media (max-width: 640px) {
  .ft, .ft.w3, .ft.w4 { grid-column: span 6; min-height: 0; }
  .more2 { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .strip-in { gap: 10px 20px; font-size: .92rem; }
}
@media (max-width: 420px) {
  .facts div { padding: 0 12px; }
  .digits span { width: 46px; height: 60px; }
  .card { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print {
  .top, .foot, .no-print { display: none !important; }
  .cert { margin-top: 14vh; border-color: #000; }
}

.stack > .ft .quad { max-width: 360px; }
