/* ==========================
   СТРУКТУРНЫЕ СТИЛИ ГЛАВНОЙ СТРАНИЦЫ
   Без цветов и фоновых изображений
   ========================== */

/* ==========================
   Универсальный layout
   ========================== */

.home-page-root .container {
  max-width: 1365px;
  width: 100%;
}

/* Общие «плиточные» панели */
.home-panel {
  border-radius: 1rem;
  padding: 1rem;
}

@media (min-width: 992px) {
  .home-panel {
    padding: 1.15rem 1.25rem;
  }
}

@media (min-width: 2560px) {
  .home-page-root .container {
    max-width: 1765px; 
  }
}
/* Общие заголовки / подписи */
.home-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.home-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.home-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .75rem;
}

.home-link-more {
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}

/* Универсальные ellipsis-утилиты */
.home-ellipsis-one {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-ellipsis-two {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Тонкий отступ между большими секциями */
.home-section-gap {
  margin-top: 1rem;
}

@media (min-width: 992px) {
  .home-section-gap {
    margin-top: 1.25rem;
  }
}

/* ==========================
   HERO: Основная структура
   ========================== */

.home-hero-wrap {
  padding-top: 1rem;
  padding-bottom: 1.5rem;
}

.home-hero {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Основная плитка hero */
.home-hero-surface {
  border-radius: 1.1rem;
}

.home-hero-surface-row {
  --bs-gutter-x: .5rem;
  --bs-gutter-y: .5rem;
  align-items: stretch;
}

@media (min-width: 992px) {
  .home-hero-surface-row {
    --bs-gutter-x: .75rem;
    --bs-gutter-y: .75rem;
    align-items: stretch;
  }
}

/* ==========================
   Левая плитка: барабан услуг
   ========================== */

.home-hero-services-shell {
  position: relative;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
}

/* Делаем квадрат */
.home-hero-services-shell::before {
  content: "";
  display: block;
  padding-top: 100%;
}

/* Внутренний контент */
.home-hero-services-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (min-width: 992px) {
  .home-hero-services-inner {
    padding: 0.9rem;
  }
}

/* Заголовок "мы это" */
.home-hero-services-header {
  font-size: 3rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

/* Окно барабана */
.home-hero-services-viewport {
  position: relative;
  flex: 1;
  width: 100%;
  overflow: hidden;
}

/* Сцена с пунктами */
.home-hero-services-list {
  position: relative;
  width: 100%;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Один пункт барабана */
.home-hero-services-item {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(1.7rem, 2vw + 1.4rem, 2.8rem);
  font-weight: 700;
  max-width: 90%;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  padding: 0.25rem 0.5rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  will-change: transform, opacity, filter;
  opacity: 0;
  transition:
    transform 420ms ease,
    opacity 420ms ease,
    filter 420ms ease,
    text-shadow 420ms ease;
}

/* Внутренний span */
.home-hero-services-label {
  display: block;
  padding: 0.25rem 0.9rem;
  letter-spacing: 0.08em;
  word-spacing: 0.25em;
  line-height: 1.1;
}

/* Классы состояний барабана */
.home-hero-services-item--active {
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1.18) !important;
}

.home-hero-services-item--near {
  opacity: 0.3 !important;
  filter: blur(0.6px) !important;
}

.home-hero-services-item--far {
  opacity: 0.08 !important;
  filter: blur(2.2px) !important;
}

/* Правая колонка hero */
.home-hero-right {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  height: 100%;
}

.home-hero-panel-main,
.home-hero-bottom-row {
  flex: 1 1 0;
  min-height: 0;
}

/* Блок с основным заголовком */
.home-hero-panel-main {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  padding: 2rem 1.6rem !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Кикер */
.home-hero-kicker-main {
  font-size: 1.05rem !important;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

/* Основной заголовок */
.home-hero-title {
  font-size: 2.2rem !important;
  line-height: 1.15;
  font-weight: 750;
  margin-bottom: 1rem !important;
}

/* Подзаголовок */
.home-hero-lead {
  font-size: 1.25rem !important;
  line-height: 1.32;
}

/* Нижний ряд hero */
.home-hero-bottom-row {
  --bs-gutter-x: .5rem;
  --bs-gutter-y: .5rem;
}

@media (min-width: 992px) {
  .home-hero-bottom-row {
    --bs-gutter-x: .75rem;
    --bs-gutter-y: .75rem;
  }
}

/* Колонки нижнего ряда */
.home-hero-bottom-row > [class^="col-"],
.home-hero-bottom-row > [class*=" col-"] {
  display: flex;
}

/* Панели нижнего ряда */
.home-hero-panel {
  border-radius: 1rem;
  padding: .9rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 auto;
}

@media (min-width: 992px) {
  .home-hero-panel {
    padding: 1rem;
  }
}

/* Цифра недели */
.home-hero-panel-week {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center !important;
  align-items: center;
  text-align: center;
  padding: 1.4rem 1rem;
}

.home-hero-panel-week .home-hero-chip-label {
  font-weight: 700;
}

.home-hero-chip-value {
  font-size: 2.65rem !important;
  font-weight: 750;
  line-height: 1.1;
  transform-origin: center;
  animation: home-week-pulse 3s ease-in-out infinite;
}

@keyframes home-week-pulse {
  0% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(0,0,0,0);
  }
  50% {
    transform: scale(1.03);
    text-shadow: 0 0 14px rgba(0,0,0,0.25);
  }
  100% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(0,0,0,0);
  }
}

/* Статьи и исследования */
.home-hero-panel-articles {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  padding: 1.05rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* прогресс-бар */
.home-hero-articles-progress {
  position: relative;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.home-hero-articles-progress > div {
  position: absolute;
  inset: 0;
  width: 0;
}

/* строка с заголовком и стрелками */
.home-hero-panel-articles > .d-flex.justify-content-between.align-items-center {
  margin-bottom: 0.5rem !important;
}

/* заголовок */
.home-hero-panel-articles .home-hero-chip-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0;
}

/* навигация по статьям */
.home-hero-articles-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.home-hero-articles-nav {
  border-radius: 999px;
  width: 1.7rem;
  height: 1.7rem;
  font-size: 0.9rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* трек с карточками статей */
.home-hero-articles-track {
  position: relative;
}

/* карточка статьи */
.home-hero-article-card {
  display: none;
}

.home-hero-article-card.is-visible {
  display: block;
}

/* текст статьи */
.home-hero-panel-articles .home-hero-article-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.home-hero-article-desc {
  font-size: 0.9rem;
}

/* Центровка блока статей */
.home-hero-panel-articles .home-hero-chip-label {
  flex: 1;
  text-align: center;
  font-size: 1rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.home-hero-articles-controls {
  flex-shrink: 0;
}

.home-hero-article-title {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 1.35rem !important;
  line-height: 1.28;
  margin-bottom: 0.5rem;
}

.home-hero-article-desc {
  text-align: center;
  font-size: 1.05rem !important;
  line-height: 1.32;
  margin-top: 0.2rem;
}

.home-hero-panel-articles {
  padding-top: 1.2rem !important;
  padding-bottom: 1.2rem !important;
}

/* Вертикальное центрирование статей */
.home-hero-panel-articles .home-hero-articles-track {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-hero-panel-articles .home-hero-article-card {
  display: none;
  text-align: center;
}

.home-hero-panel-articles .home-hero-article-card.is-visible {
  display: block;
}

/* ==========================
   Новости
   ========================== */

.home-news-strip {
  border-radius: 1rem;
  padding: 0.9rem 1.1rem;
  position: relative;
  overflow: hidden;
}

/* Внутренний трек */
.home-news-strip-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  transform: translateX(0);
  transition: transform 0.5s ease;
}

/* Карточка новости */
.home-news-strip-item {
  flex: 0 0 100%;
  padding: 0.75rem 1rem;
  text-align: center;
}

/* Стили для мобильной прокрутки (3 новости) */
@media (min-width: 768px) {
  .home-news-strip-item {
    flex: 0 0 calc(100% / 3);
  }
}

/* Текстовые элементы новостей */
.home-news-strip .small.text-muted,
.home-news-strip-title,
.home-news-strip-title a,
.home-news-strip-item p.small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}

/* Снимаем двухстрочный clamp */
.home-news-strip .home-ellipsis-two {
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}

/* Заголовок новости */
.home-news-strip-title a {
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.home-news-strip-title a:hover {
  text-decoration: underline;
}

/* Метка даты/темы */
.home-news-strip .small.text-muted {
  font-size: 0.8rem;
}

/* Отступ под заголовком блока */
.home-news-strip .home-section-header {
  margin-bottom: 0.35rem;
}

/* ==========================
   Визуализация (дашборд)
   ========================== */

.home-dashboard-tile {
  border-radius: 1rem;
  padding: 0.9rem 0.95rem 1rem;
}

@media (min-width: 992px) {
  .home-dashboard-tile {
    padding: 1rem 1.1rem 1.1rem;
  }
}

.home-dashboard-frame {
  border-radius: 0.9rem;
  overflow: hidden;
}

/* ==========================
   Три горизонтальных блока
   ========================== */

.home-grid-row {
  --bs-gutter-x: .75rem;
  --bs-gutter-y: .75rem;
}

/* Плитки отчётов/калькуляторов/справочников */
.home-tile {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  padding: 1.1rem 1.2rem 1.2rem;
}

@media (min-width: 992px) {
  .home-tile {
    padding: 1rem 1.1rem 1.1rem;
  }
}

.home-tile-header {
  margin-bottom: 0.6rem;
}

/* Список отчётов */
.home-list-group-slim .list-group-item {
  padding: 0.45rem 0;
  border: none;
}

.home-list-group-slim .list-group-item + .list-group-item {
  border-top: 1px dashed rgba(148, 163, 184, 0.35);
}

/* Строка калькулятора */
.home-calculator-line {
  border-radius: 0.6rem;
  padding: 0.4rem 0.35rem;
}

/* ==========================
   Блок карты
   ========================== */

/* Обёртка карты */
.home-map-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: .9rem;
}

#home-map {
  width: 100%;
  height: 360px;
}

@media (min-width: 992px) {
  #home-map {
    height: 420px;
  }
}

/* ==========================
   Блок "Связаться с нами"
   ========================== */

.home-about-strip {
  border-radius: 1rem;
  padding: 1.2rem 1.35rem !important;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

/* Текст */
.home-about-text {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
}

/* Кнопка */
.home-about-actions .btn {
  font-size: 0.95rem;
  padding: 0.55rem 1.45rem;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.2s ease;
}

@media (min-width: 768px) {
  .home-about-strip {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ==========================
   Универсальные общие стили
   ========================== */

/* Все заголовки */
.home-section-title,
.home-hero-title,
.home-news-strip-title a,
.home-hero-chip-label,
.home-tile-header h2,
.home-about-text strong {
  font-family: inherit;
  font-weight: 750;
  letter-spacing: 0.02em;
}

/* Размеры заголовков */
.home-section-title {
  font-size: 1.25rem !important;
}

.home-hero-title {
  font-size: 2.35rem !important;
  line-height: 1.18;
}

.home-kicker,
.home-hero-chip-label {
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  opacity: 0.95;
}

.home-news-strip-title a {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
}

/* Заголовки внутри плиток */
.home-tile .fw-semibold,
.home-tile .home-ellipsis-one {
  font-weight: 700;
}

/* Заголовки внутри панели Статей */
.home-hero-panel-articles .home-hero-chip-label {
  font-size: 1rem !important;
}

/* Hover-эффекты */
a.home-section-title:hover,
.home-news-strip-title a:hover,
.home-tile a:hover {
  text-decoration: underline;
}

/* ==========================
   Общий каркас для всех плиток
   ========================== */

/* Все плиточные блоки */
.home-tile,
.home-news-strip,
.home-dashboard-tile,
#home-map-section .home-tile,
.home-about-strip {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

/* Отступы */
.home-news-strip {
  padding: 0.9rem 1.1rem;
}

#home-map-section .home-tile {
  padding: 1.1rem 1.2rem 1.2rem;
}

.home-about-strip {
  padding: 1.1rem 1.3rem !important;
}

/* Контент над стеклом (если будет) */
.home-news-strip > *,
.home-dashboard-tile > *,
#home-map-section .home-tile > *,
.home-about-strip > * {
  position: relative;
  z-index: 2;
}

/* Чуть мягче текст внутри */
.home-news-strip *,
.home-dashboard-tile *,
#home-map-section .home-tile *,
.home-about-strip * {
  /* цвет шрифта будет задан отдельно */
}


/* ==========================
   ЕДИНЫЙ ВИЗУАЛЬНЫЙ СТИЛЬ ДЛЯ ВСЕХ БЛОКОВ
   Закругленные рамки, сероватый фон, эффект парения
   ========================== */

/* Базовые стили для всех плиток */
.home-panel,
.home-hero-surface,
.home-hero-services-shell,
.home-hero-panel-main,
.home-hero-panel,
.home-hero-panel-week,
.home-hero-panel-articles,
.home-news-strip,
.home-dashboard-tile,
.home-tile,
.home-about-strip,
#home-map-section .home-tile,
.home-calculator-line,
.home-hero-articles-nav {
  /* Фон */
  background-color: rgba(248, 250, 252, 0.85) !important;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.8) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.6) 0%, transparent 50%);
  
  /* Границы */
  border: 1px solid rgba(226, 232, 240, 0.7) !important;
  border-radius: 1rem !important;
  
  /* Эффект парения */
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03),
    0 1px 3px 0 rgba(0, 0, 0, 0.02),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1) !important;
  
  /* Плавные переходы для интерактивности */
  transition: all 0.3s ease-in-out !important;
}

/* Усиленный эффект парения при наведении */
.home-panel:hover,
.home-hero-surface:hover,
.home-hero-services-shell:hover,
.home-hero-panel-main:hover,
.home-hero-panel:hover,
.home-hero-panel-week:hover,
.home-hero-panel-articles:hover,
.home-news-strip:hover,
.home-dashboard-tile:hover,
.home-tile:hover,
.home-about-strip:hover,
#home-map-section .home-tile:hover {
  transform: translateY(-2px) !important;
  box-shadow: 
    0 10px 15px -3px rgba(0, 0, 0, 0.08),
    0 4px 6px -2px rgba(0, 0, 0, 0.05),
    0 1px 3px 0 rgba(0, 0, 0, 0.03),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(203, 213, 225, 0.9) !important;
}

/* Активные состояния для интерактивных элементов */
.home-hero-articles-nav:active,
.home-hero-articles-nav:hover,
.home-calc-open-btn:hover,
.btn-outline-dark:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.1) !important;
}

/* Специфичные настройки для разных блоков */

/* Герой-блоки */
.home-hero-surface {
  background-color: rgba(241, 245, 249, 0.9) !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
}

.home-hero-panel-main {
  background-color: rgba(248, 250, 252, 0.9) !important;
  border: 1px solid rgba(226, 232, 240, 0.75) !important;
}

/* Блок "Цифра недели" - легкий акцент */
.home-hero-panel-week {
  background-color: rgba(240, 249, 255, 0.9) !important;
  border: 1px solid rgba(186, 230, 253, 0.7) !important;
  animation: home-week-float 3s ease-in-out infinite;
}

@keyframes home-week-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Блок статей и исследований */
.home-hero-panel-articles {
  background-color: rgba(255, 251, 235, 0.85) !important;
  border: 1px solid rgba(253, 230, 138, 0.6) !important;
}

/* Новостная лента */
.home-news-strip {
  background-color: rgba(248, 250, 252, 0.9) !important;
  border: 1px solid rgba(226, 232, 240, 0.75) !important;
}

/* Дашборд */
.home-dashboard-tile {
  background-color: rgba(248, 250, 252, 0.9) !important;
  border: 1px solid rgba(226, 232, 240, 0.75) !important;
}

/* Три горизонтальных блока */
.home-tile {
  background-color: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
}

/* Блок "Связаться с нами" */
.home-about-strip {
  background-color: rgba(240, 249, 255, 0.9) !important;
  border: 1px solid rgba(186, 230, 253, 0.7) !important;
}

/* Строка калькулятора */
.home-calculator-line {
  background-color: rgba(248, 250, 252, 0.7) !important;
  border: 1px solid rgba(226, 232, 240, 0.6) !important;
  border-radius: 0.6rem !important;
}

.home-calculator-line:hover {
  background-color: rgba(241, 245, 249, 0.9) !important;
  border-color: rgba(203, 213, 225, 0.8) !important;
}

/* Кнопки навигации в статьях */
.home-hero-articles-nav {
  background-color: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.05) !important;
}

.home-hero-articles-nav:hover {
  background-color: rgba(248, 250, 252, 0.95) !important;
  border-color: rgba(148, 163, 184, 0.6) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08) !important;
}

/* Прогресс-бар в статьях */
.home-hero-articles-progress {
  background-color: rgba(226, 232, 240, 0.5) !important;
  border-radius: 999px !important;
}

.home-hero-articles-progress > div {
  background-color: rgba(59, 130, 246, 0.7) !important;
  border-radius: 999px !important;
}

/* Внутренний контейнер карты */
.home-map-wrapper {
  border-radius: 0.9rem !important;
  overflow: hidden !important;
  border: 1px solid rgba(226, 232, 240, 0.7) !important;
  box-shadow: 
    inset 0 2px 4px 0 rgba(0, 0, 0, 0.05),
    0 1px 2px 0 rgba(0, 0, 0, 0.03) !important;
}

/* Адаптивность теней для мобильных устройств */
@media (max-width: 768px) {
  .home-panel,
  .home-hero-surface,
  .home-hero-services-shell,
  .home-hero-panel-main,
  .home-hero-panel,
  .home-hero-panel-week,
  .home-hero-panel-articles,
  .home-news-strip,
  .home-dashboard-tile,
  .home-tile,
  .home-about-strip {
    box-shadow: 
      0 2px 4px -1px rgba(0, 0, 0, 0.04),
      0 1px 2px -1px rgba(0, 0, 0, 0.02),
      inset 0 1px 0 0 rgba(255, 255, 255, 0.1) !important;
  }
  
  .home-panel:hover,
  .home-hero-surface:hover,
  .home-hero-services-shell:hover,
  .home-hero-panel-main:hover,
  .home-hero-panel:hover,
  .home-hero-panel-week:hover,
  .home-hero-panel-articles:hover,
  .home-news-strip:hover,
  .home-dashboard-tile:hover,
  .home-tile:hover,
  .home-about-strip:hover {
    transform: translateY(-1px) !important;
    box-shadow: 
      0 4px 6px -1px rgba(0, 0, 0, 0.06),
      0 2px 4px -1px rgba(0, 0, 0, 0.04),
      inset 0 1px 0 0 rgba(255, 255, 255, 0.15) !important;
  }
}

/* Состояние фокуса для доступности */
.home-panel:focus-within,
.home-tile:focus-within,
.home-hero-panel:focus-within {
  outline: 2px solid rgba(59, 130, 246, 0.5);
  outline-offset: 2px;
}



/* ==========================
   Статьи и исследования - ОСТАВЛЕНО БЕЗ ИЗМЕНЕНИЙ
   ========================== */

/* ==========================
   Новости - ОСТАВЛЕНО БЕЗ ИЗМЕНЕНИЙ
   ========================== */

/* ==========================
   Отчёты - ССЫЛКИ
   ========================== */

.home-list-group-slim .list-group-item {
  padding: 0.8rem 1rem !important;
  border: none !important;
  border-radius: 0.75rem !important;
  margin-bottom: 0.5rem;
  background-color: rgba(248, 250, 252, 0.7) !important;
  border: 1px solid rgba(226, 232, 240, 0.6) !important;
  box-shadow: 
    0 1px 3px 0 rgba(0, 0, 0, 0.04),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1) !important;
  transition: all 0.25s ease-in-out !important;
}

.home-list-group-slim .list-group-item:hover {
  background-color: rgba(241, 245, 249, 0.9) !important;
  border-color: rgba(203, 213, 225, 0.8) !important;
  transform: translateY(-1px) !important;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.07),
    0 2px 4px -1px rgba(0, 0, 0, 0.05) !important;
}

.home-list-group-slim .list-group-item + .list-group-item {
  border-top: 1px dashed rgba(148, 163, 184, 0.35) !important;
}

.home-list-group-slim .fw-semibold {
  font-weight: 700 !important;
  color: rgba(15, 23, 42, 0.95);
}

/* ==========================
   Справочники - ССЫЛКИ
   ========================== */

.home-tile .list-unstyled li {
  margin-bottom: 0.5rem !important;
}

.home-tile .list-unstyled li a {
  display: block;
  padding: 0.8rem 1rem !important;
  border-radius: 0.75rem !important;
  text-decoration: none;
  background-color: rgba(248, 250, 252, 0.7) !important;
  border: 1px solid rgba(226, 232, 240, 0.6) !important;
  box-shadow: 
    0 1px 3px 0 rgba(0, 0, 0, 0.04),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1) !important;
  transition: all 0.25s ease-in-out !important;
  color: rgba(15, 23, 42, 0.95);
}

.home-tile .list-unstyled li a:hover {
  background-color: rgba(241, 245, 249, 0.9) !important;
  border-color: rgba(203, 213, 225, 0.8) !important;
  transform: translateY(-1px) !important;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.07),
    0 2px 4px -1px rgba(0, 0, 0, 0.05) !important;
  text-decoration: none;
  color: rgba(15, 23, 42, 1);
}

/* ==========================
   Калькуляторы - обновлённые строки
   ========================== */

.home-calculator-line {
  border-radius: 0.85rem !important;
  padding: 0.9rem 1rem !important;
  background-color: rgba(248, 250, 252, 0.85) !important;
  border: 1px solid rgba(226, 232, 240, 0.7) !important;
  box-shadow: 
    0 2px 4px -1px rgba(0, 0, 0, 0.05),
    0 1px 2px -1px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1) !important;
  transition: all 0.25s ease-in-out !important;
  margin-bottom: 0.75rem !important;
}

.home-calculator-line:hover {
  background-color: rgba(241, 245, 249, 0.95) !important;
  border-color: rgba(203, 213, 225, 0.8) !important;
  transform: translateY(-2px) !important;
  box-shadow: 
    0 6px 10px -2px rgba(0, 0, 0, 0.08),
    0 3px 5px -1px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.15) !important;
}

/* Кнопка в калькуляторах */
.home-calc-open-btn {
  border-radius: 999px !important;
  padding: 0.35rem 1rem !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  border-width: 1.5px !important;
}

/* ==========================
   Адаптивность для мобильных устройств
   ========================== */

@media (max-width: 768px) {
  /* Ссылки в отчётах и справочниках на мобильных */
  .home-list-group-slim .list-group-item,
  .home-tile .list-unstyled li a {
    padding: 0.7rem 0.9rem !important;
    border-radius: 0.65rem !important;
  }
  
  /* Калькуляторы на мобильных */
  .home-calculator-line {
    padding: 0.8rem 0.9rem !important;
    border-radius: 0.75rem !important;
  }
  
  /* Уменьшаем эффект hover на мобильных */
  .home-list-group-slim .list-group-item:hover,
  .home-tile .list-unstyled li a:hover,
  .home-calculator-line:hover {
    transform: translateY(-1px) !important;
  }
}

/* ==========================
   Состояние фокуса для доступности
   ========================== */

.home-list-group-slim .list-group-item:focus-within,
.home-tile .list-unstyled li a:focus-within {
  outline: 2px solid rgba(59, 130, 246, 0.5);
  outline-offset: 2px;
}

/* ==========================
   Статьи и исследования - кликабельная карточка
   ========================== */

.home-hero-article-card {
  display: none;
  text-align: center;
  color: inherit;
  border-radius: 0.75rem;
  padding: 1rem;
  transition: all 0.25s ease-in-out;
}

.home-hero-article-card.is-visible {
  display: block;
}

.home-hero-article-card:hover {
  background-color: rgba(241, 245, 249, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.1);
}

.home-hero-article-card:active {
  transform: translateY(0);
}

/* Текст внутри ссылки */
.home-hero-article-card .home-hero-article-title {
  font-size: 1.35rem !important;
  line-height: 1.28;
  margin-bottom: 0.5rem;
  color: inherit;
  font-weight: 700;
}

.home-hero-article-card .home-hero-article-desc {
  text-align: center;
  font-size: 1.05rem !important;
  line-height: 1.32;
  margin-top: 0.2rem;
  color: inherit;
}

/* Отключение подчеркивания для всех текстов внутри */
.home-hero-article-card,
.home-hero-article-card * {
  text-decoration: none !important;
}

/* Курсор при наведении */
.home-hero-article-card:hover {
  cursor: pointer;
}

/* ==========================
   Новости - кликабельные карточки
   ========================== */

.home-news-strip-item {
  flex: 0 0 100%;
  padding: 1rem;
  text-align: center;
  color: inherit;
  border-radius: 0.85rem;
  margin: 0.25rem;
  transition: all 0.25s ease-in-out;
  display: block;
}

.home-news-strip-item:hover {
  background-color: rgba(241, 245, 249, 0.7);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px -3px rgba(0, 0, 0, 0.1);
}

.home-news-strip-item:active {
  transform: translateY(-1px);
}

/* Заголовок новости */
.home-news-strip-title {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: inherit;
  margin-bottom: 0.5rem;
}

/* Метка даты/темы */
.home-news-strip-item .small.text-muted {
  font-size: 0.85rem;
  color: inherit;
  opacity: 0.8;
}

/* Текст новости */
.home-news-strip-item p.small {
  color: inherit;
  opacity: 0.9;
  line-height: 1.4;
}

/* Отключение подчеркивания для всех текстов внутри */
.home-news-strip-item,
.home-news-strip-item * {
  text-decoration: none !important;
}

/* Курсор при наведении */
.home-news-strip-item:hover {
  cursor: pointer;
}

/* Для десктопа (3 новости в ряд) */
@media (min-width: 768px) {
  .home-news-strip-item {
    flex: 0 0 calc(100% / 3 - 0.5rem);
    padding: 1.2rem;
    margin: 0.25rem;
  }
  
  .home-news-strip-title {
    font-size: 1.15rem !important;
  }
}

/* Снимаем двухстрочный clamp для лучшей читаемости */
.home-news-strip-item .home-ellipsis-two {
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
}

/* Убираем стандартные стили ссылок */
.home-news-strip-item:focus {
  outline: 2px solid rgba(59, 130, 246, 0.5);
  outline-offset: 2px;
}

/* Для мобильных устройств - немного уменьшаем отступы */
@media (max-width: 767.98px) {
  .home-news-strip-item {
    padding: 0.9rem;
    margin: 0.15rem;
  }
  
  .home-news-strip-item:hover {
    transform: translateY(-2px);
  }
}

/* ==========================
   ЖЕЛТЫЕ АКЦЕНТЫ #febd26 - МИНИМАЛИСТИЧНЫЙ ОВЕРРАЙД
   ========================== */

/* 1. Кнопки навигации статей */
.home-hero-articles-nav {

    border-color: #febd26 !important;
    color: #222 !important;
}

.home-hero-articles-nav:hover {
    border-color: #febd26 !important;
    transform: translateY(-1px) !important;
}

/* 2. Кнопка открытия калькулятора */
.home-calc-open-btn {
    background-color: #febd26 !important;
    border-color: #febd26 !important;
    color: #222 !important;
}

.home-calc-open-btn:hover {
    background-color: #f5b511 !important;
    border-color: #febd26 !important;
}

/* 3. Кнопка "Связаться с нами" */
.home-about-actions .btn-outline-dark {
    background-color: #fdc407 !important;
    border-color: #febd26 !important;
    color: #222 !important;
}

.home-about-actions .btn-outline-dark:hover {
    background-color: #febd26 !important;
    border-color: #febd26 !important;
}

/* 4. Заголовки секций и кикеры */
.home-kicker {
    color: #febd26 !important;
}

.home-hero-chip-label {
    color: #febd26 !important;
}

.home-hero-kicker-main {
    color: #febd26 !important;
}

/* 5. Прогресс-бар статей */
.home-hero-articles-progress > div {
    background-color: #febd26 !important;
}



/* 7. Ссылки "Все новости →", "Все отчёты →" и т.д. */
.home-link-more {
    color: #febd26 !important;
}

.home-link-more:hover {
    color: #febd26 !important;
}

/* 8. Цифра недели - легкий желтый фон */
.home-hero-panel-week {
    background-color: rgba(255, 204, 0, 0.08) !important;
}

/* 9. Блок статей - легкий желтый фон */
.home-hero-panel-articles {
    background-color: rgba(255, 204, 0, 0.05) !important;
}

/* 10. Пульсация цифры недели с желтым оттенком */
@keyframes home-week-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
        color: #222 !important;
    }
    100% {
        transform: scale(1);
    }
}

.home-hero-chip-value {
    animation: home-week-pulse 3s ease-in-out infinite;
}

/* 11. Блок связаться с нами - легкий желтый фон */
.home-about-strip {
    background-color: rgba(255, 204, 0, 0.08) !important;
}

/* 12. Элементы списков при наведении */
.home-list-group-slim .list-group-item:hover,
.home-tile .list-unstyled li a:hover {
    border-left: 3px solid #febd26 !important;
}

/* 13. Линия калькулятора при наведении */
.home-calculator-line:hover {
    border-left: 3px solid #febd26 !important;
}

/* ==========================
   МОБИЛЬНЫЕ КОРРЕКЦИИ
   ========================== */
@media (max-width: 768px) {
    .home-list-group-slim .list-group-item:hover,
    .home-tile .list-unstyled li a:hover,
    .home-calculator-line:hover {
        border-left-width: 2px !important;
    }
}
.home-hero-panel-week,
.home-hero-panel-articles {
  background-color: rgba(255, 204, 0, 0.07) !important;
  border: 1px solid rgba(254, 189, 38, 0.45) !important;

  box-shadow:
    0 4px 8px -2px rgba(0, 0, 0, 0.06),
    0 2px 4px -2px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}