@font-face {
  font-family: 'montserrat';
  src: url('../fonts/montserrat-regular-webfont.woff2') format('woff2'), url('../fonts/montserrat-regular-webfont.woff') format('woff');
}
@font-face {
  font-family: 'montserratbold';
  src: url('../fonts/montserrat-bold-webfont.woff2') format('woff2'), url('../fonts/montserrat-bold-webfont.woff') format('woff');
}

:root {
  --body-color: #e5e5e5;
  --txt-color-dark: #333;
  --txt-color-light: #fff;
  --txt-color-church: #025b79;
  --time-lag: 5000ms
}

#highlighted-link {
  background-color: var(--txt-color-church); 
  color: white;
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;  /* убирает подчеркивание */
  display: inline-block;  /* чтобы padding работал корректно */
}


* {
  box-sizing: border-box;
}

span {
  color: #cacaca;
}

section {
  margin-bottom: 100px;
}

body {
  background-color: #e5e5e5
}

h1 {
  margin-bottom: 28px;
  font-family: 'hirmos', sans-serif;
  font-size: 48px;
  font-weight: normal;
  color: #025b79;
}

h2 {
  margin: 0px;
  font-family: 'hirmosuncluttered', sans-serif;
  font-size: 24px;
  font-weight: normal;
  color: #025b79;
}

h3 {
  margin: 0px;
  font-family: 'hirmosuncluttered', sans-serif;
  font-size: 12px;
  font-weight: normal;
  color: #025b79;
}


p {
  margin: 0;
  font-family: 'hirmos', sans-serif;
  font-size: 16px;
  line-height: 20px;
}

a {
  text-decoration: none;
  font-family: 'hirmos', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #025b79;
}

.container {
  margin-left: auto;
  margin-right: auto;
  padding: 14px 75px 50px 75px;
  max-width: 1400px;
  min-width: 1100px;
  background-color: white;
}

/* Text style */

.text {
  font-family: 'montserrat', sans-serif;
  font-weight: 350;
  line-height: 30px;
}

.text::first-letter {
  font-family: 'hirmos', sans-serif;
  font-size: 30px;
  font-weight: 600;
  margin-left: 10px;
  color: red;
}

.text-block {
  display: flex;
  justify-content: left;
  padding-top: 60px;
}

/* Header */


.header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  margin-bottom: 14px;
}

.caption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.ul-header {
  display: flex;
  justify-content: center;
  margin-top: 14px;
  padding: 28px 0px 0px 0px;
  max-width: 1085px;
  list-style: none;
  border-top: 3px solid var(--txt-color-church);
}


/* Mennu */

.li-padding {
margin-bottom: 15px;
}

.list-item:not(:last-child) {
  margin-right: 40px;
}

.menu-item{
  position: relative;
}

.menu-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #025b79;
  transform: scaleX(0);
  transition: transform 0.3s;
}

.menu-item:hover {
  cursor: pointer;
}

.menu-item:hover::after {
  transform: scale(1);
}

.page {
  display: flex;
}

.left-margin {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin-right: 50px;
  padding-right: 10px;
  border: transparent solid 5px;
  border-right-color: #025b79;
}

/* ========================================
   ИСПРАВЛЕННЫЕ АДАПТИВНЫЕ СТИЛИ
   Заменить предыдущие адаптивные стили в style.css
======================================== */

/* Базовые стили для табов */
.page {
  display: none;
}

.page:first-child {
  display: block;
}

.list-item.active .menu-item {
  background-color: rgba(2, 91, 121, 0.3);
  font-weight: bold;
  border-radius: 6px;
  color: white;
}

/* Стили для статистики */
.stats-container {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 15px 0;
  border: 1px solid #e0e0e0;
}

.stats-summary {
  margin-bottom: 20px;
  padding: 15px;
  background: white;
  border-radius: 6px;
  border-left: 4px solid var(--txt-color-church);
}

.stats-summary p {
  margin: 8px 0;
  font-size: 16px;
  color: var(--txt-color-dark);
}

.survey-types-list {
  background: white;
  padding: 15px;
  border-radius: 6px;
}

.survey-types-list h4 {
  color: var(--txt-color-church);
  margin-bottom: 15px;
  font-size: 18px;
}

.survey-types-list ul {
  list-style: none;
  padding: 0;
}

.survey-types-list li {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.survey-types-list li:last-child {
  border-bottom: none;
}

/* ========================================
   МОБИЛЬНЫЕ ТЕЛЕФОНЫ (основные изменения)
======================================== */

@media screen and (max-width: 768px) {
  .container {
    padding: 10px 15px 25px 15px;
    min-width: auto;
    max-width: 100%;
  }

  .header {
    margin-top: 5px;
    margin-bottom: 15px;
  }

  /* ИСПРАВЛЕНИЕ ЗАГОЛОВКА */
  h1 {
    font-size: 22px !important;
    margin-bottom: 15px;
    line-height: 1.2;
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  h2 {
    font-size: 16px !important;
    line-height: 1.3;
    margin-bottom: 8px;
    word-wrap: break-word;
  }

  /* ИСПРАВЛЕНИЕ НАВИГАЦИИ */
  .ul-header {
    padding: 15px 0px 0px 0px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .list-item {
    width: 100%;
    text-align: center;
  }

  .list-item:not(:last-child) {
    margin-right: 0;
    margin-bottom: 0;
  }

  .menu-item {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 12px 10px;
    background: rgba(2, 91, 121, 0.08);
    border: 1px solid rgba(2, 91, 121, 0.2);
    border-radius: 6px;
    font-size: 13px !important;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .menu-item:hover {
    background: rgba(2, 91, 121, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(2, 91, 121, 0.2);
  }

  .menu-item::after {
    display: none;
  }

  /* АКТИВНАЯ ВКЛАДКА */
  .list-item.active .menu-item {
    background: var(--txt-color-church) !important;
    border-color: var(--txt-color-church);
    color: white !important;
    font-weight: 600;
  }

  /* КОНТЕНТ СТРАНИЦ */
  .text-block {
    flex-direction: column;
    padding-top: 25px;
  }

  .left-margin {
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
    padding-right: 0;
    border-right: none;
    border-bottom: 3px solid #025b79;
    padding-bottom: 15px;
    text-align: center;
  }

  .left-margin h2 {
    font-size: 18px !important;
  }

  /* ТЕКСТ */
  .text {
    font-size: 14px !important;
    line-height: 1.5;
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .text::first-letter {
    font-size: 20px;
    margin-left: 3px;
  }

  /* СПИСКИ АНКЕТ */
  .donat ul {
    padding-left: 0;
    list-style: none;
    margin: 0;
  }

  .donat li {
    margin-bottom: 10px;
  }

  .donat a {
    display: block;
    padding: 12px;
    background: rgba(2, 91, 121, 0.05);
    border: 1px solid rgba(2, 91, 121, 0.2);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 14px !important;
    line-height: 1.3;
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .donat a:hover {
    background: rgba(2, 91, 121, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(2, 91, 121, 0.2);
  }

  .li-padding {
    margin-bottom: 10px;
  }

  /* СТАТИСТИКА */
  .stats-container {
    padding: 12px;
    margin: 8px 0;
  }

  .stats-summary {
    padding: 10px;
  }

  .survey-types-list {
    padding: 10px;
  }

  .survey-types-list h4 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .survey-types-list li {
    font-size: 13px;
    padding: 8px;
    line-height: 1.3;
  }
}

/* ========================================
   ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (до 480px)
======================================== */

@media screen and (max-width: 480px) {
  .container {
    padding: 8px 12px 20px 12px;
  }

  h1 {
    font-size: 20px !important;
    margin-bottom: 12px;
  }

  h2 {
    font-size: 14px !important;
    line-height: 1.2;
  }

  .ul-header {
    padding: 12px 0px 0px 0px;
    gap: 6px;
  }

  .menu-item {
    font-size: 12px !important;
    padding: 10px 8px;
    line-height: 1.1;
  }

  .text-block {
    padding-top: 20px;
  }

  .left-margin {
    margin-bottom: 15px;
    padding-bottom: 12px;
  }

  .left-margin h2 {
    font-size: 16px !important;
  }

  .text {
    font-size: 13px !important;
  }

  .text::first-letter {
    font-size: 18px;
    margin-left: 2px;
  }

  .donat a {
    padding: 10px;
    font-size: 13px !important;
  }
}

/* ========================================
   ПЛАНШЕТЫ (768px - 968px)
======================================== */

@media screen and (min-width: 769px) and (max-width: 968px) {
  .container {
    padding: 14px 25px 35px 25px;
  }

  h1 {
    font-size: 32px;
    margin-bottom: 18px;
  }

  h2 {
    font-size: 18px;
    line-height: 1.4;
  }

  .ul-header {
    padding: 18px 0px 0px 0px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .list-item {
    width: 100%;
    text-align: center;
  }

  .menu-item {
    display: block;
    width: 100%;
    max-width: 500px;
    padding: 14px 18px;
    background: rgba(2, 91, 121, 0.08);
    border: 1px solid rgba(2, 91, 121, 0.2);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
  }

  .text-block {
    flex-direction: column;
    padding-top: 35px;
  }

  .left-margin {
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 25px;
    padding-right: 0;
    border-right: none;
    border-bottom: 3px solid #025b79;
    padding-bottom: 18px;
    text-align: center;
  }
}

/* ========================================
   УЛУЧШЕНИЯ UX
======================================== */

@media screen and (max-width: 768px) {
  /* Улучшенная область касания */
  * {
    -webkit-tap-highlight-color: rgba(2, 91, 121, 0.2);
  }

  body {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
  }

  /* Плавная прокрутка */
  html {
    scroll-behavior: smooth;
  }

  /* Анимация переключения страниц */
  .page {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
  }

  .page[style*="block"] {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   СТИЛИ ДЛЯ ПУБЛИЧНОЙ СТАТИСТИКИ
   Добавить в конец файла css/style.css
======================================== */

/* Контейнеры статистики */
.stats-container {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 15px 0;
  border: 1px solid #e0e0e0;
  min-height: 60px;
}

/* Загрузка и ошибки */
.loading-text {
  text-align: center;
  color: #025b79;
  font-style: italic;
  padding: 20px;
  font-size: 16px;
}

.error-message {
  text-align: center;
  color: #dc3545;
  padding: 20px;
  background: #fff5f5;
  border-radius: 6px;
  border: 1px solid #f5c6cb;
  font-weight: 500;
}

.no-data {
  text-align: center;
  color: #666;
  padding: 20px;
  font-style: italic;
  font-size: 16px;
}

/* Общая статистика */
.stats-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.stat-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-left: 4px solid #025b79;
  transition: transform 0.2s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.stat-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #025b79;
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  color: #666;
  font-size: 14px;
  font-weight: 500;
}

.stats-info {
  background: white;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.stats-info p {
  margin: 8px 0;
  color: #555;
  font-size: 14px;
}

/* Сетка типов анкет */
.survey-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.survey-type-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.survey-type-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-color: #025b79;
}

.survey-type-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.survey-type-header h4 {
  color: #025b79;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  flex: 1;
  margin-right: 10px;
  line-height: 1.3;
}

.response-count {
  background: #025b79;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
}

.survey-type-stats {
  margin-bottom: 15px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-row span:first-child {
  color: #666;
}

.stat-row span:last-child {
  font-weight: 600;
  color: #025b79;
}

.survey-type-actions {
  text-align: center;
}

.detail-link {
  display: inline-block;
  padding: 8px 16px;
  background: #f0f8ff;
  color: #025b79;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid rgba(2, 91, 121, 0.2);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.detail-link:hover {
  background: #025b79;
  color: white;
  border-color: #025b79;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(2, 91, 121, 0.2);
}

/* График активности по дням */
.daily-activity-chart {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.daily-bar {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  gap: 15px;
}

.daily-date {
  min-width: 80px;
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.daily-bar-container {
  flex: 1;
  height: 20px;
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.daily-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #025b79, #0a7ba3);
  border-radius: 10px;
  transition: width 0.6s ease;
  min-width: 2px;
}

.daily-count {
  min-width: 30px;
  text-align: right;
  font-weight: bold;
  color: #025b79;
  font-size: 14px;
}

/* Адаптивность для статистики */
@media (max-width: 768px) {
  .stats-summary {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
  }
  
  .stat-item {
    padding: 15px;
  }
  
  .stat-number {
    font-size: 2em;
  }
  
  .stat-label {
    font-size: 12px;
  }
  
  .survey-types-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .survey-type-card {
    padding: 15px;
  }
  
  .survey-type-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .survey-type-header h4 {
    margin-right: 0;
    font-size: 14px;
  }
  
  .response-count {
    align-self: flex-end;
  }
  
  .stat-row {
    font-size: 13px;
  }
  
  .daily-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }
  
  .daily-date {
    min-width: auto;
    text-align: center;
  }
  
  .daily-count {
    text-align: center;
    min-width: auto;
  }
  
  .stats-info p {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .stats-container {
    padding: 15px;
    margin: 10px 0;
  }
  
  .stats-summary {
    grid-template-columns: 1fr;
  }
  
  .stat-item {
    padding: 12px;
  }
  
  .stat-number {
    font-size: 1.8em;
  }
  
  .survey-type-card {
    padding: 12px;
  }
  
  .daily-activity-chart {
    padding: 15px;
  }
  
  .detail-link {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* Анимации для статистики */
.stat-item,
.survey-type-card {
  animation: fadeInUp 0.4s ease;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

.survey-type-card:nth-child(1) { animation-delay: 0.1s; }
.survey-type-card:nth-child(2) { animation-delay: 0.2s; }
.survey-type-card:nth-child(3) { animation-delay: 0.3s; }
.survey-type-card:nth-child(4) { animation-delay: 0.4s; }

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

/* Улучшения для существующих стилей статистики */
.stats-summary {
  margin-bottom: 20px;
}

.survey-types-list {
  background: white;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.survey-types-list h4 {
  color: #025b79;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 600;
}

.survey-types-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.survey-types-list li {
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  line-height: 1.4;
}

.survey-types-list li:last-child {
  border-bottom: none;
}

.survey-types-list li strong {
  color: #025b79;
}

/* ========================================
   ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ СТАТИСТИКИ
   Добавить в конец файла css/style.css
   (без повторений существующих стилей)
======================================== */

/* Обновление существующих стилей статистики */
.stats-container {
  background: white !important; /* изменено с #f8f9fa */
  border-left: 4px solid var(--txt-color-church);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Новые стили для загрузки и ошибок */
.loading-text {
  text-align: center;
  color: var(--txt-color-church);
  font-style: italic;
  padding: 20px;
  font-size: 16px;
}

.error-message {
  text-align: center;
  color: #dc3545;
  padding: 20px;
  background: #fff5f5;
  border-radius: 6px;
  border: 1px solid #f5c6cb;
  font-weight: 500;
  margin: 10px 0;
}

.no-data {
  text-align: center;
  color: #666;
  padding: 20px;
  font-style: italic;
  font-size: 16px;
}

/* Улучшенная общая статистика */
.stats-summary {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  background: white !important;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Новые карточки статистики */
.stat-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-left: 4px solid var(--txt-color-church);
  transition: transform 0.2s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.stat-number {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--txt-color-church);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  color: #666;
  font-size: 14px;
  font-weight: 500;
}

/* Улучшение существующих стилей статистической информации */
.stats-info {
  background: white;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  margin-top: 15px;
}

.stats-info p {
  margin: 8px 0;
  color: #555;
  font-size: 14px;
}

/* Новая сетка типов анкет */
.survey-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.survey-type-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.survey-type-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-color: var(--txt-color-church);
}

.survey-type-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.survey-type-header h4 {
  color: var(--txt-color-church);
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  flex: 1;
  margin-right: 10px;
  line-height: 1.3;
}

.response-count {
  background: var(--txt-color-church);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
}

.survey-type-stats {
  margin-bottom: 15px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-row span:first-child {
  color: #666;
}

.stat-row span:last-child {
  font-weight: 600;
  color: var(--txt-color-church);
}

/* График активности по дням */
.daily-activity-chart {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  margin: 20px 0;
}

.daily-bar {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  gap: 15px;
}

.daily-date {
  min-width: 80px;
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.daily-bar-container {
  flex: 1;
  height: 20px;
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.daily-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--txt-color-church), #0a7ba3);
  border-radius: 10px;
  transition: width 0.6s ease;
  min-width: 2px;
}

.daily-count {
  min-width: 30px;
  text-align: right;
  font-weight: bold;
  color: var(--txt-color-church);
  font-size: 14px;
}

/* Анимации */
.stat-item,
.survey-type-card {
  animation: fadeInUp 0.4s ease both;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

.survey-type-card:nth-child(1) { animation-delay: 0.1s; }
.survey-type-card:nth-child(2) { animation-delay: 0.2s; }
.survey-type-card:nth-child(3) { animation-delay: 0.3s; }
.survey-type-card:nth-child(4) { animation-delay: 0.4s; }

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

/* ========================================
   АДАПТИВНЫЕ СТИЛИ ДЛЯ НОВОЙ СТАТИСТИКИ
======================================== */

@media screen and (max-width: 768px) {
  .stats-summary {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    gap: 10px;
  }
  
  .stat-item {
    padding: 15px;
  }
  
  .stat-number {
    font-size: 2em;
  }
  
  .stat-label {
    font-size: 12px;
  }
  
  .survey-types-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .survey-type-card {
    padding: 15px;
  }
  
  .survey-type-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .survey-type-header h4 {
    margin-right: 0;
    font-size: 14px;
  }
  
  .response-count {
    align-self: flex-end;
  }
  
  .stat-row {
    font-size: 13px;
  }
  
  .daily-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }
  
  .daily-date {
    min-width: auto;
    text-align: center;
  }
  
  .daily-count {
    text-align: center;
    min-width: auto;
  }
  
  .stats-info p {
    font-size: 13px;
  }
  
  .daily-activity-chart {
    padding: 15px;
  }
}

@media screen and (max-width: 480px) {
  .stats-container {
    padding: 15px;
    margin: 10px 0;
  }
  
  .stats-summary {
    grid-template-columns: 1fr !important;
  }
  
  .stat-item {
    padding: 12px;
  }
  
  .stat-number {
    font-size: 1.8em;
  }
  
  .survey-type-card {
    padding: 12px;
  }
}

/* Улучшения существующих стилей */
.survey-types-list {
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.survey-types-list h4 {
  font-weight: 600;
}

.survey-types-list li {
  font-size: 14px;
  line-height: 1.4;
  transition: background 0.2s ease;
}

.survey-types-list li:hover {
  background: rgba(2, 91, 121, 0.05);
}

.survey-types-list li strong {
  color: var(--txt-color-church);
}