/*
Theme Name: Tatiana Telegram Bot
Theme URI: https://a-a.su/
Author: Семенова Татьяна
Author URI: https://a-a.su/
Description: Фирменная тема для проекта «Татьяна бот»:  витрина проекта, услуги, гороскопы и закрытая панель управления.
Version: 1.3.4
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}
}

/* 1.3.4: выбранная статическая главная выводится без карточки и лишних отступов. */
.tb-front-content > .entry-content { margin: 0; padding: 0; }
.tb-front-content .aax-store { margin-top: 0; }

/* Страница товара не должна выводить нижний блок «Свежие публикации». */
body.tbp-page-active .tb-section:has(.tb-post-grid),
body.tbp-page-active section:has(> .tb-container .tb-post-grid) {
  display: none !important;
}
body.tbp-page-active .tb-post-grid {
  display: none !important;
}

/* Compact layout for the standalone Tatiana Bot page */
body.tbp-page-active .tb-container { width: min(1100px, calc(100% - 28px)); }
body.tbp-page-active .tb-hero { padding: 46px 0 34px; }
body.tbp-page-active .tb-hero__grid { gap: 34px; }
body.tbp-page-active .tb-title { font-size: clamp(2rem, 4.2vw, 3.85rem); margin: 12px 0; }
body.tbp-page-active .tb-lead { font-size: clamp(.98rem, 1.25vw, 1.12rem); line-height: 1.55; }
body.tbp-page-active .tb-hero__actions { margin-top: 20px; }
body.tbp-page-active .tb-hero__meta { margin-top: 22px; gap: 10px; }
body.tbp-page-active .tb-stat { padding: 12px 14px; border-radius: 14px; }
body.tbp-page-active .tb-visual { min-height: 430px; }
body.tbp-page-active .tb-phone { width: 265px; }
body.tbp-page-active .tb-phone__screen { min-height: 405px; padding: 14px; }
body.tbp-page-active .tb-message { padding: 10px 12px; margin: 9px 0; }
body.tbp-page-active .tb-floating-card { padding: 12px 14px; border-radius: 14px; font-size: .9rem; }

body.tbp-page-active .tb-section { padding: 52px 0; }
body.tbp-page-active .tb-section--compact { padding: 38px 0; }
body.tbp-page-active .tb-section-title { font-size: clamp(1.75rem, 2.7vw, 2.65rem); margin-bottom: 10px; }
body.tbp-page-active .tb-eyebrow { padding: 6px 11px; font-size: .76rem; }
body.tbp-page-active .tb-grid { gap: 15px; }
body.tbp-page-active .tb-card { padding: 20px; border-radius: 18px; }
body.tbp-page-active .tb-card__icon { width: 44px; height: 44px; margin-bottom: 12px; border-radius: 13px; }
body.tbp-page-active .tb-card h3 { font-size: 1.08rem; margin-bottom: 7px; }
body.tbp-page-active .tb-card p { line-height: 1.5; }
body.tbp-page-active .tb-showcase { padding: 30px; border-radius: 26px; }
body.tbp-page-active .tb-showcase__grid { gap: 24px; }
body.tbp-page-active .tb-feature-list { gap: 9px; }
body.tbp-page-active .tb-feature-item { padding: 11px 13px; border-radius: 12px; }

body.tbp-page-active details { margin: 7px 0 !important; border-radius: 12px !important; }
body.tbp-page-active details summary { padding: 12px 15px !important; min-height: auto !important; }
body.tbp-page-active details > div,
body.tbp-page-active details > p,
body.tbp-page-active details > ul { padding-top: 8px !important; padding-bottom: 12px !important; }

body.tbp-page-active .tb-pricing-grid,
body.tbp-page-active .tb-price-grid { gap: 15px !important; }
body.tbp-page-active .tb-price-card { padding: 21px !important; border-radius: 19px !important; }
body.tbp-page-active .tb-price-card ul { margin: 14px 0 !important; }
body.tbp-page-active .tb-price-card li { margin-bottom: 6px !important; }
body.tbp-page-active .tb-order-cta { padding: 27px !important; border-radius: 22px !important; }
body.tbp-page-active .tb-purchase-info { gap: 12px !important; margin-top: 16px !important; }
body.tbp-page-active .tb-purchase-info article { padding: 16px !important; }

body.tbp-page-active .tb-post-grid,
body.tbp-page-active .related-posts,
body.tbp-page-active .post-related,
body.tbp-page-active .bs-shortcode.bs-box-3,
body.tbp-page-active .listing-item-grid { display: none !important; }
body.tbp-page-active .tb-footer { margin-top: 34px; padding-top: 32px; }

@media (max-width: 900px) {
  body.tbp-page-active .tb-hero { padding-top: 32px; }
  body.tbp-page-active .tb-hero__grid { gap: 22px; }
  body.tbp-page-active .tb-visual { min-height: 365px; }
  body.tbp-page-active .tb-section { padding: 40px 0; }
}

@media (max-width: 640px) {
  body.tbp-page-active .tb-container { width: min(100% - 20px, 1100px); }
  body.tbp-page-active .tb-hero { padding: 24px 0 22px; }
  body.tbp-page-active .tb-title { font-size: clamp(1.8rem, 10vw, 2.65rem); }
  body.tbp-page-active .tb-hero__meta { grid-template-columns: 1fr; }
  body.tbp-page-active .tb-visual { min-height: 330px; }
  body.tbp-page-active .tb-phone { width: 220px; }
  body.tbp-page-active .tb-phone__screen { min-height: 335px; }
  body.tbp-page-active .tb-section { padding: 32px 0; }
  body.tbp-page-active .tb-section--compact { padding: 27px 0; }
  body.tbp-page-active .tb-card { padding: 17px; }
  body.tbp-page-active .tb-showcase { padding: 22px; }
}

/* Hero image replacement — v1.4.0 */
body.tbp-page-active .tb-hero--image {
  padding: 0;
  background: #f4f0ff;
  overflow: hidden;
}
body.tbp-page-active .tb-hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 1458px;
  margin: 0 auto;
}
body.tbp-page-active .tb-hero-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}
body.tbp-page-active .tb-hero-hotspot {
  position: absolute;
  z-index: 3;
  display: block;
  border-radius: 13px;
}
body.tbp-page-active .tb-hero-hotspot:focus-visible {
  outline: 3px solid #ffbf2f;
  outline-offset: 3px;
}
body.tbp-page-active .tb-hero-hotspot--features {
  left: 7.8%;
  top: 79.4%;
  width: 19.2%;
  height: 9.2%;
}
body.tbp-page-active .tb-hero-hotspot--prices {
  left: 27.7%;
  top: 79.4%;
  width: 12.3%;
  height: 9.2%;
}
@media (max-width: 720px) {
  body.tbp-page-active .tb-hero-image-wrap {
    min-width: 760px;
    left: 50%;
    transform: translateX(-50%);
  }
}
