@charset "UTF-8";
/* ===== БАЗОВЫЕ НАСТРОЙКИ ===== */
:root {
  --border-radius-base: 16px;
  --border-radius-sm: 8px;
  --border-radius-lg: 24px;
  --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --box-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.12);
  --transition-base: all 0.3s ease; }

:root {
  --bs-success-rgb: 83, 213, 55; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  background: #ffffff;
  min-height: 100vh;
  color: #000000;
  line-height: 1.6; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #000000; }

/* ===== НАВИГАЦИЯ ===== */
.navbar {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 0.1rem 0;
  border-bottom: 1px solid #e0e0e0; }

.navbar-brand {
  font-weight: 600;
  font-size: 1.7rem;
  color: #000000 !important;
  display: flex;
  align-items: center;
  padding-bottom: 0.6rem; }

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.5rem 1.25rem !important;
  border-radius: 50px;
  margin: 0 0.25rem;
  color: #575757 !important;
  background: rgba(83, 213, 55, 0.3); }
  .navbar-nav .nav-link:hover {
    background: #53d537;
    color: #000000 !important; }
  .navbar-nav .nav-link.active {
    background: linear-gradient(135deg, #3f3f3f 0%, #575757 100%);
    color: #ffffff !important; }

/* ===== КАРТОЧКИ ===== */
.card {
  border: none;
  border-radius: var(--border-radius-base);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  background: #ffffff;
  margin-bottom: 1.5rem;
  border: 1px solid #e0e0e0; }

.card-header {
  background: linear-gradient(135deg, #3f3f3f 0%, #575757 100%);
  color: #ffffff;
  border: none;
  padding: 1rem 1.5rem;
  font-weight: 600;
  text-align: center; }
  .card-header h3, .card-header h4, .card-header h5 {
    color: #ffffff !important;
    margin-bottom: 0; }

.card-body {
  padding: 1.5rem; }

/* ===== КНОПКИ ===== */
.btn {
  border-radius: 50px;
  font-weight: 600;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-base); }
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); }

.btn-primary {
  background: linear-gradient(135deg, #3f3f3f 0%, #575757 100%);
  color: #ffffff; }
  .btn-primary:hover {
    background: linear-gradient(135deg, #323232 0%, #4a4a4a 100%);
    color: #ffffff; }

.btn-success {
  background: #1a90ca;
  color: #ffffff; }
  .btn-success:hover {
    background: #1780b3; }

.btn-outline-primary {
  border: 2px solid #3f3f3f;
  color: #3f3f3f;
  background: transparent; }
  .btn-outline-primary:hover {
    background: linear-gradient(135deg, #3f3f3f 0%, #575757 100%);
    color: #ffffff;
    border-color: transparent; }

.btn-outline-primary2 {
  color: #3f3f3f;
  background: transparent; }
  .btn-outline-primary2:hover {
    background: linear-gradient(135deg, #3f3f3f 0%, #575757 100%);
    color: #ffffff;
    border-color: transparent; }

/* ===== ГЛАВНАЯ СТРАНИЦА ===== */
.home-container {
  padding: 0; }

.hero-section {
  border-radius: var(--border-radius-base);
  box-shadow: var(--box-shadow);
  background-image: radial-gradient(circle at center, #d0ffc6 30%, #53d5379e 100%);
  margin-bottom: 1rem;
  text-align: center;
  padding: 2rem; }
  .hero-section h1 {
    font-size: 2.5rem;
    font-weight: 400;
    color: #000000; }
  .hero-section .lead {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: #575757; }

.feature-card {
  height: 100%;
  text-align: center;
  border: 1px solid #e0e0e0; }
  .feature-card .card-body {
    background-image: radial-gradient(circle at center, #d0ffc6 30%, #53d5379e 100%);
    padding: 1.5rem; }
  .feature-card .feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(63, 63, 63, 0.1);
    color: #3f3f3f; }
  .feature-card h4 {
    margin-bottom: 1rem;
    color: #000000; }

.consultation-card {
  border: 1px solid #e0e0e0; }
  .consultation-card .alert-info {
    background: #efffe9;
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    border-left: 4px solid #53d5379e; }
    .consultation-card .alert-info h5 {
      color: #000000;
      margin-bottom: 0.5rem; }

/* ===== ЧАТ ===== */
.chat-container {
  height: 400px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius-base);
  padding: 1rem;
  background: #ffffff; }
  @media (max-width: 768px) {
    .chat-container {
      height: 300px; } }
  .chat-container::-webkit-scrollbar {
    width: 6px; }
  .chat-container::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 4px; }
  .chat-container::-webkit-scrollbar-thumb {
    background: #575757;
    border-radius: 4px; }

/* ===== ЧАТ ===== */
.chat-header {
  background: linear-gradient(135deg, #000000 0%, #3f3f3f 100%);
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-base) var(--border-radius-base) 0 0;
  display: flex;
  align-items: center;
  gap: 1rem; }
  .chat-header .avatar-img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    cursor: pointer;
    transition: transform 0.3s; }
    .chat-header .avatar-img:hover {
      transform: scale(1.1);
      box-shadow: 0 0 0 3px rgba(83, 213, 55, 0.5); }
  .chat-header h3 {
    color: #ffffff;
    margin-bottom: 0;
    font-weight: 400;
    font-size: 1.25rem; }

.message {
  margin-bottom: 0.5rem;
  max-width: 80%; }
  @media (max-width: 768px) {
    .message {
      max-width: 90%; } }
.user-message {
  margin-left: auto;
  background: radial-gradient(circle at center, #ffffff 0%, #d0ffc6 100%);
  color: #000000;
  border-radius: 20px 20px 0 20px;
  border: 1px solid #d0ffc6; }

.ai-message {
  margin-right: auto;
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  color: #000000;
  border-radius: 20px 20px 20px 0;
  border: 1px solid #e0e0e0; }

.message-content {
  padding: .5rem 1rem; }
  .message-content strong {
    display: block;
    font-size: 0.9rem;
    color: #3f3f3f;
    font-weight: 600; }

.message-time {
  font-size: 0.75rem;
  color: #575757;
  margin-top: 0.25rem;
  text-align: right; }

.chat-input-form {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  background: #ffffff;
  border-top: 1px solid #e0e0e0; }
  .chat-input-form textarea.form-control {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    padding: 0.75rem 1.25rem;
    min-height: 50px;
    resize: none;
    font-size: 0.95rem; }
    .chat-input-form textarea.form-control:focus {
      border-color: #575757;
      box-shadow: 0 0 0 3px rgba(87, 87, 87, 0.1); }
  .chat-input-form button[type="submit"] {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    padding: 0; }

.topic-btn {
  border-radius: 20px;
  padding: 0.5rem 1rem;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  color: #3f3f3f;
  font-weight: 500; }
  .topic-btn:hover {
    border-color: #575757;
    background: #e0e0e0;
    color: #000000; }

/* ===== СТРАНИЦА ТЕСТОВ ===== */
.test-card {
  height: 100%; }

.test-header {
  margin-bottom: 2rem; }

.test-meta .badge {
  padding: 0.5rem 1rem; }

.question-card {
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius-base);
  margin-bottom: 1rem; }
  .question-card .card-header {
    background: #e0e0e0;
    color: #000000;
    border-bottom: 1px solid #e0e0e0; }

.question-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: #3f3f3f;
  margin-bottom: 1rem; }

.scale-options {
  background: #efffe9;
  padding: 1rem;
  border-radius: var(--border-radius-base);
  margin: 0 auto;
  max-width: 600px; }

.scale-label {
  font-size: 0.9rem;
  color: #575757;
  flex: 1;
  text-align: center; }

.test-actions {
  padding: 1.5rem 0;
  border-top: 1px solid #e0e0e0;
  margin-top: 1.5rem; }

/* ===== СТРАНИЦА РЕЗУЛЬТАТОВ ===== */
.score-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, #efffe9 0%, #d0ffc6 70%, #53d5379e 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 5px solid #3f3f3f;
  margin: 0 auto 2rem; }

.interpretation-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #3f3f3f; }

/* ===== ЛИЧНЫЙ КАБИНЕТ ===== */
.dashboard .stat-card {
  height: 100%;
  text-align: center; }
  .dashboard .stat-card .card-body {
    padding: 1rem; }
  .dashboard .stat-card h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #000000; }

.dashboard .alert-light {
  background: #efffe9;
  border: 1px solid #d0ffc6;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem; }

/* ===== СТРАНИЦА ТАРИФОВ ===== */
.plan-card {
  border: 2px solid #e0e0e0;
  height: 100%; }
  .plan-card:hover {
    transform: translateY(-5px); }
  .plan-card.card-highlight {
    border-color: #53d5379e; }
  .plan-card .card-header {
    padding: 1.25rem;
    font-size: 1.1rem; }

/* ===== СТРАНИЦА УСПЕШНОЙ ОПЛАТЫ ===== */
.payment-success .card {
  border: 2px solid #d0ffc6; }
  .payment-success .card .card-header {
    background: linear-gradient(135deg, #53d5379e 0%, rgba(63, 179, 38, 0.619608) 100%);
    color: #000000; }

.payment-success .fa-check-circle {
  color: #53d5379e; }

.payment-success .payment-details {
  background: #efffe9;
  border-radius: var(--border-radius-base);
  padding: 1rem;
  margin: 1rem 0; }

/* ===== СТРАНИЦА ОТМЕНЫ ОПЛАТЫ ===== */
.payment-cancel .card {
  border: 2px solid #ffc107; }
  .payment-cancel .card .card-header {
    background: linear-gradient(135deg, #ffc107 0%, #d39e00 100%);
    color: #000000; }

.payment-cancel ul {
  list-style: none;
  padding-left: 1rem; }
  .payment-cancel ul li {
    padding: 0.5rem 0;
    position: relative; }
    .payment-cancel ul li:before {
      content: '•';
      color: #ffc107;
      font-weight: bold;
      position: absolute;
      left: -1rem; }

/* ===== ИСТОРИЯ ТЕСТОВ ===== */
.test-history .page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem; }
  @media (max-width: 768px) {
    .test-history .page-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem; } }
.stat-card {
  border: 1px solid #e0e0e0; }
  .stat-card.gradient-card {
    background: linear-gradient(135deg, #efffe9 0%, #d0ffc6 100%); }
  .stat-card .display-6 {
    font-weight: 700;
    color: #000000; }

.history-table .table tbody tr:hover {
  background: #efffe9; }

.result-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600; }
  .result-badge.badge-low {
    background: #efffe9;
    color: rgba(33, 95, 20, 0.619608); }
  .result-badge.badge-medium {
    background: rgba(255, 193, 7, 0.1);
    color: #6d5200; }
  .result-badge.badge-high {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545; }

/* ===== ФОРМЫ ===== */
.form-control {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 1rem; }
  .form-control:focus {
    border-color: #575757;
    box-shadow: 0 0 0 3px rgba(87, 87, 87, 0.1); }

/* ===== ТАБЛИЦЫ ===== */
.table th {
  background: #e0e0e0;
  color: #000000;
  font-weight: 600;
  border-color: #e0e0e0; }

.table td {
  border-color: #e0e0e0;
  color: #3f3f3f; }

.table tbody tr:hover {
  background: #efffe9; }

/* ===== БЭДЖИ ===== */
.badge {
  border-radius: 20px;
  padding: 0.4rem 0.8rem;
  font-weight: 600; }
  .badge.bg-success {
    background: #53d5379e !important;
    color: #000000; }
  .badge.bg-primary2 {
    background: linear-gradient(135deg, #777777 0%, #777777 100%) !important;
    color: #3f3f3f; }
  .badge.bg-warning {
    background: #ffc107 !important;
    color: #000000; }

/* ===== АЛЕРТЫ ===== */
.alert {
  border: none;
  border-radius: var(--border-radius-base);
  padding: 1rem; }
  .alert-info {
    background: #efffe9;
    color: #000000;
    border-left: 4px solid #53d5379e; }
  .alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #6d5200;
    border-left: 4px solid #ffc107; }

/* ===== ФУТЕР ===== */
.footer {
  background: linear-gradient(135deg, #3f3f3f 0%, #000000 100%);
  color: #ffffff;
  padding: 1.5rem 0;
  margin-top: 2rem; }
  .footer a {
    color: rgba(255, 255, 255, 0.8); }
    .footer a:hover {
      color: #ffffff; }

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
  .hero-section {
    padding: 1.5rem !important; }
    .hero-section h1 {
      font-size: 1.75rem; }
    .hero-section .lead {
      font-size: 1.1rem; }
  .chat-container {
    height: 300px; }
  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem; }
  .navbar-nav .nav-link {
    padding: 0.5rem 0.75rem !important;
    margin: 0.25rem 0; } }

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px); }
  to {
    opacity: 1;
    transform: translateY(0); } }

.fade-in {
  animation: fadeInUp 0.3s ease-out; }

/* Индикатор набора в чате */
#typing-indicator {
  padding: 1rem;
  animation: pulse 1.5s infinite; }
  #typing-indicator .fa-ellipsis-h {
    animation: dots 1.5s infinite; }

@keyframes pulse {
  0%, 100% {
    opacity: 0.5; }
  50% {
    opacity: 1; } }

@keyframes dots {
  0%, 20% {
    opacity: 0; }
  50% {
    opacity: 1; }
  100% {
    opacity: 0; } }

/* Утилитарные классы */
.text-center {
  text-align: center !important; }

.text-end {
  text-align: right !important; }

.text-start {
  text-align: left !important; }

.w-100 {
  width: 100% !important; }

.mt-0 {
  margin-top: 0 !important; }

.mt-1 {
  margin-top: 0.25rem !important; }

.mt-2 {
  margin-top: 0.5rem !important; }

.mt-3 {
  margin-top: 1rem !important; }

.mt-4 {
  margin-top: 1.5rem !important; }

.mb-0 {
  margin-bottom: 0 !important; }

.mb-1 {
  margin-bottom: 0.25rem !important; }

.mb-2 {
  margin-bottom: 0.5rem !important; }

.mb-3 {
  margin-bottom: 1rem !important; }

.mb-4 {
  margin-bottom: 1.5rem !important; }

.ms-1 {
  margin-left: 0.25rem !important; }

.ms-2 {
  margin-left: 0.5rem !important; }

.ms-3 {
  margin-left: 1rem !important; }

.me-1 {
  margin-right: 0.25rem !important; }

.me-2 {
  margin-right: 0.5rem !important; }

.me-3 {
  margin-right: 1rem !important; }

.p-0 {
  padding: 0 !important; }

.p-1 {
  padding: 0.25rem !important; }

.p-2 {
  padding: 0.5rem !important; }

.p-3 {
  padding: 1rem !important; }

.p-4 {
  padding: 1.5rem !important; }

/* ===== КАСТОМНЫЕ МОДАЛЬНЫЕ ОКНА ===== */
.sophia-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center; }
  .sophia-modal.show {
    display: flex !important; }

.sophia-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px); }

.sophia-modal-content {
  position: relative;
  z-index: 1060;
  background: #ffffff;
  border-radius: var(--border-radius-base);
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: modalFadeIn 0.3s ease-out; }

.sophia-modal-header {
  background: linear-gradient(135deg, #000000 0%, #3f3f3f 100%);
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-base) var(--border-radius-base) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center; }
  .sophia-modal-header h5 {
    margin: 0;
    color: #ffffff; }

.sophia-modal-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center; }
  .sophia-modal-close:hover {
    opacity: 1; }

.sophia-modal-body {
  padding: 2rem;
  text-align: center; }
  .sophia-modal-body img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #d0ffc6;
    box-shadow: 0 4px 15px rgba(83, 213, 55, 0.3);
    margin-bottom: 1.5rem; }

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

.icon-category {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(var(--bs-primary-rgb), 0.1);
  border-radius: 50%; }

.test-card {
  transition: all 0.3s ease;
  border: 1px solid #dee2e6; }

.test-card:hover {
  border-color: var(--bs-primary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); }

/* Стили для категорий */
.hover-lift {
  transition: transform 0.2s ease-in-out; }

.hover-lift:hover {
  transform: translateY(-5px); }

/* Цвета категорий */
.bg-clinical {
  background-color: #dc3545; }

.bg-personality {
  background-color: #0d6efd; }

.bg-projective {
  background-color: #ffc107; }

.bg-intelligence {
  background-color: #0dcaf0; }

.bg-achievement {
  background-color: #a9ff96; }

.bg-professional {
  background-color: #6c757d; }

.text-clinical {
  color: #dc3545; }

.text-personality {
  color: #0d6efd; }

.text-projective {
  color: #ffc107; }

.text-intelligence {
  color: #0dcaf0; }

.text-achievement {
  color: #a9ff96; }

.text-professional {
  color: #6c757d; }

/* Стили для проверки на бота */
#humanButton {
  transition: all 0.3s ease; }

#humanButton:disabled {
  opacity: 0.7;
  cursor: default; }

.form-check-input:checked {
  background-color: #28a745;
  border-color: #28a745; }

#humanSlider {
  transition: background-color 0.3s ease; }

.toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #dc3545;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  z-index: 9999;
  animation: slideIn 0.3s, fadeOut 0.5s 2.5s forwards; }

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0; }
  to {
    transform: translateX(0);
    opacity: 1; } }

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(100%); } }

.tova-game-area {
  background: linear-gradient(135deg, #efffe9 0%, #d0ffc6 100%);
  border-radius: var(--border-radius-base);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative; }

.stimulus-container {
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  backdrop-filter: blur(5px);
  box-shadow: var(--box-shadow);
  transition: all 0.3s; }
  @media (max-width: 768px) {
    .stimulus-container {
      width: 180px;
      height: 180px; } }
  @media (max-width: 480px) {
    .stimulus-container {
      width: 150px;
      height: 150px; } }
.stimulus {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  cursor: pointer; }
  @media (max-width: 768px) {
    .stimulus {
      width: 150px;
      height: 150px; } }
.stimulus-circle, .stimulus-square {
  transition: all 0.2s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
  background: currentColor; }

.stimulus-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%; }
  @media (max-width: 768px) {
    .stimulus-circle {
      width: 120px;
      height: 120px; } }
.stimulus-square {
  width: 150px;
  height: 150px;
  border-radius: 20px; }
  @media (max-width: 768px) {
    .stimulus-square {
      width: 120px;
      height: 120px; } }
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1; }
  50% {
    transform: scale(1.05);
    opacity: 0.9; }
  100% {
    transform: scale(1);
    opacity: 1; } }

.tova-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 5px;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  border-radius: var(--border-radius-base) var(--border-radius-base) 0 0; }
  @media (max-width: 768px) {
    .tova-stats {
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
      padding: 5px; } }
  @media (max-width: 480px) {
    .tova-stats {
      grid-template-columns: 1fr; } }
.stat-item {
  text-align: center;
  padding: 5px;
  background: #e3e3e3;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s; }
  .stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); }

.stat-label {
  font-size: 0.7rem;
  color: #666;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500; }

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #3f3f3f;
  line-height: 1.2; }
  @media (max-width: 768px) {
    .stat-value {
      font-size: 1.5rem; } }
  .stat-value.correct {
    color: #53d5379e; }
  .stat-value.incorrect {
    color: #dc3545; }
  .stat-value.missed {
    color: #ffc107; }

.stat-unit {
  font-size: 0.9rem;
  color: #999;
  margin-left: 2px; }

/* Фиксированный контейнер для обратной связи */
.feedback-container {
  height: 60px;
  /* Фиксированная высота */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  width: 100%; }

.feedback-message {
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  animation: fadeIn 0.2s;
  min-width: 200px;
  /* Минимальная ширина */
  display: inline-block;
  /* Когда сообщения нет - прозрачный, но место занимает */
  opacity: 0;
  transition: opacity 0.2s;
  /* Когда есть сообщение */ }
  .feedback-message:not(:empty) {
    opacity: 1; }
  .feedback-message.feedback-correct {
    background: rgba(83, 213, 55, 0.2);
    color: #53d5379e;
    border: 2px solid #53d5379e; }
  .feedback-message.feedback-incorrect {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 2px solid #dc3545; }
  .feedback-message.feedback-missed {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 2px solid #ffc107; }

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9); }
  to {
    opacity: 1;
    transform: scale(1); } }

.tova-instructions {
  padding: 25px;
  background: #f8f9fa;
  border-top: 1px solid #e0e0e0;
  border-radius: 0 0 var(--border-radius-base) var(--border-radius-base); }

.instruction-item {
  display: flex;
  align-items: center;
  margin-bottom: 2px;
  padding: 2px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); }
  .instruction-item:last-child {
    margin-bottom: 0; }

.instruction-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 1.2rem; }
  .instruction-icon.correct {
    background: rgba(83, 213, 55, 0.2);
    color: #53d5379e; }
  .instruction-icon.incorrect {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545; }
  .instruction-icon.missed {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107; }

.instruction-text {
  font-size: 1rem;
  color: #3f3f3f; }
  .instruction-text strong {
    color: #3f3f3f;
    font-weight: 600; }

.progress-timer {
  width: 100%;
  height: 10px;
  background: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  margin: 5px 0; }

.progress-bar-timer {
  height: 100%;
  background: linear-gradient(90deg, #3f3f3f, #575757);
  transition: width 0.1s linear;
  border-radius: 5px; }

.timer-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3f3f3f; }

.reaction-time {
  font-size: 1.1rem;
  color: #666;
  margin-top: 5px; }

.btn-tova {
  padding: 15px 40px;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block; }
  @media (max-width: 768px) {
    .btn-tova {
      display: block;
      width: 100%;
      margin: 10px 0; } }
  .btn-tova.btn-tova-primary {
    background: linear-gradient(135deg, #3f3f3f 0%, #575757 100%);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); }
    .btn-tova.btn-tova-primary:hover {
      transform: translateY(-3px);
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3); }
  .btn-tova.btn-tova-secondary {
    background: #f8f9fa;
    color: #3f3f3f;
    border: 2px solid #e0e0e0; }
    .btn-tova.btn-tova-secondary:hover {
      background: #e9ecef;
      transform: translateY(-2px); }

.step-circle {
  width: 60px;
  height: 60px;
  background: var(--bs-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold; }

.card:hover {
  transform: translateY(-5px); }
