/* ========== Rentgen Diagnostics Playful Design ========== */
/* Серебристо-голубая гамма — медицинская эстетика, прецизионность */

/* ========== Playful Color Palette ========== */
:root {
  --r-steel: #5B7B9A;
  --r-steel-deep: #3A5A78;
  --r-steel-light: #D6E2ED;
  --r-silver: #9AADBE;
  --r-silver-light: #C8D5E0;
  --r-accent-blue: #4A8BC2;
  --r-accent-graphite: #5A6B7C;
  --r-accent-ice: #B0C4D8;
  --r-bg-cool: #F0F3F7;
  --r-bg-glass: rgba(255, 255, 255, 0.7);
}

/* ========== 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(91, 123, 154, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float-bg-r 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(154, 173, 190, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float-bg-r 8s ease-in-out infinite reverse;
}

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

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

.rentgen-diagnostics .container::after {
  content: '';
  position: absolute;
  top: 25%;
  right: -4%;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(74, 139, 194, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float-bg-r 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(91, 123, 154, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float-bg-r 9s ease-in-out infinite reverse;
}

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

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

/* Silver-blue title highlight */
.specialty-hero__title .highlight-rentgen {
  color: var(--r-steel) !important;
  font-weight: 900 !important;
  position: relative;
}

.specialty-hero__title .highlight-rentgen::after {
  content: ' ☢';
  font-size: 0.45em;
  display: inline-block;
  animation: symbol-gleam-r 2.5s ease-in-out infinite;
}

@keyframes symbol-gleam-r {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.7; }
  50% { transform: rotate(-8deg) scale(1.15); opacity: 1; }
}

/* Floating symbols around the hero title */
.specialty-hero__title::before {
  content: '✦';
  position: absolute;
  top: -25px;
  left: -35px;
  font-size: 20px;
  color: var(--r-steel);
  opacity: 0.4;
  animation: symbol-float-r 3s ease-in-out infinite;
}

.specialty-hero__title::after {
  content: '◆';
  position: absolute;
  bottom: -20px;
  right: -25px;
  font-size: 14px;
  color: var(--r-silver);
  opacity: 0.3;
  animation: symbol-float-r 3.5s ease-in-out infinite 0.8s;
}

@keyframes symbol-float-r {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
  50% { transform: translateY(-10px) rotate(15deg); opacity: 0.6; }
}

/* Feature icons - silver-blue palette variants */
.specialty-hero__feature:nth-child(1) .specialty-hero__feature-icon {
  background: linear-gradient(135deg, #5B7B9A, #3A5A78) !important;
}
.specialty-hero__feature:nth-child(2) .specialty-hero__feature-icon {
  background: linear-gradient(135deg, #4A8BC2, #5B7B9A) !important;
}
.specialty-hero__feature:nth-child(3) .specialty-hero__feature-icon {
  background: linear-gradient(135deg, #5A6B7C, #3D4F60) !important;
}
.specialty-hero__feature:nth-child(4) .specialty-hero__feature-icon {
  background: linear-gradient(135deg, #7A9FBE, #5B7B9A) !important;
}

/* ========== Section Titles - 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, #5B7B9A, #7A9FBE, #9AADBE, #5A6B7C);
  animation: gradient-shift-r 3s ease-in-out infinite;
  background-size: 200% 100%;
}

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

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

/* Each card icon - silver-blue palette */
.why-section__card:nth-child(1) .why-section__card-icon {
  background: linear-gradient(135deg, #5B7B9A, #3A5A78) !important;
}

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

.why-section__card:nth-child(3) .why-section__card-icon {
  background: linear-gradient(135deg, #5A6B7C, #3D4F60) !important;
}

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

.why-section__card:nth-child(5) .why-section__card-icon {
  background: linear-gradient(135deg, #9AADBE, #7A8B9C) !important;
}

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

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

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

@keyframes icon-gleam-r {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-6deg) scale(1.08); }
  50% { transform: rotate(6deg) scale(1.12); }
  75% { transform: rotate(-3deg) scale(1.08); }
}

/* ========== Services Section ========== */
.services-section__item:nth-child(1) .services-section__header-icon {
  color: #5B7B9A !important;
}
.services-section__item:nth-child(2) .services-section__header-icon {
  color: #4A8BC2 !important;
}
.services-section__item:nth-child(3) .services-section__header-icon {
  color: #5A6B7C !important;
}
.services-section__item:nth-child(4) .services-section__header-icon {
  color: #7A9FBE !important;
}
.services-section__item:nth-child(5) .services-section__header-icon {
  color: #4A6A80 !important;
}
.services-section__item:nth-child(6) .services-section__header-icon {
  color: #9AADBE !important;
}

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

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

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

.services-section__btn {
  background: linear-gradient(135deg, #5B7B9A, #4A8BC2) !important;
  box-shadow: 0 4px 20px rgba(91, 123, 154, 0.3) !important;
}

.services-section__btn:hover {
  box-shadow: 0 8px 30px rgba(91, 123, 154, 0.5) !important;
}

/* ========== Reviews Section ========== */
.reviews-section__card-avatar {
  background: linear-gradient(135deg, #5B7B9A, #7A9FBE) !important;
}

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

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

.reviews-section__card-verified {
  color: #4A8BC2 !important;
}

/* ========== Diagnostics Section ========== */
.rentgen-diagnostics__card:nth-child(1) .rentgen-diagnostics__icon-bg {
  background: linear-gradient(135deg, #5B7B9A, #4A8BC2) !important;
  box-shadow: 0 10px 30px rgba(91, 123, 154, 0.3) !important;
}
.rentgen-diagnostics__card:nth-child(2) .rentgen-diagnostics__icon-bg {
  background: linear-gradient(135deg, #5A6B7C, #3D4F60) !important;
  box-shadow: 0 10px 30px rgba(90, 107, 124, 0.3) !important;
}
.rentgen-diagnostics__card:nth-child(3) .rentgen-diagnostics__icon-bg {
  background: linear-gradient(135deg, #7A9FBE, #5B7B9A) !important;
  box-shadow: 0 10px 30px rgba(122, 159, 190, 0.3) !important;
}

.rentgen-diagnostics__badge {
  background: linear-gradient(135deg, #5B7B9A, #3A5A78) !important;
  box-shadow: 0 4px 15px rgba(91, 123, 154, 0.3) !important;
}

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