/* Пара слов — тёплая тёмная тема. Мобильный первым. */

/* Шрифты локальные, а не с Google Fonts CDN: немецкие суды признали
   встраивание Google Fonts нарушением GDPR, а среди наших языков — de и fr. */

@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('/public/fonts/unbounded-cyrillic-300-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('/public/fonts/unbounded-latin-ext-300-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('/public/fonts/unbounded-latin-300-normal.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/public/fonts/unbounded-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/public/fonts/unbounded-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/public/fonts/unbounded-latin-400-normal.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/public/fonts/golos-text-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/public/fonts/golos-text-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/public/fonts/golos-text-latin-400-normal.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/public/fonts/golos-text-cyrillic-500-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/public/fonts/golos-text-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/public/fonts/golos-text-latin-500-normal.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/public/fonts/golos-text-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/public/fonts/golos-text-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/public/fonts/golos-text-latin-600-normal.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --bg: #171310;
  --ink: #f5ede4;
  --dim: #9a8f84;
  --soft: #b8ada1;
  --acc: #d9633f;
  --line: #2e2721;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100dvh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(130% 70% at 12% 0%, #22190f 0%, transparent 62%);
  pointer-events: none;
  z-index: -2;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.14;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: -1;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 22px calc(48px + env(safe-area-inset-bottom));
}
.narrow { max-width: 560px; }

/* шапка */
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 56px; }
.brand {
  font-family: 'Unbounded', sans-serif; font-weight: 400; font-size: 12px;
  letter-spacing: .24em; text-transform: uppercase; color: var(--dim);
  text-decoration: none;
}
.langs { display: flex; gap: 2px; }
.langs a {
  font-size: 12px; letter-spacing: .06em; color: var(--dim); text-decoration: none;
  padding: 5px 8px; border-radius: 6px;
}
.langs a.on { color: var(--ink); background: #241a14; }

/* типографика */
.hero {
  font-family: 'Unbounded', sans-serif; font-weight: 300;
  font-size: clamp(30px, 8.4vw, 46px); line-height: 1.06; letter-spacing: -.035em;
}
.hero.sm { font-size: clamp(26px, 6.6vw, 34px); }
.lead { color: var(--soft); margin-top: 16px; font-size: 16px; }
.sec {
  font-family: 'Unbounded', sans-serif; font-weight: 300; font-size: 13px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--dim);
  margin: 56px 0 14px;
}
.fine { font-size: 12.5px; line-height: 1.5; color: #7a6f65; margin-top: 14px; }
.fine.center { text-align: center; }
.err { color: #e08a6b; }
.key {
  margin-top: 22px; padding-left: 14px; border-left: 2px solid var(--acc);
  color: var(--soft); font-size: 14.5px;
}

/* каталог */
.list { display: flex; flex-direction: column; }
.item {
  display: grid; grid-template-columns: 34px 1fr; gap: 4px 12px;
  padding: 20px 0; border-top: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.item:last-child { border-bottom: 1px solid var(--line); }
.item-n { font-family: 'Unbounded', sans-serif; font-weight: 300; font-size: 14px; color: var(--acc); padding-top: 3px; }
.item-title { font-family: 'Unbounded', sans-serif; font-weight: 300; font-size: 20px; letter-spacing: -.02em; display: block; }
.item-learn { color: var(--soft); font-size: 14.5px; display: block; margin-top: 5px; }
.item-meta { grid-column: 2; font-size: 12px; color: var(--dim); letter-spacing: .04em; margin-top: 8px; }
.item:active .item-title { color: var(--acc); }

.block { margin-top: 52px; }
.block h2 {
  font-family: 'Unbounded', sans-serif; font-weight: 300; font-size: 19px;
  letter-spacing: -.02em; margin-bottom: 12px;
}
.block p { color: var(--soft); font-size: 14.5px; }

.foot { margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line); }
.foot p { font-size: 12.5px; color: #7a6f65; }
.foot p + p { margin-top: 8px; }

/* кнопки */
.btn {
  display: block; width: 100%; margin-top: 22px; padding: 17px 20px;
  background: var(--acc); color: #160f0b; border: 0; border-radius: 100px;
  font-family: inherit; font-size: 16px; font-weight: 600; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, opacity .12s ease;
}
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .5; }
.btn.ghost { background: transparent; color: var(--soft); border: 1px solid var(--line); }

/* прохождение */
.pane { display: flex; flex-direction: column; min-height: calc(100dvh - 76px); }
.qmeta {
  display: flex; align-items: center; gap: 12px;
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 10px;
}
.back {
  background: none; border: 0; color: var(--dim); font-size: 17px;
  cursor: pointer; padding: 4px 8px; margin-left: -8px; line-height: 1;
}
.prog { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--acc); transition: width .25s ease; }

/* Вопрос и варианты — одна группа, отцентрованная по остатку экрана.
   Иначе на высоких телефонах между ними зияет дыра. */
.q {
  font-family: 'Unbounded', sans-serif; font-weight: 300;
  font-size: clamp(22px, 6.2vw, 28px); line-height: 1.3; letter-spacing: -.028em;
  margin-top: auto; margin-bottom: 30px; padding-top: 32px;
}

.opts {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--line); border-radius: 14px; overflow: hidden;
  margin-bottom: auto;
}
.opt {
  background: var(--bg); border: 0; border-left: 3px solid transparent;
  color: #c9bdb1; font-family: inherit; font-size: 15px; text-align: left;
  padding: 16px 18px; cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.opt.on { background: #241a14; color: var(--ink); border-left-color: var(--acc); font-weight: 500; }
@media (hover: hover) { .opt:hover { background: #1e1712; } }

.name {
  width: 100%; margin-top: 24px; padding: 16px 18px;
  background: #1e1712; border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); font-family: inherit; font-size: 17px;
}
.name:focus { outline: 2px solid var(--acc); outline-offset: 1px; }

/* ссылка */
.linkbox { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.linkbox input {
  padding: 15px 16px; background: #1e1712; border: 1px solid var(--line);
  border-radius: 12px; color: var(--soft); font-family: inherit; font-size: 14px;
}
.linkbox button {
  padding: 16px; background: var(--acc); color: #160f0b; border: 0;
  border-radius: 100px; font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
}

/* результат */
.names { font-size: 15px; color: var(--dim); }
.score {
  font-family: 'Unbounded', sans-serif; font-weight: 300;
  font-size: clamp(64px, 20vw, 88px); line-height: 1; letter-spacing: -.05em;
  color: var(--acc); margin-top: 6px;
}
.verdict { color: var(--soft); margin-top: 14px; font-size: 15.5px; }
.axes { margin-top: 40px; }
.axis + .axis { margin-top: 26px; }
.axis-t { display: flex; justify-content: space-between; font-size: 14px; color: #c9bdb1; margin-bottom: 7px; }
.bar { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--acc); }
.axis-x { font-size: 13.5px; color: #8d8278; margin-top: 9px; }

.types { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.type { border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.type b { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 500; }
.tname {
  display: block; margin-top: 8px; font-family: 'Unbounded', sans-serif;
  font-weight: 300; font-size: 24px; letter-spacing: -.03em; color: var(--acc);
}
.tsci { display: block; font-size: 12.5px; color: var(--dim); margin-top: 3px; }
.type p { color: var(--soft); font-size: 14.5px; margin-top: 12px; }

.combo { margin-top: 40px; }
.combo h2 {
  font-family: 'Unbounded', sans-serif; font-weight: 300; font-size: 24px;
  letter-spacing: -.03em; margin-bottom: 14px;
}
.combo p { color: var(--soft); font-size: 15px; }
.combo p + p { margin-top: 14px; }

.talk { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.talk h3 {
  font-family: 'Unbounded', sans-serif; font-weight: 300; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--dim);
  margin-bottom: 18px;
}
.talk-item + .talk-item { margin-top: 26px; }
.talk-s { font-size: 15px; color: #d8cdc2; }
.talk-a { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 7px; font-size: 12.5px; color: var(--dim); }
.talk-q { color: var(--soft); font-size: 14.5px; margin-top: 9px; padding-left: 14px; border-left: 2px solid var(--acc); }
.talk .talk-q + .talk-q { margin-top: 14px; }
.caveat { margin-top: 34px; }

.actions { margin-top: 44px; }

@media (min-width: 700px) {
  .wrap { padding-top: 44px; }
  .types { flex-direction: row; }
  .type { flex: 1; }
}
