:root{
  --bg:#0B0001;          /* фон: почти чёрный с красным подтоном */
  --surface:#110D0E;     /* панели, карточки */
  --surface-2:#252323;   /* вложенные блоки, строки таблиц */
  --deep:#2C0D14;        /* тёмно-бордовая подложка акцентных блоков */
  --deep-2:#2E070D;
  --red:#D1021B;         /* фирменный красный, главный акцент */
  --red-dark:#A71023;    /* низ градиента кнопок */
  --red-deep:#830B1A;    /* глубокий бордовый */
  --red-deeper:#7C0818;
  --wine:#5A0819;        /* тени и подложки */
  --active:#C9051D;      /* активное состояние категорий */
  --yellow:#F5C66B;      /* фирменное золото-песок */
  --gold:#C79E0C;        /* насыщенное золото */
  --gold-2:#CEA334;
  --gold-light:#FEDA95;
  --gold-pale:#F6EB76;
  --green:#2DD890;       /* успех, подтверждения */
  --text:#D1D1D1;
  --text-2:#DADADA;
  --muted:#B4B4B4;
  --muted-2:#8B8B8B;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:"Vollkorn",Georgia,serif;
  font-size:17px;
  line-height:1.72;
  -webkit-text-size-adjust:100%;
}

h1,h2,h3,.tbs-logo-word,.tbs-kpi-val,.tbs-tab-word{
  font-family:"Oranienbaum",Georgia,serif;
  font-weight:400;
  letter-spacing:.01em;
}

a{color:var(--yellow);text-decoration:none}
a:hover{color:var(--gold-light)}

img{max-width:100%;height:auto;display:block}

.tbs-wrap{max-width:1180px;margin:0 auto;padding:0 22px}

/* ---------- шапка: тонкая строка-уведомление, ниже лого и кнопки ---------- */

.tbs-head{
  position:sticky;
  top:0;
  z-index:40;
  background:var(--surface);
  border-bottom:1px solid var(--red-deep);
}

.tbs-notice{
  background:linear-gradient(180deg,#7C0818 0%,#830B1A 100%);
  color:var(--gold-light);
  font-size:12.5px;
  line-height:1.5;
  letter-spacing:.02em;
}

.tbs-notice .tbs-wrap{
  display:flex;
  flex-wrap:wrap;
  gap:6px 20px;
  align-items:center;
  justify-content:space-between;
  padding-top:5px;
  padding-bottom:5px;
}

.tbs-notice-dot{
  display:inline-block;
  width:7px;height:7px;
  border-radius:50%;
  background:var(--green);
  margin-right:8px;
  vertical-align:middle;
}

.tbs-bar{
  display:flex;
  align-items:center;
  gap:16px;
  padding-top:11px;
  padding-bottom:11px;
}

.tbs-logo{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
  color:var(--text-2);
}

.tbs-logo svg{flex:0 0 auto}

.tbs-logo-word{
  font-size:25px;
  line-height:1;
  color:var(--gold-light);
}

.tbs-logo-sub{
  display:block;
  font-size:11px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--muted-2);
  font-family:"Vollkorn",Georgia,serif;
}

.tbs-btns{
  display:flex;
  align-items:center;
  gap:9px;
  margin-left:auto;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.tbs-btn{
  display:inline-block;
  padding:10px 18px;
  border-radius:10px;
  font-size:15px;
  line-height:1.2;
  white-space:nowrap;
  border:1px solid transparent;
  font-family:"Vollkorn",Georgia,serif;
}

.tbs-btn-main{
  background:linear-gradient(180deg,#D1021B 0%,#A71023 100%);
  color:#fff;
  box-shadow:0 6px 18px -8px var(--wine);
}
.tbs-btn-main:hover{color:#fff;filter:brightness(1.08)}

.tbs-btn-ghost{
  background:transparent;
  border-color:var(--yellow);
  color:var(--yellow);
}
.tbs-btn-ghost:hover{background:var(--surface-2);color:var(--gold-light)}

.tbs-btn-flat{
  background:var(--surface-2);
  color:var(--gold-light);
  border-color:#3a3535;
}
.tbs-btn-flat:hover{color:#fff;border-color:var(--gold)}

/* ---------- первый экран ---------- */

.tbs-hero{
  padding:38px 0 8px;
  background:
    radial-gradient(900px 300px at 12% 0%,rgba(209,2,27,.20),transparent 70%),
    var(--bg);
}

.tbs-hero h1{
  font-size:40px;
  line-height:1.16;
  margin:0 0 14px;
  color:var(--gold-light);
}

.tbs-lead{
  font-size:18.5px;
  color:var(--text-2);
  margin:0 0 22px;
  max-width:62ch;
}

.tbs-hero-grid{
  display:grid;
  grid-template-columns:1.25fr .95fr;
  gap:26px;
  align-items:start;
}

.tbs-banner{
  border:1px solid var(--red-deep);
  border-radius:12px;
  overflow:hidden;
  background:var(--surface);
}
.tbs-banner img{width:100%;aspect-ratio:832/320;object-fit:cover}
.tbs-banner figcaption{
  padding:9px 14px;
  font-size:13.5px;
  color:var(--muted);
  border-top:1px solid #2a2222;
}

.tbs-kpi{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
  margin:24px 0 20px;
}

.tbs-kpi-cell{
  background:var(--surface);
  border:1px solid #2a2222;
  border-left:3px solid var(--red);
  border-radius:10px;
  padding:13px 14px;
}

.tbs-kpi-val{
  display:block;
  font-size:23px;
  line-height:1.15;
  color:var(--gold-light);
}

.tbs-kpi-key{
  display:block;
  font-size:12.5px;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--muted-2);
  margin-top:4px;
}

.tbs-cta-row{
  display:flex;
  gap:14px;
  align-items:center;
  flex-wrap:wrap;
  margin:0 0 30px;
}

.tbs-cta-note{font-size:14px;color:var(--muted-2)}

.tbs-btn-xl{
  padding:15px 30px;
  font-size:18px;
  border-radius:10px;
}

/* ---------- архетип: вертикальные вкладки сбоку ---------- */

.tbs-sec{
  display:grid;
  grid-template-columns:54px 1fr;
  gap:0;
  border-top:1px solid #241d1e;
  padding:34px 0 8px;
}

.tbs-tab{
  position:relative;
  background:var(--deep);
  border:1px solid var(--red-deep);
  border-right:0;
  border-radius:10px 0 0 10px;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:16px 0 20px;
  min-height:190px;
}

.tbs-tab-word{
  writing-mode:vertical-rl;
  transform:rotate(180deg);
  font-size:15px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--yellow);
  white-space:nowrap;
}

.tbs-tab-num{
  position:absolute;
  bottom:9px;
  left:0;right:0;
  text-align:center;
  font-size:12px;
  color:var(--muted-2);
  font-family:"Oranienbaum",Georgia,serif;
}

.tbs-panel{
  background:var(--surface);
  border:1px solid #2a2222;
  border-left:2px solid var(--active);
  border-radius:0 12px 12px 0;
  padding:22px 26px 26px;
}

.tbs-panel h2{
  font-size:30px;
  line-height:1.2;
  margin:0 0 14px;
  color:var(--gold-light);
}

.tbs-panel h3{
  font-size:21px;
  margin:24px 0 8px;
  color:var(--yellow);
}

.tbs-panel p{margin:0 0 14px}

.tbs-accent{color:var(--gold-2)}
.tbs-num{color:var(--gold-light)}
.tbs-ok{color:var(--green)}
.tbs-hot{color:var(--red)}

.tbs-list{margin:0 0 16px;padding-left:20px}
.tbs-list li{margin-bottom:7px}
.tbs-list li::marker{color:var(--red)}

/* ---------- таблицы ---------- */

.tbs-tablebox{overflow-x:auto;margin:0 0 18px;border-radius:10px;border:1px solid #2a2222}

table{border-collapse:collapse;width:100%;min-width:560px;font-size:15.5px}

caption{
  caption-side:top;
  text-align:left;
  padding:11px 14px;
  font-size:14px;
  color:var(--muted);
  background:var(--deep-2);
}

th{
  background:linear-gradient(180deg,#7C0818 0%,#830B1A 100%);
  color:var(--gold-light);
  text-align:left;
  padding:10px 13px;
  font-weight:400;
  font-family:"Oranienbaum",Georgia,serif;
  font-size:16px;
  letter-spacing:.02em;
}

td{padding:9px 13px;border-top:1px solid #2a2222;color:var(--text)}
tbody tr:nth-child(even) td{background:var(--surface-2)}
tfoot td{background:var(--deep);color:var(--gold-light)}

/* ---------- галерея: вкладки слева, две колонки справа ---------- */

.tbs-gal{
  display:grid;
  grid-template-columns:132px 1fr;
  gap:16px;
  margin:18px 0 8px;
}

.tbs-rail{
  display:flex;
  flex-direction:column;
  gap:6px;
  border-right:1px solid var(--red-deep);
  padding-right:12px;
  list-style:none;
  margin:0;
}

.tbs-rail li{
  background:var(--surface-2);
  border-radius:8px 0 0 8px;
  padding:9px 11px;
  font-size:14px;
  color:var(--muted);
  border-left:3px solid transparent;
}

.tbs-rail li.tbs-rail-on{
  background:var(--active);
  color:#fff;
  border-left-color:var(--gold-pale);
}

.tbs-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}

.tbs-card{
  background:var(--surface);
  border:1px solid #2a2222;
  border-radius:10px;
  overflow:hidden;
  margin:0;
}

.tbs-card img{width:100%;aspect-ratio:1/1;object-fit:cover}

.tbs-card figcaption{
  padding:9px 12px 11px;
  font-size:13.5px;
  line-height:1.5;
  color:var(--muted);
  border-top:1px solid #241d1e;
}

.tbs-card figcaption span{display:block;color:var(--gold-2);font-size:12.5px;margin-top:3px}

.tbs-live{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
  margin:18px 0;
}

.tbs-logo-strip{
  display:flex;
  align-items:center;
  gap:14px;
  background:var(--surface-2);
  border:1px solid #2a2222;
  border-radius:10px;
  padding:12px 14px;
  margin:16px 0;
}
.tbs-logo-strip img{width:144px;height:48px;object-fit:contain}
.tbs-logo-strip p{margin:0;font-size:14.5px;color:var(--muted)}

/* ---------- клуб, отзыв, FAQ ---------- */

.tbs-steps{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
  margin:16px 0 18px;
}

.tbs-step{
  background:var(--deep);
  border:1px solid var(--red-deep);
  border-radius:10px;
  padding:12px 12px 14px;
  text-align:center;
}

.tbs-step-name{
  display:block;
  font-family:"Oranienbaum",Georgia,serif;
  font-size:19px;
  color:var(--gold-light);
}
.tbs-step-val{display:block;font-size:14px;color:var(--yellow);margin-top:4px}
.tbs-step-hint{display:block;font-size:12.5px;color:var(--muted-2);margin-top:3px}

.tbs-quote{
  background:var(--deep-2);
  border-left:3px solid var(--gold);
  border-radius:0 10px 10px 0;
  padding:16px 18px;
  margin:20px 0;
}
.tbs-quote p{margin:0 0 8px;font-size:16.5px;color:var(--text-2)}
.tbs-quote cite{font-style:normal;font-size:13.5px;color:var(--muted-2)}

details{
  background:var(--surface-2);
  border:1px solid #332b2c;
  border-radius:10px;
  margin-bottom:9px;
  padding:0;
}
summary{
  cursor:pointer;
  padding:12px 16px;
  font-family:"Oranienbaum",Georgia,serif;
  font-size:19px;
  color:var(--gold-light);
  list-style:none;
}
summary::-webkit-details-marker{display:none}
summary::before{content:"+ ";color:var(--red)}
details[open] summary::before{content:"— ";color:var(--gold)}
details p{margin:0;padding:0 16px 14px;font-size:16px;color:var(--text)}

.tbs-method{
  background:var(--surface);
  border:1px dashed var(--gold);
  border-radius:12px;
  padding:20px 24px;
  margin:26px 0;
}
.tbs-method h2{margin-top:0}

.tbs-final{
  background:linear-gradient(180deg,#7C0818 0%,#830B1A 100%);
  border-radius:12px;
  padding:24px;
  margin:24px 0 34px;
  display:flex;
  gap:18px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:space-between;
}
.tbs-final p{margin:0;max-width:60ch;color:var(--gold-light);font-size:17px}

/* ---------- подвал ---------- */

.tbs-foot{
  border-top:1px solid var(--red-deep);
  background:var(--surface);
  padding:26px 0 40px;
  font-size:14.5px;
  color:var(--muted-2);
}
.tbs-foot p{margin:0 0 9px;max-width:92ch}
.tbs-foot-age{
  display:inline-block;
  border:1px solid var(--gold);
  border-radius:8px;
  padding:7px 13px;
  color:var(--yellow);
  margin-top:6px;
}

/* ---------- адаптив ---------- */

@media (max-width:980px){
  .tbs-hero-grid{grid-template-columns:1fr}
  .tbs-kpi{grid-template-columns:repeat(2,1fr)}
  .tbs-steps{grid-template-columns:repeat(2,1fr)}
  .tbs-hero h1{font-size:33px}
}

@media (max-width:760px){
  .tbs-gal{grid-template-columns:1fr}
  .tbs-rail{
    flex-direction:row;
    flex-wrap:wrap;
    border-right:0;
    border-bottom:1px solid var(--red-deep);
    padding:0 0 10px;
  }
  .tbs-rail li{border-radius:8px 8px 0 0;border-left:0;border-bottom:3px solid transparent}
  .tbs-rail li.tbs-rail-on{border-bottom-color:var(--gold-pale)}
}

@media (max-width:640px){
  body{font-size:16px}
  .tbs-wrap{padding:0 14px}
  .tbs-hero h1{font-size:27px}
  .tbs-lead{font-size:16.5px}
  .tbs-bar{gap:10px;flex-wrap:wrap}
  .tbs-logo-word{font-size:21px}
  .tbs-btns{margin-left:auto;gap:7px}
  .tbs-btn{padding:8px 12px;font-size:13.5px}
  .tbs-btn-xl{padding:13px 20px;font-size:16px}
  .tbs-sec{grid-template-columns:1fr;padding-top:26px}
  .tbs-tab{
    border-radius:10px 10px 0 0;
    border-right:1px solid var(--red-deep);
    border-bottom:0;
    min-height:0;
    padding:8px 12px;
    justify-content:flex-start;
    align-items:center;
    gap:10px;
  }
  .tbs-tab-word{writing-mode:horizontal-tb;transform:none;font-size:13px}
  .tbs-tab-num{position:static;text-align:left;margin-left:auto}
  .tbs-panel{border-radius:0 0 12px 12px;border-left:2px solid var(--active);padding:18px 15px 22px}
  .tbs-panel h2{font-size:24px}
  .tbs-panel h3{font-size:19px}
  .tbs-kpi{grid-template-columns:1fr}
  .tbs-grid{grid-template-columns:1fr}
  .tbs-live{grid-template-columns:1fr}
  .tbs-steps{grid-template-columns:1fr}
  .tbs-final{padding:18px}
  table{min-width:460px;font-size:14.5px}
}
