/* Тест «16 архетипов Веты» (/tip/, build/tip.py). Мобильная версия первична (390 px).
   Цвета: чёрный, белый, тёплый серый (stone), один акцент #9e4f5c. Шрифты: Source Serif 4 (заголовки, тонкие) + Manrope.
   Размеры шрифтов — по шкале Tailwind (12/14/16/18/20/24/30/36/48/60), отступы — 4/8/12/16/24/32/48/64/80/96. */

.tip { --tp-paper: #f5f5f4; }
.tip [hidden] { display: none !important; }
.tip .tip-narrow, .tip .wrap.tip-narrow { max-width: 808px; margin-left: auto; margin-right: auto; }
.tip-sec { padding: 48px 0; }
.tip-sec--paper { background: var(--tp-paper); }
.tip-center { text-align: center; margin: 24px 0 0; }

/* типографика */
.tip-h1 { font-family: var(--serif, "Source Serif 4", Georgia, serif); font-weight: 300 !important; font-size: 36px; line-height: 40px; letter-spacing: -.02em; margin: 12px 0 16px; text-wrap: balance; }
.tip-h2 { font-family: var(--serif, "Source Serif 4", Georgia, serif); font-weight: 300 !important; font-size: 30px; line-height: 36px; letter-spacing: -.015em; margin: 0 0 16px; text-wrap: balance; }
.tip-h3 { font: 600 18px/28px var(--font); margin: 24px 0 8px; color: var(--ink); }
.tip-lead { font-family: var(--serif, "Source Serif 4", Georgia, serif); font-weight: 300; font-size: 20px; line-height: 28px; color: var(--stone); margin: 0 0 24px; text-wrap: pretty; }
.tip-motto { font-family: var(--serif, "Source Serif 4", Georgia, serif); font-weight: 300; font-size: 20px; line-height: 28px; color: var(--accent); margin: 0 0 24px; }
.tip-prose p, .tip-prose { font: 400 16px/24px var(--font); color: var(--stone); margin: 0 0 12px; text-wrap: pretty; }
.tip-note { font: 400 16px/24px var(--font); color: var(--ash); margin: 0 0 16px; text-wrap: pretty; }
.tip-note--sm { font: 400 14px/20px var(--font); margin-top: 24px; }
.tip-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); }
.tip-link:hover { color: var(--accent); }
.tip-link:focus-visible, .tip a:focus-visible, .tip button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* шапки */
.tip-hero { padding: 48px 0 32px; background: var(--tp-paper); }
.tip-hero--type { padding-bottom: 48px; }
.tip-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 14px/20px var(--font); color: var(--ash); margin: 0 0 24px; }
.tip-crumbs a { color: var(--ash); text-decoration: none; }
.tip-crumbs a:hover { color: var(--ink); }
.tip-meta { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 24px; padding: 0; }
.tip-meta li { font: 600 12px/16px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); padding: 8px 12px; border: 1px solid var(--surface-2); border-radius: 9999px; background: #fff; }
.tip-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.tip-trust { display: flex; gap: 12px; align-items: center; margin-top: 24px; font: 400 14px/20px var(--font); color: var(--stone); }
.tip-trust img { width: 48px; height: 48px; border-radius: 9999px; object-fit: cover; flex: none; }
.tip-axchips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tip-axchips li { background: #fff; border: 1px solid var(--surface-2); border-radius: 8px; padding: 12px; font: 600 16px/24px var(--font); color: var(--ink); }
.tip-axchips small { display: block; font: 500 12px/16px var(--font); color: var(--ash); }

/* семьи и карточки архетипов */
.tip-fams { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
.tip-famcard, .tip-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: #fff; border: 1px solid var(--surface-2); border-radius: 12px; color: var(--ink); text-decoration: none;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), border-color .3s cubic-bezier(.22, 1, .36, 1); }
.tip-famcard:hover, .tip-card:hover { transform: translateY(-2px); border-color: var(--ink); }
.tip-famcard:active, .tip-card:active { transform: scale(.98); }
.tip-famcard b, .tip-card b { font-family: var(--serif, "Source Serif 4", Georgia, serif); font-weight: 400; font-size: 24px; line-height: 32px; }
.tip-famcard small, .tip-card small { font: 400 14px/20px var(--font); color: var(--ash); }
.tip-card__code { font: 600 12px/16px var(--font); letter-spacing: .14em; color: var(--accent); }
.tip-cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 24px 0; }
.tip-fam { padding: 32px 0; border-top: 1px solid var(--surface-2); }
.tip-fam:first-child { border-top: 0; padding-top: 0; }
.tip-fam__head { max-width: 640px; }

/* блоки текста */
.tip-block { padding: 32px 0 0; }
.tip-list { margin: 0 0 12px; padding: 0 0 0 20px; display: grid; gap: 8px; font: 400 16px/24px var(--font); color: var(--stone); }
.tip-list--num { list-style: decimal; }
.tip-list li::marker { color: var(--accent); }

/* прохождение */
.tip-run { padding: 24px 0 64px; min-height: 70vh; }
.tip-prog { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.tip-prog__seg { display: block; height: 4px; background: var(--surface-2); border-radius: 9999px; overflow: hidden; }
.tip-prog__seg i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left center; transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.tip-prog__lbl { font: 500 12px/16px var(--font); color: var(--ash); margin: 12px 0 0; }
.tip-screen { padding: 32px 0 24px; min-height: 320px; }
.tip-q__ey { font: 600 12px/16px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.tip-q { font-family: var(--serif, "Source Serif 4", Georgia, serif); font-weight: 300 !important; font-size: 24px; line-height: 32px; letter-spacing: -.01em; margin: 0 0 32px; color: var(--ink); text-wrap: balance; }
.tip-step { animation: tpIn .5s cubic-bezier(.22, 1, .36, 1); }
@keyframes tpIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* шкала из 7 кружков: крайние больше, середина меньше */
.tip-scale { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "dots dots" "a d"; gap: 12px 8px; align-items: center; }
.tip-scale__dots { grid-area: dots; display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.tip-scale__lbl { font: 600 14px/20px var(--font); }
.tip-scale__lbl--a { grid-area: a; color: var(--accent); }
.tip-scale__lbl--d { grid-area: d; color: var(--stone); text-align: right; }
.tip-dot { flex: none; padding: 0; border-radius: 9999px; background: #fff; border: 2px solid var(--mute); cursor: pointer;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), background-color .3s cubic-bezier(.22, 1, .36, 1); }
.tip-dot--3 { width: 44px; height: 44px; }
.tip-dot--2 { width: 36px; height: 36px; }
.tip-dot--1 { width: 28px; height: 28px; }
.tip-dot--0 { width: 24px; height: 24px; }
.tip-dot--a { border-color: var(--accent); }
.tip-dot--d { border-color: var(--stone); }
.tip-dot:hover { transform: scale(1.08); }
.tip-dot:active { transform: scale(.96); }
.tip-dot--a:hover, .tip-dot--a.is-on { background: var(--accent); }
.tip-dot--d:hover, .tip-dot--d.is-on { background: var(--stone); }
.tip-dot--0:hover, .tip-dot--0.is-on { background: var(--mute); }

/* варианты ответов */
.tip-opts { display: grid; gap: 8px; }
.tip-opt { text-align: left; font: 500 16px/24px var(--font); color: var(--ink); background: #fff; border: 1px solid var(--surface-2); border-radius: 8px; padding: 12px 16px; min-height: 48px; cursor: pointer;
  transition: border-color .3s cubic-bezier(.22, 1, .36, 1), background-color .3s cubic-bezier(.22, 1, .36, 1), transform .3s cubic-bezier(.22, 1, .36, 1); }
.tip-opt:hover { border-color: var(--ink); }
.tip-opt:active { transform: scale(.98); }
.tip-opt.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tip-opts--pair .tip-opt { min-height: 96px; font: 500 18px/28px var(--font); padding: 16px 24px; }
.tip-ten { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; }
.tip-ten__b { font: 600 14px/20px var(--font); color: var(--ink); background: #fff; border: 1px solid var(--surface-2); border-radius: 6px; min-height: 48px; padding: 0; cursor: pointer;
  transition: border-color .3s cubic-bezier(.22, 1, .36, 1), background-color .3s cubic-bezier(.22, 1, .36, 1); }
.tip-ten__b:hover { border-color: var(--ink); }
.tip-ten__b.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tip-ten__lbl { display: flex; justify-content: space-between; gap: 8px; font: 500 12px/16px var(--font); color: var(--ash); margin-top: 8px; }

/* навигация: «Отложить» того же размера, что и «Дальше» */
.tip-nav { display: grid; gap: 16px; border-top: 1px solid var(--surface-2); padding-top: 16px; }
.tip-nav__main { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tip-nav__main .btn { width: 100%; padding-left: 8px; padding-right: 8px; }
.tip .btn.tip-later { background: #fff; color: var(--ink); border: 1px solid var(--ink); box-shadow: none; }
.tip .btn.tip-later:hover { background: var(--tp-paper); color: var(--ink); }
.tip .btn[disabled] { opacity: .35; cursor: default; transform: none; }
.tip-back { justify-self: start; font: 600 14px/20px var(--font); color: var(--stone); background: none; border: 0; padding: 8px 0; cursor: pointer; }
.tip-back:hover { color: var(--ink); }

/* вставки и цитаты */
.tip-ins p { font: 400 16px/24px var(--font); color: var(--stone); margin: 0 0 12px; }
.tip-ins .tip-q { margin-bottom: 16px; }
.tip-quote { margin: 24px 0 0; padding: 24px; background: var(--tp-paper); border-radius: 12px; }
.tip-quote blockquote { margin: 0 0 8px; font-family: var(--serif, "Source Serif 4", Georgia, serif); font-weight: 300; font-size: 20px; line-height: 28px; color: var(--ink); }
.tip-quote figcaption { font: 600 12px/16px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.tip-later-msg p { font: 400 16px/24px var(--font); color: var(--stone); margin: 0 0 24px; }

/* «собираем портрет» */
.tip-wait { padding: 96px 0; min-height: 70vh; }
.tip-wait__list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.tip-wait__list li { font: 500 16px/24px var(--font); color: var(--stone); padding-left: 32px; position: relative; opacity: 0; animation: tpIn .5s cubic-bezier(.22, 1, .36, 1) forwards; }
.tip-wait__list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 9999px; background: var(--accent); }
.tip-wait__list li:nth-child(2) { animation-delay: .7s; }
.tip-wait__list li:nth-child(3) { animation-delay: 1.4s; }
.tip-wait__list li:nth-child(4) { animation-delay: 2.1s; }

/* результат */
.tip-res { padding: 48px 0 64px; }
.tip-res__hero { padding-bottom: 8px; }
.tip-axes { display: grid; gap: 16px; margin: 8px 0 0; }
.tip-ax__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tip-ax__name { font: 500 12px/16px var(--font); color: var(--ash); letter-spacing: .14em; text-transform: uppercase; }
.tip-ax__top b { font: 600 16px/24px var(--font); color: var(--ink); }
.tip-ax__bar { height: 8px; background: var(--surface-2); border-radius: 9999px; overflow: hidden; margin: 8px 0 4px; }
.tip-ax__bar i { display: block; height: 100%; background: var(--accent); transform-origin: left center; }
.tip-ax__bar i.is-r { transform-origin: right center; }
.tip-ax__ends { display: flex; justify-content: space-between; gap: 8px; font: 400 12px/16px var(--font); color: var(--mute); }
.tip-ax__ends .is-on { color: var(--ink); font-weight: 600; }
.tip-layer { border-top: 1px solid var(--surface-2); margin-top: 32px; }
.tip-practice { margin: 16px 0 0; padding: 24px; background: var(--tp-paper); border-radius: 12px; }
.tip-practice__head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.tip-practice .tip-h3 { margin: 0; }
.tip-tag { font: 600 12px/16px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.tip-steps { margin: 16px 0 0; padding-left: 20px; display: grid; gap: 8px; font: 400 16px/24px var(--font); color: var(--stone); }
.tip-formula { font-family: var(--serif, "Source Serif 4", Georgia, serif); font-weight: 300; font-size: 24px; line-height: 32px; color: var(--accent); margin: 0 0 16px; }
.tip-care { margin: 32px 0 0; padding: 24px; border: 2px solid var(--accent); border-radius: 12px; background: #fff; }
.tip-care .tip-h3 { margin-top: 0; font-size: 20px; line-height: 28px; }
.tip-care p, .tip-care li { font: 400 16px/24px var(--font); color: var(--stone); }
.tip-care ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 12px; }
.tip-care a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.tip-path { border-top: 1px solid var(--ink); margin-top: 48px; }
.tip-path__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tip-path__list > li { display: grid; gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--surface-2); }
.tip-path__list p { font: 400 16px/24px var(--font); color: var(--stone); margin: 0 0 12px; }
.tip-path__when { font: 600 12px/16px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.tip-dont { margin-top: 24px; padding: 24px; background: var(--tp-paper); border-radius: 12px; }
.tip-dont .tip-h3 { margin-top: 0; }
.tip-dont p { font: 400 16px/24px var(--font); color: var(--stone); margin: 0; }
.tip-actions { border-top: 1px solid var(--surface-2); margin-top: 48px; }

@media (min-width: 640px) {
  .tip-h1 { font-size: 48px; line-height: 48px; }
  .tip-h2 { font-size: 36px; line-height: 40px; }
  .tip-q { font-size: 30px; line-height: 36px; }
  .tip-lead { font-size: 24px; line-height: 32px; }
  .tip-sec { padding: 80px 0; }
  .tip-hero { padding: 80px 0 48px; }
  .tip-fams { grid-template-columns: 1fr 1fr; }
  .tip-cards { grid-template-columns: 1fr 1fr; }
  .tip-axchips { grid-template-columns: repeat(4, 1fr); }
  .tip-scale { grid-template-columns: 1fr auto 1fr; grid-template-areas: "a dots d"; gap: 24px; }
  .tip-scale__lbl--a { text-align: right; }
  .tip-scale__lbl--d { text-align: left; }
  .tip-scale__dots { gap: 12px; justify-content: center; }
  .tip-dot--3 { width: 56px; height: 56px; }
  .tip-dot--2 { width: 44px; height: 44px; }
  .tip-dot--1 { width: 36px; height: 36px; }
  .tip-dot--0 { width: 28px; height: 28px; }
  .tip-opts--pair { grid-template-columns: 1fr 1fr; }
  .tip-opts--grid { grid-template-columns: 1fr 1fr; }
  .tip-nav { grid-template-columns: auto 1fr; align-items: center; }
  .tip-nav__main { justify-self: end; grid-template-columns: auto auto; }
  .tip-nav__main .btn { width: auto; padding-left: 24px; padding-right: 24px; }
  .tip-path__list > li { grid-template-columns: 160px 1fr; gap: 24px; }
  .tip-ten { gap: 8px; }
}
@media (min-width: 1024px) {
  .tip-h1 { font-size: 60px; line-height: 60px; }
  .tip-cards--4 { grid-template-columns: repeat(4, 1fr); }
  .tip-cards { grid-template-columns: repeat(3, 1fr); }
  .tip-cards.tip-cards--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .tip-step, .tip-wait__list li { animation: none; opacity: 1; }
  .tip-prog__seg i, .tip-dot, .tip-opt, .tip-famcard, .tip-card { transition: none; }
}
