/*
Theme Name: Tatiana Telegram Bot
Theme URI: https://a-a.su/
Author: Семенова Татьяна
Author URI: https://a-a.su/
Description: Фирменная тема для проекта «Татьяна бот»:  витрина проекта, услуги, гороскопы и закрытая панель управления.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: tatiana-bot
*/

:root {
  --tb-bg: #f8f4ff;
  --tb-surface: #ffffff;
  --tb-ink: #25183f;
  --tb-muted: #746987;
  --tb-primary: #6f3fc5;
  --tb-primary-dark: #45217f;
  --tb-gold: #d7aa42;
  --tb-gold-soft: #f3dfaa;
  --tb-border: rgba(69, 33, 127, .12);
  --tb-shadow: 0 20px 50px rgba(47, 25, 87, .12);
  --tb-radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--tb-ink);
  background:
    radial-gradient(circle at 10% 5%, rgba(215,170,66,.16), transparent 22rem),
    radial-gradient(circle at 90% 10%, rgba(111,63,197,.14), transparent 28rem),
    var(--tb-bg);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

.tb-container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.tb-section { padding: 88px 0; }
.tb-section--compact { padding: 56px 0; }
.tb-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid rgba(215,170,66,.45);
  border-radius: 999px; color: var(--tb-primary-dark); background: rgba(255,255,255,.72);
  font-weight: 800; font-size: .84rem; letter-spacing: .04em; text-transform: uppercase;
}
.tb-title { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.15rem, 5vw, 4.8rem); line-height: 1.04; margin: 18px 0; }
.tb-section-title { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.9rem, 3vw, 3.2rem); line-height: 1.15; margin: 0 0 14px; }
.tb-lead { font-size: clamp(1.03rem, 1.5vw, 1.25rem); color: var(--tb-muted); max-width: 750px; }
.tb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 0 22px; border-radius: 15px; border: 1px solid transparent;
  font-weight: 800; cursor: pointer; transition: .22s ease;
}
.tb-btn:hover { transform: translateY(-2px); }
.tb-btn--primary { color: #fff; background: linear-gradient(135deg, var(--tb-primary), var(--tb-primary-dark)); box-shadow: 0 14px 28px rgba(69,33,127,.24); }
.tb-btn--gold { color: #3a2600; background: linear-gradient(135deg, #f1cf75, var(--tb-gold)); box-shadow: 0 14px 28px rgba(215,170,66,.23); }
.tb-btn--ghost { border-color: var(--tb-border); background: rgba(255,255,255,.74); }

.tb-header { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(18px); background: rgba(248,244,255,.82); border-bottom: 1px solid var(--tb-border); }
.tb-header__inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tb-brand { display: flex; align-items: center; gap: 12px; font-weight: 900; }
.tb-brand__mark { width: 44px; aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--tb-primary), var(--tb-primary-dark)); color: #fff; box-shadow: 0 10px 24px rgba(69,33,127,.24); }
.tb-brand__text small { display: block; color: var(--tb-muted); font-size: .7rem; font-weight: 700; }
.tb-nav { display: flex; align-items: center; gap: 24px; font-weight: 750; }
.tb-nav a:hover { color: var(--tb-primary); }
.tb-menu-toggle { display: none; border: 0; background: transparent; font-size: 1.7rem; }

.tb-hero { padding: 82px 0 62px; overflow: hidden; }
.tb-hero__grid { display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: 58px; }
.tb-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.tb-hero__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; }
.tb-stat { padding: 16px; border-radius: 18px; background: rgba(255,255,255,.72); border: 1px solid var(--tb-border); }
.tb-stat strong { display: block; font-size: 1.45rem; color: var(--tb-primary-dark); }
.tb-stat span { color: var(--tb-muted); font-size: .86rem; }
.tb-visual { position: relative; min-height: 540px; }
.tb-orbit { position: absolute; inset: 2% 0 auto auto; width: 92%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(111,63,197,.18); box-shadow: inset 0 0 70px rgba(111,63,197,.07); animation: tbFloat 7s ease-in-out infinite; }
.tb-orbit:before, .tb-orbit:after { content:"✦"; position:absolute; color: var(--tb-gold); font-size: 2rem; }
.tb-orbit:before { top: 10%; left: 12%; } .tb-orbit:after { right: 7%; bottom: 23%; }
.tb-phone { position: absolute; width: 310px; left: 50%; top: 48%; transform: translate(-50%,-50%) rotate(-3deg); padding: 14px; border-radius: 42px; background: #21143b; box-shadow: 0 35px 70px rgba(36,18,65,.32); }
.tb-phone__screen { min-height: 490px; border-radius: 30px; background: linear-gradient(180deg,#fdfbff,#eee5ff); padding: 18px; }
.tb-phone__top { display:flex; align-items:center; justify-content:space-between; margin-bottom: 20px; }
.tb-phone__avatar { width:42px; height:42px; border-radius:14px; background:linear-gradient(135deg,var(--tb-primary),var(--tb-gold)); display:grid; place-items:center; color:#fff; }
.tb-message { padding: 14px; border-radius: 18px 18px 18px 5px; background:#fff; box-shadow: 0 10px 20px rgba(53,35,92,.08); margin: 12px 0; font-size:.88rem; }
.tb-message--accent { background: linear-gradient(135deg, var(--tb-primary), var(--tb-primary-dark)); color:#fff; margin-left: 34px; border-radius: 18px 18px 5px 18px; }
.tb-floating-card { position:absolute; padding:16px 18px; border-radius:18px; background:rgba(255,255,255,.91); border:1px solid var(--tb-border); box-shadow:var(--tb-shadow); font-weight:800; }
.tb-floating-card--one { left:0; top:18%; } .tb-floating-card--two { right:0; bottom:16%; }

.tb-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tb-card { background: rgba(255,255,255,.86); border: 1px solid var(--tb-border); border-radius: var(--tb-radius); padding: 28px; box-shadow: 0 14px 34px rgba(47,25,87,.07); transition:.22s ease; }
.tb-card:hover { transform: translateY(-5px); box-shadow: var(--tb-shadow); }
.tb-card__icon { width: 52px; height: 52px; border-radius: 16px; display:grid; place-items:center; font-size:1.5rem; background:linear-gradient(135deg,rgba(111,63,197,.12),rgba(215,170,66,.2)); margin-bottom:18px; }
.tb-card h3 { margin: 0 0 10px; font-size: 1.2rem; }
.tb-card p { margin: 0; color: var(--tb-muted); }

.tb-showcase { background: linear-gradient(135deg,#291548,#5e34a6); color:#fff; border-radius: 36px; padding: 44px; box-shadow: var(--tb-shadow); overflow:hidden; position:relative; }
.tb-showcase:after { content:""; position:absolute; width:280px; height:280px; border-radius:50%; background:rgba(255,255,255,.07); right:-80px; top:-80px; }
.tb-showcase__grid { display:grid; grid-template-columns: .8fr 1.2fr; gap: 34px; align-items:center; position:relative; z-index:1; }
.tb-feature-list { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.tb-feature-item { padding:16px; border-radius:16px; background:rgba(255,255,255,.09); border:1px solid rgba(255,255,255,.13); }

.tb-post-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.tb-post-card { overflow:hidden; border-radius:24px; background:#fff; border:1px solid var(--tb-border); box-shadow:0 14px 34px rgba(47,25,87,.07); }
.tb-post-card__media { aspect-ratio:16/10; background:linear-gradient(135deg,#4d2888,#d7aa42); display:grid; place-items:center; color:#fff; font-size:3rem; }
.tb-post-card__body { padding:22px; }
.tb-post-card__meta { color:var(--tb-primary); font-size:.8rem; font-weight:800; text-transform:uppercase; }

.tb-footer { margin-top:70px; padding:48px 0 24px; background:#21143b; color:rgba(255,255,255,.82); }
.tb-footer__grid { display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:40px; }
.tb-footer h4 { color:#fff; }
.tb-footer a { display:block; margin:7px 0; }
.tb-footer__bottom { margin-top:34px; padding-top:20px; border-top:1px solid rgba(255,255,255,.12); font-size:.88rem; }

/* Dashboard */
.tb-dashboard-wrap { padding:32px 0 72px; }
.tb-dashboard { display:grid; grid-template-columns:260px 1fr; min-height:720px; border-radius:30px; overflow:hidden; background:#fff; box-shadow:var(--tb-shadow); border:1px solid var(--tb-border); }
.tb-sidebar { background:#24143f; color:#fff; padding:28px 18px; }
.tb-sidebar__title { font-size:1.1rem; font-weight:900; padding:0 10px 22px; }
.tb-side-link { width:100%; display:flex; align-items:center; gap:10px; padding:12px 14px; color:rgba(255,255,255,.78); border-radius:13px; margin:4px 0; border:0; background:transparent; cursor:pointer; text-align:left; }
.tb-side-link:hover,.tb-side-link.is-active { background:rgba(255,255,255,.1); color:#fff; }
.tb-dashboard__main { padding:30px; background:#fbf9ff; }
.tb-dashboard__top { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; }
.tb-dashboard__top h1 { margin:0; font-size:1.8rem; }
.tb-status { display:inline-flex; align-items:center; gap:7px; color:#16744a; font-weight:800; }
.tb-status:before { content:""; width:9px; height:9px; border-radius:50%; background:#2fc981; box-shadow:0 0 0 5px rgba(47,201,129,.14); }
.tb-kpis { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:22px; }
.tb-kpi { padding:20px; border-radius:18px; background:#fff; border:1px solid var(--tb-border); }
.tb-kpi span { color:var(--tb-muted); font-size:.86rem; }
.tb-kpi strong { display:block; font-size:1.7rem; margin-top:5px; }
.tb-panel { background:#fff; border:1px solid var(--tb-border); border-radius:22px; padding:24px; margin-bottom:18px; }
.tb-panel h2 { margin-top:0; }
.tb-form-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.tb-field { display:flex; flex-direction:column; gap:7px; }
.tb-field label { font-weight:800; font-size:.9rem; }
.tb-field input,.tb-field select,.tb-field textarea { width:100%; border:1px solid #d9d1e8; background:#fff; border-radius:12px; padding:12px 13px; color:var(--tb-ink); }
.tb-field textarea { min-height:140px; resize:vertical; }
.tb-col-span-2 { grid-column:span 2; }
.tb-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.tb-tab { display:none; }.tb-tab.is-active { display:block; }
.tb-notice { padding:14px 16px; border-radius:14px; background:#fff7dc; border:1px solid #efd58a; color:#6d5313; margin-bottom:18px; }

@keyframes tbFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

@media (max-width: 980px) {
  .tb-nav { position:absolute; left:16px; right:16px; top:82px; display:none; flex-direction:column; align-items:stretch; padding:18px; border-radius:18px; background:#fff; box-shadow:var(--tb-shadow); }
  .tb-nav.is-open { display:flex; }
  .tb-menu-toggle { display:block; }
  .tb-header .tb-btn--gold { display:none; }
  .tb-hero__grid,.tb-showcase__grid { grid-template-columns:1fr; }
  .tb-grid,.tb-post-grid { grid-template-columns:repeat(2,1fr); }
  .tb-dashboard { grid-template-columns:1fr; }
  .tb-sidebar { display:flex; overflow:auto; padding:12px; }
  .tb-sidebar__title { display:none; }
  .tb-side-link { min-width:max-content; }
  .tb-kpis { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 640px) {
  .tb-section { padding:62px 0; }
  .tb-hero { padding-top:48px; }
  .tb-hero__meta,.tb-grid,.tb-post-grid,.tb-feature-list,.tb-footer__grid,.tb-form-grid { grid-template-columns:1fr; }
  .tb-visual { min-height:470px; }
  .tb-phone { width:265px; }
  .tb-phone__screen { min-height:425px; }
  .tb-floating-card { font-size:.78rem; }
  .tb-showcase { padding:28px; }
  .tb-dashboard__main { padding:18px; }
  .tb-kpis { grid-template-columns:1fr; }
  .tb-col-span-2 { grid-column:auto; }
}

/* Product story and pricing — v1.1.0 */
.tb-about-bot__grid { display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:start; }
.tb-about-bot__grid > div > p:not(.tb-lead) { color:var(--tb-muted); font-size:1.04rem; }
.tb-about-bot__accent { margin-top:24px; padding:20px 22px; border-radius:18px; background:linear-gradient(135deg,rgba(111,63,197,.09),rgba(215,170,66,.16)); border:1px solid rgba(215,170,66,.35); }
.tb-about-bot__steps { display:grid; gap:14px; }
.tb-about-bot__steps article { display:grid; grid-template-columns:58px 1fr; gap:16px; padding:20px; border:1px solid var(--tb-border); background:#fff; border-radius:20px; box-shadow:0 10px 28px rgba(47,25,87,.06); }
.tb-about-bot__steps article > span { width:52px; height:52px; display:grid; place-items:center; border-radius:16px; color:#fff; font-weight:900; background:linear-gradient(135deg,var(--tb-primary),var(--tb-primary-dark)); }
.tb-about-bot__steps h3 { margin:0 0 5px; }
.tb-about-bot__steps p { margin:0; color:var(--tb-muted); }
.tb-bot-benefits { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:38px; }
.tb-bot-benefits article { padding:24px; border-radius:22px; background:#291548; color:#fff; }
.tb-bot-benefits strong { display:block; font-size:1.13rem; margin-bottom:8px; color:var(--tb-gold-soft); }
.tb-bot-benefits p { margin:0; color:rgba(255,255,255,.78); }

.tb-pricing { background:linear-gradient(180deg,rgba(111,63,197,.04),rgba(215,170,66,.07)); }
.tb-pricing__head { display:flex; justify-content:space-between; gap:28px; align-items:end; }
.tb-price-note { min-width:250px; text-align:center; padding:15px 20px; background:#fff; border:1px solid var(--tb-border); border-radius:16px; color:var(--tb-muted); }
.tb-pricing-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; margin-top:38px; align-items:stretch; }
.tb-price-card { position:relative; display:flex; flex-direction:column; padding:30px; background:#fff; border:1px solid var(--tb-border); border-radius:28px; box-shadow:0 16px 38px rgba(47,25,87,.08); }
.tb-price-card--featured { transform:translateY(-10px); border:2px solid var(--tb-gold); box-shadow:0 24px 55px rgba(69,33,127,.18); }
.tb-price-badge { position:absolute; top:-16px; left:50%; transform:translateX(-50%); white-space:nowrap; padding:7px 16px; border-radius:999px; background:linear-gradient(135deg,#f1cf75,var(--tb-gold)); color:#3a2600; font-weight:900; font-size:.78rem; text-transform:uppercase; }
.tb-price-card__top > span { color:var(--tb-primary); font-size:.78rem; font-weight:900; letter-spacing:.1em; }
.tb-price-card h3 { font-size:1.45rem; margin:8px 0; }
.tb-price-card__top p { color:var(--tb-muted); min-height:52px; }
.tb-price { display:flex; align-items:end; gap:9px; padding:20px 0; border-bottom:1px solid var(--tb-border); }
.tb-price strong { font-size:2.5rem; line-height:1; font-family:Georgia,"Times New Roman",serif; }
.tb-price span { color:var(--tb-muted); }
.tb-price-card ul { list-style:none; padding:18px 0; margin:0 0 18px; flex:1; }
.tb-price-card li { position:relative; padding:8px 0 8px 27px; }
.tb-price-card li:before { content:"✓"; position:absolute; left:0; color:var(--tb-primary); font-weight:900; }
.tb-price-card .tb-btn { width:100%; }
.tb-pricing__foot { margin:24px auto 0; max-width:850px; text-align:center; color:var(--tb-muted); font-size:.92rem; }
.tb-order-cta { display:flex; align-items:center; justify-content:space-between; gap:35px; padding:38px 42px; border-radius:30px; background:linear-gradient(135deg,#291548,#5e34a6); color:#fff; box-shadow:var(--tb-shadow); }
.tb-order-cta h2 { margin:12px 0 8px; font-family:Georgia,"Times New Roman",serif; font-size:clamp(1.7rem,3vw,2.7rem); line-height:1.15; }
.tb-order-cta p { margin:0; color:rgba(255,255,255,.78); }
.tb-order-cta .tb-btn { min-width:190px; }

@media (max-width:980px) {
  .tb-about-bot__grid { grid-template-columns:1fr; }
  .tb-bot-benefits,.tb-pricing-grid { grid-template-columns:1fr; }
  .tb-price-card--featured { transform:none; }
  .tb-pricing__head,.tb-order-cta { align-items:flex-start; flex-direction:column; }
}
@media (max-width:640px) {
  .tb-about-bot__steps article { grid-template-columns:46px 1fr; padding:16px; }
  .tb-about-bot__steps article > span { width:42px; height:42px; }
  .tb-price-card { padding:24px; }
  .tb-order-cta { padding:28px; }
  .tb-price-note { min-width:0; width:100%; }
}


/* Full product story — v1.2.0 */
.tb-product-story { background:#fff; }
.tb-story-intro { max-width:850px; margin:0 auto 34px; text-align:center; }
.tb-story-intro p { color:var(--tb-muted); font-size:1.08rem; }
.tb-story-content { max-width:920px; margin:0 auto; padding:clamp(28px,5vw,62px); border:1px solid var(--tb-border); border-radius:32px; background:linear-gradient(180deg,#fff,#fbf9ff); box-shadow:0 22px 60px rgba(47,25,87,.09); }
.tb-story-content h2 { margin:0 0 25px; font-family:Georgia,"Times New Roman",serif; font-size:clamp(2rem,4vw,3.15rem); line-height:1.12; color:var(--tb-text); }
.tb-story-content h3 { margin:48px 0 16px; padding-top:8px; font-family:Georgia,"Times New Roman",serif; font-size:clamp(1.45rem,2.5vw,2rem); line-height:1.2; color:var(--tb-primary-dark); }
.tb-story-content h3:before { content:"✦"; margin-right:10px; color:var(--tb-gold); }
.tb-story-content h4 { margin:28px 0 10px; font-size:1.17rem; color:var(--tb-text); }
.tb-story-content p { margin:0 0 16px; color:#554c64; font-size:1.04rem; line-height:1.78; }
.tb-story-content ul { margin:14px 0 24px; padding:18px 22px 18px 48px; border-radius:18px; background:rgba(111,63,197,.055); }
.tb-story-content li { margin:7px 0; line-height:1.55; }
.tb-story-slogan { margin-bottom:7px!important; font-weight:900; color:var(--tb-primary)!important; font-size:1.18rem!important; }
@media (max-width:640px) {
  .tb-story-content { padding:25px 20px; border-radius:22px; }
  .tb-story-content h3 { margin-top:38px; }
  .tb-story-content ul { padding-left:38px; }
}


/* YooKassa-ready legal and purchase pages — v1.3.0 */
.tb-legal-hero { padding:72px 0 34px; text-align:center; }
.tb-legal-hero .tb-lead { max-width:760px; margin:0 auto; }
.tb-legal-wrap { padding:0 0 80px; }
.tb-legal-card { max-width:960px; margin:0 auto; padding:clamp(26px,5vw,58px); background:#fff; border:1px solid var(--tb-border); border-radius:30px; box-shadow:var(--tb-shadow); }
.tb-legal-card h1 { margin-top:0; font-family:Georgia,"Times New Roman",serif; font-size:clamp(2rem,4vw,3rem); line-height:1.15; }
.tb-legal-card h2 { margin:40px 0 14px; color:var(--tb-primary-dark); font-family:Georgia,"Times New Roman",serif; }
.tb-legal-card h3 { margin:28px 0 10px; }
.tb-legal-card p,.tb-legal-card li { color:#554c64; line-height:1.72; }
.tb-legal-card ul,.tb-legal-card ol { padding-left:24px; }
.tb-legal-note { padding:18px 20px; margin:22px 0; border-radius:16px; background:#fff7dc; border:1px solid #efd58a; color:#6d5313; }
.tb-details { width:100%; border-collapse:collapse; margin:20px 0; }
.tb-details th,.tb-details td { padding:13px 14px; text-align:left; vertical-align:top; border-bottom:1px solid var(--tb-border); }
.tb-details th { width:34%; color:var(--tb-primary-dark); }
.tb-purchase-info { margin-top:30px; display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.tb-purchase-info article { padding:22px; border-radius:20px; background:#fff; border:1px solid var(--tb-border); }
.tb-purchase-info strong { display:block; margin-bottom:7px; color:var(--tb-primary-dark); }
.tb-consent { margin-top:20px; padding:18px; border-radius:16px; background:rgba(111,63,197,.06); color:var(--tb-muted); font-size:.92rem; }
.tb-footer__legal { display:grid; gap:4px; }
.tb-footer__seller { margin-top:20px; padding-top:18px; border-top:1px solid rgba(255,255,255,.12); color:rgba(255,255,255,.74); font-size:.88rem; line-height:1.65; }
@media (max-width:760px){
  .tb-purchase-info { grid-template-columns:1fr; }
  .tb-details,.tb-details tbody,.tb-details tr,.tb-details th,.tb-details td { display:block; width:100%; }
  .tb-details th { padding-bottom:3px; border-bottom:0; }
  .tb-details td { padding-top:3px; }
}

/* Compact product story, v1.3.3 */
.tb-product-story{padding-top:64px;padding-bottom:64px}
.tb-story-intro{margin-bottom:18px}
.tb-story-content{max-width:1040px;padding:clamp(22px,3vw,38px);border-radius:24px}
.tb-story-content h2{font-size:clamp(1.75rem,3vw,2.55rem);margin-bottom:16px}
.tb-story-content>p{line-height:1.62;margin-bottom:10px}
.tb-story-content>ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 24px;margin:12px 0 18px;padding:16px 20px 16px 40px}
.tb-story-content>ul li{margin:2px 0}
.tb-story-more-note{margin:18px 0 12px!important;padding:12px 15px;border-radius:14px;background:rgba(111,63,197,.07);color:var(--tb-primary-dark)!important;font-weight:700}
.tb-story-accordion{margin:9px 0;border:1px solid var(--tb-border);border-radius:16px;background:#fff;overflow:hidden}
.tb-story-accordion summary{position:relative;cursor:pointer;list-style:none;padding:15px 48px 15px 18px;font-weight:800;color:var(--tb-primary-dark);font-size:1.04rem}
.tb-story-accordion summary::-webkit-details-marker{display:none}
.tb-story-accordion summary:after{content:'+';position:absolute;right:18px;top:50%;transform:translateY(-50%);font-size:1.35rem;color:var(--tb-primary)}
.tb-story-accordion[open] summary:after{content:'−'}
.tb-story-accordion[open] summary{background:rgba(111,63,197,.055)}
.tb-story-accordion__body{padding:14px 18px 18px;border-top:1px solid var(--tb-border)}
.tb-story-accordion__body p{margin:0 0 9px;line-height:1.58;font-size:.98rem}
.tb-story-accordion__body h4{margin:16px 0 7px;font-size:1.05rem}
.tb-story-accordion__body ul{margin:9px 0 14px;padding:12px 16px 12px 36px;border-radius:12px}
.tb-story-accordion__body li{margin:4px 0;line-height:1.45}
@media(max-width:700px){
 .tb-product-story{padding-top:42px;padding-bottom:42px}
 .tb-story-content{padding:20px 15px}
 .tb-story-content>ul{grid-template-columns:1fr;padding-left:34px}
 .tb-story-accordion summary{padding:14px 42px 14px 14px;font-size:1rem}
 .tb-story-accordion__body{padding:12px 14px 15px}
}


/* Центрирование главного изображения в записи */
.tb-single-featured-image {
  display: flex;
  justify-content: center;
  margin: 24px auto;
  border-radius: 22px;
  overflow: hidden;
}
.tb-single-featured-image__img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* =========================================================
   FULL SITE 2.0 — блог, документация и база знаний
   ========================================================= */
.tb-breadcrumbs{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 28px;color:var(--tb-muted);font-size:.9rem}.tb-breadcrumbs a{color:var(--tb-primary);font-weight:750}.tb-breadcrumbs span:last-child{color:var(--tb-ink)}
.tb-archive-head,.tb-knowledge-hero,.tb-knowledge-preview__head{display:flex;justify-content:space-between;align-items:flex-end;gap:28px;margin-bottom:34px}.tb-archive-head>div,.tb-knowledge-hero>div,.tb-knowledge-preview__head>div{max-width:760px}
.tb-search-form{display:flex;gap:8px;min-width:min(100%,360px)}.tb-search-form input{width:100%;min-height:48px;border:1px solid #d9d1e8;border-radius:13px;padding:0 15px;background:#fff;color:var(--tb-ink)}.tb-search-form button{min-height:48px;border:0;border-radius:13px;padding:0 19px;background:linear-gradient(135deg,var(--tb-primary),var(--tb-primary-dark));color:#fff;font-weight:800;cursor:pointer}
.tb-content-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:28px;align-items:start}.tb-content-sidebar{display:grid;gap:18px;position:sticky;top:98px}.tb-side-widget{padding:22px;border-radius:20px;background:rgba(255,255,255,.88);border:1px solid var(--tb-border);box-shadow:0 12px 28px rgba(47,25,87,.07)}.tb-side-widget h3{margin:0 0 14px}.tb-side-widget>a,.tb-side-widget li a{display:block;padding:9px 0;border-bottom:1px solid var(--tb-border);font-weight:700}.tb-side-widget>a:last-child{border-bottom:0}.tb-side-widget ul{list-style:none;margin:0;padding:0}.tb-side-widget li{display:flex;justify-content:space-between;gap:8px;color:var(--tb-muted)}
.tb-article-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.tb-article-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}.tb-article-card{overflow:hidden;border-radius:24px;background:#fff;border:1px solid var(--tb-border);box-shadow:0 14px 34px rgba(47,25,87,.07);transition:.22s ease}.tb-article-card:hover{transform:translateY(-4px);box-shadow:var(--tb-shadow)}.tb-article-card__media{display:grid;place-items:center;aspect-ratio:16/10;background:linear-gradient(135deg,#4d2888,#d7aa42);overflow:hidden;color:#fff;font-size:2.6rem}.tb-article-card__media img{width:100%;height:100%;object-fit:cover}.tb-article-card__body{padding:22px}.tb-article-card h2,.tb-article-card h3{margin:8px 0 10px;line-height:1.25;font-family:Georgia,"Times New Roman",serif}.tb-article-card h2{font-size:1.45rem}.tb-article-card h3{font-size:1.18rem}.tb-article-card p{margin:0 0 16px;color:var(--tb-muted)}.tb-text-link{color:var(--tb-primary);font-weight:850}.tb-pagination{margin-top:30px}.tb-pagination .nav-links,.tb-pagination{display:flex;gap:8px;flex-wrap:wrap}.tb-pagination a,.tb-pagination span{display:inline-flex;min-width:42px;min-height:42px;align-items:center;justify-content:center;padding:0 12px;border-radius:11px;background:#fff;border:1px solid var(--tb-border);font-weight:800}.tb-pagination .current{background:var(--tb-primary);color:#fff}
.tb-empty-state{text-align:center;padding:48px;border:1px dashed rgba(111,63,197,.3);border-radius:24px;background:rgba(255,255,255,.62);grid-column:1/-1}.tb-empty-state--large{max-width:760px;margin:auto}.tb-empty-icon{font-size:4rem;font-weight:900;color:var(--tb-primary);font-family:Georgia,serif}.tb-empty-state .tb-search-form{margin:24px auto}.tb-empty-state .tb-actions{justify-content:center}
.tb-knowledge-preview{background:linear-gradient(180deg,rgba(255,255,255,.3),rgba(111,63,197,.04))}.tb-knowledge-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.tb-knowledge-links>a{display:flex;flex-direction:column;min-height:190px;padding:25px;border-radius:24px;background:#fff;border:1px solid var(--tb-border);box-shadow:0 14px 34px rgba(47,25,87,.07);transition:.22s ease}.tb-knowledge-links>a:hover{transform:translateY(-5px);box-shadow:var(--tb-shadow)}.tb-knowledge-links span{font-size:2rem}.tb-knowledge-links strong{margin:15px 0 7px;font-size:1.12rem}.tb-knowledge-links small{color:var(--tb-muted);font-size:.91rem;line-height:1.55}
.tb-doc-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:30px;align-items:start}.tb-doc-nav__sticky{position:sticky;top:98px;padding:22px;border-radius:22px;background:#fff;border:1px solid var(--tb-border);box-shadow:0 14px 34px rgba(47,25,87,.07);max-height:calc(100vh - 120px);overflow:auto}.tb-doc-nav h3{margin:14px 0}.tb-doc-nav a{display:block;padding:10px 12px;border-radius:10px;color:var(--tb-muted);font-weight:700}.tb-doc-nav a:hover,.tb-doc-nav a.is-current{background:#f0eaff;color:var(--tb-primary-dark)}.tb-doc-article{min-width:0;padding:36px;border-radius:28px;background:#fff;border:1px solid var(--tb-border);box-shadow:var(--tb-shadow)}.tb-doc-cover{margin:26px 0;border-radius:22px;overflow:hidden;text-align:center}.tb-doc-cover img{display:block;margin:auto}.tb-doc-toc{margin:24px 0;padding:20px;border-radius:17px;background:#f8f4ff;border:1px solid var(--tb-border)}.tb-doc-toc__links{display:grid;gap:7px;margin-top:10px}.tb-doc-toc a{color:var(--tb-primary);font-weight:750}.tb-doc-toc a.is-sub{padding-left:18px;font-size:.92rem}.tb-prev-next{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:40px;padding-top:24px;border-top:1px solid var(--tb-border)}.tb-prev-next>div:last-child{text-align:right}.tb-prev-next a{color:var(--tb-primary);font-weight:800}
.tb-prose{color:#392f49}.tb-prose>*:first-child{margin-top:0}.tb-prose h2,.tb-prose h3,.tb-prose h4{font-family:Georgia,"Times New Roman",serif;color:var(--tb-ink);scroll-margin-top:110px}.tb-prose h2{font-size:1.75rem;margin:34px 0 14px;padding-bottom:9px;border-bottom:1px solid var(--tb-border)}.tb-prose h3{font-size:1.35rem;margin:28px 0 10px}.tb-prose p{margin:0 0 18px}.tb-prose ul,.tb-prose ol{margin:0 0 22px;padding-left:24px}.tb-prose li{margin:8px 0}.tb-prose blockquote{margin:24px 0;padding:20px 22px;border-left:5px solid var(--tb-primary);border-radius:0 16px 16px 0;background:#f8f4ff}.tb-prose table{width:100%;border-collapse:collapse;margin:22px 0}.tb-prose th,.tb-prose td{padding:12px;border:1px solid var(--tb-border);text-align:left}.tb-prose th{background:#f5f0ff}.tb-prose code{padding:2px 6px;border-radius:6px;background:#f3eff8}.tb-prose pre{padding:18px;border-radius:14px;background:#24143f;color:#fff;overflow:auto}.tb-prose img{display:block;max-width:100%;height:auto;margin:24px auto;border-radius:16px}.tb-post-tax{display:flex;gap:16px;flex-wrap:wrap;margin-top:28px;padding-top:20px;border-top:1px solid var(--tb-border);color:var(--tb-muted)}.tb-related{margin-top:44px}.tb-support-grid{margin:28px 0}.tb-faq-list{display:grid;gap:14px;margin-top:30px}.tb-faq-list details{padding:20px 22px;border-radius:18px;background:#fff;border:1px solid var(--tb-border)}.tb-faq-list summary{font-weight:850;cursor:pointer}.tb-faq-list details p{margin:14px 0 0;color:var(--tb-muted)}
@media(max-width:1080px){.tb-content-layout{grid-template-columns:1fr}.tb-content-sidebar{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}.tb-doc-layout{grid-template-columns:1fr}.tb-doc-nav__sticky{position:static;max-height:none;display:flex;gap:7px;overflow:auto}.tb-doc-nav__sticky .tb-eyebrow,.tb-doc-nav__sticky h3{display:none}.tb-doc-nav a{min-width:max-content}.tb-knowledge-links{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.tb-archive-head,.tb-knowledge-hero,.tb-knowledge-preview__head{align-items:stretch;flex-direction:column}.tb-search-form{min-width:0}.tb-article-grid,.tb-article-grid--3,.tb-content-sidebar,.tb-knowledge-links{grid-template-columns:1fr}.tb-doc-article{padding:22px}.tb-prev-next{grid-template-columns:1fr}.tb-prev-next>div:last-child{text-align:left}.tb-knowledge-links>a{min-height:0}.tb-prose h2{font-size:1.5rem}}


/* =========================================================
   COMPACT HOME 2.1 — компактная главная, длинный лендинг отдельно
   ========================================================= */
.tb-home-hero{padding:66px 0 46px}.tb-home-hero__grid{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(390px,.98fr);gap:54px;align-items:center}.tb-home-hero__content h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(2.5rem,5vw,4.7rem);line-height:1.02;margin:18px 0;color:var(--tb-ink)}.tb-home-hero__content>p{max-width:720px;font-size:1.16rem;color:var(--tb-muted);margin:0}.tb-home-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.tb-home-proof{display:flex;gap:18px;flex-wrap:wrap;margin-top:26px;color:var(--tb-primary-dark);font-weight:800;font-size:.92rem}.tb-home-console{padding:22px;border:1px solid rgba(69,33,127,.18);border-radius:28px;background:linear-gradient(160deg,#fff,#f3ecff);box-shadow:0 28px 70px rgba(47,25,87,.16);transform:rotate(1deg)}.tb-home-console__top{display:flex;align-items:center;gap:7px;padding-bottom:16px;border-bottom:1px solid var(--tb-border)}.tb-home-console__top span{width:10px;height:10px;border-radius:50%;background:#d9cbea}.tb-home-console__top strong{margin-left:auto;color:var(--tb-primary-dark)}.tb-home-console__line{display:grid;grid-template-columns:42px 1fr;gap:14px;align-items:center;margin-top:15px;padding:15px;border-radius:16px;background:#fff;border:1px solid var(--tb-border)}.tb-home-console__line b{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,var(--tb-primary),var(--tb-primary-dark));color:#fff}.tb-home-console__line strong,.tb-home-console__line small{display:block}.tb-home-console__line small{margin-top:4px;color:var(--tb-muted);line-height:1.4}.tb-home-console__status{margin-top:16px;padding:12px 15px;border-radius:13px;background:#e8fbf1;color:#16744a;font-weight:850}
.tb-home-section{padding:62px 0}.tb-home-section--soft{background:linear-gradient(180deg,rgba(255,255,255,.35),rgba(111,63,197,.055))}.tb-home-section--posts{padding-top:54px}.tb-home-heading{display:flex;justify-content:space-between;align-items:end;gap:28px;margin-bottom:28px}.tb-home-heading>div{max-width:760px}.tb-home-heading h2{font-family:Georgia,"Times New Roman",serif;font-size:clamp(2rem,3.8vw,3.2rem);line-height:1.1;margin:12px 0 0}.tb-home-heading>p{max-width:480px;color:var(--tb-muted);margin:0}.tb-home-features{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.tb-home-features article{padding:24px;border-radius:22px;background:#fff;border:1px solid var(--tb-border);box-shadow:0 12px 28px rgba(47,25,87,.07)}.tb-home-features article>span{font-size:1.8rem}.tb-home-features h3{margin:13px 0 8px}.tb-home-features p{margin:0;color:var(--tb-muted)}
.tb-home-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border-radius:26px;overflow:hidden;border:1px solid var(--tb-border);background:#fff;box-shadow:0 14px 34px rgba(47,25,87,.07)}.tb-home-steps article{padding:28px;border-right:1px solid var(--tb-border)}.tb-home-steps article:last-child{border-right:0}.tb-home-steps b{font-size:1.55rem;color:var(--tb-primary)}.tb-home-steps h3{margin:14px 0 7px}.tb-home-steps p{margin:0;color:var(--tb-muted)}
.tb-home-knowledge{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.tb-home-knowledge>a{display:flex;align-items:center;gap:16px;padding:20px 22px;border-radius:19px;background:#fff;border:1px solid var(--tb-border);box-shadow:0 10px 24px rgba(47,25,87,.06);transition:.2s}.tb-home-knowledge>a:hover{transform:translateY(-3px);box-shadow:var(--tb-shadow)}.tb-home-knowledge>a>span{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#f1eaff;font-size:1.45rem;flex:0 0 48px}.tb-home-knowledge strong,.tb-home-knowledge small{display:block}.tb-home-knowledge small{margin-top:4px;color:var(--tb-muted);line-height:1.45}
.tb-home-posts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.tb-home-post{overflow:hidden;border-radius:23px;background:#fff;border:1px solid var(--tb-border);box-shadow:0 12px 30px rgba(47,25,87,.07)}.tb-home-post__media{display:grid;place-items:center;aspect-ratio:4/3;background:linear-gradient(135deg,#4b2787,#d9aa42);overflow:hidden;color:#fff;font-size:3rem}.tb-home-post__media img{width:100%;height:100%;object-fit:cover}.tb-home-post__body{padding:20px}.tb-home-post__body small{color:var(--tb-primary);font-weight:850}.tb-home-post__body h3{font-family:Georgia,"Times New Roman",serif;font-size:1.25rem;line-height:1.25;margin:9px 0}.tb-home-post__body p{margin:0;color:var(--tb-muted)}
.tb-home-cta{padding:30px 0 64px}.tb-home-cta__inner{display:flex;justify-content:space-between;align-items:center;gap:28px;padding:34px 38px;border-radius:30px;background:linear-gradient(135deg,#291548,#6841b2);color:#fff;box-shadow:var(--tb-shadow)}.tb-home-cta__inner h2{font-family:Georgia,"Times New Roman",serif;font-size:clamp(1.8rem,3vw,2.7rem);margin:10px 0}.tb-home-cta__inner p{margin:0;color:rgba(255,255,255,.78)}.tb-home-cta__inner .tb-eyebrow{color:#fff;background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.2)}
@media(max-width:980px){.tb-home-hero__grid{grid-template-columns:1fr}.tb-home-console{max-width:680px;transform:none}.tb-home-features,.tb-home-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.tb-home-steps article:nth-child(2){border-right:0}.tb-home-steps article:nth-child(-n+2){border-bottom:1px solid var(--tb-border)}.tb-home-posts{grid-template-columns:repeat(2,minmax(0,1fr))}.tb-home-post:last-child{display:none}.tb-home-cta__inner{align-items:flex-start;flex-direction:column}}
@media(max-width:680px){.tb-home-hero{padding-top:42px}.tb-home-hero__grid{gap:30px}.tb-home-hero__content h1{font-size:2.6rem}.tb-home-heading{align-items:flex-start;flex-direction:column}.tb-home-features,.tb-home-steps,.tb-home-knowledge,.tb-home-posts{grid-template-columns:1fr}.tb-home-steps article{border-right:0;border-bottom:1px solid var(--tb-border)}.tb-home-steps article:last-child{border-bottom:0}.tb-home-post:last-child{display:block}.tb-home-cta__inner{padding:28px 22px}.tb-home-console{padding:16px}.tb-home-proof{gap:10px 16px}}
