/* ============================================
   CHTF CSS KIT v2.0
   Префикс: chtf_
   Версия: Полная (лендинг + админка)
   Адаптивность: Bootstrap-подобная сетка
   ============================================ */

/* ---------- ИМПОРТ ШРИФТОВ ---------- */
@import url('https://fonts.googleapis.com/css2?family=Commissioner:wght@300;400;600&family=Roboto:ital,wght@0,400;0,700;1,300&display=swap');

/* ---------- ПЕРЕМЕННЫЕ ---------- */
:root {
  /* Основные цвета */
  --chtf-color-primary: #E74124;
  --chtf-color-secondary: #37401F;
  --chtf-color-bg: #F3F0E3;
  
  /* Дополнительные цвета */
  --chtf-color-blue-light: #A3CCEE;
  --chtf-color-gray: #C5C6CC;
  --chtf-color-yellow-light: #FFF9C7;
  --chtf-color-green-light: #D1F0C2;
  --chtf-color-green: #75B843;
  --chtf-color-blue: #698FCA;
  --chtf-color-red: #E74124;
  --chtf-color-yellow: #FCBE0C;
  
  /* Шрифты */
  --chtf-font-light: 'Commissioner', sans-serif;
  --chtf-font-regular: 'Commissioner', sans-serif;
  --chtf-font-semibold: 'Commissioner', sans-serif;
  --chtf-font-italic: 'Roboto', sans-serif;
  --chtf-font-roboto-regular: 'Roboto', sans-serif;
  --chtf-font-roboto-bold: 'Roboto', sans-serif;
  
  /* Базовые настройки */
  --chtf-base-font-size: 16px;
  --chtf-line-height: 1.6;
  --chtf-border-radius: 6px;
  --chtf-border-radius-lg: 12px;
  --chtf-border-radius-circle: 50%;
  --chtf-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --chtf-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --chtf-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --chtf-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --chtf-shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
  
  /* Адаптивность */
  --chtf-breakpoint-xs: 0;
  --chtf-breakpoint-sm: 576px;
  --chtf-breakpoint-md: 768px;
  --chtf-breakpoint-lg: 992px;
  --chtf-breakpoint-xl: 1200px;
  --chtf-breakpoint-xxl: 1400px;
  
  /* Контейнеры */
  --chtf-container-max-width-sm: 540px;
  --chtf-container-max-width-md: 720px;
  --chtf-container-max-width-lg: 960px;
  --chtf-container-max-width-xl: 1140px;
  --chtf-container-max-width-xxl: 1320px;
  
  /* Z-index слои */
  --chtf-z-dropdown: 1000;
  --chtf-z-sticky: 1020;
  --chtf-z-fixed: 1030;
  --chtf-z-modal-backdrop: 1040;
  --chtf-z-modal: 1050;
  --chtf-z-popover: 1060;
  --chtf-z-tooltip: 1070;
}

/* ---------- СБРОС И БАЗА ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--chtf-base-font-size);
  scroll-behavior: smooth;
}

body {
  font-family: var(--chtf-font-regular);
  font-weight: 400;
  line-height: var(--chtf-line-height);
  background-color: var(--chtf-color-bg);
  color: var(--chtf-color-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- ТИПОГРАФИКА ---------- */
.chtf_text-light {
  font-family: var(--chtf-font-light);
  font-weight: 300;
}

.chtf_text-regular {
  font-family: var(--chtf-font-regular);
  font-weight: 400;
}

.chtf_text-semibold {
  font-family: var(--chtf-font-semibold);
  font-weight: 600;
}

.chtf_text-italic {
  font-family: var(--chtf-font-italic);
  font-weight: 300;
  font-style: italic;
}

.chtf_text-roboto-regular {
  font-family: var(--chtf-font-roboto-regular);
  font-weight: 400;
}

.chtf_text-roboto-bold {
  font-family: var(--chtf-font-roboto-bold);
  font-weight: 700;
}

/* Заголовки */
h1, .chtf_h1 {
  font-family: var(--chtf-font-semibold);
  font-weight: 600;
  font-size: calc(1.5rem + 1.5vw);
  line-height: 1.2;
  color: var(--chtf-color-secondary);
  margin-bottom: 1rem;
}

h2, .chtf_h2 {
  font-family: var(--chtf-font-semibold);
  font-weight: 600;
  font-size: calc(1.3rem + 1.2vw);
  line-height: 1.3;
  color: var(--chtf-color-secondary);
  margin-bottom: 0.875rem;
}

h3, .chtf_h3 {
  font-family: var(--chtf-font-semibold);
  font-weight: 600;
  font-size: calc(1.1rem + 0.8vw);
  line-height: 1.4;
  color: var(--chtf-color-secondary);
  margin-bottom: 0.75rem;
}

h4, .chtf_h4 {
  font-family: var(--chtf-font-semibold);
  font-weight: 600;
  font-size: calc(1rem + 0.4vw);
  line-height: 1.5;
  color: var(--chtf-color-secondary);
  margin-bottom: 0.5rem;
}

p, .chtf_text-body {
  font-family: var(--chtf-font-regular);
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 1rem;
}

ul, ol{
    margin-left: 20px;
}

li{
    
}

.chtf_row table{
    margin: 0px;
    padding: 0px;
    margin-left: 0.75rem;
}
.chtf_row td, .chtf_row th{
    padding: 10px;
}

.chtf_text-small {
  font-size: 0.875rem;
}

.chtf_text-large {
  font-size: 1.25rem;
}

.chtf_text-muted {
  color: #6c757d;
}

/* ---------- ЦВЕТА (ФОНЫ И ТЕКСТ) ---------- */
/* Текст */
.chtf_text-primary { color: var(--chtf-color-primary); }
.chtf_text-secondary { color: var(--chtf-color-secondary); }
.chtf_text-bg { color: var(--chtf-color-bg); }
.chtf_text-blue-light { color: var(--chtf-color-blue-light); }
.chtf_text-gray { color: var(--chtf-color-gray); }
.chtf_text-yellow-light { color: var(--chtf-color-yellow-light); }
.chtf_text-green-light { color: var(--chtf-color-green-light); }
.chtf_text-green { color: var(--chtf-color-green); }
.chtf_text-blue { color: var(--chtf-color-blue); }
.chtf_text-red { color: var(--chtf-color-red); }
.chtf_text-yellow { color: var(--chtf-color-yellow); }

/* Фоны */
.chtf_bg-primary { background-color: var(--chtf-color-primary); }
.chtf_bg-secondary { background-color: var(--chtf-color-secondary); }
.chtf_bg-bg { background-color: var(--chtf-color-bg); }
.chtf_bg-blue-light { background-color: var(--chtf-color-blue-light); }
.chtf_bg-gray { background-color: var(--chtf-color-gray); }
.chtf_bg-yellow-light { background-color: var(--chtf-color-yellow-light); }
.chtf_bg-green-light { background-color: var(--chtf-color-green-light); }
.chtf_bg-green { background-color: var(--chtf-color-green); }
.chtf_bg-blue { background-color: var(--chtf-color-blue); }
.chtf_bg-yellow { background-color: var(--chtf-color-yellow); }
.chtf_bg-primary-light {
  background: rgba(231, 65, 36, 0.1); /* 10% прозрачности */
}
.chtf_bg-primary-light-10 { background: rgba(231, 65, 36, 0.1); }
.chtf_bg-primary-light-15 { background: rgba(231, 65, 36, 0.15); }
.chtf_bg-primary-light-20 { background: rgba(231, 65, 36, 0.2); }

/* ---------- КОНТЕЙНЕРЫ ---------- */
.chtf_container {
  width: 100%;
  padding-right: 1rem;
  padding-left: 1rem;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .chtf_container {
    max-width: var(--chtf-container-max-width-sm);
  }
}

@media (min-width: 768px) {
  .chtf_container {
    max-width: var(--chtf-container-max-width-md);
  }
}

@media (min-width: 992px) {
  .chtf_container {
    max-width: var(--chtf-container-max-width-lg);
  }
}

@media (min-width: 1200px) {
  .chtf_container {
    max-width: var(--chtf-container-max-width-xl);
  }
}

@media (min-width: 1400px) {
  .chtf_container {
    max-width: var(--chtf-container-max-width-xxl);
  }
}

.chtf_container-fluid {
  width: 100%;
  padding-right: 1rem;
  padding-left: 1rem;
  margin-right: auto;
  margin-left: auto;
}

/* ---------- СЕТКА (BOOTSTRAP-LIKE) ---------- */
.chtf_row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.75rem;
  margin-left: -0.75rem;
}

.chtf_row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

/* Колонки */
.chtf_col {
  flex: 1 0 0%;
}

.chtf_col-auto {
  flex: 0 0 auto;
  width: auto;
}

.chtf_col-1 { flex: 0 0 auto; width: 8.33333333%; }
.chtf_col-2 { flex: 0 0 auto; width: 16.66666667%; }
.chtf_col-3 { flex: 0 0 auto; width: 25%; }
.chtf_col-4 { flex: 0 0 auto; width: 33.33333333%; }
.chtf_col-5 { flex: 0 0 auto; width: 41.66666667%; }
.chtf_col-6 { flex: 0 0 auto; width: 50%; }
.chtf_col-7 { flex: 0 0 auto; width: 58.33333333%; }
.chtf_col-8 { flex: 0 0 auto; width: 66.66666667%; }
.chtf_col-9 { flex: 0 0 auto; width: 75%; }
.chtf_col-10 { flex: 0 0 auto; width: 83.33333333%; }
.chtf_col-11 { flex: 0 0 auto; width: 91.66666667%; }
.chtf_col-12 { flex: 0 0 auto; width: 100%; }

/* Адаптивные колонки */
@media (min-width: 576px) {
  .chtf_col-sm-1 { flex: 0 0 auto; width: 8.33333333%; }
  .chtf_col-sm-2 { flex: 0 0 auto; width: 16.66666667%; }
  .chtf_col-sm-3 { flex: 0 0 auto; width: 25%; }
  .chtf_col-sm-4 { flex: 0 0 auto; width: 33.33333333%; }
  .chtf_col-sm-5 { flex: 0 0 auto; width: 41.66666667%; }
  .chtf_col-sm-6 { flex: 0 0 auto; width: 50%; }
  .chtf_col-sm-7 { flex: 0 0 auto; width: 58.33333333%; }
  .chtf_col-sm-8 { flex: 0 0 auto; width: 66.66666667%; }
  .chtf_col-sm-9 { flex: 0 0 auto; width: 75%; }
  .chtf_col-sm-10 { flex: 0 0 auto; width: 83.33333333%; }
  .chtf_col-sm-11 { flex: 0 0 auto; width: 91.66666667%; }
  .chtf_col-sm-12 { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 768px) {
  .chtf_col-md-1 { flex: 0 0 auto; width: 8.33333333%; }
  .chtf_col-md-2 { flex: 0 0 auto; width: 16.66666667%; }
  .chtf_col-md-3 { flex: 0 0 auto; width: 25%; }
  .chtf_col-md-4 { flex: 0 0 auto; width: 33.33333333%; }
  .chtf_col-md-5 { flex: 0 0 auto; width: 41.66666667%; }
  .chtf_col-md-6 { flex: 0 0 auto; width: 50%; }
  .chtf_col-md-7 { flex: 0 0 auto; width: 58.33333333%; }
  .chtf_col-md-8 { flex: 0 0 auto; width: 66.66666667%; }
  .chtf_col-md-9 { flex: 0 0 auto; width: 75%; }
  .chtf_col-md-10 { flex: 0 0 auto; width: 83.33333333%; }
  .chtf_col-md-11 { flex: 0 0 auto; width: 91.66666667%; }
  .chtf_col-md-12 { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 992px) {
  .chtf_col-lg-1 { flex: 0 0 auto; width: 8.33333333%; }
  .chtf_col-lg-2 { flex: 0 0 auto; width: 16.66666667%; }
  .chtf_col-lg-3 { flex: 0 0 auto; width: 25%; }
  .chtf_col-lg-4 { flex: 0 0 auto; width: 33.33333333%; }
  .chtf_col-lg-5 { flex: 0 0 auto; width: 41.66666667%; }
  .chtf_col-lg-6 { flex: 0 0 auto; width: 50%; }
  .chtf_col-lg-7 { flex: 0 0 auto; width: 58.33333333%; }
  .chtf_col-lg-8 { flex: 0 0 auto; width: 66.66666667%; }
  .chtf_col-lg-9 { flex: 0 0 auto; width: 75%; }
  .chtf_col-lg-10 { flex: 0 0 auto; width: 83.33333333%; }
  .chtf_col-lg-11 { flex: 0 0 auto; width: 91.66666667%; }
  .chtf_col-lg-12 { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 1200px) {
  .chtf_col-xl-1 { flex: 0 0 auto; width: 8.33333333%; }
  .chtf_col-xl-2 { flex: 0 0 auto; width: 16.66666667%; }
  .chtf_col-xl-3 { flex: 0 0 auto; width: 25%; }
  .chtf_col-xl-4 { flex: 0 0 auto; width: 33.33333333%; }
  .chtf_col-xl-5 { flex: 0 0 auto; width: 41.66666667%; }
  .chtf_col-xl-6 { flex: 0 0 auto; width: 50%; }
  .chtf_col-xl-7 { flex: 0 0 auto; width: 58.33333333%; }
  .chtf_col-xl-8 { flex: 0 0 auto; width: 66.66666667%; }
  .chtf_col-xl-9 { flex: 0 0 auto; width: 75%; }
  .chtf_col-xl-10 { flex: 0 0 auto; width: 83.33333333%; }
  .chtf_col-xl-11 { flex: 0 0 auto; width: 91.66666667%; }
  .chtf_col-xl-12 { flex: 0 0 auto; width: 100%; }
}

/* ---------- КНОПКИ ---------- */
.chtf_btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--chtf-font-semibold);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  border-radius: var(--chtf-border-radius);
  cursor: pointer;
  transition: all var(--chtf-transition);
  line-height: 1.5;
  text-align: center;
  user-select: none;
  vertical-align: middle;
}

.chtf_btn-primary {
  background-color: var(--chtf-color-primary);
  color: #fff;
}
.chtf_btn-primary:hover {
  background-color: #d1341a;
  transform: translateY(-2px);
  box-shadow: var(--chtf-shadow);
}

.chtf_btn-secondary {
  background-color: var(--chtf-color-secondary);
  color: #fff;
}
.chtf_btn-secondary:hover {
  background-color: #2a3218;
  transform: translateY(-2px);
  box-shadow: var(--chtf-shadow);
}

.chtf_btn-outline-primary {
  background-color: transparent;
  color: var(--chtf-color-primary);
  border: 2px solid var(--chtf-color-primary);
}
.chtf_btn-outline-primary:hover {
  background-color: var(--chtf-color-primary);
  color: #fff;
}

.chtf_btn-outline-secondary {
  background-color: transparent;
  color: var(--chtf-color-secondary);
  border: 2px solid var(--chtf-color-secondary);
}
.chtf_btn-outline-secondary:hover {
  background-color: var(--chtf-color-secondary);
  color: #fff;
}

.chtf_btn-green {
  background-color: var(--chtf-color-green);
  color: #fff;
}
.chtf_btn-green:hover {
  background-color: #65a53a;
  transform: translateY(-2px);
  box-shadow: var(--chtf-shadow);
}

.chtf_btn-yellow {
  background-color: var(--chtf-color-yellow);
  color: var(--chtf-color-secondary);
}
.chtf_btn-yellow:hover {
  background-color: #e8ae0a;
  transform: translateY(-2px);
  box-shadow: var(--chtf-shadow);
}

.chtf_btn-blue {
  background-color: var(--chtf-color-blue);
  color: #fff;
}
.chtf_btn-blue:hover {
  background-color: #5a7db8;
  transform: translateY(-2px);
  box-shadow: var(--chtf-shadow);
}

.chtf_btn-danger {
  background-color: var(--chtf-color-red);
  color: #fff;
}
.chtf_btn-danger:hover {
  background-color: #d1341a;
  transform: translateY(-2px);
  box-shadow: var(--chtf-shadow);
}

.chtf_btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
}

.chtf_btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.chtf_btn-block {
  display: block;
  width: 100%;
}

.chtf_btn:disabled {
  opacity: 0.65;
  pointer-events: none;
  transform: none !important;
}

/* ---------- КАРТОЧКИ ---------- */
.chtf_card {
  background: #fff;
  border-radius: var(--chtf-border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--chtf-shadow-sm);
  transition: all var(--chtf-transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.chtf_card:hover {
  box-shadow: var(--chtf-shadow-lg);
  transform: translateY(-4px);
}

.chtf_card-header {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--chtf-color-bg);
  font-family: var(--chtf-font-semibold);
  font-weight: 600;
}

.chtf_card-footer {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 2px solid var(--chtf-color-bg);
}

.chtf_card-primary {
  border-top: 4px solid var(--chtf-color-primary);
}

.chtf_card-secondary {
  border-top: 4px solid var(--chtf-color-secondary);
}

.chtf_card-blue {
  border-top: 4px solid var(--chtf-color-blue);
}

.chtf_card-green {
  border-top: 4px solid var(--chtf-color-green);
}

.chtf_card-yellow {
  border-top: 4px solid var(--chtf-color-yellow);
}

/* ---------- ФОРМЫ ---------- */
.chtf_form-group {
  margin-bottom: 1.5rem;
}

.chtf_label {
  display: block;
  font-family: var(--chtf-font-semibold);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--chtf-color-secondary);
}

.chtf_input,
.chtf_textarea,
.chtf_select {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--chtf-font-regular);
  font-size: 1rem;
  line-height: 1.5;
  border: 2px solid var(--chtf-color-gray);
  border-radius: var(--chtf-border-radius);
  background: #fff;
  transition: all var(--chtf-transition);
  color: var(--chtf-color-secondary);
}

.chtf_input:focus,
.chtf_textarea:focus,
.chtf_select:focus {
  outline: none;
  border-color: var(--chtf-color-primary);
  box-shadow: 0 0 0 4px rgba(231, 65, 36, 0.1);
}

.chtf_input-error {
  border-color: var(--chtf-color-red);
}
.chtf_input-error:focus {
  border-color: var(--chtf-color-red);
  box-shadow: 0 0 0 4px rgba(231, 65, 36, 0.15);
}

.chtf_input-success {
  border-color: var(--chtf-color-green);
}
.chtf_input-success:focus {
  border-color: var(--chtf-color-green);
  box-shadow: 0 0 0 4px rgba(117, 184, 67, 0.15);
}

.chtf_textarea {
  resize: vertical;
  min-height: 100px;
}

.chtf_select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2337401F' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.chtf_form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.chtf_form-check input[type="checkbox"],
.chtf_form-check input[type="radio"] {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--chtf-color-primary);
  cursor: pointer;
}

.chtf_form-check label {
  cursor: pointer;
  font-family: var(--chtf-font-regular);
}

/* ---------- ТАБЛИЦЫ ---------- */
.chtf_table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--chtf-border-radius-lg);
  overflow: hidden;
  box-shadow: var(--chtf-shadow-sm);
}

.chtf_table thead {
  background: var(--chtf-color-secondary);
  color: #fff;
}

.chtf_table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--chtf-font-semibold);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chtf_table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--chtf-color-bg);
}

.chtf_table tbody tr:hover {
  background: rgba(231, 65, 36, 0.04);
}

.chtf_table-striped tbody tr:nth-child(odd) {
  background: rgba(243, 240, 227, 0.5);
}

.chtf_table-bordered {
  border: 1px solid var(--chtf-color-bg);
}
.chtf_table-bordered th,
.chtf_table-bordered td {
  border: 1px solid var(--chtf-color-bg);
}

.chtf_table-sm th,
.chtf_table-sm td {
  padding: 0.5rem 0.75rem;
}

/* ---------- НАВИГАЦИЯ ---------- */
.chtf_nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.chtf_nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.chtf_nav-link {
  font-family: var(--chtf-font-regular);
  font-weight: 400;
  text-decoration: none;
  color: var(--chtf-color-secondary);
  transition: all var(--chtf-transition);
  position: relative;
  padding: 0.25rem 0;
}

.chtf_nav-link:hover {
  color: var(--chtf-color-primary);
}

.chtf_nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--chtf-color-primary);
  transition: width var(--chtf-transition);
}

.chtf_nav-link:hover::after {
  width: 100%;
}

.chtf_nav-link-active {
  color: var(--chtf-color-primary);
}
.chtf_nav-link-active::after {
  width: 100%;
}

/* Навигация для админки (темная) */
.chtf_nav-dark {
  background: var(--chtf-color-secondary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--chtf-border-radius-lg);
}

.chtf_nav-dark .chtf_nav-link {
  color: rgba(255, 255, 255, 0.8);
}

.chtf_nav-dark .chtf_nav-link:hover {
  color: #fff;
}

.chtf_nav-dark .chtf_nav-link::after {
  background-color: var(--chtf-color-primary);
}

/* ---------- БЭЙДЖИ ---------- */
.chtf_badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-family: var(--chtf-font-semibold);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.5;
}

.chtf_badge-primary { background-color: var(--chtf-color-primary); color: #fff; }
.chtf_badge-secondary { background-color: var(--chtf-color-secondary); color: #fff; }
.chtf_badge-green { background-color: var(--chtf-color-green); color: #fff; }
.chtf_badge-yellow { background-color: var(--chtf-color-yellow); color: var(--chtf-color-secondary); }
.chtf_badge-blue { background-color: var(--chtf-color-blue); color: #fff; }
.chtf_badge-red { background-color: var(--chtf-color-red); color: #fff; }
.chtf_badge-gray { background-color: var(--chtf-color-gray); color: var(--chtf-color-secondary); }

/* ---------- МОДАЛЬНЫЕ ОКНА ---------- */
.chtf_modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--chtf-z-modal-backdrop);
  align-items: center;
  justify-content: center;
  animation: chtf_fadeIn 0.3s ease;
}

.chtf_modal-overlay.active {
  display: flex;
}

.chtf_modal {
  background: #fff;
  border-radius: var(--chtf-border-radius-lg);
  max-width: 560px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: var(--chtf-shadow-xl);
  animation: chtf_slideIn 0.3s ease;
  position: relative;
}

.chtf_modal-lg {
  max-width: 720px;
}

.chtf_modal-sm {
  max-width: 400px;
}

.chtf_modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--chtf-color-bg);
}

.chtf_modal-title {
  font-family: var(--chtf-font-semibold);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0;
}

.chtf_modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--chtf-color-gray);
  transition: all var(--chtf-transition);
  padding: 0 0.5rem;
}

.chtf_modal-close:hover {
  color: var(--chtf-color-primary);
  transform: rotate(90deg);
}

.chtf_modal-body {
  padding: 0.5rem 0 1.5rem;
}

.chtf_modal-footer {
  padding-top: 1rem;
  border-top: 2px solid var(--chtf-color-bg);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ---------- АНИМАЦИИ ---------- */
@keyframes chtf_fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes chtf_fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chtf_slideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes chtf_pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes chtf_shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.chtf_animate-fade {
  animation: chtf_fadeIn 0.6s ease forwards;
}

.chtf_animate-fade-up {
  animation: chtf_fadeInUp 0.7s ease forwards;
}

.chtf_animate-pulse {
  animation: chtf_pulse 2s infinite;
}

.chtf_animate-shake {
  animation: chtf_shake 0.5s ease;
}

/* Задержки для анимаций */
.chtf_delay-1 { animation-delay: 0.1s; }
.chtf_delay-2 { animation-delay: 0.2s; }
.chtf_delay-3 { animation-delay: 0.3s; }
.chtf_delay-4 { animation-delay: 0.4s; }
.chtf_delay-5 { animation-delay: 0.5s; }

/* ---------- ОТСТУПЫ ---------- */
.chtf_m-0 { margin: 0; }
.chtf_m-1 { margin: 0.25rem; }
.chtf_m-2 { margin: 0.5rem; }
.chtf_m-3 { margin: 1rem; }
.chtf_m-4 { margin: 1.5rem; }
.chtf_m-5 { margin: 3rem; }

.chtf_mt-0 { margin-top: 0; }
.chtf_mt-1 { margin-top: 0.25rem; }
.chtf_mt-2 { margin-top: 0.5rem; }
.chtf_mt-3 { margin-top: 1rem; }
.chtf_mt-4 { margin-top: 1.5rem; }
.chtf_mt-5 { margin-top: 3rem; }
.chtf_mt-auto { margin-top: auto; }

.chtf_mb-0 { margin-bottom: 0; }
.chtf_mb-1 { margin-bottom: 0.25rem; }
.chtf_mb-2 { margin-bottom: 0.5rem; }
.chtf_mb-3 { margin-bottom: 1rem; }
.chtf_mb-4 { margin-bottom: 1.5rem; }
.chtf_mb-5 { margin-bottom: 3rem; }
.chtf_mb-auto { margin-bottom: auto; }

.chtf_ml-0 { margin-left: 0; }
.chtf_ml-1 { margin-left: 0.25rem; }
.chtf_ml-2 { margin-left: 0.5rem; }
.chtf_ml-3 { margin-left: 1rem; }
.chtf_ml-4 { margin-left: 1.5rem; }
.chtf_ml-5 { margin-left: 3rem; }
.chtf_ml-auto { margin-left: auto; }

.chtf_mr-0 { margin-right: 0; }
.chtf_mr-1 { margin-right: 0.25rem; }
.chtf_mr-2 { margin-right: 0.5rem; }
.chtf_mr-3 { margin-right: 1rem; }
.chtf_mr-4 { margin-right: 1.5rem; }
.chtf_mr-5 { margin-right: 3rem; }
.chtf_mr-auto { margin-right: auto; }

.chtf_mx-auto { margin-left: auto; margin-right: auto; }
.chtf_my-auto { margin-top: auto; margin-bottom: auto; }

.chtf_p-0 { padding: 0; }
.chtf_p-1 { padding: 0.25rem; }
.chtf_p-2 { padding: 0.5rem; }
.chtf_p-3 { padding: 1rem; }
.chtf_p-4 { padding: 1.5rem; }
.chtf_p-5 { padding: 3rem; }

.chtf_pt-1 { padding-top: 0.25rem; }
.chtf_pt-2 { padding-top: 0.5rem; }
.chtf_pt-3 { padding-top: 1rem; }
.chtf_pt-4 { padding-top: 1.5rem; }
.chtf_pt-5 { padding-top: 3rem; }

.chtf_pb-1 { padding-bottom: 0.25rem; }
.chtf_pb-2 { padding-bottom: 0.5rem; }
.chtf_pb-3 { padding-bottom: 1rem; }
.chtf_pb-4 { padding-bottom: 1.5rem; }
.chtf_pb-5 { padding-bottom: 3rem; }

.chtf_pl-1 { padding-left: 0.25rem; }
.chtf_pl-2 { padding-left: 0.5rem; }
.chtf_pl-3 { padding-left: 1rem; }
.chtf_pl-4 { padding-left: 1.5rem; }
.chtf_pl-5 { padding-left: 3rem; }

.chtf_pr-1 { padding-right: 0.25rem; }
.chtf_pr-2 { padding-right: 0.5rem; }
.chtf_pr-3 { padding-right: 1rem; }
.chtf_pr-4 { padding-right: 1.5rem; }
.chtf_pr-5 { padding-right: 3rem; }

/* ---------- УТИЛИТЫ ---------- */
.chtf_text-center { text-align: center; }
.chtf_text-left { text-align: left; }
.chtf_text-right { text-align: right; }

.chtf_flex { display: flex; }
.chtf_flex-inline { display: inline-flex; }
.chtf_flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.chtf_flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chtf_flex-column {
  display: flex;
  flex-direction: column;
}
.chtf_flex-wrap { flex-wrap: wrap; }
.chtf_flex-nowrap { flex-wrap: nowrap; }
.chtf_flex-grow-1 { flex-grow: 1; }
.chtf_flex-shrink-0 { flex-shrink: 0; }

.chtf_gap-0 { gap: 0; }
.chtf_gap-1 { gap: 0.25rem; }
.chtf_gap-2 { gap: 0.5rem; }
.chtf_gap-3 { gap: 1rem; }
.chtf_gap-4 { gap: 1.5rem; }
.chtf_gap-5 { gap: 3rem; }

.chtf_d-block { display: block; }
.chtf_d-inline { display: inline; }
.chtf_d-inline-block { display: inline-block; }
.chtf_d-none { display: none; }

.chtf_rounded { border-radius: var(--chtf-border-radius); }
.chtf_rounded-lg { border-radius: var(--chtf-border-radius-lg); }
.chtf_rounded-circle { border-radius: var(--chtf-border-radius-circle); }
.chtf_rounded-0 { border-radius: 0; }

.chtf_shadow-sm { box-shadow: var(--chtf-shadow-sm); }
.chtf_shadow { box-shadow: var(--chtf-shadow); }
.chtf_shadow-lg { box-shadow: var(--chtf-shadow-lg); }
.chtf_shadow-xl { box-shadow: var(--chtf-shadow-xl); }
.chtf_shadow-none { box-shadow: none; }

.chtf_w-25 { width: 25%; }
.chtf_w-50 { width: 50%; }
.chtf_w-75 { width: 75%; }
.chtf_w-100 { width: 100%; }
.chtf_w-auto { width: auto; }

.chtf_h-25 { height: 25%; }
.chtf_h-50 { height: 50%; }
.chtf_h-75 { height: 75%; }
.chtf_h-100 { height: 100%; }
.chtf_h-auto { height: auto; }

.chtf_position-relative { position: relative; }
.chtf_position-absolute { position: absolute; }
.chtf_position-fixed { position: fixed; }
.chtf_position-sticky { position: sticky; }

.chtf_overflow-hidden { overflow: hidden; }
.chtf_overflow-auto { overflow: auto; }
.chtf_overflow-scroll { overflow: scroll; }

.chtf_opacity-0 { opacity: 0; }
.chtf_opacity-25 { opacity: 0.25; }
.chtf_opacity-50 { opacity: 0.5; }
.chtf_opacity-75 { opacity: 0.75; }
.chtf_opacity-100 { opacity: 1; }

/* ---------- АДАПТИВНЫЕ УТИЛИТЫ ---------- */
@media (max-width: 575.98px) {
  .chtf_d-sm-none { display: none; }
  .chtf_text-sm-center { text-align: center; }
  .chtf_flex-sm-column { flex-direction: column; }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .chtf_d-md-none { display: none; }
  .chtf_text-md-center { text-align: center; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .chtf_d-lg-none { display: none; }
  .chtf_text-lg-center { text-align: center; }
}

@media (min-width: 992px) {
  .chtf_d-xl-none { display: none; }
}

/* ---------- СКРОЛЛБАР (для админки) ---------- */
.chtf_scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.chtf_scrollbar::-webkit-scrollbar-track {
  background: var(--chtf-color-bg);
  border-radius: 4px;
}

.chtf_scrollbar::-webkit-scrollbar-thumb {
  background: var(--chtf-color-gray);
  border-radius: 4px;
}

.chtf_scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--chtf-color-primary);
}

/* ---------- ПЕРЕКЛЮЧАТЕЛЬ (TOGGLE) ---------- */
.chtf_toggle {
  position: relative;
  width: 48px;
  height: 26px;
  cursor: pointer;
}

.chtf_toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.chtf_toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--chtf-color-gray);
  border-radius: 34px;
  transition: all var(--chtf-transition);
}

.chtf_toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: all var(--chtf-transition);
}

.chtf_toggle input:checked + .chtf_toggle-slider {
  background: var(--chtf-color-primary);
}

.chtf_toggle input:checked + .chtf_toggle-slider::before {
  transform: translateX(22px);
}

/* ---------- ПРОГРЕСС-БАР ---------- */
.chtf_progress {
  height: 8px;
  background: var(--chtf-color-bg);
  border-radius: 4px;
  overflow: hidden;
}

.chtf_progress-bar {
  height: 100%;
  background: var(--chtf-color-primary);
  border-radius: 4px;
  transition: width 0.6s ease;
}

.chtf_progress-bar-green {
  background: var(--chtf-color-green);
}

.chtf_progress-bar-yellow {
  background: var(--chtf-color-yellow);
}

.chtf_progress-bar-blue {
  background: var(--chtf-color-blue);
}

/* ---------- ALERT (УВЕДОМЛЕНИЯ) ---------- */
.chtf_alert {
  padding: 1rem 1.25rem;
  border-radius: var(--chtf-border-radius);
  border-left: 4px solid transparent;
  margin-bottom: 1rem;
}

.chtf_alert-primary {
  background: rgba(231, 65, 36, 0.08);
  border-color: var(--chtf-color-primary);
  color: var(--chtf-color-primary);
}

.chtf_alert-secondary {
  background: rgba(55, 64, 31, 0.08);
  border-color: var(--chtf-color-secondary);
  color: var(--chtf-color-secondary);
}

.chtf_alert-success {
  background: rgba(117, 184, 67, 0.08);
  border-color: var(--chtf-color-green);
  color: var(--chtf-color-green);
}

.chtf_alert-warning {
  background: rgba(252, 190, 12, 0.08);
  border-color: var(--chtf-color-yellow);
  color: #b8860b;
}

.chtf_alert-danger {
  background: rgba(231, 65, 36, 0.08);
  border-color: var(--chtf-color-red);
  color: var(--chtf-color-red);
}

/* ============================================================
   СПЕЦИАЛЬНЫЕ СТИЛИ ДЛЯ МАКЕТА
   ============================================================ */

/* ----- ШАПКА (150px) ----- */
.chtf_header {
  height: 150px;
  background: #fff;
  border-bottom: 2px solid var(--chtf-color-bg);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--chtf-shadow-sm);
}
.chtf_header .chtf_container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Логотип с прозрачным фоном */
.chtf_logo {
  width: 496px;
  height: 100px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  border-radius: var(--chtf-border-radius);
  overflow: hidden;
  transition: all var(--chtf-transition);
}
.chtf_logo img {
  /*width: 100%;*/
  height: 50%;
/*  object-fit: contain;
  display: block;*/
}
.chtf_logo:hover {
/*    transform: scale(1.02);
    box-shadow: var(--chtf-shadow);*/
}

/* Правая часть шапки */
.chtf_header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  position: relative;
}

/* Десктопная навигация (скрыта, так как гамбургер всегда видим) */
.chtf_nav-desktop {
  display: none;
}

/* ----- ГАМБУРГЕР (всегда видим, по умолчанию свернут) ----- */
.chtf_hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  border: none;
  background: none;
  transition: all var(--chtf-transition);
  border-radius: var(--chtf-border-radius);
}
.chtf_hamburger:hover {
  background: rgba(231, 65, 36, 0.05);
}
.chtf_hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--chtf-color-secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.chtf_hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.chtf_hamburger.active span:nth-child(2) {
  opacity: 0;
}
.chtf_hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ----- МОБИЛЬНОЕ МЕНЮ (всегда свернуто по умолчанию) ----- */
.chtf_mobile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  padding: 1.5rem 2rem;
  box-shadow: var(--chtf-shadow-lg);
  border-radius: var(--chtf-border-radius);
  border: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 999;
  min-width: 200px;
  animation: chtf_fadeInUp 0.3s ease;
}
.chtf_mobile-menu.open {
  display: block;
}
.chtf_mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.chtf_mobile-menu ul li {
  margin-bottom: 1rem;
}
.chtf_mobile-menu ul li:last-child {
  margin-bottom: 0;
}
.chtf_mobile-menu .chtf_nav-link {
  font-family: var(--chtf-font-semibold);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--chtf-color-secondary);
  display: block;
  padding: 0.5rem 0;
  transition: all var(--chtf-transition);
  border-bottom: 2px solid transparent;
}
.chtf_mobile-menu .chtf_nav-link:hover {
  color: var(--chtf-color-primary);
  border-bottom-color: var(--chtf-color-primary);
}

/* ----- СЛАЙДЕР (600px) ----- */
.chtf_slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--chtf-color-bg);
}
.chtf_slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.chtf_slider-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
}
.chtf_slider-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}
.chtf_slider-slide .chtf_slide-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  color: #fff;
}
.chtf_slider-slide .chtf_slide-content h2 {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.chtf_slider-slide .chtf_slide-content p {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  font-size: 1.25rem;
}

/* Индикаторы слайдера */
.chtf_slider-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 2;
}
.chtf_slider-indicators button {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  cursor: pointer;
  transition: all var(--chtf-transition);
  padding: 0;
}
.chtf_slider-indicators button.active {
  background: var(--chtf-color-primary);
  border-color: var(--chtf-color-primary);
  transform: scale(1.25);
}
.chtf_slider-indicators button:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
}
.chtf_slider-indicators button.active:hover {
  transform: scale(1.25);
  background: var(--chtf-color-primary);
}

/* Стрелки слайдера */
.chtf_slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all var(--chtf-transition);
  box-shadow: var(--chtf-shadow);
  color: var(--chtf-color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  pointer-events: auto;
}
.chtf_slider-arrow:hover {
  background: #fff;
  box-shadow: var(--chtf-shadow-lg);
  transform: translateY(-50%) scale(1.05);
}
.chtf_slider-arrow.prev {
  left: 1.5rem;
}
.chtf_slider-arrow.next {
  right: 1.5rem;
}

/* ----- БЛОК 2: ТРИ КОЛОНКИ ----- */
.chtf_features {
  padding: 4rem 0;
  background: var(--chtf-color-bg);
}
.chtf_features .chtf_feature-card {
  text-align: center;
  padding: 2.5rem 2rem;
  height: 100%;
  background: #fff;
  border-radius: var(--chtf-border-radius-lg);
  box-shadow: var(--chtf-shadow-sm);
  transition: all var(--chtf-transition);
  border-top: 4px solid transparent;
}
.chtf_features .chtf_feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--chtf-shadow-lg);
}
.chtf_features .chtf_feature-card h3 {
  margin: 0;
  font-size: 1.3rem;
}
.chtf_features .chtf_feature-card .chtf_icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}
.chtf_feature-card-primary {
  border-top-color: var(--chtf-color-primary);
}
.chtf_feature-card-green {
  border-top-color: var(--chtf-color-green);
}
.chtf_feature-card-yellow {
  border-top-color: var(--chtf-color-yellow);
}

/* ----- СЛАЙДЕР КНИГ ----- */
.chtf_book-slider-section {
  padding: 4rem 0;
  background: #fff;
}
.chtf_book-slider-section .chtf_section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.chtf_book-slider {
  position: relative;
  overflow: hidden;
  padding: 0.5rem 0;
}
.chtf_book-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- ОСНОВНЫЕ СТИЛИ КАРТОЧКИ ----- */
.chtf_book-card {
  min-width: 220px;
  flex: 0 0 220px;
  text-align: center;
  background: #fff;
  border-radius: var(--chtf-border-radius-lg);
  padding: 1rem 1rem 1.5rem;
  box-shadow: var(--chtf-shadow-sm);
  transition: all var(--chtf-transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
}
.chtf_book-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--chtf-shadow-lg);
}

/* Обложка книги — cover с центрированием */
.chtf_book-card .chtf_book-cover {
  width: 100%;
  height: 300px;
  background: var(--chtf-color-bg);
  border-radius: var(--chtf-border-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  position: relative;
}
.chtf_book-card .chtf_book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.chtf_book-card .chtf_book-title {
  font-family: var(--chtf-font-semibold);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--chtf-color-secondary);
}
.chtf_book-card .chtf_book-author {
  font-size: 0.85rem;
  color: #6c757d;
}

/* ----- СТРЕЛКИ КНИЖНОГО СЛАЙДЕРА ----- */
.chtf_book-slider .chtf_slider-arrow {
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.95);
  z-index: 10;
  pointer-events: auto;
}
.chtf_book-slider .chtf_slider-arrow.prev {
  left: -0.5rem;
}
.chtf_book-slider .chtf_slider-arrow.next {
  right: -0.5rem;
}

/* ============================================================
   BOOKSLIDER — МОБИЛЬНАЯ ВЕРСИЯ (весь экран)
   ============================================================ */

@media (max-width: 768px) {
  .chtf_book-card {
    min-width: 100%;
    flex: 0 0 100%;
    padding: 0.75rem;
    border-radius: 0;
    box-shadow: none;
  }
  
  .chtf_book-card .chtf_book-cover {
    height: 280px;
  }
  
  .chtf_book-card .chtf_book-title {
    font-size: 1.1rem;
  }
  
  .chtf_book-card .chtf_book-author {
    font-size: 0.9rem;
  }
  
  .chtf_book-slider {
    padding: 0 0.5rem;
  }
  
  .chtf_book-track {
    gap: 0;
  }
  
  .chtf_book-slider .chtf_slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--chtf-shadow);
  }
  
  .chtf_book-slider .chtf_slider-arrow.prev {
    left: 0.5rem;
  }
  
  .chtf_book-slider .chtf_slider-arrow.next {
    right: 0.5rem;
  }
  .chtf_mobile-menu {
    top: calc(100% + 8px);
  }
}

@media (max-width: 480px) {
  .chtf_book-card .chtf_book-cover {
    height: 220px;
  }
  
  .chtf_book-card {
    padding: 0.5rem;
  }
  
  .chtf_book-slider .chtf_slider-arrow {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }
}

/* ----- ПОДВАЛ ----- */
.chtf_footer {
  background: var(--chtf-color-secondary);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 2rem;
  margin-top: 0;
}
.chtf_footer h4 {
  color: #fff;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  font-family: var(--chtf-font-semibold);
  font-weight: 600;
}
.chtf_footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all var(--chtf-transition);
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--chtf-font-regular);
}
.chtf_footer a:hover {
  color: var(--chtf-color-yellow);
  transform: translateX(4px);
}
.chtf_footer p {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
}
.chtf_footer .chtf_social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--chtf-border-radius);
  transition: all var(--chtf-transition);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.chtf_footer .chtf_social-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateX(4px);
  border-color: rgba(255, 255, 255, 0.1);
}
.chtf_footer .chtf_social-icon {
  font-size: 1.5rem;
}
.chtf_footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.5;
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */

/* Планшеты и маленькие ноутбуки */
@media (max-width: 1200px) {
  .chtf_logo {
    width: 350px;
    height: 70px;
  }
  .chtf_logo img {
    height: 50%;
  }
}

@media (max-width: 992px) {
  .chtf_header {
    height: 120px;
  }
  .chtf_logo {
    width: 280px;
    height: 56px;
  }
  .chtf_logo img {
    height: 50%;
  }
  .chtf_slider {
    height: 450px;
  }
  .chtf_slider-slide .chtf_slide-content h2 {
    font-size: 2.2rem;
  }
  .chtf_book-card {
    min-width: 180px;
    flex: 0 0 180px;
  }
  .chtf_book-card .chtf_book-cover {
    height: 240px;
  }
  .chtf_mobile-menu {
/*    top: 120px;*/
  }
  .chtf_slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* Мобильные устройства */
@media (max-width: 768px) {
  .chtf_header {
    height: 80px;
  }
  .chtf_logo {
    width: 160px;
    height: 32px;
  }
  .chtf_logo img {
    height: 50%;
  }
  .chtf_header-actions .chtf_btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  .chtf_header-actions {
    gap: 0.5rem;
  }
  .chtf_slider {
    height: 350px;
  }
  .chtf_slider-slide .chtf_slide-content h2 {
    font-size: 1.6rem;
  }
  .chtf_slider-slide .chtf_slide-content p {
    font-size: 1rem;
  }
  .chtf_slider-indicators button {
    width: 10px;
    height: 10px;
  }
  .chtf_slider-arrow {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  .chtf_slider-arrow.prev {
    left: 0.5rem;
  }
  .chtf_slider-arrow.next {
    right: 0.5rem;
  }
  .chtf_features {
    padding: 2.5rem 0;
  }
  .chtf_features .chtf_feature-card {
    padding: 1.5rem 1rem;
  }
  .chtf_features .chtf_feature-card h3 {
    font-size: 1.1rem;
  }
  .chtf_book-slider-section {
    padding: 2.5rem 0;
  }
  .chtf_footer {
    padding: 2rem 0 1.5rem;
  }
  .chtf_footer .chtf_row>div {
    margin-bottom: 1.5rem;
  }
  .chtf_footer .chtf_row>div:last-child {
    margin-bottom: 0;
  }
  .chtf_mobile-menu {
    /*top: 80px;*/
    padding: 1rem 1.5rem;
  }
  .chtf_mobile-menu .chtf_nav-link {
    font-size: 1rem;
  }
  .chtf_hamburger span {
    width: 24px;
    height: 2.5px;
  }
}

/* Маленькие мобильные */
@media (max-width: 480px) {
  .chtf_logo {
    width: 120px;
    height: 45px;
  }
  .chtf_logo img {
    height: 50%;
  }
  .chtf_header-actions .chtf_btn {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }
  .chtf_slider {
    height: 280px;
  }
  .chtf_slider-slide .chtf_slide-content h2 {
    font-size: 1.2rem;
  }
  .chtf_slider-slide .chtf_slide-content p {
    font-size: 0.85rem;
  }
  .chtf_features .chtf_feature-card {
    padding: 1rem 0.75rem;
  }
  .chtf_features .chtf_feature-card h3 {
    font-size: 0.95rem;
  }
  .chtf_features .chtf_feature-card .chtf_icon {
    font-size: 2rem;
  }
  .chtf_footer h4 {
    font-size: 1rem;
  }
}

/* Позиционирование мобильного меню */
@media (min-width: 480px) {
  .chtf_mobile-menu {
    right: 6%;
  }
}
@media (min-width: 990px) {
  .chtf_mobile-menu {
    right: 6%;
  }
}
@media (min-width: 1200px) {
  .chtf_mobile-menu {
    right: 6%;
  }
}
@media (min-width: 1400px) {
  .chtf_mobile-menu {
    right: 6%;
  }
}
@media (min-width: 1600px) {
  .chtf_mobile-menu {
    right: 12%;
  }
}
a {
    color: var(--chtf-color-primary);
}

@media (min-width: 990px) {
    .chtf_min_height{
        min-height: 54vh;
    }
}