/* ========== Traumatology Playful Design ========== */
/* Бронзово-коричневая палитра — сила, опора, восстановление */

/* ========== Playful Color Palette ========== */
:root {
  --t-brown: #8B5E34;
  --t-brown-deep: #6D4C2A;
  --t-amber: #C68642;
  --t-gold: #D97706;
  --t-sand: #F59E0B;
  --t-warm: #FDE68A;
  --t-bg: #FFFBEB;
  --t-taupe: #A0522D;
}

/* ========== Floating Decorative Background ========== */
.specialty-hero {
  position: relative;
}

.why-section {
  position: relative;
  overflow: hidden;
}

.why-section::after {
  content: '';
  position: absolute;
  top: 10%;
  right: -2%;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(139, 94, 52, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float-bg-t 7s ease-in-out infinite;
}

.services-section {
  position: relative;
  overflow: hidden;
}

.services-section::after {
  content: '';
  position: absolute;
  bottom: 5%;
  left: -2%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(198, 134, 66, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float-bg-t 8s ease-in-out infinite reverse;
}

.trauma-rehab {
  position: relative;
  overflow: hidden;
}

.trauma-rehab .container {
  position: relative;
}

.trauma-rehab .container::after {
  content: '';
  position: absolute;
  top: 25%;
  right: -4%;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float-bg-t 6s ease-in-out infinite;
}

@keyframes float-bg-t {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
  50% { transform: translateY(-20px) scale(1.1); opacity: 0.8; }
}

/* ========== Hero - Playful Additions ========== */

/* Brown title highlight */
.specialty-hero__title .highlight-traumatology {
  color: var(--t-brown) !important;
  font-weight: 900 !important;
  position: relative;
}

.specialty-hero__title .highlight-traumatology::after {
  content: ' 🦴';
  font-size: 0.5em;
  display: inline-block;
  animation: bone-sway 3s ease-in-out infinite;
}

@keyframes bone-sway {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.15) rotate(5deg); }
}

/* Floating symbols around the hero title */
.specialty-hero__title::before {
  content: '⚕️';
  position: absolute;
  top: -25px;
  left: -35px;
  font-size: 22px;
  animation: symbol-float-t 3s ease-in-out infinite;
}

.specialty-hero__title::after {
  content: '✨';
  position: absolute;
  bottom: -20px;
  right: -25px;
  font-size: 18px;
  animation: symbol-float-t 3.5s ease-in-out infinite 0.8s;
}

@keyframes symbol-float-t {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.7; }
  50% { transform: translateY(-10px) rotate(10deg); opacity: 1; }
}

/* Feature icons - warm brown palette */
.specialty-hero__feature:nth-child(1) .specialty-hero__feature-icon {
  background: linear-gradient(135deg, #8B5E34, #6D4C2A) !important;
}
.specialty-hero__feature:nth-child(2) .specialty-hero__feature-icon {
  background: linear-gradient(135deg, #C68642, #A0522D) !important;
}
.specialty-hero__feature:nth-child(3) .specialty-hero__feature-icon {
  background: linear-gradient(135deg, #D97706, #B45309) !important;
}
.specialty-hero__feature:nth-child(4) .specialty-hero__feature-icon {
  background: linear-gradient(135deg, #F59E0B, #D97706) !important;
}

/* ========== Section Titles - Warm Underline ========== */
.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 5px;
  margin: 12px auto 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #8B5E34, #C68642, #D97706, #F59E0B);
  animation: gradient-shift-t 3s ease-in-out infinite;
  background-size: 200% 100%;
}

@keyframes gradient-shift-t {
  0%, 100% { background-position: 0% 50%; width: 80px; }
  50% { background-position: 100% 50%; width: 120px; }
}

/* ========== Why Section - Warm Cards ========== */
.why-section__card {
  position: relative;
  overflow: visible !important;
}

.why-section__card:nth-child(1) .why-section__card-icon {
  background: linear-gradient(135deg, #8B5E34, #6D4C2A) !important;
}
.why-section__card:nth-child(2) .why-section__card-icon {
  background: linear-gradient(135deg, #C68642, #A0522D) !important;
}
.why-section__card:nth-child(3) .why-section__card-icon {
  background: linear-gradient(135deg, #D97706, #B45309) !important;
}
.why-section__card:nth-child(4) .why-section__card-icon {
  background: linear-gradient(135deg, #F59E0B, #D97706) !important;
}
.why-section__card:nth-child(5) .why-section__card-icon {
  background: linear-gradient(135deg, #8B5E34, #C68642) !important;
}
.why-section__card:nth-child(6) .why-section__card-icon {
  background: linear-gradient(135deg, #A0522D, #D97706) !important;
}

.why-section__card:hover {
  transform: translateY(-10px) scale(1.03) !important;
}

.why-section__card:hover .why-section__card-icon {
  animation: icon-wiggle-t 0.5s ease-in-out !important;
}

@keyframes icon-wiggle-t {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg) scale(1.1); }
  50% { transform: rotate(8deg) scale(1.15); }
  75% { transform: rotate(-5deg) scale(1.1); }
}

/* ========== Services Section - Warm ========== */
.services-section__item:nth-child(1) .services-section__header-icon {
  color: #8B5E34 !important;
}
.services-section__item:nth-child(2) .services-section__header-icon {
  color: #C68642 !important;
}
.services-section__item:nth-child(3) .services-section__header-icon {
  color: #A0522D !important;
}
.services-section__item:nth-child(4) .services-section__header-icon {
  color: #D97706 !important;
}
.services-section__item:nth-child(5) .services-section__header-icon {
  color: #8B5E34 !important;
}

.services-section__item--active .services-section__header-icon {
  color: white !important;
  animation: icon-pop-t 0.4s ease-out !important;
}

@keyframes icon-pop-t {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1.1); }
}

.services-section__includes li i {
  background: #8B5E34 !important;
  color: white !important;
}

.services-section__btn {
  background: linear-gradient(135deg, #8B5E34, #C68642) !important;
  box-shadow: 0 4px 20px rgba(139, 94, 52, 0.3) !important;
}

.services-section__btn:hover {
  box-shadow: 0 8px 30px rgba(139, 94, 52, 0.5) !important;
}

/* ========== When-to-visit icons ========== */
.when-to-visit__icon {
  background: linear-gradient(135deg, #8B5E34, #C68642) !important;
}

/* ========== Trauma Rehab Cards ========== */
.trauma-rehab__card:nth-child(1) .trauma-rehab__card-icon {
  background: linear-gradient(135deg, #8B5E34, #6D4C2A) !important;
}
.trauma-rehab__card:nth-child(2) .trauma-rehab__card-icon {
  background: linear-gradient(135deg, #C68642, #A0522D) !important;
}
.trauma-rehab__card:nth-child(3) .trauma-rehab__card-icon {
  background: linear-gradient(135deg, #D97706, #B45309) !important;
}
.trauma-rehab__card:nth-child(4) .trauma-rehab__card-icon {
  background: linear-gradient(135deg, #F59E0B, #D97706) !important;
}

/* ========== Treatment Steps ========== */
.trauma-steps__num {
  background: linear-gradient(135deg, #8B5E34, #C68642) !important;
}

/* ========== FAQ ========== */
.trauma-faq__item--active .trauma-faq__question-icon {
  background: linear-gradient(135deg, #8B5E34, #C68642) !important;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .specialty-hero__title::before,
  .specialty-hero__title::after {
    display: none;
  }
}