/* ==========================================================
   services-page.css
   Стилі для сторінки «Послуги» (Сімпа)
   Використовує CSS-змінні та базові класи з основного styles.css
   ========================================================== */


/* === HERO сторінки «Послуги» ============================== */
.services-hero {
  padding: 50px 0 30px;
  position: relative;
}

.services-hero .breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.services-hero .breadcrumbs a { color: var(--muted); transition: color .2s; }
.services-hero .breadcrumbs a:hover { color: var(--rose-deep); }
.services-hero .breadcrumbs .sep { opacity: 0.4; }
.services-hero .breadcrumbs .current {
  color: var(--ink);
  font-weight: 600;
}

.services-hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 18px;
  max-width: 900px;
}
.services-hero h1 em {
  font-style: italic;
  color: var(--rose);
}
.services-hero .subtitle {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 680px;
  margin-bottom: 36px;
}


/* === Сітка категорій послуг =============================== */
.service-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}

.service-category {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: transform .35s, box-shadow .35s;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.service-category:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

/* Велика категорія на всю ширину */
.service-category.is-wide {
  grid-column: span 2;
}

.service-category-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.service-category-illu {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--rose-pale) 0%, var(--rose-soft) 100%);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  transition: transform .4s;
}
.service-category:hover .service-category-illu {
  transform: rotate(-3deg) scale(1.04);
}
.service-category-illu svg {
  width: 88px;
  height: 88px;
  position: relative;
  z-index: 1;
}
/* Декоративна крапка у фоні ілюстрації */
.service-category-illu::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
}

.service-category-title {
  flex: 1;
  min-width: 0;
}
.service-category-title .kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 6px;
}
.service-category-title h2 {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 8px;
}
.service-category-title .desc {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* Список послуг всередині категорії */
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.service-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.service-list li:last-child { border-bottom: none; }
.service-list li:first-child { padding-top: 4px; }

.service-list .s-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  flex: 1;
  min-width: 0;
}
.service-list .s-name small {
  display: block;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}
.service-list .s-price {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--rose-deep);
  white-space: nowrap;
  flex-shrink: 0;
}
.service-list .s-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rose-deep);
  margin-top: 4px;
  border-bottom: 1px dashed currentColor;
  transition: color .2s;
}
.service-list .s-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Для широкої картки — список у 2 колонки */
.service-category.is-wide .service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}


/* === Як проходить візит =================================== */
.how-it-works {
  margin-top: 40px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.how-step {
  position: relative;
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .3s, box-shadow .3s;
}
.how-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.how-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--serif);
  font-size: 20px;
  margin-bottom: 20px;
}
.how-step h3 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.2;
}
.how-step p {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
}
/* Пунктирна лінія між кроками */
.how-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50px;
  right: -14px;
  width: 28px;
  height: 2px;
  background-image: linear-gradient(to right, var(--rose-soft) 50%, transparent 50%);
  background-size: 8px 2px;
  background-repeat: repeat-x;
  z-index: 0;
}


/* === Сертифікат — окрема акцентна картка ================== */
.gift-cert {
  background: linear-gradient(135deg, #ffe4bf 0%, #ffd0a3 60%, #fcc391 100%);
  border-radius: var(--r-xl);
  padding: 48px 56px;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: center;
}
.gift-cert::before {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 24px solid rgba(255,255,255,0.4);
  pointer-events: none;
}
.gift-cert-text {
  position: relative;
  z-index: 1;
}
.gift-cert .kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 12px;
}
.gift-cert h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  margin-bottom: 12px;
  color: var(--ink);
}
.gift-cert h2 em {
  font-style: italic;
  color: var(--rose-deep);
}
.gift-cert p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 22px;
  max-width: 540px;
}
.gift-cert-visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}
.gift-cert-card {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1.6 / 1;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.3);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transform: rotate(-4deg);
  transition: transform .35s;
}
.gift-cert:hover .gift-cert-card {
  transform: rotate(-2deg) scale(1.02);
}
.gift-cert-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-soft), var(--rose-pale));
  opacity: 0.6;
}
.gift-cert-card .gc-logo {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--rose);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.gift-cert-card .gc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.gift-cert-card .gc-amount {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.gift-cert-card .gc-foot {
  position: absolute;
  bottom: 18px;
  left: 22px;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.5px;
  z-index: 1;
}


/* === Адаптив ============================================= */
@media (max-width: 1060px) {
  .service-categories {
    grid-template-columns: 1fr;
  }
  .service-category.is-wide {
    grid-column: span 1;
  }
  .service-category.is-wide .service-list {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .how-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .how-step:not(:last-child)::after { display: none; }
  .gift-cert {
    grid-template-columns: 1fr;
    padding: 40px 36px;
  }
  .gift-cert-visual { order: -1; margin-bottom: 8px; }
  .gift-cert-card { transform: rotate(-2deg); max-width: 280px; }
}

@media (max-width: 640px) {
  .services-hero { padding: 24px 0 12px; }
  .service-category {
    padding: 26px 22px;
  }
  .service-category-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .service-category-illu {
    width: 96px;
    height: 96px;
    border-radius: 22px;
  }
  .service-category-illu svg {
    width: 72px;
    height: 72px;
  }
  .service-category-title h2 { font-size: 24px; }

  .service-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 0;
  }
  .service-list .s-price { font-size: 17px; }

  .how-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .how-step { padding: 24px 22px; }
  .how-step .step-num { width: 38px; height: 38px; font-size: 17px; margin-bottom: 14px; }
  .how-step h3 { font-size: 20px; }

  .gift-cert {
    padding: 28px 22px;
    border-radius: 28px;
  }
  .gift-cert-card {
    max-width: 240px;
    transform: rotate(-3deg);
  }
}