/* Страница «О компании» (BORMASH / TORNADOTOOL), scope #about-tt */
#about-tt.ab-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 12px 40px;
}

#about-tt,
.content-hub--about-company {
  /* marker scope */
}

/* CMS-версия /about/ (slug about-company) использует общий шаблон page_detail.html,
   поэтому даём ей те же "карточки", что и #about-tt, чтобы не ловить чужие flex/min-height. */
.content-hub--about-company .card{
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
html[data-theme="light"] .content-hub--about-company .card{
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

.content-hub--about-company .card h2{
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: inherit;
}

.content-hub--about-company .card p,
.content-hub--about-company .card li{
  line-height: 1.55;
  margin: 0 0 10px;
}

.content-hub--about-company .card p:last-child{ margin-bottom: 0; }

#about-tt .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 900px) {
  #about-tt .grid {
    grid-template-columns: 1fr;
  }
}

#about-tt .card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
}

html[data-theme="light"] #about-tt .card {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

#about-tt .card h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: inherit;
}

html.theme-bormash-industrial:not([data-theme="light"]) #about-tt .card h2,
html[data-theme="dark"] #about-tt .card h2 {
  color: #f4f4f4;
}

html[data-theme="light"] #about-tt .card h2 {
  color: #1e1e1e;
}

#about-tt .abInfographic__kicker{
  margin: -6px 0 12px;
  font-size: 0.95rem;
  opacity: 0.92;
}

#about-tt .abInfographic__fig{
  margin: 0;
}

#about-tt .abInfographic__img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] #about-tt .abInfographic__img{
  border-color: rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.75);
}

#about-tt .abInfographic__cap{
  margin: 10px 0 0;
  font-size: 0.9rem;
  opacity: 0.78;
}

#about-tt .card p,
#about-tt .card li {
  line-height: 1.55;
  margin: 0 0 10px;
}

#about-tt .card ul {
  margin: 0 0 12px;
  padding-left: 1.25rem;
}

#about-tt .badge {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(214, 181, 90, 0.12);
  color: #7a6529;
  border: 1px solid rgba(214, 181, 90, 0.28);
}

html[data-theme="dark"] #about-tt .badge,
html.theme-bormash-industrial:not([data-theme="light"]) #about-tt .badge {
  color: #e6cc73;
}

#about-tt .tl {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#about-tt .tl-item {
  padding-left: 12px;
  border-left: 3px solid #d6b55a;
}

#about-tt .tl-year {
  font-weight: 800;
  font-size: 0.9rem;
  color: #d6b55a;
  margin-bottom: 4px;
}

#about-tt .tl-title {
  font-weight: 700;
  margin-bottom: 6px;
}

#about-tt .tl-text {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.92;
}

#about-tt .kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0;
}

/* Реквизиты: по умолчанию под светлую тему; тёмная / industrial — явно */
#about-tt .kv dt {
  margin: 0;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.55);
}

#about-tt .kv dd {
  margin: 0;
  color: #1e1e1e;
}

html[data-theme="dark"] #about-tt .kv dt,
html.theme-bormash-industrial:not([data-theme="light"]) #about-tt .kv dt {
  color: rgba(255, 255, 255, 0.62);
}

html[data-theme="dark"] #about-tt .kv dd,
html.theme-bormash-industrial:not([data-theme="light"]) #about-tt .kv dd {
  color: #f2f2f2;
}

#about-tt .widgets,
.content-hub--about-company .widgets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

#about-tt .widgets a,
.content-hub--about-company .widgets a {
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Виджеты рейтинга Яндекса должны быть "мини", без растягивания */
#about-tt iframe[src*="yandex.ru/sprav/widget/rating-badge"],
.content-hub--about-company iframe[src*="yandex.ru/sprav/widget/rating-badge"]{
  display: inline-block;
  width: 150px !important;
  height: 50px !important;
  max-width: 150px !important;
  max-height: 50px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 10px;
  overflow: hidden;
}

/* полноширинная карточка снизу */
#about-tt > .card.abFullWidth,
.content-hub--about-company .card.abFullWidth{
  width: 100%;
  margin-top: 8px;
}

/* Полноширинная итоговая карточка на /about/ (static about.html) */
#about-tt .card.abFullWidth,
.content-article--sitepage #about-tt .card.abFullWidth{
  width: 100% !important;
  max-width: 100% !important;
  grid-column: 1 / -1;
  margin: 0 0 16px;
}

#about-tt a {
  color: #d6b55a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#about-tt a:hover {
  color: #e6cc73;
}

/* ─── Mini‑game modal (О компании) ─── */
body.abGameModalOpen { overflow: hidden; }

.abGameModal{
  position: fixed;
  inset: 0;
  z-index: 100200;
}
.abGameModal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
}
.abGameModal__panel{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: min(980px, calc(100vw - 24px));
  height: min(680px, calc(100vh - 24px));
  background: rgba(20, 22, 28, 0.96);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
  display: flex;
  flex-direction: column;
}
html[data-theme="light"] .abGameModal__panel{
  background: rgba(255,255,255,.96);
  border-color: rgba(0,0,0,.12);
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
}
.abGameModal__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
html[data-theme="light"] .abGameModal__head{
  border-bottom-color: rgba(0,0,0,.10);
}
.abGameModal__title{
  font-weight: 800;
  letter-spacing: .2px;
}
.abGameModal__close{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: inherit;
  font-size: 22px;
  cursor: pointer;
}
html[data-theme="light"] .abGameModal__close{
  border-color: rgba(0,0,0,.14);
  background: rgba(0,0,0,.03);
}
.abGameModal__close:hover{ filter: brightness(1.08); }
.abGameModal__body{ flex: 1 1 auto; background: #000; }
.abGameModal__frame{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

/* ─── About-company (CMS) — компактнее без “ломания” потока ─── */
@media (min-width: 981px){
  /* Визуально выравниваем виджеты «Нам доверяют» внутри карточки */
  #about-tt .widgets{
    align-items: flex-start;
  }
  #about-tt .widgets iframe{
    display:block;
    max-width:100%;
    border-radius: 10px;
    overflow:hidden;
    background:#fff;
  }
}
