/* ==========================================================
   ГЛОБАЛЬНЫЕ СТИЛИ border-collie.by
   Куда: Настройки сайта → Вставка кода → Редактировать CSS
   Все классы изолированы префиксом bc- — не конфликтуют с Tilda.
   Версия: 2.0 (май 2026)
   ========================================================== */


/* ==========================================================
   1. ПАЛИТРА И ПЕРЕМЕННЫЕ
   ========================================================== */

[class*="bc-"] {
  /* Фоны */
  --bc-bg-main:        #FBFCFC;
  --bc-bg-secondary:   #F8F8F8;
  --bc-bg-card:        #F3FBFC;

  /* Текст */
  --bc-h1:             #0f2e33;
  --bc-h2:             #1b515a;
  --bc-body:           #2b2b2b;
  --bc-muted:          #5f6f73;

  /* Акценты */
  --bc-accent:         #1F6F78;
  --bc-accent-d:       #195e65;
  --bc-decor:          #294D51;
  --bc-border:         rgba(31, 111, 120, 0.15);

  /* Служебные */
  --bc-danger:         #C84E3A;
  --bc-danger-bg:      #FFF6F4;
  --bc-warn:           #E0A800;
  --bc-warn-bg:        #FFF8E6;

  --bc-radius:         8px;
  --bc-shadow-sharp:   3px 3px 0px rgba(27, 81, 90, 0.18);
  --bc-shadow-mid:     0 4px 16px rgba(27, 81, 90, 0.13);
  --bc-transition:     0.22s ease;

  /* Шрифты — Tilda уже подгрузила их глобально */
  --bc-font-head:      'PT Serif', Georgia, serif;
  --bc-font-body:      'Manrope', Helvetica, Arial, sans-serif;

  /* Сетка */
  --bc-max-w:          780px;
  --bc-max-w-wide:     1100px;
}


/* ==========================================================
   2. БАЗОВЫЕ ПРАВИЛА (box-sizing, шрифт, сглаживание)
   ========================================================== */

[class*="bc-"],
[class*="bc-"] *,
[class*="bc-"] *::before,
[class*="bc-"] *::after {
  box-sizing: border-box;
}

[class*="bc-"] {
  font-family: var(--bc-font-body);
  color: var(--bc-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ==========================================================
   3. ТИПОГРАФИКА
   ========================================================== */

[class*="bc-"] h1,
[class*="bc-"] h2,
[class*="bc-"] h3,
[class*="bc-"] h4 {
  font-family: var(--bc-font-head);
  font-weight: 700;
}

[class*="bc-"] h1 {
  font-size: 50px;
  color: var(--bc-h1);
  line-height: 1.2;
  margin: 0 0 20px;
}

[class*="bc-"] h2 {
  font-size: 34px;
  color: var(--bc-h2);
  line-height: 1.25;
  margin: 0 0 16px;
}

[class*="bc-"] h3 {
  font-size: 22px;
  color: var(--bc-h2);
  line-height: 1.3;
  margin: 0 0 12px;
}

[class*="bc-"] h4 {
  font-size: 18px;
  color: var(--bc-h2);
  line-height: 1.35;
  margin: 0 0 10px;
}

[class*="bc-"] p {
  font-family: var(--bc-font-body);
  font-size: 18px;
  color: var(--bc-body);
  line-height: 1.75;
  margin: 0 0 18px;
}

[class*="bc-"] em,
[class*="bc-"] i,
[class*="bc-"] blockquote {
  font-family: var(--bc-font-head);
  font-style: italic;
}

[class*="bc-"] code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
  background: rgba(31, 111, 120, 0.08);
  color: var(--bc-accent);
  padding: 2px 6px;
  border-radius: 3px;
}

[class*="bc-"] strong {
  font-weight: 700;
}

[class*="bc-"] .bc-text-small,
[class*="bc-"] figcaption {
  font-size: 15px;
  color: var(--bc-muted);
  line-height: 1.6;
}


/* ==========================================================
   4. ССЫЛКИ
   ========================================================== */

.bc-page a {
  color: var(--bc-accent);
  text-decoration: underline;
  text-decoration-color: rgba(31, 111, 120, 0.35);
  text-underline-offset: 3px;
  transition: color var(--bc-transition), text-decoration-color var(--bc-transition);
}

.bc-page a:hover {
  color: var(--bc-accent-d);
  text-decoration-color: var(--bc-accent-d);
}


/* ==========================================================
   5. КНОПКИ
   ========================================================== */

.bc-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--bc-font-body);
  font-size: 15px;
  font-weight: 400;
  color: #ffffff !important;
  background: var(--bc-accent) !important;
  border: 1px solid #ffffff !important;
  border-radius: var(--bc-radius);
  padding: 13px 28px;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: var(--bc-shadow-sharp);
  transition: color var(--bc-transition), background var(--bc-transition), box-shadow var(--bc-transition);
}

.bc-btn-primary:hover {
  color: #f9f9f9 !important;
  background: var(--bc-accent-d) !important;
  box-shadow: var(--bc-shadow-mid);
}

.bc-btn-primary:active {
  transform: scale(0.98);
}

.bc-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--bc-font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--bc-accent) !important;
  background: #ffffff !important;
  border: 1px solid var(--bc-accent) !important;
  border-radius: var(--bc-radius);
  padding: 13px 28px;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: var(--bc-shadow-sharp);
  transition: color var(--bc-transition), background var(--bc-transition), border-color var(--bc-transition), box-shadow var(--bc-transition);
}

.bc-btn-secondary:hover {
  color: var(--bc-accent-d) !important;
  background: var(--bc-bg-main) !important;
  border-color: var(--bc-accent-d) !important;
  box-shadow: var(--bc-shadow-mid);
}

.bc-btn-secondary:active {
  transform: scale(0.98);
}


/* ==========================================================
   6. LAYOUT — КОЛОНКИ И СЕКЦИИ
   ========================================================== */

.bc-container {
  max-width: var(--bc-max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.bc-container-wide {
  max-width: var(--bc-max-w-wide);
  margin: 0 auto;
  padding: 0 24px;
}

.bc-section {
  padding: 80px 0;
}

.bc-section--alt {
  background: var(--bc-bg-secondary);
}

.bc-section--hero {
  padding: 100px 0 60px;
}


/* ==========================================================
   7. УТИЛИТАРНЫЕ КОМПОНЕНТЫ
   ========================================================== */

/* Eyebrow — мелкая категория над H1/H2 */
.bc-eyebrow {
  font-family: var(--bc-font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bc-accent);
  margin: 0 0 16px;
}

/* Lead — увеличенный лид-абзац */
.bc-lead {
  font-family: var(--bc-font-head);
  font-size: 22px;
  line-height: 1.55;
  color: var(--bc-h2);
  margin: 0 0 24px;
}

/* Pullquote — выделенная цитата */
.bc-pullquote {
  margin: 32px 0;
  padding: 22px 28px;
  border-left: 3px solid var(--bc-accent);
  background: var(--bc-bg-card);
  font-family: var(--bc-font-head);
  font-style: italic;
  font-size: 20px;
  line-height: 1.6;
  color: var(--bc-h2);
  border-radius: 0 var(--bc-radius) var(--bc-radius) 0;
}

/* Info-box — информационный блок с акцентной рамкой слева */
.bc-info-box {
  background: var(--bc-bg-card);
  border: 1px solid var(--bc-border);
  border-left: 3px solid var(--bc-accent);
  border-radius: var(--bc-radius);
  padding: 26px 28px;
  margin: 32px 0;
}

.bc-info-box h3 {
  margin-top: 0;
}

.bc-info-box ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.bc-info-box li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Danger-box — критическое предупреждение */
.bc-danger-box {
  background: var(--bc-danger-bg);
  border: 2px solid rgba(200, 78, 58, 0.3);
  border-left: 4px solid var(--bc-danger);
  border-radius: var(--bc-radius);
  padding: 28px 32px;
  margin: 36px 0;
}

.bc-danger-box h3 {
  color: #8c2419;
  margin-top: 0;
}

.bc-danger-box p {
  font-size: 16px;
  line-height: 1.7;
}

.bc-danger-box ul {
  padding-left: 20px;
  margin: 14px 0;
}

.bc-danger-box ul li {
  margin-bottom: 8px;
  line-height: 1.6;
}


/* ==========================================================
   8. ХЛЕБНЫЕ КРОШКИ
   ========================================================== */

.bc-breadcrumbs {
  font-family: var(--bc-font-body);
  font-size: 13px;
  color: var(--bc-muted);
  padding: 16px 0;
  margin: 0 0 8px;
  line-height: 1.5;
}

.bc-breadcrumbs a {
  color: var(--bc-muted);
  text-decoration: none;
  transition: color var(--bc-transition);
}

.bc-breadcrumbs a:hover {
  color: var(--bc-accent);
  text-decoration: underline;
}

.bc-breadcrumbs__sep {
  margin: 0 8px;
  opacity: 0.5;
}

.bc-breadcrumbs__current {
  color: var(--bc-h2);
  font-weight: 600;
}


/* ==========================================================
   9. СВЯЗАННЫЕ СТРАНИЦЫ
   ========================================================== */

.bc-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.bc-related-card {
  display: block;
  padding: 28px 30px;
  background: var(--bc-bg-card);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  text-decoration: none !important;
  transition: box-shadow var(--bc-transition), transform var(--bc-transition);
}

.bc-related-card:hover {
  box-shadow: var(--bc-shadow-mid);
  transform: translateY(-2px);
}

.bc-related-card__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bc-accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.bc-related-card__title {
  font-family: var(--bc-font-head);
  font-weight: 700;
  font-size: 22px;
  color: var(--bc-h2);
  margin: 0 0 8px;
  line-height: 1.3;
}

.bc-related-card__desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--bc-muted);
  margin: 0;
}

.bc-related-card__arrow {
  display: inline-block;
  margin-top: 14px;
  color: var(--bc-accent);
  font-family: var(--bc-font-head);
  font-size: 18px;
}


/* ==========================================================
   10. CTA-БЛОК
   ========================================================== */

.bc-cta-block {
  margin-top: 40px;
  padding: 40px 32px;
  background: var(--bc-bg-card);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  text-align: center;
}

.bc-cta-block h3 {
  margin-bottom: 10px;
}

.bc-cta-block p {
  margin-bottom: 26px;
  color: var(--bc-muted);
  font-size: 16px;
}

.bc-cta-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}


/* ==========================================================
   11. СПИСОК ИСТОЧНИКОВ
   ========================================================== */

.bc-sources-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}

.bc-sources-list li {
  padding: 16px 20px;
  background: var(--bc-bg-main);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
}

.bc-sources-list .bc-src-name {
  font-family: var(--bc-font-head);
  font-weight: 700;
  color: var(--bc-h2);
  font-size: 18px;
  display: block;
  margin-bottom: 4px;
}

.bc-sources-list .bc-src-desc {
  font-size: 14px;
  color: var(--bc-muted);
  line-height: 1.55;
  margin-bottom: 6px;
}

.bc-sources-list .bc-src-link {
  font-size: 14px;
  word-break: break-all;
}


/* ==========================================================
   12. ДЕКОРАТИВНЫЙ РАЗДЕЛИТЕЛЬ
   ========================================================== */

.bc-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 28px;
  color: var(--bc-decor);
  opacity: 0.5;
}

.bc-ornament::before,
.bc-ornament::after {
  content: '';
  width: 40px;
  height: 1px;
  background: currentColor;
}

.bc-ornament span {
  font-family: var(--bc-font-head);
  font-style: italic;
  font-size: 15px;
}


/* ==========================================================
   13. СПИСОК С ГАЛОЧКАМИ
   ========================================================== */

.bc-check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.bc-check-list li {
  position: relative;
  padding: 10px 0 10px 32px;
  font-size: 17px;
  line-height: 1.6;
  border-bottom: 1px solid var(--bc-border);
}

.bc-check-list li:last-child {
  border-bottom: none;
}

.bc-check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 16px;
  height: 8px;
  border-left: 2px solid var(--bc-accent);
  border-bottom: 2px solid var(--bc-accent);
  transform: rotate(-45deg);
}


/* ==========================================================
   14. МОБИЛЬНАЯ АДАПТАЦИЯ (≤ 600px)
   ========================================================== */

@media (max-width: 600px) {
  [class*="bc-"] h1 { font-size: 34px; }
  [class*="bc-"] h2 { font-size: 26px; }
  [class*="bc-"] h3 { font-size: 20px; }
  [class*="bc-"] h4 { font-size: 17px; }
  [class*="bc-"] p { font-size: 16px; }

  [class*="bc-"] .bc-text-small,
  [class*="bc-"] figcaption { font-size: 13px; }

  .bc-section { padding: 56px 0; }
  .bc-section--hero { padding: 64px 0 40px; }

  .bc-lead { font-size: 18px; }

  .bc-btn-primary,
  .bc-btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
  }

  .bc-cta-buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .bc-pullquote { padding: 18px 20px; font-size: 17px; }
  .bc-info-box { padding: 20px 22px; }
  .bc-danger-box { padding: 22px 22px; }

  .bc-related-grid { grid-template-columns: 1fr; }
  .bc-related-card { padding: 22px 24px; }
  .bc-related-card__title { font-size: 19px; }

  .bc-cta-block { padding: 30px 22px; }
}