/* ==========================================================
   salon-page.css
   Стилі для сторінки окремої перукарні (Сімпа)
   Використовує CSS-змінні та базові класи з основного styles.css
   (--rose, --rose-deep, --rose-soft, --rose-pale, --cream,
    --ink, --ink-2, --muted, --line, --serif, --sans,
    --shadow-card, --r-md, --r-lg, --r-xl)
   ========================================================== */


/* === Активний пункт у дропдауні «Наші перукарні» === */
.dropdown a.is-current {
  background: var(--rose-pale);
  color: var(--rose-deep);
  font-weight: 600;
}
.dropdown a.is-current .pin {
  background: var(--rose);
  color: #fff;
}


/* === HERO сторінки перукарні =============================== */
.salon-hero {
  padding: 40px 0 24px;
  position: relative;
}

/* Хлібні крихти */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.breadcrumbs a {
  color: var(--muted);
  transition: color .2s;
}
.breadcrumbs a:hover { color: var(--rose-deep); }
.breadcrumbs .sep { opacity: 0.4; }
.breadcrumbs .current {
  color: var(--ink);
  font-weight: 600;
}

/* Заголовок та підзаголовок */
.salon-hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: 14px;
  max-width: 900px;
}
.salon-hero h1 em {
  font-style: italic;
  color: var(--rose);
}
.salon-hero .subtitle {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 620px;
  margin-bottom: 12px;
}

/* Грід hero: інфо-картка + фото */
.salon-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: stretch;
  margin-top: 32px;
}

/* Картка з ключовою інфо */
.salon-info-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 36px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.salon-info-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.salon-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rose-soft), var(--rose-pale));
  color: var(--rose-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.salon-info-text {
  flex: 1;
  min-width: 0;
}
.salon-info-text .label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}
.salon-info-text .value {
  font-size: 16.5px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.45;
}
.salon-info-text .value a {
  color: var(--ink);
  transition: color .2s;
}
.salon-info-text .value a:hover { color: var(--rose-deep); }
.salon-info-text .value.phone {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0.3px;
  font-weight: 400;
}
.salon-info-text .note {
  font-size: 13.5px;
  color: var(--ink-2);
  margin-top: 6px;
  line-height: 1.5;
}
.salon-info-text .badge-war {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--rose-pale);
  color: var(--rose-deep);
  padding: 5px 10px;
  border-radius: 999px;
  margin-top: 10px;
}

/* CTA-кнопки в інфо-картці */
.salon-info-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.salon-info-cta .btn {
  flex: 1 1 auto;
  justify-content: center;
}

/* Фото перукарні */
.salon-hero-image {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--rose-pale);
  min-height: 460px;
  box-shadow: var(--shadow-card);
}
.salon-hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.salon-hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.25) 100%);
}
.salon-hero-image .img-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  background: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 16px -8px rgba(0,0,0,0.25);
}
.salon-hero-image .img-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
}


/* === Якірна навігація сторінки ============================ */
.salon-anchors-wrap {
  display: flex;
  justify-content: center;
  padding: 20px 0 0;
}
.salon-anchors {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  display: inline-flex;
  gap: 2px;
  flex-wrap: wrap;
  box-shadow: 0 8px 24px -16px rgba(0,0,0,0.15);
}
.salon-anchors a {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background .2s, color .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.salon-anchors a:hover {
  background: var(--cream);
  color: var(--ink);
}
.salon-anchors a .num {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--rose-pale);
  color: var(--rose-deep);
  font-size: 11px;
  font-weight: 800;
}


/* === Карта Google Maps ==================================== */
.salon-map-wrap {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 7;
}
.salon-map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* === Сімпа Club — банер знижок ============================ */
.salon-discount {
  background: linear-gradient(135deg, #ffe4bf 0%, #ffd0a3 100%);
  border-radius: var(--r-lg);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.salon-discount::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 20px solid rgba(255,255,255,0.4);
  pointer-events: none;
}
.salon-discount-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  color: var(--rose);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 30px;
  box-shadow: 0 12px 24px -10px rgba(217,114,8,0.4);
  position: relative;
  z-index: 1;
}
.salon-discount-text {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.salon-discount-text h3 {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 4px;
}
.salon-discount-text p {
  color: var(--ink-2);
  font-size: 14.5px;
}
.salon-discount .btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}


/* === Прайс простим списком ================================ */
.price-group {
  margin-bottom: 36px;
}
.price-group:last-child { margin-bottom: 0; }
.price-group-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.price-group-head .group-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rose-pale);
  color: var(--rose-deep);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 18px;
  flex-shrink: 0;
}
.price-group-head h3 {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}

.price-list {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.price-row:last-child { border-bottom: none; }
.price-row:hover { background: var(--cream); }
.price-row-info { min-width: 0; flex: 1; }
.price-row .name {
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
}
.price-row .desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}
.price-row .desc .price-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--rose-deep);
  font-weight: 600;
  margin-left: 4px;
  white-space: nowrap;
  transition: color .2s;
  border-bottom: 1px dashed currentColor;
}
.price-row .desc .price-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.price-row .price {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--rose-deep);
  white-space: nowrap;
  flex-shrink: 0;
}
.price-note {
  margin-top: 24px;
  padding: 18px 22px;
  background: var(--rose-pale);
  border-radius: var(--r-md);
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.price-note-icon {
  flex-shrink: 0;
  color: var(--rose-deep);
  margin-top: 1px;
}


/* === Галерея фото ========================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--rose-pale);
  transition: transform .35s;
  border: 0;
  padding: 0;
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.32) 100%);
  opacity: 0;
  transition: opacity .25s;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-zoom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%) scale(0.7);
  opacity: 0;
  transition: all .3s;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  z-index: 2;
}
.gallery-item:hover .gallery-zoom {
  opacity: 1;
  transform: translate(-50%,-50%) scale(1);
}


/* === Lightbox ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20,15,22,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  cursor: default;
}
.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: 16px;
}
.lightbox-close:hover { transform: rotate(90deg) scale(1.05); }
.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;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }


/* === Кнопка "Відгуки на Facebook" ========================= */
.fb-reviews-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 14px 22px;
  border-radius: 999px;
  background: #1877f2;
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  transition: transform .2s, box-shadow .2s;
}
.fb-reviews-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(24,119,242,0.5);
  color: #fff;
}


/* === Схема проходу ======================================= */
.floor-plan {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.floor-plan-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 0 8px;
}
.floor-plan-head .fp-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--rose-pale);
  color: var(--rose-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.floor-plan-head h4 {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  margin: 0;
}
.floor-plan-head .hint {
  font-size: 12.5px;
  color: var(--muted);
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.floor-plan-img {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--rose-pale);
  cursor: zoom-in;
  border: 0;
  padding: 0;
  width: 100%;
  display: block;
}
.floor-plan-img img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .4s ease;
}
.floor-plan-img:hover img { transform: scale(1.02); }
.floor-plan-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 70%, rgba(0,0,0,0.15) 100%);
  opacity: 0;
  transition: opacity .25s;
}
.floor-plan-img:hover::after { opacity: 1; }


/* === Відеоблок — 1 велике ліворуч + 2 малі праворуч ====== */
.video-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 540px;
}
.video-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  background: #1a1018;
  border: 0;
  padding: 0;
  box-shadow: var(--shadow-card);
  transition: transform .35s;
}
.video-card:hover { transform: translateY(-3px); }
.video-card.is-main {
  grid-row: 1 / 3;
}
.video-card .video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease, filter .3s;
}
.video-card:hover .video-thumb {
  transform: scale(1.05);
  filter: brightness(0.85);
}
.video-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
  pointer-events: none;
}
.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 12px 32px rgba(0,0,0,0.4);
  transition: transform .25s, background .25s;
}
.video-card:hover .video-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: #fff;
}
.video-card .video-play svg {
  margin-left: 5px;
}
.video-card.is-small .video-play {
  width: 56px;
  height: 56px;
}
.video-card.is-small .video-play svg {
  width: 22px;
  height: 22px;
  margin-left: 4px;
}
.video-card .video-label {
  position: absolute;
  bottom: 18px;
  left: 20px;
  right: 20px;
  z-index: 2;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.video-card.is-small .video-label {
  font-size: 13.5px;
  bottom: 14px;
  left: 16px;
  right: 16px;
}
/* Стан "грає" — iframe заміщує превʼю */
.video-card.is-playing .video-thumb,
.video-card.is-playing .video-play,
.video-card.is-playing .video-label,
.video-card.is-playing::before {
  display: none;
}
.video-card.is-playing iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* === Відеовідгуки — два рівні ролики ===================== */
.video-reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}
.video-reviews-grid .video-card {
  aspect-ratio: 16 / 9;
  height: auto;
}


/* === Адаптив ============================================= */
@media (max-width: 1060px) {
  .salon-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .salon-hero-image { min-height: 360px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .video-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    height: auto;
  }
  .video-grid .video-card { aspect-ratio: 16/9; height: auto; }
  .video-grid .video-card.is-main { grid-row: auto; }
}
@media (max-width: 640px) {
  .salon-hero { padding: 24px 0 16px; }
  .salon-info-card { padding: 24px; }
  .salon-info-text .value.phone { font-size: 24px; }
  .salon-hero-image { min-height: 280px; }
  .salon-anchors {
    padding: 4px;
    width: 100%;
    justify-content: stretch;
  }
  .salon-anchors a {
    padding: 9px 12px;
    font-size: 12.5px;
    flex: 1;
    justify-content: center;
  }
  .salon-anchors a .num { width: 18px; height: 18px; font-size: 10px; }
  .salon-discount {
    flex-direction: column;
    padding: 24px;
    text-align: center;
    align-items: flex-start;
  }
  .salon-discount .btn {
    width: 100%;
    justify-content: center;
  }
  .price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 20px;
  }
  .price-row .price { font-size: 20px; }
  .price-group-head h3 { font-size: 22px; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .lightbox-nav { width: 44px; height: 44px; }
  .lightbox-nav.prev { left: 12px; }
  .lightbox-nav.next { right: 12px; }
  .video-reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .video-card .video-play { width: 60px; height: 60px; }
  .video-card .video-play svg { width: 24px; height: 24px; margin-left: 3px; }
  .video-card .video-label { font-size: 13px; bottom: 12px; left: 14px; right: 14px; }
  .floor-plan { padding: 16px; }
  .floor-plan-head { padding: 0 4px; margin-bottom: 12px; }
  .floor-plan-head h4 { font-size: 17px; }
  .floor-plan-head .hint { display: none; }
}