/* ==========================================================
   piercing-page.css
   Стилі для сторінки «Проколювання вух» (Сімпа)
   Використовує CSS-змінні та базові класи з основного styles.css
   ========================================================== */


/* === HERO ================================================ */
.piercing-hero {
  padding: 50px 0 30px;
  position: relative;
}

.piercing-hero .breadcrumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
  margin-bottom: 22px; flex-wrap: wrap;
}
.piercing-hero .breadcrumbs a { color: var(--muted); transition: color .2s; }
.piercing-hero .breadcrumbs a:hover { color: var(--rose-deep); }
.piercing-hero .breadcrumbs .sep { opacity: 0.4; }
.piercing-hero .breadcrumbs .current { color: var(--ink); font-weight: 600; }

.piercing-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  margin-top: 20px;
}

.piercing-hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 18px;
}
.piercing-hero h1 em {
  font-style: italic;
  color: var(--rose);
}
.piercing-hero .subtitle {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 32px;
}
.piercing-hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.piercing-hero-stat .big {
  font-family: var(--serif);
  font-size: 42px;
  color: var(--rose);
  line-height: 1;
}
.piercing-hero-stat .lbl {
  font-size: 13.5px;
  color: var(--ink-2);
  margin-top: 4px;
}
.piercing-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }


/* Велике зображення з SVG-ілюстрацією вушка */
.piercing-hero-image {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-pale) 0%, var(--rose-soft) 100%);
  box-shadow: 0 40px 80px -30px rgba(217,114,8,0.4);
}
.piercing-hero-image::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  z-index: 1;
  pointer-events: none;
}
.piercing-hero-image::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 20px solid rgba(255,255,255,0.45);
  z-index: 1;
  pointer-events: none;
}
.piercing-hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.piercing-hero-image .floater {
  position: absolute;
  z-index: 2;
}
.piercing-hero-image .floater.f1 { top: 14%; right: 12%; width: 36px; animation: twinkle 3s ease-in-out infinite; }
.piercing-hero-image .floater.f2 { bottom: 18%; left: 8%; width: 28px; animation: twinkle 3.6s ease-in-out infinite .6s; }
.piercing-hero-image .floater.f3 { top: 60%; right: 6%; width: 24px; animation: twinkle 2.8s ease-in-out infinite 1.4s; }
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0); opacity: 0.95; }
  50% { transform: scale(1.2) rotate(20deg); opacity: 0.65; }
}


/* === 5 причин — картки з номером ========================== */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.reason-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 22px;
  position: relative;
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.reason-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}
.reason-card .num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose) 0%, #ffb56b 100%);
  color: #fff;
  font-family: var(--serif);
  font-size: 20px;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 20px -8px rgba(217,114,8,0.45);
}
.reason-card h3 {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
  line-height: 1.2;
}
.reason-card p {
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.55;
}


/* === Системи проколювання ================================ */
.systems-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}
.system-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .35s, box-shadow .35s;
  display: flex;
  flex-direction: column;
}
.system-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}
.system-card.is-featured {
  background: linear-gradient(180deg, #fff 0%, #fff8ed 100%);
  border-color: var(--rose-soft);
  position: relative;
}
.system-card.is-featured::before {
  content: 'Топ-вибір';
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 6px 14px -4px rgba(217,114,8,0.4);
}

.system-photo {
  aspect-ratio: 16 /15;
  background: var(--rose-pale);
  overflow: hidden;
  position: relative;
}
.system-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}
.system-card:hover .system-photo img {
  transform: scale(1.04);
}

.system-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.system-body h3 {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--ink);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.system-body .system-age {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--rose-pale);
  color: var(--rose-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.system-body p {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
}
.system-features {
  list-style: none;
  margin: 4px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.system-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}
.system-features .check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px;
}

.system-price {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}
.system-price-info .lbl {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 4px;
}
.system-price-info .val {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--rose-deep);
  line-height: 1;
}
.system-price-info .small {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
}
.system-price-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px dashed var(--ink-2);
  white-space: nowrap;
  transition: color .2s;
}
.system-price-link:hover {
  color: var(--rose-deep);
  border-bottom-color: var(--rose-deep);
}


/* === Процедура — кроки ==================================== */
.procedure-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.procedure-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px 20px;
  position: relative;
  text-align: center;
}
.procedure-step .step-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--rose-soft), var(--rose-pale));
  color: var(--rose-deep);
  display: grid;
  place-items: center;
}
.procedure-step .step-num {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--serif);
  font-size: 28px;
  color: var(--rose-soft);
  line-height: 1;
}
.procedure-step h3 {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.2;
}
.procedure-step p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}


/* === Відео блок ========================================== */
.piercing-videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}

/* === Картки відео (локальні стилі для сторінки проколювання) === */
.piercing-videos .video-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  background: #1a1018;
  border: 0;
  padding: 0;
  box-shadow: var(--shadow-card);
  transition: transform .35s, box-shadow .35s;
  display: block;
}
.piercing-videos .video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -20px rgba(217,114,8,0.35);
}
.piercing-videos .video-card .video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease, filter .3s;
}
.piercing-videos .video-card:hover .video-thumb {
  transform: scale(1.05);
  filter: brightness(0.78);
}
/* Темний градієнт знизу — для читабельності підпису */
.piercing-videos .video-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.65) 100%);
  z-index: 1;
  pointer-events: none;
}
/* Кнопка play по центру */
.piercing-videos .video-card .video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: var(--rose-deep);
  display: grid;
  place-items: center;
  z-index: 2;
  box-shadow: 0 16px 36px rgba(0,0,0,0.4);
  transition: transform .25s, background .25s;
}
.piercing-videos .video-card:hover .video-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: #fff;
}
.piercing-videos .video-card .video-play svg {
  margin-left: 5px;
}
/* Підпис — поверх фото знизу */
.piercing-videos .video-card .video-label {
  position: absolute;
  bottom: 18px;
  left: 22px;
  right: 22px;
  z-index: 2;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  line-height: 1.3;
}
/* Стан "грає" */
.piercing-videos .video-card.is-playing .video-thumb,
.piercing-videos .video-card.is-playing .video-play,
.piercing-videos .video-card.is-playing .video-label,
.piercing-videos .video-card.is-playing::before {
  display: none;
}
.piercing-videos .video-card.is-playing iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* === Безпека — 4 пункти ================================== */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.safety-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: transform .3s, box-shadow .3s;
}
.safety-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.safety-card .safety-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--rose-soft), var(--rose-pale));
  color: var(--rose-deep);
  display: grid;
  place-items: center;
}
.safety-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.2;
}
.safety-card p {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
}


/* === Сертифікати ========================================= */
.certificates {
  background: linear-gradient(135deg, var(--cream) 0%, #fff6e8 100%);
  border-radius: var(--r-lg);
  padding: 40px 48px;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.certificates h3 {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 10px;
}
.certificates p {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
}
.certificates-images {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.certificates-images button {
  display: block;
  width: 120px;
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 24px -10px rgba(0,0,0,0.2);
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
  cursor: zoom-in;
  padding: 0;
}
.certificates-images button:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 0 20px 36px -10px rgba(0,0,0,0.25);
}
.certificates-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* === Lightbox для сертифікатів ============================ */
.cert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20,15,22,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  cursor: zoom-out;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cert-lightbox.open { display: flex; }
.cert-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  cursor: default;
  background: #fff;
}
.cert-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 0;
  transition: transform .25s;
  font-size: 18px;
  z-index: 2;
}
.cert-lightbox-close:hover { transform: rotate(90deg) scale(1.05); }
.cert-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s;
  z-index: 2;
}
.cert-lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.cert-lightbox-nav.prev { left: 24px; }
.cert-lightbox-nav.next { right: 24px; }
.cert-lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  z-index: 2;
}


/* === Догляд — FAQ-акордеон =============================== */
.care-faq {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.care-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .2s;
}
.care-item:hover { border-color: var(--rose-soft); }
.care-item.is-open { border-color: var(--rose); }

.care-item-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  transition: background .2s;
}
.care-item-head:hover { background: var(--cream); }

.care-item-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--rose-pale);
  color: var(--rose-deep);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 16px;
  transition: background .25s, color .25s;
}
.care-item.is-open .care-item-num {
  background: var(--rose);
  color: #fff;
}

.care-item-title {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.4;
}

.care-item-chevron {
  flex-shrink: 0;
  color: var(--ink-2);
  transition: transform .25s, color .25s;
}
.care-item.is-open .care-item-chevron {
  transform: rotate(180deg);
  color: var(--rose-deep);
}

.care-item-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.care-item.is-open .care-item-body {
  max-height: 400px;
}
.care-item-body-inner {
  padding: 0 24px 22px 72px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
}


/* === Запис на консультацію — CTA ========================= */
.piercing-cta {
  background: linear-gradient(135deg, #ffe4bf 0%, #ffd0a3 60%, #fcc391 100%);
  border-radius: var(--r-xl);
  padding: 56px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}
.piercing-cta::before {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 28px solid rgba(255,255,255,0.4);
  pointer-events: none;
}
.piercing-cta::after {
  content: '';
  position: absolute;
  left: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  pointer-events: none;
}
.piercing-cta-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.piercing-cta h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 14px;
}
.piercing-cta h2 em {
  font-style: italic;
  color: var(--rose-deep);
}
.piercing-cta p {
  font-size: 16px;
  color: var(--ink-2);
  margin-bottom: 24px;
  max-width: 600px;
}
.piercing-cta-phones {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.piercing-cta-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 14px;
  transition: transform .2s, box-shadow .2s;
}
.piercing-cta-phone:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -10px rgba(217,114,8,0.35);
}
.piercing-cta-phone .pp-pin {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--rose-pale);
  color: var(--rose-deep);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.piercing-cta-phone:hover .pp-pin {
  background: var(--rose);
  color: #fff;
}
.piercing-cta-phone-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.piercing-cta-phone-loc {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.piercing-cta-phone-num {
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}


/* === Адаптив ============================================= */
@media (max-width: 1060px) {
  .piercing-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .piercing-hero-image { max-width: 480px; margin: 0 auto; }
  .reasons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .systems-grid { grid-template-columns: 1fr; }
  .procedure-steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .piercing-videos { grid-template-columns: 1fr; }
  .safety-grid { grid-template-columns: 1fr; }
  .certificates {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 28px;
  }
  .certificates-images {
    justify-content: center;
  }
  .piercing-cta {
    padding: 40px 36px;
  }
  .piercing-cta-phones {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .piercing-hero { padding: 24px 0 12px; }
  .piercing-hero-stats { gap: 22px; }
  .piercing-hero-stat .big { font-size: 34px; }

  .reasons-grid { grid-template-columns: 1fr; }
  .procedure-steps { grid-template-columns: 1fr; gap: 12px; }
  .system-body { padding: 24px 22px; }
  .system-body h3 { font-size: 24px; flex-wrap: wrap; }
  .system-price {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .safety-card { padding: 22px; flex-direction: column; gap: 14px; }
  .certificates-images button { width: 96px; height: 130px; }

  /* Lightbox — компактніший на mobile */
  .cert-lightbox { padding: 50px 12px; }
  .cert-lightbox-close { top: 14px; right: 14px; width: 42px; height: 42px; }
  .cert-lightbox-nav { width: 42px; height: 42px; }
  .cert-lightbox-nav.prev { left: 8px; }
  .cert-lightbox-nav.next { right: 8px; }
  .certificates { padding: 24px 22px; }
  .certificates h3 { font-size: 20px; }

  .care-item-head { padding: 16px 18px; gap: 12px; }
  .care-item-title { font-size: 14.5px; }
  .care-item-body-inner { padding: 0 18px 18px 60px; }

  /* Відео — компактніша play-кнопка та підпис на мобільному */
  .piercing-videos .video-card .video-play { width: 60px; height: 60px; }
  .piercing-videos .video-card .video-play svg { width: 24px; height: 24px; margin-left: 3px; }
  .piercing-videos .video-card .video-label {
    font-size: 13.5px;
    bottom: 14px;
    left: 16px;
    right: 16px;
  }

  .piercing-cta { padding: 32px 22px; border-radius: 28px; }
  .piercing-cta-phones { grid-template-columns: 1fr; }
}