﻿@charset "UTF-8";

/* ========= MUSCLE ANATOMY SECTION ========= */
.muscle-anatomy-section {
  --bg: #f7f9fc;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #607087;
  --brand: #2563eb;
  --danger: #e11d48;
  --ok: #16a34a;
  --border: #e5e7eb;
  --shadow: 0 6px 22px rgba(30, 41, 59, .08);
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius: 12px;
  --gap: clamp(14px, 1.8vw, 20px);

  background: var(--bg);
  color: var(--text);
  padding-top: clamp(16px, 2vw, 28px);
  padding-bottom: clamp(28px, 3.2vw, 48px);
}

.muscle-anatomy-section .section-title {
  background: linear-gradient(90deg, #0f172a, #1f2937 50%, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: none;
}

.muscle-anatomy-section .container {
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  border-top: 1px solid var(--border);
  padding-top: clamp(16px, 2vw, 24px);
}

.muscle-anatomy-section .muscle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 24px);
}

.muscle-anatomy-section .muscle-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: clamp(14px, 1.6vw, 18px);

  display: grid;
  grid-template-columns: 450px minmax(0, 1fr);
  gap: clamp(12px, 1.5vw, 16px);
  align-items: start;
}

.muscle-anatomy-section .muscle-item > h3,
.muscle-anatomy-section .muscle-item > h4 {
  grid-column: 1 / -1;
  margin: 2px 2px 6px;
}
.muscle-anatomy-section .muscle-item > h4 { color: var(--muted); }

/* Media (картинка/видео) */
.muscle-anatomy-section .muscle-media {
  position: relative;
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border, #e5e7eb);
  background: #f3f4f6;
  margin: 0 auto;
}
.muscle-anatomy-section .muscle-media > img,
.muscle-anatomy-section .muscle-media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .3s ease, transform .3s ease, filter .3s ease;
}
.muscle-anatomy-section .muscle-media .static-muscle-img { opacity: 1; z-index: 1; }
.muscle-anatomy-section .muscle-media .hover-muscle-video { opacity: 0; z-index: 2; }
.muscle-anatomy-section .muscle-media:hover .hover-muscle-video,
.muscle-anatomy-section .muscle-media:focus-within .hover-muscle-video { opacity: 1; }
.muscle-anatomy-section .muscle-media:hover .static-muscle-img,
.muscle-anatomy-section .muscle-media:focus-within .static-muscle-img { opacity: 0; }

/* Малък етикет "video" */
.muscle-anatomy-section .muscle-media::before {
  content: "▶ video";
  position: absolute;
  left: 12px;
  top: 12px;
  font-size: 13px;
  font-weight: 600;
  font-family: system-ui, sans-serif;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.9);
  color: #fff;
  letter-spacing: 0.3px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  backdrop-filter: blur(4px);
  z-index: 3;
  transition: background 0.2s ease, transform 0.2s ease;
}
.muscle-anatomy-section .muscle-media:hover::before {
  background: rgba(34, 197, 94, 0.95);
  transform: scale(1.05);
}

/* Details / info blocks */
.muscle-anatomy-section .muscle-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: stretch;
}
.muscle-anatomy-section .muscle-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.muscle-anatomy-section .info-block {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(12px, 1.4vw, 16px);
  box-shadow: inset 0 1px 0 rgba(17,24,39,.03);
}
.muscle-anatomy-section .block-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: .5rem;
}
.muscle-anatomy-section .block-header h4 {
  margin: 0; font-size: clamp(14px, 1.1vw, 16px); color: #0f172a;
}
.muscle-anatomy-section .block-header i { color: var(--brand); }
.muscle-anatomy-section .pain-char-block .block-header i { color: var(--danger); }

.muscle-anatomy-section .info-block p {
  margin: 0 0 .75rem; line-height: 1.55; color: var(--text);
}
.muscle-anatomy-section .highlight { color: #0b7; font-weight: 600; }

.muscle-anatomy-section .function-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #065f46;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}

/* Bullet списъци */
.muscle-anatomy-section .pain-char-block ul {
  margin: .4rem 0 0; padding-left: 1.1rem; display: grid; gap: 6px;
}
.muscle-anatomy-section .pain-char-block li { line-height: 1.55; color: var(--text); }
.muscle-anatomy-section .pain-char-block ul li::marker { color: #f59e0b; }

/* Разделител между картите */
.muscle-anatomy-section .muscle-item + .muscle-item { margin-top: 2px; }

/* Responsive */
@media (max-width: 900px) {
  .muscle-anatomy-section .muscle-item { grid-template-columns: 1fr; }
  .muscle-anatomy-section .muscle-media {
    max-width: 280px;
    margin: 0 auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .muscle-anatomy-section .muscle-media img,
  .muscle-anatomy-section .muscle-media video {
    transition: opacity .2s linear;
  }
}

/* ========= HEALING SECTION (ALTERNATIVE STYLE) ========= */
.healing-section.alternative-style {
  padding: 0 20px;
  background-color: #eef4f7;
  text-align: center;
}
.healing-section.alternative-style .section-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #005662;
  margin-bottom: 15px;
}
.healing-section.alternative-style .section-subtitle {
  font-size: 1.3rem;
  color: #7f8c8d;
  margin-bottom: 20px;
}
.healing-section.alternative-style .healing-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-items: center;
}
.healing-section.alternative-style .healing-step {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(44, 62, 80, 0.1);
  padding: 20px 30px;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.healing-section.alternative-style .healing-step::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.1) 0%, rgba(52, 152, 219, 0.1) 100%);
  transition: all 0.5s ease;
  z-index: 0;
}
.healing-section.alternative-style .healing-step:hover::before { top: 0; }
.healing-section.alternative-style .healing-step > * { position: relative; z-index: 1; }
.healing-section.alternative-style .step-icon-circle {
  width: 80px; height: 80px; background: #3498db; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 25px;
  transition: background-color 0.4s ease;
}
.healing-section.alternative-style .healing-step:hover .step-icon-circle { background-color: #2ecc71; }
.healing-section.alternative-style .step-icon-circle i { font-size: 2.5rem; color: #fff; }
.healing-section.alternative-style .healing-step h3 {
  font-size: 1.6rem; font-weight: 700; color: #333; margin-bottom: 15px;
}
.healing-section.alternative-style .healing-step p {
  font-size: 1.1rem; line-height: 1.7; color: #555; margin-bottom: 0;
}
.healing-section.alternative-style .highlight { font-weight: bold; color: #2ecc71; }
@media (max-width: 768px) {
  .healing-section.alternative-style .healing-steps-grid { grid-template-columns: 1fr; }
  .healing-section.alternative-style .healing-step { max-width: none; }
}

/* ========= FOOTER (единствен, консолидаран блок) ========= */
footer{
  background:#f3f5f7;
  padding: 40px 0 28px;
  color:#0f172a;
  font-size: 18px;
  line-height: 1.6;
}
footer .contact-section{ max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* layout: лява (карта), център (социалки), дясна (тел/време/адрес) */
footer .contact-container{
  display: grid;
  grid-template-columns: 360px 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

/* карта */
footer .contact-left .map iframe{
  width: 360px; height: 260px;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  background:#90c0ef;
  display:block;
}

/* център */
footer .contact-center{ text-align: center; }
footer .contact-center h2{
  margin: 0 0 14px;
  font-size: 2rem;
  font-weight: 800;
}
footer .social-links{
  display: inline-flex;
  gap: 14px;
}
footer .social-links a{ display:inline-flex; }
footer .social-links img{
  width: 64px; height: 64px;
  object-fit: contain; display:block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.08));
  border-radius: 8px;
}

/* дясно */
footer .contact-right{ }
footer .contact-item{ display:flex; gap:12px; align-items:center; margin-bottom: 16px; }
footer .icon{ width: 48px; height: 48px; object-fit: contain; flex:0 0 48px; }

footer .contact-item.phone .icon{ width: 54px; height: 54px; }
footer .contact-item.phone span{
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: .5px;
}

footer .work-hours .icon{ width: 54px; height: 54px; }
footer .address-item .icon{ width: 48px; height: 48px; }

footer .map-link{
  color:#0b66ff;
  text-decoration: underline;
}
footer .map-link:hover{ text-decoration: none; }

footer .footer-links{
  margin-top: 22px; text-align:center; font-size: 1.05rem;
}
footer .footer-links a{ color:#0b66ff; }

/* Responsive footer */
@media (max-width: 1024px){
  footer .contact-container{
    grid-template-columns: 320px 1fr;
    grid-auto-rows: auto;
  }
  footer .contact-center{ order: 2; }
  footer .contact-right{ order: 3; }
  footer .contact-left .map iframe{ width: 320px; height: 230px; }
}
@media (max-width: 768px){
  footer{ font-size: 16px; }
  footer .contact-container{ grid-template-columns: 1fr; gap: 22px; }
  footer .contact-left .map iframe{ width: 100%; height: 220px; }
  footer .social-links img{ width: 56px; height: 56px; }
  footer .contact-item.phone span{ font-size: 1.9rem; }
}

/* ========= FOOTER – UX подобрения ========= */
:root{
  --f-accent: #0b66ff;
  --f-ink: #0f172a;
  --f-bg: #c2c4c6;
  --f-soft-shadow: 0 8px 24px rgba(15, 23, 42, .08);
  --f-ring: 0 0 0 3px rgba(11,102,255,.18);
}
footer a, 
footer .social-links a,
footer .contact-item,
footer .map-link,
footer .footer-links a,
footer .contact-item span,
footer .icon,
footer .social-links img{
  transition: 
    transform .25s ease,
    box-shadow .25s ease,
    filter .25s ease,
    opacity .25s ease,
    color .25s ease,
    background-color .25s ease;
}
footer .social-links a{
  position: relative;
  border-radius: 10px;
  outline: none;
}
footer .social-links a:hover,
footer .social-links a:focus-visible{
  transform: translateY(-4px) scale(1.03);
}
footer .social-links a:hover img,
footer .social-links a:focus-visible img{
  filter: drop-shadow(0 8px 18px rgba(11,102,255,.25));
}
footer .social-links a:active{
  transform: translateY(-1px) scale(.99);
}
footer .contact-item{
  border-radius: 14px;
  padding: 8px 10px;
}
footer .contact-item:hover{
  background: rgba(11,102,255,.06);
  box-shadow: var(--f-soft-shadow);
}
footer .contact-item .icon{
  transition: transform .25s ease;
}
footer .contact-item:hover .icon{
  transform: scale(1.06) rotate(-2deg);
}
@keyframes f-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
footer .contact-item.phone:hover span{
  color: var(--f-accent);
  animation: f-pulse .8s ease-in-out;
}
footer .footer-links a{
  position: relative;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 50% 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
}
footer .footer-links a:hover,
footer .footer-links a:focus-visible{
  color: var(--f-accent);
  background-size: 100% 2px;
}
footer .map-link{
  position: relative;
}
footer .map-link::after{
  content:"?";
  margin-left: .35em;
  opacity: .0;
  transition: transform .25s ease, opacity .25s ease;
}
footer .map-link:hover::after,
footer .map-link:focus-visible::after{
  opacity: .9;
  transform: translateY(-1px);
}
footer .contact-left .map iframe{
  transition: transform .3s ease, box-shadow .3s ease;
}
footer .contact-left .map iframe:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
footer a:focus-visible{
  box-shadow: var(--f-ring);
  border-radius: 10px;
}
footer .back-to-top{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgb(196, 195, 195);
  box-shadow: var(--f-soft-shadow);
  font-weight: 700;
}
footer .back-to-top:hover{ transform: translateY(-3px); }
@media (max-width: 768px){
  footer .back-to-top{ display:none; }
}

/* Dark mode за footer */
@media (prefers-color-scheme: dark){
  :root{
    --f-bg:#0b1220;
    --f-ink:#6b97f0;
  }
  footer{
    background: var(--f-bg);
    color: var(--f-ink);
  }
  footer .footer-links a,
  footer .map-link{ color: var(--f-accent); }
  footer .social-links img{ filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
  footer .contact-item:hover{ background: rgba(11,102,255,.14); }
}
/* === Muscle media: mobile-only bigger, без да раздува контейнера === */
@media (max-width: 900px){
  /* 1) едноколонен layout + центриране на съдържанието */
  .muscle-anatomy-section .muscle-item{
    grid-template-columns: 1fr;
    justify-items: center;      /* център по хоризонтала */
    align-items: start;
    overflow: hidden;           /* безопасност при редки скейлирания/сенки */
  }

  /* 2) квадратът става по-голям, но не повече от наличната ширина */
  .muscle-anatomy-section .muscle-media{
    /* контролирай размера тук при нужда (последната стойност) */
    --mobile-media-size: clamp(320px, 92vw, 460px);

    width: min(100%, var(--mobile-media-size));
    max-width: none;            /* игнорира старото 280px ограничение */
    aspect-ratio: 1 / 1;
    margin-inline: auto;        /* надеждно центриране */
    display: block;
  }

  /* 3) дребен финес: значката "▶ video" да не изглежда дребна/огромна */
  .muscle-anatomy-section .muscle-media::before{
    font-size: clamp(12px, 3.2vw, 14px);
    left: 10px; top: 10px;
  }
}
