/* ========== Pulmonology Playful Design ========== */
/* Дыхательная система — свежая, лёгкая палитра */

/* ========== Playful Color Palette ========== */
:root {
  --p-teal: #2A9D8F;
  --p-teal-deep: #21867A;
  --p-sky: #8ECAE6;
  --p-blue: #6BB5C0;
  --p-mint: #A8DADC;
  --p-sage: #6B8F71;
  --p-coral: #E76F51;
  --p-teal-light: #E8F8F5;
  --p-cream: #F0FDFA;
  --p-warm: #F8F4EF;
}

/* ========== 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(42, 157, 143, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float-bg-p 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(142, 202, 230, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float-bg-p 8s ease-in-out infinite reverse;
}

.pulmonology-diagnostics {
  position: relative;
  overflow: hidden;
}

.pulmonology-diagnostics .container {
  position: relative;
}

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

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

.reviews-section::after {
  content: '';
  position: absolute;
  top: 20%;
  left: -3%;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(42, 157, 143, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float-bg-p 9s ease-in-out infinite reverse;
}

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

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

/* Teal title */
.specialty-hero__title .highlight-pulmonology {
  color: var(--p-teal) !important;
  font-weight: 900 !important;
  position: relative;
}

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

@keyframes breathe-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-p 3s ease-in-out infinite;
}

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

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

/* Feature icons - fresh breathing palette */
.specialty-hero__feature:nth-child(1) .specialty-hero__feature-icon {
  background: linear-gradient(135deg, #2A9D8F, #21867A) !important;
}
.specialty-hero__feature:nth-child(2) .specialty-hero__feature-icon {
  background: linear-gradient(135deg, #8ECAE6, #6BB5C0) !important;
}
.specialty-hero__feature:nth-child(3) .specialty-hero__feature-icon {
  background: linear-gradient(135deg, #6B8F71, #4F7355) !important;
}
.specialty-hero__feature:nth-child(4) .specialty-hero__feature-icon {
  background: linear-gradient(135deg, #A8DADC, #6BB5C0) !important;
}

/* ========== Section Titles - Fresh 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, #2A9D8F, #8ECAE6, #A8DADC, #6BB5C0);
  animation: gradient-shift-p 3s ease-in-out infinite;
  background-size: 200% 100%;
}

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

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

/* Each card icon - fresh breathing palette */
.why-section__card:nth-child(1) .why-section__card-icon {
  background: linear-gradient(135deg, #2A9D8F, #21867A) !important;
}

.why-section__card:nth-child(2) .why-section__card-icon {
  background: linear-gradient(135deg, #6B8F71, #4F7355) !important;
}

.why-section__card:nth-child(3) .why-section__card-icon {
  background: linear-gradient(135deg, #8ECAE6, #6BB5C0) !important;
}

.why-section__card:nth-child(4) .why-section__card-icon {
  background: linear-gradient(135deg, #A8DADC, #6BB5C0) !important;
}

.why-section__card:nth-child(5) .why-section__card-icon {
  background: linear-gradient(135deg, #6B8F71, #4F7355) !important;
}

.why-section__card:nth-child(6) .why-section__card-icon {
  background: linear-gradient(135deg, #E76F51, #D45A3F) !important;
}

/* Card hover - playful bounce */
.why-section__card:hover {
  transform: translateY(-10px) scale(1.03) !important;
}

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

@keyframes icon-wiggle-p {
  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 - Fresh ========== */
.services-section__item:nth-child(1) .services-section__header-icon {
  color: #2A9D8F !important;
}
.services-section__item:nth-child(2) .services-section__header-icon {
  color: #6B8F71 !important;
}
.services-section__item:nth-child(3) .services-section__header-icon {
  color: #8ECAE6 !important;
}
.services-section__item:nth-child(4) .services-section__header-icon {
  color: #6BB5C0 !important;
}
.services-section__item:nth-child(5) .services-section__header-icon {
  color: #A8DADC !important;
}
.services-section__item:nth-child(6) .services-section__header-icon {
  color: #2A9D8F !important;
}

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

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

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

.services-section__btn {
  background: linear-gradient(135deg, #2A9D8F, #8ECAE6) !important;
  box-shadow: 0 4px 20px rgba(42, 157, 143, 0.3) !important;
}

.services-section__btn:hover {
  box-shadow: 0 8px 30px rgba(42, 157, 143, 0.5) !important;
}

/* ========== Reviews Section - Fresh ========== */
.reviews-section__card-avatar {
  background: linear-gradient(135deg, #2A9D8F, #8ECAE6) !important;
}

.reviews-section__card-rating i.filled {
  color: #8ECAE6 !important;
  animation: star-pop-p 0.3s ease-out;
}

@keyframes star-pop-p {
  0% { transform: scale(0.5); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.reviews-section__card-verified {
  color: #6BB5C0 !important;
}

/* ========== Diagnostics Section - Playful ========== */
.pulmonology-diagnostics__card:nth-child(1) .pulmonology-diagnostics__icon-bg {
  background: linear-gradient(135deg, #2A9D8F, #6B8F71) !important;
  box-shadow: 0 10px 30px rgba(42, 157, 143, 0.3) !important;
}
.pulmonology-diagnostics__card:nth-child(2) .pulmonology-diagnostics__icon-bg {
  background: linear-gradient(135deg, #8ECAE6, #6BB5C0) !important;
  box-shadow: 0 10px 30px rgba(142, 202, 230, 0.3) !important;
}
.pulmonology-diagnostics__card:nth-child(3) .pulmonology-diagnostics__icon-bg {
  background: linear-gradient(135deg, #6B8F71, #A8DADC) !important;
  box-shadow: 0 10px 30px rgba(107, 143, 113, 0.3) !important;
}

.pulmonology-diagnostics__badge {
  background: linear-gradient(135deg, #2A9D8F, #21867A) !important;
  box-shadow: 0 4px 15px rgba(42, 157, 143, 0.3) !important;
}

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