/* ============================================================
   Modern Massage Page Styles — «Лечебный массаж»
   Тёплая терракотовая палитра (забота + медицина), glassmorphism
   Дизайн-система: hero, преимущества, медицинский подход, услуги
   ============================================================ */

:root {
  --primary: #B4633A;
  --primary-light: #C97B52;
  --primary-dark: #8F4A28;
  --primary-soft: rgba(180, 99, 58, 0.08);
  --primary-medium: rgba(180, 99, 58, 0.15);
  --accent-warm: #E8B86D;
  --accent-coral: #D9855B;
  --bg-warm: #FDF7F2;
  --bg-cream: #FBF1E8;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);
  --text-dark: #33241B;
  --text-medium: #57473C;
  --text-light: #8A7666;
  --shadow-soft: 0 4px 20px rgba(180, 99, 58, 0.08);
  --shadow-medium: 0 8px 32px rgba(180, 99, 58, 0.12);
  --shadow-strong: 0 20px 60px rgba(180, 99, 58, 0.16);
}

/* ========== Hero ========== */
.specialty-hero {
  background: linear-gradient(135deg, #FDF7F2 0%, #F7F2EA 50%, #F3EBDF 100%);
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.specialty-hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(180, 99, 58, 0.07) 0%, transparent 70%);
  border-radius: 50%;
  animation: massage-pulse-organic 8s ease-in-out infinite;
}

.specialty-hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232, 184, 109, 0.09) 0%, transparent 70%);
  border-radius: 50%;
  animation: massage-pulse-organic 10s ease-in-out infinite reverse;
}

@keyframes massage-pulse-organic {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.specialty-hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.specialty-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-dark);
  margin-bottom: 28px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}

.specialty-hero__badge-dot {
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  animation: massage-pulse-glow 2s infinite;
}

@keyframes massage-pulse-glow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(180, 99, 58, 0.4);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
    box-shadow: 0 0 20px 5px rgba(180, 99, 58, 0.2);
  }
}

.specialty-hero__title {
  font-size: 60px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.specialty-hero__title em {
  color: var(--primary);
  font-style: normal;
  position: relative;
}

.specialty-hero__title em::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 12px;
  background: linear-gradient(90deg, rgba(180, 99, 58, 0.2), rgba(232, 184, 109, 0.35));
  border-radius: 4px;
  z-index: -1;
}

.specialty-hero__subtitle {
  font-size: 20px;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 500px;
  font-weight: 400;
}

.specialty-hero__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.specialty-hero__feature {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-soft);
}

.specialty-hero__feature:hover {
  background: white;
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-medium);
  border-color: rgba(180, 99, 58, 0.2);
}

.specialty-hero__feature-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(180, 99, 58, 0.3);
}

.specialty-hero__feature span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.specialty-hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Visual */
.specialty-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

@media (min-width: 1280px) {
  .hero__image-wrapper {
    max-width: 620px;
  }
}

.hero__image-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.hero__blob-bg {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(180, 99, 58, 0.09) 0%, rgba(232, 184, 109, 0.07) 100%);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: massage-blob-morph 10s ease-in-out infinite;
}

@keyframes massage-blob-morph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50% { border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%; }
  75% { border-radius: 60% 30% 60% 40% / 70% 40% 50% 60%; }
}

.hero__deco-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(180, 99, 58, 0.1), rgba(232, 184, 109, 0.12));
}

.hero__deco-circle--1 {
  width: 180px;
  height: 180px;
  top: -60px;
  right: -20px;
  animation: massage-float-circle 7s ease-in-out infinite;
}

.hero__deco-circle--2 {
  width: 100px;
  height: 100px;
  bottom: -10px;
  left: -60px;
  animation: massage-float-circle 5s ease-in-out infinite reverse;
}

.hero__deco-circle--3 {
  width: 60px;
  height: 60px;
  top: 40%;
  right: -70px;
  animation: massage-float-circle 6s ease-in-out infinite;
}

@keyframes massage-float-circle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

.hero__image-container {
  position: relative;
  z-index: 1;
}

.hero__image-blob {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(180, 99, 58, 0.25),
    0 10px 30px rgba(180, 99, 58, 0.1);
  animation: massage-blob-morph 10s ease-in-out infinite;
  border: 8px solid white;
  position: relative;
}

.hero__image-blob::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(180, 99, 58, 0.05) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero__image-blob:hover .hero__img {
  transform: scale(1.05);
}

/* ========== Why Section ========== */
.why-section {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg-warm) 0%, white 50%, var(--bg-warm) 100%);
  position: relative;
  overflow: hidden;
}

.why-section::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(180, 99, 58, 0.04) 0%, transparent 70%);
  border-radius: 50%;
}

.why-section::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: -5%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(232, 184, 109, 0.07) 0%, transparent 70%);
  border-radius: 50%;
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 60px;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-light);
  font-weight: 400;
}

.why-section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.why-section__card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 40px 30px;
  border-radius: 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.why-section__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-warm));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.why-section__card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-strong);
  background: white;
}

.why-section__card:hover::before {
  transform: scaleX(1);
}

.why-section__card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 32px;
  color: white;
  box-shadow: 0 10px 30px rgba(180, 99, 58, 0.3);
  transition: transform 0.4s ease;
}

.why-section__card:hover .why-section__card-icon {
  transform: scale(1.1) rotate(-5deg);
}

.why-section__card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.why-section__card-text {
  font-size: 15px;
  color: var(--text-medium);
  line-height: 1.7;
}

/* ========== Медицинский подход (врач + команда) ========== */
.medical-section {
  padding: 120px 0;
  background: white;
  position: relative;
  overflow: hidden;
}

.medical-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232, 184, 109, 0.07) 0%, transparent 70%);
  border-radius: 50%;
}

.medical-section__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.medical-section__text-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.medical-section__text-title em {
  color: var(--primary);
  font-style: normal;
}

.medical-section__text p {
  font-size: 16px;
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 16px;
}

.medical-section__list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}

.medical-section__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: var(--text-medium);
  line-height: 1.6;
}

.medical-section__list li i {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 9px;
  color: white;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.medical-section__visual {
  position: relative;
}

.medical-section__visual-img {
  border-radius: 28px;
  overflow: hidden;
  border: 8px solid white;
  box-shadow: 0 30px 80px rgba(180, 99, 58, 0.22);
}

.medical-section__visual-img img {
  width: 100%;
  height: auto;
  display: block;
}

.medical-section__badge {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(180, 99, 58, 0.35);
  text-align: center;
}

/* Команда профильных врачей */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
  margin-top: 60px;
}

.team-card {
  background: var(--bg-cream);
  border: 1px solid rgba(180, 99, 58, 0.12);
  border-radius: 22px;
  padding: 36px 28px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-warm));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
  background: white;
}

.team-card:hover::before {
  opacity: 1;
}

.team-card__icon {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 26px;
  color: white;
  box-shadow: 0 8px 24px rgba(180, 99, 58, 0.28);
}

.team-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.team-card__text {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.7;
}

/* ========== Services Section ========== */
.services-section {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg-warm) 0%, white 50%, var(--bg-warm) 100%);
  position: relative;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180, 99, 58, 0.12), transparent);
}

.services-section__banner {
  max-width: 900px;
  margin: 0 auto 40px;
  border-radius: 24px;
  overflow: hidden;
  border: 8px solid white;
  box-shadow: 0 20px 50px rgba(180, 99, 58, 0.18);
}

.services-section__banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.services-section__accordion {
  max-width: 900px;
  margin: 60px auto 0;
}

.services-section__item {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-soft);
}

.services-section__item:hover {
  box-shadow: var(--shadow-medium);
  transform: translateX(4px);
}

.services-section__item--active {
  border-color: rgba(180, 99, 58, 0.3);
  box-shadow: var(--shadow-strong);
  background: white;
  transform: scale(1.01);
}

.services-section__header {
  width: 100%;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
}

.services-section__header-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.services-section__header-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(180, 99, 58, 0.1), rgba(180, 99, 58, 0.05));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.services-section__item--active .services-section__header-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  transform: scale(1.1);
}

.services-section__header-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.services-section__header-desc {
  font-size: 14px;
  color: var(--text-light);
}

.services-section__header-arrow {
  width: 44px;
  height: 44px;
  background: rgba(180, 99, 58, 0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.services-section__item--active .services-section__header-arrow {
  transform: rotate(180deg);
  background: var(--primary);
  color: white;
}

.services-section__content {
  padding: 0 32px 32px;
}

.services-section__description {
  font-size: 16px;
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 24px;
}

.services-section__includes {
  background: linear-gradient(135deg, rgba(180, 99, 58, 0.04), rgba(232, 184, 109, 0.05));
  padding: 28px;
  border-radius: 16px;
  margin-bottom: 24px;
  border: 1px solid rgba(180, 99, 58, 0.1);
}

.services-section__includes h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.services-section__includes ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
}

.services-section__includes li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-medium);
}

.services-section__includes li i {
  color: var(--primary);
  font-size: 12px;
  width: 20px;
  height: 20px;
  background: rgba(180, 99, 58, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.services-section__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid rgba(180, 99, 58, 0.1);
}

.services-section__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(180, 99, 58, 0.3);
  font-family: inherit;
}

.services-section__btn:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 30px rgba(180, 99, 58, 0.4);
}

/* ========== Container ========== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .specialty-hero__content {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

  .specialty-hero__title {
    font-size: 48px;
  }

  .specialty-hero__subtitle {
    margin: 0 auto 40px;
  }

  .specialty-hero__features {
    max-width: 520px;
    margin: 0 auto 40px;
  }

  .specialty-hero__cta {
    justify-content: center;
  }

  .hero__image-wrapper {
    max-width: 450px;
  }

  .why-section__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .medical-section__grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .medical-section__visual {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .specialty-hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .specialty-hero__title {
    font-size: 36px;
  }

  .specialty-hero__features {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 32px;
  }

  .why-section__grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .medical-section__text-title {
    font-size: 28px;
  }

  .services-section__includes ul {
    grid-template-columns: 1fr;
  }

  .medical-section__badge {
    font-size: 12px;
    padding: 12px 18px;
    white-space: normal;
    width: 88%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .specialty-hero__features {
    grid-template-columns: 1fr;
  }

  .why-section__card {
    padding: 28px 22px;
  }

  .services-section__header {
    padding: 22px 20px;
  }

  .services-section__header-title {
    font-size: 16px;
  }

  .services-section__content {
    padding: 0 20px 24px;
  }

  .services-section__btn {
    width: 100%;
    justify-content: center;
  }
}
