/* Раздел «Техники»: оформление в духе основного сайта astromag.ru.
   Что взято с сайта: шрифт Onest (лёгкий 300 в заголовках), бордово-сливовый #550d33 на тёплом светлом фоне,
   закругления 10 px и одно большое (120 px) на углу панели, арка вместо рамки, орбита со звездой,
   «голос клиента» в рамке, белые карточки с картинкой сверху, кнопки 5 px. */

@font-face {
  font-family: "Onest"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/onest/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/onest/onest-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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.t-body {
  --plum: #550d33; --plum-2: #6c1a45; --plum-deep: #3a0a23;
  --bg: #f3eeeb; --paper: #fff; --ink: #121212; --muted: #5a5a5a; --soft: #8f8a88; --line: #e4e0dd;
  --ok: #1f6b3a;
  --c1: #efe3ea; --c2: #c9a3b8; --c3: #6c1a45;       /* цвета темы; ниже — тона */
  margin: 0; background: var(--bg); color: var(--ink);
  font: 300 17px/1.6 "Onest", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.t-body *, .t-body *::before, .t-body *::after { box-sizing: border-box; }
.t-body a { color: var(--plum); }
.t-body img { max-width: 100%; }

/* тона тем */
.tone-rose     { --c1: #f6e3ea; --c2: #e0a8bd; --c3: #8d3a5e; }
.tone-lavender { --c1: #e9e3f6; --c2: #b9a9e0; --c3: #5c4a9a; }
.tone-sky      { --c1: #e0eef7; --c2: #9fc8e6; --c3: #3b6f96; }
.tone-mint     { --c1: #dff1e8; --c2: #9fd1ba; --c3: #3d7a63; }
.tone-peach    { --c1: #fbe9de; --c2: #f0b99c; --c3: #b0623a; }
.tone-sand     { --c1: #f3ead8; --c2: #dcc491; --c3: #8a6a2c; }
.tone-plum     { --c1: #efe0e8; --c2: #c598b0; --c3: #550d33; }
.tone-sage     { --c1: #e6eedb; --c2: #b8cc94; --c3: #5a7a34; }

.t-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.t-main { padding-bottom: 70px; }
.t-body h1, .t-body h2, .t-body h3, .t-body h4 { font-family: inherit; font-weight: 300; letter-spacing: -.01em; margin: 0; }
.t-body .skip-link { position: absolute; left: -999px; top: 0; background: var(--plum); color: #fff; padding: 8px 14px; z-index: 50; }
.t-body .skip-link:focus { left: 8px; top: 8px; }

/* ---------- кнопки ---------- */
.t-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
  border-radius: 5px; border: 1px solid var(--plum); background: var(--plum); color: #fff !important;
  font: 400 15px/1 "Onest", inherit; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s;
}
.t-btn:hover { background: var(--plum-2); }
.t-btn-line { background: transparent; color: var(--plum) !important; }
.t-btn-line:hover { background: rgba(85, 13, 51, .06); }
.t-btn-white { background: #fff; border-color: #fff; color: var(--plum) !important; }
.t-btn-white:hover { background: #f4e9ef; }
.t-btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff !important; }
.t-btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.t-btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }

/* ---------- шапка и подвал ---------- */
.t-head { padding: 16px 0 14px; }
.t-head-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.t-nav { display: flex; gap: 28px; }
.t-nav a { color: var(--plum); text-decoration: none; font-size: 16px; font-weight: 400; }
.t-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.t-logo { display: block; line-height: 0; }
.t-logo img { height: 34px; width: auto; }
.t-head-r { display: flex; gap: 12px; justify-content: flex-end; }
.t-burger { display: none; justify-self: end; position: relative; }
.t-burger summary { list-style: none; cursor: pointer; padding: 10px 14px; border: 1px solid var(--plum); border-radius: 5px;
  color: var(--plum); font-weight: 400; }
.t-burger summary::-webkit-details-marker { display: none; }
.t-burger-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; background: #fff; border-radius: 10px;
  padding: 10px; min-width: 220px; box-shadow: 0 12px 40px rgba(60, 20, 40, .18); display: grid; }
.t-burger-menu a { padding: 11px 14px; text-decoration: none; color: var(--plum); font-weight: 400; border-radius: 6px; }
.t-burger-menu a:hover { background: var(--bg); }
@media (max-width: 920px) {
  .t-head-in { grid-template-columns: 1fr auto; }
  .t-nav, .t-head-r { display: none; }
  .t-burger { display: block; }
}

.t-foot { margin-top: 20px; }
.t-foot-panel {
  position: relative; overflow: hidden; background: linear-gradient(160deg, #5c1139, #3a0a23); color: #fff;
  border-radius: 10px 10px 10px 10px; padding: 44px 40px 36px; display: grid; gap: 28px;
  grid-template-columns: 1.4fr 1fr 1fr;
}
.t-foot-panel .t-orbit { position: absolute; right: -40px; bottom: -40px; width: 620px; color: rgba(255, 255, 255, .35); pointer-events: none; }
.t-foot h2 { font-size: 15px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: #e6c8d6; margin-bottom: 12px; }
.t-foot a { color: #fff; text-decoration: none; display: block; padding: 4px 0; font-weight: 300; }
.t-foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
.t-foot-note { font-size: 14px; color: var(--soft); padding: 16px 0 0; max-width: 780px; }
.t-foot-big { font-size: 26px; font-weight: 300; line-height: 1.3; max-width: 440px; position: relative; }
@media (max-width: 760px) { .t-foot-panel { grid-template-columns: 1fr; padding: 32px 24px; } }

/* ---------- общие приёмы ---------- */
.t-body .t-kicker { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--c3); margin: 0 0 12px; }
.t-title { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; color: var(--plum); }
.t-body .t-h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.2; color: var(--plum); margin: 0 0 22px; }
.t-spark { width: 22px; height: 22px; color: var(--c3); vertical-align: -3px; margin-right: 8px; }
.t-scene, .t-pic { display: block; width: 100%; height: 100%; }
.t-scene .c1 { fill: var(--c1); } .t-scene .c2 { fill: var(--c2); } .t-scene .c3 { fill: var(--c3); }
.t-scene .w { fill: #fff; } .t-scene .ln { fill: none; stroke: var(--c3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.t-scene .o4 { opacity: .4; } .t-scene .o5 { opacity: .5; } .t-scene .o6 { opacity: .6; } .t-scene .o7 { opacity: .7; }
.t-scene .o8 { opacity: .8; } .t-scene .o9 { opacity: .92; }
.t-pic { object-fit: contain; mix-blend-mode: multiply; }
.t-orbit { display: block; }

.t-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 400; text-decoration: none; }
a.t-chip:hover { border-color: var(--plum); }
.t-chip.is-on { background: var(--plum); border-color: var(--plum); color: #fff; }
.t-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; background: #fff;
  border: 1px solid var(--line); color: var(--muted); }
.t-tag-free { color: var(--ok); border-color: #bcdcc6; background: #eef8f1; }
.t-tag-lock { color: var(--plum); border-color: #e0c5d2; background: #f9eff4; }

/* «голос клиента» — рамка-скобка, как над карточками на основном сайте */
.t-voice {
  display: inline-block; max-width: 340px; padding: 12px 18px; border: 1px solid var(--plum); border-radius: 10px;
  color: var(--plum); font-size: 14px; font-weight: 400; line-height: 1.35; text-align: center; background: transparent;
}

/* ---------- шапка страницы (две панели) ---------- */
.t-hero { display: grid; grid-template-columns: 1.08fr 1fr; gap: 20px; margin-top: 6px; }
.t-hero-text {
  position: relative; overflow: hidden; color: #fff; padding: 56px 52px 48px; min-height: 560px;
  background: radial-gradient(120% 90% at 80% 0%, #6a1944 0%, #55113a 38%, #3a0a23 100%);
  border-radius: 10px 10px 120px 10px; display: flex; flex-direction: column; justify-content: flex-end;
}
.t-hero-text .t-orbit { position: absolute; left: -40px; top: -90px; width: 720px; color: rgba(255, 255, 255, .26); pointer-events: none; }
.t-hero-text > * { position: relative; }
.t-crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 22px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 500; color: #e6c8d6; }
.t-crumbs a { color: #e6c8d6 !important; text-decoration: none; }
.t-crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.t-crumbs i { font-style: normal; opacity: .6; }
.t-body .t-hero-text h1 { color: #fff; font-size: clamp(32px, 3.9vw, 52px); line-height: 1.1; margin-bottom: 20px; }
.t-lead { font-size: 19px; line-height: 1.55; font-weight: 300; color: rgba(255, 255, 255, .88); margin: 0 0 26px; max-width: 560px; }
.t-facts { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.t-facts li { padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; font-size: 14px; font-weight: 400; color: #fff; }
.t-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.t-hero-media {
  position: relative; overflow: hidden; background: var(--c1); border-radius: 10px 10px 10px 120px; min-height: 560px;
  display: grid; place-items: center; padding: 28px;
}
.t-hero-media::before {                                 /* мягкие акварельные пятна за рисунком */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 20% 25%, color-mix(in srgb, var(--c2) 38%, transparent), transparent 70%),
              radial-gradient(55% 45% at 85% 80%, color-mix(in srgb, var(--c3) 16%, transparent), transparent 70%);
}
.t-hero-media > .t-scene, .t-hero-media > .t-pic { position: relative; max-height: 100%; }
.t-hero-media > .t-pic { padding: 10px; }

/* видео Кристины: арка, как на основном сайте */
.t-video { position: relative; width: min(100%, 400px); aspect-ratio: 3 / 4; border-radius: 500px 500px 12px 12px; overflow: hidden;
  background: #1c0a14; box-shadow: 0 24px 60px rgba(58, 10, 35, .28); }
.t-video > .t-poster { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--c1); display: grid; place-items: center; }
.t-video .t-poster .t-scene, .t-video .t-poster .t-pic { padding: 0 8%; }
.t-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.t-video.is-playing > .t-poster, .t-video.is-playing > .t-play, .t-video.is-playing > .t-video-cap { display: none; }
.t-play { position: absolute; left: 50%; top: 52%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border: 0; border-radius: 50%;
  background: var(--plum); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(58, 10, 35, .4); transition: transform .15s; }
.t-play:hover { transform: scale(1.06); }
.t-play svg { width: 30px; height: 30px; margin-left: 4px; }
.t-video-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 20px; text-align: center; color: #fff; font-size: 14px;
  font-weight: 400; background: linear-gradient(0deg, rgba(58, 10, 35, .78), transparent); }
.t-video.is-locked .t-play { background: rgba(255, 255, 255, .92); color: var(--plum); }

@media (max-width: 960px) {
  .t-hero-text .t-orbit { top: -150px; opacity: .6; }
  .t-hero { grid-template-columns: 1fr; }
  .t-hero-media { order: -1; min-height: 340px; border-radius: 10px 10px 10px 80px; }
  .t-hero-text { min-height: 0; padding: 40px 26px 34px; border-radius: 10px 10px 80px 10px; }
  .t-video { width: min(78%, 320px); }
}

/* ---------- «когда помогает»: крупная фраза ---------- */
.t-when { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding: 64px 0 24px; align-items: start; }
.t-when-side .t-kicker { margin-bottom: 14px; }
.t-when-quote { margin: 0; font-size: clamp(22px, 2.5vw, 30px); line-height: 1.4; font-weight: 300; color: var(--ink);
  padding-left: 28px; border-left: 3px solid var(--c2); }
@media (max-width: 900px) { .t-when { grid-template-columns: 1fr; gap: 22px; padding-top: 44px; } }

/* ---------- тело статьи: оглавление и текст ---------- */
.t-layout { display: grid; grid-template-columns: 220px minmax(0, 820px); gap: 64px; padding-top: 28px; justify-content: start; }
.t-toc { position: sticky; top: 24px; align-self: start; font-size: 15px; }
.t-toc p { margin: 0 0 12px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--soft); }
.t-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.t-toc a { display: block; padding: 8px 0 8px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-weight: 400; }
.t-toc a:hover { color: var(--plum); }
.t-toc a.is-now { color: var(--plum); border-left-color: var(--plum); }
.t-toc .t-btn { margin-top: 20px; width: 100%; }
@media (max-width: 1060px) { .t-layout { grid-template-columns: minmax(0, 1fr); } .t-toc { display: none; } }

.t-sec { position: relative; padding: 48px 0 8px; scroll-margin-top: 20px; }
.t-sec[data-word]::before { content: attr(data-word); position: absolute; right: -6px; top: 8px; z-index: 0; pointer-events: none;
  font-size: clamp(54px, 9vw, 116px); font-weight: 200; line-height: 1; letter-spacing: .04em; white-space: nowrap; text-transform: uppercase;
  color: color-mix(in srgb, var(--c2) 24%, transparent); }
.t-sec > * { position: relative; z-index: 1; }
.t-layout { overflow-x: clip; }
.t-sec:first-child { padding-top: 24px; }
.t-sec > .t-kicker { margin-bottom: 8px; }
.t-prose p { margin: 0 0 18px; font-size: 18px; line-height: 1.72; font-weight: 350; }
.t-prose p:first-child { font-size: 21px; line-height: 1.6; color: var(--ink); }

/* шаги: крупные номера, отмечаются по касанию */
.t-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.t-step { position: relative; display: grid; grid-template-columns: 78px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); cursor: pointer; }
.t-step:last-child { border-bottom: 1px solid var(--line); }
.t-step input { position: absolute; opacity: 0; pointer-events: none; }
.t-step-n { font-size: 60px; line-height: 1; font-weight: 200; color: transparent; -webkit-text-stroke: 1.2px var(--c3); letter-spacing: -.03em;
  transition: color .2s; }
.t-step-n::before { counter-increment: s; content: counter(s, decimal-leading-zero); }
.t-step-txt { font-size: 19px; line-height: 1.6; font-weight: 350; padding-top: 6px; transition: opacity .2s; }
.t-step:has(input:checked) .t-step-n { color: var(--c2); }
.t-step:has(input:checked) .t-step-txt { opacity: .5; }
.t-step:has(input:focus-visible) { outline: 2px solid var(--plum); outline-offset: 4px; border-radius: 4px; }
.t-steps-hint { font-size: 14px; color: var(--soft); margin: 14px 0 0; }
@media (max-width: 560px) { .t-step { grid-template-columns: 52px 1fr; gap: 12px; } .t-step-n { font-size: 40px; } .t-step-txt { font-size: 17px; } }

/* подсказка — тёмная полоса */
.t-tip {
  position: relative; overflow: hidden; margin-top: 44px; padding: 34px 38px; color: #fff; border-radius: 10px 10px 10px 10px;
  background: radial-gradient(120% 120% at 90% 0%, #6a1944, #4a0c2d 60%, #3a0a23);
}
.t-tip .t-orbit { position: absolute; right: -30px; top: -30px; width: 380px; color: rgba(255, 255, 255, .25); }
.t-tip .t-kicker { color: #e6c8d6; position: relative; }
.t-tip p:last-child { margin: 0; font-size: 21px; line-height: 1.55; font-weight: 300; position: relative; max-width: 620px; }

/* истории — широкие карточки друг под другом: длинный текст в узкой колонке читается плохо */
.t-stories { display: grid; gap: 14px; }
.t-story { background: #fff; border-radius: 10px; padding: 26px 30px; border-left: 4px solid var(--c2); display: grid;
  grid-template-columns: 110px 1fr; gap: 6px 24px; margin: 0; }
.t-story-n { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--c3); margin: 5px 0 0; }
.t-story p:last-child { margin: 0; font-size: 17.5px; line-height: 1.7; font-weight: 350; }
.t-rail-nav { display: none; }
@media (max-width: 640px) { .t-story { grid-template-columns: 1fr; padding: 22px 20px; } }

/* ошибки */
.t-mistakes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.t-mistake { background: #fff; border-radius: 10px; padding: 22px 22px 20px; position: relative; }
.t-mistake::before { content: "✕"; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-bottom: 14px;
  background: color-mix(in srgb, var(--c2) 35%, #fff); color: var(--c3); font-size: 14px; font-weight: 500; }
.t-mistake b { display: block; font-weight: 500; font-size: 17px; line-height: 1.4; margin-bottom: 6px; }
.t-mistake span { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
@media (max-width: 700px) { .t-mistakes { grid-template-columns: 1fr; } }

/* важно */
.t-note { margin-top: 36px; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 24px; background: #fff; border-radius: 10px;
  border-left: 4px solid var(--plum); }
.t-note i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #f9eff4; color: var(--plum);
  font-style: normal; font-size: 22px; font-weight: 500; }
.t-note b { display: block; font-weight: 500; margin-bottom: 4px; }
.t-note p { margin: 0; font-size: 16px; line-height: 1.6; }

/* вопросы */
.t-faq { border-top: 1px solid var(--line); }
.t-faq details { border-bottom: 1px solid var(--line); }
.t-faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-size: 19px; font-weight: 400; line-height: 1.4; }
.t-faq summary::-webkit-details-marker { display: none; }
.t-faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; margin-top: -18px; font-size: 30px; font-weight: 200; color: var(--plum); transition: transform .2s; }
.t-faq details[open] summary::after { transform: rotate(45deg); }
.t-faq details p { margin: 0 0 22px; font-size: 17px; line-height: 1.7; max-width: 680px; }

/* закрытый текст и призыв к курсу */
.t-lock {
  margin-top: 44px; padding: 40px; border-radius: 10px 10px 80px 10px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 100% at 90% 0%, #6a1944, #4a0c2d 55%, #3a0a23);
}
.t-lock .t-orbit { position: absolute; right: -60px; top: -110px; width: 560px; color: rgba(255, 255, 255, .2); }
.t-lock > * { position: relative; }
.t-lock h2 { font-size: clamp(26px, 3vw, 34px); color: #fff; margin-bottom: 10px; }
.t-lock p { color: rgba(255, 255, 255, .86); max-width: 560px; margin: 0 0 24px; }
.t-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 4px; }
.t-plan { display: flex; flex-direction: column; gap: 6px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px; padding: 18px; color: #fff !important; text-decoration: none; }
.t-plan:hover { background: rgba(255, 255, 255, .18); }
.t-plan small { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #e6c8d6; font-weight: 500; }
.t-plan strong { font-size: 17px; font-weight: 400; line-height: 1.35; }
.t-plan em { font-style: normal; font-size: 24px; font-weight: 300; margin-top: auto; padding-top: 8px; }
.t-plan span { font-size: 14px; color: rgba(255, 255, 255, .75); }
@media (max-width: 600px) { .t-lock { padding: 30px 22px; border-radius: 10px 10px 50px 10px; } }

/* урок курса */
.t-lessonbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding: 14px 18px; margin-top: 4px; background: #fff; border-radius: 10px; }
.t-lessonbar a { font-weight: 400; text-decoration: none; }
.t-lessonbar span { color: var(--muted); font-size: 14px; }
.t-done { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.t-lessonnav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.t-lessonnav a { display: block; padding: 18px 20px; background: #fff; border-radius: 10px; text-decoration: none; color: var(--plum); font-weight: 400; line-height: 1.4; }
.t-lessonnav a small { display: block; color: var(--soft); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; font-weight: 500; }
.t-lessonnav a:last-child { text-align: right; }
@media (max-width: 600px) { .t-lessonnav { grid-template-columns: 1fr; } }

/* ---------- карточки техник и тем ---------- */
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.t-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .t-grid, .t-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .t-grid, .t-grid-4 { grid-template-columns: 1fr; } }
.t-card { display: flex; flex-direction: column; background: #fff; border-radius: 10px; overflow: hidden; color: inherit !important; text-decoration: none;
  transition: transform .18s, box-shadow .18s; }
.t-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(60, 20, 40, .12); }
.t-card-art { position: relative; aspect-ratio: 4 / 3; background: var(--c1); overflow: hidden; }
.t-card-art .t-scene, .t-card-art .t-pic { padding: 8px 10px; }
.t-card-art .t-play-mini { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; background: var(--plum); color: #fff;
  display: grid; place-items: center; }
.t-card-art .t-play-mini svg { width: 14px; height: 14px; margin-left: 2px; }
.t-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.t-card .t-kicker { margin: 0; font-size: 13px; }
.t-card h3 { font-size: 19px; line-height: 1.3; font-weight: 400; color: var(--ink); }
.t-card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.t-card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--soft); }

.t-tile { display: flex; flex-direction: column; background: #fff; border-radius: 10px; overflow: hidden; color: inherit !important; text-decoration: none;
  transition: transform .18s, box-shadow .18s; }
.t-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(60, 20, 40, .12); }
.t-tile-art { aspect-ratio: 16 / 9; background: var(--c1); overflow: hidden; }
.t-tile-art .t-scene { padding: 6px; }
.t-tile-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.t-tile h3 { font-size: 21px; line-height: 1.25; font-weight: 400; color: var(--plum); }
.t-tile p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.t-tile-foot { margin-top: auto; padding-top: 10px; display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--soft); }

/* ---------- главная библиотеки ---------- */
.t-lib-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.t-lib-text { position: relative; overflow: hidden; color: #fff; padding: 56px 52px 48px; border-radius: 10px 10px 120px 10px; min-height: 560px;
  background: radial-gradient(120% 90% at 80% 0%, #6a1944 0%, #55113a 38%, #3a0a23 100%); display: flex; flex-direction: column; justify-content: flex-end; }
.t-lib-text .t-orbit { position: absolute; left: -50px; top: 10px; width: 720px; color: rgba(255, 255, 255, .28); }
.t-lib-text > * { position: relative; }
.t-lib-text h1 { color: #fff; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.06; margin-bottom: 18px; }
.t-search-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.t-search { display: flex; background: #fff; border-radius: 5px; padding: 5px; width: min(100%, 540px); margin: 0; }
.t-lib-text .t-search-form { margin: 8px 0 24px; }
.t-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 16px; font: 300 17px "Onest", inherit; color: var(--ink); outline: none; }
.t-search button { min-height: 46px; }
.t-stats { display: flex; flex-wrap: wrap; gap: 28px; margin: 0; padding: 0; list-style: none; }
.t-stats strong { display: block; font-size: 34px; font-weight: 300; line-height: 1; }
.t-stats span { font-size: 14px; color: #e6c8d6; }
.t-lib-art { position: relative; overflow: hidden; border-radius: 10px 10px 10px 120px; background: #efe3ea; min-height: 560px;
  display: flex; align-items: flex-end; justify-content: center; gap: 14px; padding: 36px 30px 0; }
.t-lib-art::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 20% 20%, rgba(224, 168, 189, .5), transparent 70%), radial-gradient(60% 50% at 85% 85%, rgba(159, 200, 230, .5), transparent 70%); }
.t-arch { position: relative; flex: 1; max-width: 220px; background: var(--c1); display: flex; align-items: center; border-radius: 500px 500px 0 0; overflow: hidden; border: 1px solid rgba(85, 13, 51, .18); border-bottom: 0; }
.t-arch:nth-child(1) { height: 62%; } .t-arch:nth-child(2) { height: 88%; } .t-arch:nth-child(3) { height: 72%; }
.t-arch .t-scene, .t-arch .t-pic { padding: 22% 4% 4%; height: auto; }
.t-arch .t-pic { object-fit: contain; }
@media (max-width: 960px) {
  .t-lib-hero { grid-template-columns: 1fr; }
  .t-lib-art { order: -1; min-height: 300px; border-radius: 10px 10px 10px 70px; }
  .t-lib-text { min-height: 0; padding: 40px 26px; border-radius: 10px 10px 70px 10px; }
}

.t-block { padding: 72px 0 0; }
.t-block-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 28px; margin-bottom: 26px; }
.t-block-head p { margin: 0; color: var(--muted); max-width: 560px; font-size: 17px; }
.t-voices { display: flex; flex-wrap: wrap; gap: 12px; }
.t-voices a.t-voice { text-decoration: none; transition: background .15s, color .15s; max-width: none; text-align: left; }
.t-voices a.t-voice:hover { background: var(--plum); color: #fff; }

/* тема: шапка в цвете темы */
.t-theme-hero { position: relative; overflow: hidden; border-radius: 10px 10px 120px 10px; padding: 52px 52px 44px; background: var(--c1); color: var(--ink);
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; min-height: 380px; }
.t-theme-hero h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.1; color: var(--plum); margin-bottom: 16px; }
.t-theme-hero .t-lead { color: var(--ink); opacity: .85; margin: 0 0 20px; }
.t-theme-hero .t-scene { max-height: 320px; width: 100%; }
@media (max-width: 860px) { .t-theme-hero { grid-template-columns: 1fr; padding: 34px 24px; border-radius: 10px 10px 70px 10px; } .t-theme-hero .t-scene { max-height: 220px; order: -1; } }
.t-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 8px; }
.t-found { margin: 18px 0 20px; color: var(--muted); font-size: 15px; }
.t-pager { display: flex; justify-content: space-between; align-items: center; margin: 34px 0 0; gap: 12px; }
.t-pager a { font-weight: 400; text-decoration: none; padding: 12px 18px; background: #fff; border-radius: 5px; }

/* ---------- курсы ---------- */
.t-course-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.t-buy { background: #fff; border-radius: 10px 10px 10px 120px; padding: 40px 40px 56px; position: sticky; top: 20px; align-self: start; }
.t-buy .t-price { font-size: 44px; font-weight: 300; color: var(--plum); line-height: 1; margin: 6px 0 14px; }
.t-buy .field { margin-bottom: 12px; }
.t-buy label.check { font-size: 14px; }
@media (max-width: 960px) { .t-course-hero { grid-template-columns: 1fr; } .t-buy { position: static; border-radius: 10px 10px 10px 70px; padding: 30px 24px 44px; } }
.t-inside { background: #fff; border-radius: 10px; overflow: hidden; }
.t-inside details { border-top: 1px solid var(--line); }
.t-inside details:first-child { border-top: 0; }
.t-inside summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 24px; position: relative; font-size: 19px; font-weight: 400; }
.t-inside summary::-webkit-details-marker { display: none; }
.t-inside summary::after { content: "+"; position: absolute; right: 22px; top: 50%; margin-top: -18px; font-size: 30px; font-weight: 200; color: var(--plum); transition: transform .2s; }
.t-inside details[open] summary::after { transform: rotate(45deg); }
.t-inside summary small { color: var(--soft); font-weight: 300; font-size: 14px; margin-left: 10px; }
.t-list { list-style: none; margin: 0; padding: 0 24px 18px; }
.t-list li { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.t-list li:last-child { border-bottom: 0; }
.t-list .t-lh { display: block; padding: 18px 0 6px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--c3); border-bottom: 0; }
.t-list a { font-weight: 400; text-decoration: none; }
.t-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.t-list small { color: var(--soft); font-size: 14px; white-space: nowrap; margin-left: auto; }
.t-progress { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .25); overflow: hidden; margin-top: 18px; max-width: 420px; }
.t-progress span { display: block; height: 100%; background: #fff; border-radius: 99px; }
.t-notice { padding: 16px 20px; border-radius: 10px; background: #fff; border-left: 4px solid var(--plum); margin: 20px 0 0; font-size: 15px; }
.t-notice.is-error { border-left-color: #b3261e; }

.t-flash { margin: 0 0 14px; }
.t-disclaimer { margin: 36px 0 0; font-size: 14px; color: var(--soft); max-width: 760px; }

@media (prefers-reduced-motion: reduce) { .t-card, .t-tile, .t-play { transition: none; } }
@media print { .t-head, .t-foot, .t-toc, .t-video, .t-cta-row { display: none; } .t-hero, .t-layout { display: block; } }

/* ===================== дополнения: подбор, тесты, программы, словарь, вопросы, инструменты ===================== */
.t-hero.is-short .t-hero-text, .t-hero.is-short .t-hero-media { min-height: 400px; }
.t-hero.is-short .t-hero-text { padding-top: 44px; padding-bottom: 40px; }
.t-body .t-lead-dark { font-size: 20px; line-height: 1.55; color: var(--ink); max-width: 640px; margin: 14px 0 26px; }
.t-message { max-width: 720px; margin: 70px auto 40px; }

/* варианты ответа */
.t-picker, .t-quiz { max-width: 920px; margin: 44px 0 0; }
.t-picker fieldset, .t-q { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
.t-picker legend, .t-q legend { padding: 0; margin-bottom: 14px; font-size: 20px; font-weight: 400; color: var(--plum); }
.t-q legend { color: var(--ink); font-size: 19px; line-height: 1.45; display: flex; gap: 14px; }
.t-q legend span { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--c1, #efe3ea); color: var(--c3, var(--plum));
  display: grid; place-items: center; font-size: 14px; font-weight: 500; }
.t-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.t-opt { position: relative; cursor: pointer; }
.t-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.t-opt span { display: block; padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 15.5px;
  font-weight: 400; transition: background .12s, border-color .12s, color .12s; }
.t-opt:hover span { border-color: var(--plum); }
.t-opt:has(input:checked) span { background: var(--plum); border-color: var(--plum); color: #fff; }
.t-opt:has(input:focus-visible) span { outline: 2px solid var(--plum); outline-offset: 3px; }
.t-quiz-scale { margin: 0 0 26px; color: var(--muted); }
.t-result { background: #fff; border-radius: 10px 10px 10px 80px; padding: 38px 40px 44px; max-width: 860px; }
.t-result-text { font-size: 19px; line-height: 1.65; font-weight: 350; margin: 0 0 22px; }

/* словарь */
.t-terms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 26px; }
.t-term { background: #fff; border-radius: 10px; padding: 22px 24px; scroll-margin-top: 20px; align-self: start; }
.t-body .t-term h2 { font-size: 21px; font-weight: 400; color: var(--plum); margin-bottom: 8px; }
.t-term p { margin: 0 0 10px; font-size: 16px; line-height: 1.6; font-weight: 350; }
.t-term .t-term-also { font-size: 14px; color: var(--soft); }
@media (max-width: 800px) { .t-terms { grid-template-columns: 1fr; } }

/* помощь */
.t-tile p.t-help-num, .t-help-num { margin: 0 0 8px; font-size: 26px; font-weight: 300; color: var(--plum); line-height: 1.15; }
.t-checks { list-style: none; margin: 0; padding: 0; }
.t-checks li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--line); font-size: 18px; line-height: 1.55; font-weight: 350; }
.t-checks li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--plum); }

/* программы */
.t-days { list-style: none; margin: 0; padding: 0; }
.t-days li { display: grid; grid-template-columns: 90px 1fr auto; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.t-days-n { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--c3, var(--plum)); }
.t-days a { font-size: 18px; font-weight: 400; text-decoration: none; }
.t-days small { color: var(--soft); }

/* вопросы */
.t-qa { display: grid; gap: 16px; margin-top: 24px; max-width: 880px; }
.t-qa-item { background: #fff; border-radius: 10px; padding: 26px 30px; }
.t-qa-q { margin: 0 0 14px; font-size: 19px; line-height: 1.6; font-weight: 350; }
.t-qa-a { border-left: 3px solid var(--plum); padding: 2px 0 2px 20px; }
.t-qa-a p { margin: 6px 0 0; font-size: 17px; line-height: 1.65; }

/* инструменты на странице техники: таймер и круг дыхания */
.t-tool { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; background: #fff; border-radius: 10px; padding: 22px 26px; margin-bottom: 26px; }
.t-breath { display: flex; align-items: center; gap: 22px; }
.t-breath-ring { width: 116px; height: 116px; border-radius: 50%; border: 1px dashed var(--c2); display: grid; place-items: center; flex: none; }
.t-breath-circle { width: 48px; height: 48px; border-radius: 50%; background: var(--c2); opacity: .9; transform: scale(1); transition: transform 4s ease-in-out; }
.t-breath-label { margin: 0; font-size: 22px; font-weight: 300; color: var(--plum); min-width: 150px; }
.t-timer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.t-timer-view { font-size: 44px; font-weight: 200; letter-spacing: .02em; color: var(--plum); min-width: 118px; font-variant-numeric: tabular-nums; }
.t-tool-hint { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--soft); }
.t-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.t-audio { width: 100%; margin-top: 14px; }
.t-audio[hidden] { display: none; }
.t-btn.is-done { background: #eaf6ee; border-color: #bcdcc6; color: var(--ok) !important; }

.t-vote { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 18px 0 0; font-size: 15px; color: var(--muted); }
.t-vote .t-btn { padding: 8px 16px; font-size: 14px; }
.t-vote-thanks { color: var(--ok, #2f6f4f); }
.t-vote-thanks[hidden] { display: none; }

/* мои практики */
.t-stats-row { display: flex; flex-wrap: wrap; gap: 14px; }
.t-stat { flex: 1 1 180px; background: #fff; border-radius: 10px; padding: 22px 24px; }
.t-stat strong { display: block; font-size: 44px; font-weight: 200; color: var(--plum); line-height: 1.1; }
.t-stat span { color: var(--muted); font-size: 14.5px; }
.t-week { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; margin-top: 22px; }
.t-week div { aspect-ratio: 1; border-radius: 6px; background: #fff; display: grid; place-items: center; font-size: 13px; color: var(--soft); }
.t-week div.has { background: var(--plum); color: #fff; }
.t-log { list-style: none; margin: 14px 0 0; padding: 0; }
.t-log li { display: flex; gap: 14px; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.t-log a { font-weight: 400; text-decoration: none; }
.t-log small { color: var(--soft); white-space: nowrap; }
@media (max-width: 560px) { .t-week { grid-template-columns: repeat(7, 1fr); } .t-days li { grid-template-columns: 1fr; gap: 2px; } }

/* полезное на главной */
.t-extras { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.t-extra { display: flex; flex-direction: column; gap: 6px; background: #fff; border-radius: 10px; padding: 22px 22px 20px; color: inherit !important;
  text-decoration: none; transition: transform .18s, box-shadow .18s; }
.t-extra:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(60, 20, 40, .12); }
.t-extra b { font-weight: 400; font-size: 19px; color: var(--plum); }
.t-extra span { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 1100px) { .t-extras { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .t-extras { grid-template-columns: 1fr; } }

/* руководства */
.t-guide { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-top: 44px; }
.t-guide-body { max-width: 760px; }
.t-guide-body h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; color: var(--plum); margin: 44px 0 16px; font-weight: 400; scroll-margin-top: 20px; }
.t-guide-body p { margin: 0 0 18px; font-size: 18px; line-height: 1.75; font-weight: 350; }
.t-guide-short { background: #fff; border-radius: 10px 10px 10px 60px; padding: 28px 32px 30px; margin: 0 0 8px; }
.t-guide-body .t-guide-short h2 { margin: 0 0 12px; font-size: 20px; }
.t-guide-short ul { margin: 0; padding-left: 20px; }
.t-guide-short li { font-size: 17px; line-height: 1.6; padding: 4px 0; font-weight: 350; }
.t-guide-body .t-guide-help { border-left: 3px solid var(--plum); padding: 6px 0 6px 22px; margin: 40px 0 0; font-size: 17px; line-height: 1.65; }
.t-guide-nav { position: sticky; top: 20px; align-self: start; display: grid; gap: 4px; font-size: 14.5px; }
.t-guide-nav a { color: var(--muted); text-decoration: none; padding: 5px 0 5px 14px; border-left: 2px solid var(--line); }
.t-guide-nav a:hover { color: var(--plum); border-left-color: var(--plum); }
@media (max-width: 900px) { .t-guide { grid-template-columns: 1fr; gap: 20px; } .t-guide-nav { display: none; } }

/* вход и служебные страницы: панель по центру под шапкой раздела */
.t-auth { max-width: 600px; margin: 0 auto; background: #fff; border-radius: 10px 10px 10px 90px; padding: 38px 44px 52px; }
.t-auth p { margin: 0 0 16px; font-size: 17px; line-height: 1.6; }
.t-auth .field + .field { margin-top: 14px; }
.t-auth .field label { font-size: 14px; font-weight: 400; color: var(--muted); }
.t-auth .hint { color: var(--soft); }
.t-auth .t-btn { width: 100%; margin-top: 18px; }
.t-auth .t-btn-line { margin-top: 14px; }
.t-auth .t-actions .t-btn { width: auto; margin-top: 0; }
.t-auth .t-alt { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 16px; }
.t-auth .t-alt summary { cursor: pointer; color: var(--plum); font-size: 16px; }
.t-auth-who { font-size: 20px !important; color: var(--plum); }
.t-auth-who small { font-size: 14px; color: var(--soft); }
@media (max-width: 560px) { .t-auth { padding: 28px 22px 40px; border-bottom-left-radius: 60px; } }

/* витрина и страницы клиента: прежние компоненты кабинета внутри общего каркаса сайта */
.t-body.shop-page .t-main > * { max-width: 920px; margin-left: auto; margin-right: auto; }
.t-body.shop-page .t-main { font-weight: 400; font-size: 16px; line-height: 1.55; padding-top: 28px; }
.t-body.shop-page a.btn { color: var(--ink); }
.t-body.shop-page a.btn-primary { color: #fff; }
.t-body.shop-page a.btn-danger { color: #fff; }
.t-body.shop-page .card { border-radius: 10px; box-shadow: none; border-color: transparent; }
.t-body.shop-page .t-main h1 { font-size: clamp(28px, 3vw, 38px); color: var(--plum); line-height: 1.2; margin-bottom: 12px; }
.t-body.shop-page .t-main h2 { font-size: 22px; color: var(--plum); line-height: 1.3; }
.t-body.shop-page .shop-kicker { color: var(--c3, var(--plum)); letter-spacing: .12em; font-weight: 500; }
.t-foot-note a { color: inherit; display: inline; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

/* ===================== удобство на телефоне (разбор 16.10): короче путь к практике, все разделы в меню ===================== */
/* меню группами: «Практики» на компьютере, «Меню» на телефоне — один и тот же список */
.t-nav { gap: 24px; align-items: center; }
.t-navdrop { position: relative; }
.t-navdrop summary { list-style: none; cursor: pointer; color: var(--plum); font-size: 16px; font-weight: 400; }
.t-navdrop summary::-webkit-details-marker { display: none; }
.t-navdrop summary::after { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 0 3px 8px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.t-navdrop[open] summary::after { transform: rotate(-135deg); margin-bottom: -1px; }
.t-navdrop-menu { position: absolute; left: -18px; top: calc(100% + 14px); z-index: 30; background: #fff; border-radius: 10px;
  padding: 20px 22px; box-shadow: 0 16px 44px rgba(60, 20, 40, .18); display: grid; grid-template-columns: repeat(3, minmax(200px, 1fr)); gap: 8px 26px; }
.t-menu-group { display: grid; align-content: start; }
.t-menu-group p { margin: 0 0 6px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; color: var(--soft); }
.t-menu-group a, .t-burger-menu .t-menu-out { display: block; padding: 9px 10px; margin: 0 -10px; border-radius: 6px; color: var(--plum);
  text-decoration: none; font-weight: 400; font-size: 16px; }
.t-menu-group a:hover, .t-burger-menu .t-menu-out:hover { background: var(--bg); text-decoration: none; }
.t-burger-menu { min-width: 280px; max-height: calc(100vh - 90px); overflow: auto; gap: 10px; padding: 14px 20px; }
.t-burger-menu .t-menu-group + .t-menu-group, .t-burger-menu .t-menu-out { border-top: 1px solid var(--line); padding-top: 10px; }
@media (max-width: 1100px) {
  .t-head-in { grid-template-columns: 1fr auto; }
  .t-nav, .t-head-r { display: none; }
  .t-burger { display: block; }
}

/* кнопка «К практике» внизу экрана — только на телефоне и планшете */
.t-sticky-go { display: none; }

@media (max-width: 960px) {
  /* шапка техники: сначала название и «Приступить», рисунок — после и вдвое ниже */
  .t-hero-media { order: 1; min-height: 0; height: 220px; border-radius: 10px 10px 10px 60px; }
  .t-hero-media:has(.t-video) { height: auto; padding: 24px 0; }
  .t-hero-media > .t-pic, .t-hero-media > .t-scene { height: 100%; width: auto; max-width: 100%; }
  .t-hero-text { border-radius: 10px 10px 60px 10px; }
  .t-lib-art { order: 1; min-height: 260px; }
  .t-sticky-go { display: block; position: fixed; left: 16px; right: 16px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 40;
    text-align: center; padding: 15px 18px; border-radius: 8px; background: var(--plum); color: #fff !important; text-decoration: none;
    font-weight: 500; font-size: 16px; box-shadow: 0 10px 30px rgba(58, 10, 35, .35); transition: transform .2s, opacity .2s; }
  .t-sticky-go.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
}

@media (max-width: 640px) {
  .t-block { padding-top: 48px; }
  /* главная: поиск и «С чего начать» на первом экране — рисунок-арки не нужен */
  .t-lib-art { display: none; }
  .t-lib-text { padding: 32px 22px 30px; }
  .t-theme-hero { min-height: 0; }
  .t-theme-hero .t-scene { display: none; }
  /* «Начните с этих» — лента, которую листают пальцем */
  .t-rail-m { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -20px; padding: 0 20px 10px;
    scrollbar-width: none; }
  .t-rail-m::-webkit-scrollbar { display: none; }
  .t-rail-m > .t-card { flex: 0 0 78%; scroll-snap-align: start; }
  /* темы — компактно, в два столбца */
  .t-themes { grid-template-columns: 1fr 1fr; gap: 10px; }
  .t-themes .t-tile-art, .t-themes .t-tile p { display: none; }
  .t-themes .t-tile-body { padding: 14px 14px 12px; }
  .t-themes .t-tile h3 { font-size: 16px; line-height: 1.3; }
  .t-themes .t-tile-foot { flex-direction: column; align-items: flex-start; gap: 4px; }
  /* карточки в списках — строкой: маленький рисунок слева */
  .t-grid { gap: 12px; }
  .t-grid:not(.t-rail-m) .t-card { flex-direction: row; min-height: 118px; }
  .t-grid:not(.t-rail-m) .t-card-art { flex: 0 0 104px; aspect-ratio: auto; }
  .t-grid:not(.t-rail-m) .t-card-body { padding: 12px 14px; gap: 4px; }
  .t-grid:not(.t-rail-m) .t-card h3 { font-size: 16.5px; }
  .t-grid:not(.t-rail-m) .t-card p { -webkit-line-clamp: 2; font-size: 14px; }
  /* «Полезное» — в два столбца */
  .t-extras { grid-template-columns: 1fr 1fr; gap: 10px; }
  .t-extra { padding: 14px 14px 12px; }
  .t-extra b { font-size: 16px; }
  .t-extra span { font-size: 14px; }
}

/* «Показать ещё» вместо перехода на следующую страницу */
.t-pager .t-more { background: var(--plum); color: #fff !important; padding: 14px 26px; }
.t-pager .t-more:hover { background: var(--plum-2); }

/* сенсорный экран: всё, во что попадают пальцем, — не ниже 40 px */
@media (pointer: coarse) {
  .t-chip, .t-pager a, .t-toc a, .t-pills a, .t-alpha a { min-height: 40px; display: inline-flex; align-items: center; }
  .t-crumbs a { padding: 8px 0; }
  .t-foot a { padding: 8px 0; }
}

/* «Что дальше» и «Нашлось в других разделах» */
.t-next { margin: 56px 0 0; }
.t-next-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.t-next-item { display: flex; flex-direction: column; gap: 6px; background: #fff; border-radius: 10px; padding: 20px 22px;
  border-top: 4px solid var(--c2); color: inherit !important; text-decoration: none; transition: transform .18s, box-shadow .18s; }
.t-next-item:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(60, 20, 40, .12); }
.t-next-item small { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--c3); font-weight: 500; }
.t-next-item b { font-weight: 400; font-size: 19px; color: var(--plum); line-height: 1.3; }
.t-next-item span { font-size: 14px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden; }
.t-elsewhere { margin: 22px 0 0; background: #fff; border-radius: 10px; padding: 18px 20px; }
.t-elsewhere .t-kicker { margin-bottom: 10px; }
.t-elsewhere-row { display: flex; flex-wrap: wrap; gap: 10px; }
.t-elsewhere-row .t-chip { text-decoration: none; }
.t-empty { background: #fff; border-radius: 10px 10px 10px 60px; padding: 28px 30px 32px; max-width: 760px; }
.t-empty p { margin: 0 0 14px; }

/* словарь: алфавит, поиск, свёрнутые карточки */
.t-gloss-tools { display: grid; gap: 14px; margin-bottom: 8px; }
.t-gloss-tools .t-search { width: min(100%, 560px); border: 1px solid var(--line); }
.t-alpha { display: flex; flex-wrap: wrap; gap: 6px; }
.t-alpha a { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; background: #fff;
  border-radius: 6px; text-decoration: none; color: var(--plum); font-weight: 400; }
.t-alpha a:hover { background: var(--plum); color: #fff; }
.t-alpha-h { font-size: 28px; color: var(--plum); margin: 34px 0 12px; scroll-margin-top: 20px; }
.t-term summary { list-style: none; cursor: pointer; }
.t-term summary::-webkit-details-marker { display: none; }
.t-term summary h3 { font-size: 20px; font-weight: 400; color: var(--plum); margin: 0 0 6px; }
.t-term summary p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.t-term[open] summary p { display: block; }
.t-term-more { display: inline-block; margin-top: 8px; font-size: 14px; color: var(--plum); text-decoration: underline; text-underline-offset: 3px; }
.t-term[open] .t-term-more { display: none; }
.t-term[open] > p { margin-top: 12px; }

/* «Сохранить практику» и списки в «Моих практиках» */
.t-fav.is-on { background: rgba(255, 255, 255, .16); border-color: #fff; }
.t-mine-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px 48px; }
.t-mine-lists .t-h2 { margin: 0; }
.t-mine-lists .t-notice { margin-top: 14px; }
.t-log-x { flex: none; border: 0; background: none; padding: 6px 0 6px 10px; min-height: 40px; color: var(--soft); font: inherit;
  font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.t-log-x:hover { color: var(--plum); }
.t-muted-note { display: block; margin-top: 8px; color: var(--soft); font-size: 14px; }

/* договор оферты */
.oferta h2 { font-size: 20px; font-weight: 400; color: var(--plum); margin: 30px 0 10px; }
.oferta h2:first-child { margin-top: 0; }
.oferta p { margin: 0 0 10px; line-height: 1.6; }
.oferta-seller { white-space: normal; }
