/* Behind The Sky Music: токены раздела 6 спека. Roboto и Open Sans - Google Fonts. */

:root {
  --bg: #FEFEFE;
  --text: #111111;
  --muted: #3C3C3C;
  --line: #EBEBEB;
  --panel: #F6F6F6;
  --accent: #97413D;
  --dark: #341E1D;
  --serif-free: "Open Sans", system-ui, sans-serif;
  --head: "Roboto", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif-free);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--head); font-weight: 500; color: var(--text); }

.bts-skip { position: absolute; left: -999px; top: 0; }
.bts-skip:focus { left: 16px; top: 8px; background: #fff; padding: 6px 10px; z-index: 10; }

/* Шапка: 72 px, белая, линия 1 px #EBEBEB */
.bts-head { background: var(--bg); height: 72px; border-bottom: 1px solid var(--line); }
.bts-head-in {
  max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 72px;
  display: flex; align-items: center; gap: 32px; position: relative;
}
.bts-logo { font-family: var(--head); font-size: 18px; font-weight: 500; color: var(--text); text-decoration: none; }
.bts-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; }
.bts-nav li + li::before { content: "/"; color: var(--line); padding: 0 12px; }
.bts-nav a {
  color: var(--text); font-size: 13px; font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.08em; text-decoration: none; padding: 6px 0;
}
.bts-nav a:hover, .bts-nav a[aria-current="page"] {
  color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent);
  text-underline-offset: 6px;
}
.bts-burger { display: none; background: none; border: 0; cursor: pointer; margin-left: auto; padding: 8px; }
.bts-burger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; }

/* Основная колонка: контейнер 1200 px, поля 24 px (16 px на мобильном) */
.bts-main { max-width: 1200px; margin: 0 auto; padding: 16px 24px 0; }

.bts-crumbs { font-size: 13px; color: var(--muted); margin: 16px 0 8px; }
.bts-crumbs a { color: var(--muted); }
.bts-crumbs-sep { margin: 0 6px; }
.bts-crumbs-current { color: var(--text); }

.bts-h1 { font-size: 36px; font-weight: 500; line-height: 1.2; margin: 8px 0 8px; }
.bts-meta { font-size: 13px; color: var(--muted); margin: 0 0 16px; text-transform: none; }
.bts-prose { max-width: 960px; }
.bts-prose h2 { font-size: 28px; font-weight: 500; line-height: 1.3; margin: 40px 0 12px; }
.bts-prose p { margin: 0 0 16px; }
.bts-prose ul { padding-left: 20px; margin: 0 0 16px; }

/* Главная: герой 16:7, белая плашка 60 % с H1 */
.bts-hero { position: relative; margin: 16px 0 64px; }
.bts-hero-img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; height: auto; }
.bts-hero-text {
  position: absolute; left: 0; bottom: 24px; width: 60%;
  background: rgba(254, 254, 254, 0.92); border-radius: 6px;
  box-shadow: 0 6px 24px rgba(17, 17, 17, 0.12);
  padding: 24px 32px;
}
.bts-hero-h1 { font-size: 40px; font-weight: 500; line-height: 1.2; margin: 0 0 8px; }
.bts-hero-sub { color: var(--muted); margin: 0; }
@media (max-width: 1024px) {
  .bts-hero-text { width: 78%; padding: 16px 20px; }
  .bts-hero-h1 { font-size: 30px; }
}
@media (max-width: 600px) {
  .bts-hero-text { position: static; width: 100%; padding: 16px 0 0; }
}

.bts-home-block { margin: 64px 0 0; }
.bts-home-block > h2 { font-size: 28px; font-weight: 500; margin: 0 0 16px; }

/* Хабы: компактный герой 240 px с подложкой и белым H1 36 px */
.bts-hub-hero { position: relative; height: 240px; overflow: hidden; margin: 8px 0 16px; }
.bts-hub-img { width: 100%; height: 240px; object-fit: cover; }
.bts-hub-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(52, 30, 29, 0.78) 0%, rgba(52, 30, 29, 0.35) 60%, rgba(52, 30, 29, 0.2) 100%);
}
.bts-hub-hero-text { position: absolute; left: 24px; bottom: 24px; z-index: 1; }
.bts-hub-h1 { color: #FEFEFE; font-size: 36px; font-weight: 500; line-height: 1.2; margin: 0; }
.bts-lead { font-size: 16px; color: var(--muted); margin: 0 0 24px; }

/* Сетка карточек 3 в ряд */
.bts-cards-wrap { margin: 64px 0 0; }
.bts-cards-wrap > h2 { font-size: 28px; font-weight: 500; margin: 0 0 16px; }
.bts-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bts-cards-2 { grid-template-columns: repeat(2, 1fr); }
.bts-cards-1 { grid-template-columns: 1fr; }
.bts-card { background: #fff; box-shadow: 0 1px 3px rgba(17, 17, 17, 0.08); border-radius: 2px; }
.bts-card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; height: auto; }
.bts-card-media:hover img { filter: brightness(0.92); }
.bts-card-body { padding: 16px; }
.bts-card-title { font-size: 18px; font-weight: 500; line-height: 1.3; margin: 0 0 8px; }
.bts-card-title a { color: var(--text); text-decoration: none; }
.bts-card:hover .bts-card-title a { color: var(--accent); }
.bts-card-text { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.bts-card-rubric { font-size: 13px; color: var(--muted); margin: 0; }

/* Плитки главной: портреты 3:4 и обложки 1:1, по четыре в ряд */
.bts-tiles { display: grid; gap: 24px; }
.bts-tiles-4 { grid-template-columns: repeat(4, 1fr); }
.bts-tile { display: block; color: var(--text); text-decoration: none; }
.bts-tile-3x4 .bts-tile-img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; height: auto; }
.bts-tile-1x1 .bts-tile-img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; height: auto; }
.bts-tile-name { display: block; font-family: var(--head); font-weight: 500; font-size: 16px; margin-top: 8px; }
.bts-tile-sub { display: block; font-size: 13px; color: var(--muted); }
.bts-tile:hover .bts-tile-name { color: var(--accent); }

/* Полоса-призыв на Connect с контурной кнопкой */
.bts-cta { margin: 64px 0 0; padding: 32px 0; border-top: 1px solid var(--line); text-align: center; }
.bts-cta p { margin: 0 0 16px; }
.bts-btn, .bts-btn-outline {
  display: inline-block; font-family: var(--serif-free); font-size: 14px;
  padding: 10px 22px; border: 1px solid var(--text); color: #111111;
  background: #FEFEFE; text-decoration: none; cursor: pointer;
}
.bts-btn:hover, .bts-btn-outline:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; }

/* Статья: 8 колонок текст, 4 колонки справа */
.bts-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 48px; align-items: start; }
.bts-figure { margin: 0 0 24px; }
.bts-figure-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; height: auto; }
.bts-aside > section { margin: 0 0 24px; }
.bts-brief { background: var(--panel); padding: 20px 20px 12px; }
.bts-brief h2, .bts-related h2 { font-size: 20px; font-weight: 500; margin: 0 0 12px; }
.bts-brief ul, .bts-related-list { padding-left: 18px; margin: 0; }
.bts-related-list { list-style: none; padding-left: 0; }
.bts-related-list li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.bts-related-list a { color: var(--text); text-decoration: none; }
.bts-related-list a:hover { color: var(--accent); }

.bts-pager { display: flex; justify-content: space-between; gap: 16px; margin: 40px 0 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
.bts-pager a { color: var(--text); text-decoration: none; max-width: 48%; }
.bts-pager a:hover { color: var(--accent); }

/* FAQ */
.bts-faq { margin: 40px 0 0; }
.bts-faq > h2 { font-size: 28px; font-weight: 500; margin: 0 0 12px; }
.bts-faq-q { font-size: 18px; font-weight: 500; margin: 16px 0 6px; }
.bts-faq p { margin: 0 0 12px; }

/* Контакты: блок в конце каждой страницы, форма на странице Connect */
.bts-contact-band { margin: 64px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); }
.bts-contact-band h2 { font-size: 22px; font-weight: 500; margin: 0 0 8px; }
.bts-form { max-width: 640px; margin: 32px 0 0; }
.bts-form h2 { font-size: 22px; font-weight: 500; margin: 0 0 16px; }
.bts-form label { display: block; margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.bts-form input, .bts-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px;
  border: 1px solid var(--line); font: inherit; color: var(--text); background: #fff;
}
.bts-form input:focus, .bts-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Подвал: тёмный #341E1D, текст #FEFEFE */
.bts-foot { background: var(--dark); color: #FEFEFE; margin-top: 64px; padding: 48px 16px 32px; }
.bts-foot a { color: #FEFEFE; }
.bts-foot-in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bts-foot-logo { font-family: var(--head); font-weight: 500; font-size: 18px; margin: 0 0 8px; }
.bts-foot-about { font-size: 14px; margin: 0; }
.bts-foot-title { font-size: 15px; font-weight: 500; margin: 0 0 8px; color: #FEFEFE; }
.bts-foot-list { list-style: none; margin: 0; padding: 0; }
.bts-foot-list a { font-size: 14px; }
.bts-foot-bottom { max-width: 1200px; margin: 32px auto 0; border-top: 1px solid rgba(254, 254, 254, 0.2); padding-top: 16px; font-size: 13px; }
.bts-foot-copy { margin: 0; }

/* 404 и 410 */
.bts-error { text-align: center; padding: 64px 0 40px; }
.bts-error-code { font-family: var(--head); font-size: 96px; font-weight: 500; color: var(--accent); line-height: 1; margin: 0; }
.bts-error-h1 { font-size: 28px; font-weight: 500; margin: 16px 0 12px; }
.bts-error-line { margin: 0 0 20px; }
.bts-error-links { list-style: none; padding: 0; margin: 24px 0 0; }
.bts-error-links a { color: var(--accent); }

/* Адаптив */
@media (max-width: 1024px) {
  .bts-grid { grid-template-columns: 1fr; gap: 32px; }
  .bts-tiles-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .bts-burger { display: block; }
  .bts-nav {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    background: var(--bg); padding: 12px 16px; border-bottom: 1px solid var(--line); z-index: 5;
  }
  .bts-nav.bts-nav-open { display: block; }
  .bts-nav ul { flex-direction: column; gap: 4px; }
  .bts-nav li + li::before { content: none; }
  .bts-cards { grid-template-columns: repeat(2, 1fr); }
  .bts-foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .bts-main { padding: 16px 16px 0; }
  .bts-h1, .bts-hub-h1 { font-size: 28px; }
  .bts-cards { grid-template-columns: 1fr; }
  .bts-tiles-4 { grid-template-columns: repeat(2, 1fr); }
  .bts-hub-hero { height: 200px; }
  .bts-hub-img { height: 200px; }
  .bts-error-code { font-size: 72px; }
  .bts-pager { flex-direction: column; }
  .bts-pager a { max-width: 100%; }
}
