/* v18 — archive/services polish, installment note, mobile stability */

/* Header: align social pills to the text baseline, not to nav underline */
@media (min-width:1321px){
  .desktop-nav{position:relative;top:0!important}
  .header-socials{position:relative;top:-3px!important}
}

/* ---------- Extras ---------- */
.extras-page,
.extras-page .page-hero,
.extras-intro,
.extras-grid-section,
.extras-final{background:#fff!important}
.extras-intro{padding:32px 0 22px!important}
.extras-grid-section{padding:24px 0 66px!important}
.extras-kicker--outline-blue{
  background:#fff!important;color:#4d5dfa!important;border:2px solid #4d5dfa!important;
  box-shadow:0 8px 20px rgba(77,93,250,.10)!important
}
.service-card{background:#fff!important;transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease}
.service-card:hover{transform:translateY(-5px);box-shadow:0 20px 42px rgba(25,33,80,.14)}
.service-card__media img{object-fit:cover!important;object-position:center!important;transition:transform .35s ease}
.service-card:hover .service-card__media img{transform:scale(1.025)}
.service-card__body{min-width:0}
.service-price{gap:11px!important;flex-wrap:wrap!important}
.service-price s{font-size:16px!important;color:#777!important;text-decoration-thickness:2px!important;text-decoration-color:#666!important}
.service-price strong{font-size:32px!important}
.service-cta,
.extras-final-cta{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:44px!important;padding:11px 20px!important;border-radius:14px!important;
  font-size:14px!important;font-weight:900!important;text-decoration:none!important;
  box-shadow:0 10px 22px rgba(0,0,0,.12)!important;transition:transform .2s ease,box-shadow .2s ease,filter .2s ease!important
}
.service-cta:hover,.extras-final-cta:hover{transform:translateY(-2px)!important;box-shadow:0 14px 28px rgba(0,0,0,.17)!important;filter:saturate(1.08)!important}
.ref-button--white{background:#fff!important;color:#3347f4!important}
.extras-final{padding-bottom:70px!important}
.extras-final-card{border-radius:30px!important}
.extras-final-card p{max-width:720px!important}

/* ---------- Archive ---------- */
.archive-page,
.archive-page .page-hero,
.archive-history--new,
.archive-history--ussr,
.archive-video-section{background:#fff!important}
.archive-history--middle{background:#4d5dfa!important;color:#fff!important;padding:72px 0!important;overflow:hidden!important}
.archive-wave{display:none!important}
.archive-era-head h2 span{display:block}
.archive-era-head h2 span+span{margin-top:3px}
.archive-history--middle .archive-era-head h2 span+span{color:#fff}
.archive-era-head p{max-width:760px!important}
.album-card--v17{overflow:hidden!important;background:#fff!important;border:1px solid rgba(77,93,250,.11)!important;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease!important}
.album-card--v17:hover{transform:translateY(-5px)!important;box-shadow:0 18px 36px rgba(22,31,81,.15)!important}
.album-card__body{text-align:center!important;display:flex!important;flex-direction:column!important;align-items:center!important}
.album-card__body h4{min-height:44px!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important}
.archive-open{
  width:100%!important;min-height:44px!important;display:flex!important;align-items:center!important;justify-content:center!important;
  padding:10px 14px!important;border-radius:14px!important;color:#fff!important;font-weight:900!important;font-size:14px!important;
  box-shadow:0 9px 20px rgba(0,0,0,.10)!important;transition:transform .2s ease,box-shadow .2s ease,filter .2s ease!important
}
.archive-open--blue{background:#4d5dfa!important}.archive-open--green{background:#29a71a!important}
.archive-open:hover{transform:translateY(-2px)!important;box-shadow:0 13px 26px rgba(0,0,0,.16)!important;filter:saturate(1.08)!important}
.archive-history-card--interactive{transition:transform .22s ease,box-shadow .22s ease!important}
.archive-history-card--interactive:hover{transform:translateY(-5px) scale(1.005)!important;box-shadow:0 22px 46px rgba(0,0,0,.24)!important}
.archive-history-card--interactive b{transition:transform .2s ease,background .2s ease!important}
.archive-history-card--interactive:hover b{transform:translateX(4px)!important;background:#4d5dfa!important}
.archive-legacy-card--interactive{transition:transform .22s ease,box-shadow .22s ease!important}
.archive-legacy-card--interactive:hover{transform:translateY(-5px)!important;box-shadow:0 20px 42px rgba(29,36,75,.18)!important}
.archive-legacy-card--interactive img{transition:transform .35s ease!important}
.archive-legacy-card--interactive:hover img{transform:scale(1.025)!important}
.archive-legacy-card--interactive small{display:inline-flex!important;align-items:center!important;justify-content:center!important;align-self:flex-start!important;margin-top:8px!important;padding:9px 15px!important;border-radius:12px!important;background:#4d5dfa!important;color:#fff!important;font-weight:900!important}
.archive-legacy-card:nth-child(even) small{background:#29a71a!important}
.archive-video-section{padding:28px 0 72px!important}
.archive-video-card{background:linear-gradient(110deg,#fff,#f4fff2)!important;border:1px solid rgba(41,167,26,.16)!important;transition:transform .22s ease,box-shadow .22s ease!important}
.archive-video-card:hover{transform:translateY(-4px)!important;box-shadow:0 18px 38px rgba(31,72,32,.14)!important}
.archive-action-button{border-radius:14px!important;min-height:46px!important;padding:12px 22px!important;font-weight:900!important;box-shadow:0 10px 24px rgba(77,93,250,.22)!important}

/* ---------- Installment ---------- */
.installment-note-v18{
  max-width:760px;margin:20px auto 0;padding:16px 20px;display:flex;align-items:center;gap:14px;
  border:2px solid rgba(41,167,26,.24);border-radius:18px;background:linear-gradient(110deg,#fff,#f6fff4);
  box-shadow:0 10px 26px rgba(26,76,29,.08)
}
.installment-note-v18__icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:13px;background:#29a71a;color:#fff;font-size:24px;font-weight:900}
.installment-note-v18 strong{display:block;font-size:17px;font-weight:900;color:#111}.installment-note-v18 p{margin:3px 0 0;color:#555;font-size:14px;line-height:1.4}

/* ---------- Mobile hero: keep children behind the lower white curve ---------- */
@media (max-width:780px){
  .ref-hero{height:auto!important;min-height:0!important;overflow:hidden!important}
  .ref-hero__inner{
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;
    width:min(calc(100% - 32px),520px)!important;height:auto!important;min-height:0!important;padding:96px 0 0!important
  }
  .ref-hero__copy{width:100%!important;max-width:500px!important;text-align:center!important;margin:0 auto!important;padding:0!important}
  .ref-hero h1,.ref-hero p{text-align:center!important;margin-inline:auto!important}
  .ref-actions{justify-content:center!important;margin-bottom:0!important}
  .hero-people{
    position:relative!important;inset:auto!important;width:min(390px,94vw)!important;height:230px!important;min-height:0!important;
    margin:-26px auto -4px!important;overflow:hidden!important;z-index:5!important
  }
  .hero-people__stage{position:absolute!important;inset:0!important;overflow:hidden!important}
  .hero-people__halo{left:50%!important;right:auto!important;bottom:-78px!important;width:340px!important;transform:translateX(-50%)!important}
  .hero-person--one{--person-width:280px!important;--person-right:calc(50% - 140px)!important;--person-bottom:-54px!important}
  .hero-person--two{--person-width:290px!important;--person-right:calc(50% - 145px)!important;--person-bottom:-56px!important}
  .hero-person--three{--person-width:205px!important;--person-right:calc(50% - 102.5px)!important;--person-bottom:-58px!important}
  .hero-person--four{--person-width:250px!important;--person-right:calc(50% - 125px)!important;--person-bottom:-56px!important}
  .ref-hero::after{
    content:""!important;position:absolute!important;left:50%!important;right:auto!important;bottom:-34px!important;width:140%!important;height:72px!important;
    transform:translateX(-50%)!important;background:#fff!important;border-radius:50% 50% 0 0 / 100% 100% 0 0!important;z-index:8!important;pointer-events:none!important
  }
}
@media (max-width:430px){
  .ref-hero__inner{padding-top:92px!important;width:calc(100% - 24px)!important}
  .hero-people{height:218px!important;width:min(360px,96vw)!important;margin-top:-30px!important}
}

/* Archive/services mobile: no grey strips, clean one-column cards */
@media(max-width:900px){
  .extras-page,.archive-page{background:#fff!important}
  .extras-intro,.extras-grid-section,.extras-final,.archive-video-section{background:#fff!important}
  .archive-history--middle{padding:56px 0!important}
  .archive-history-card{max-width:100%!important}
  .installment-note-v18{text-align:left}
}
@media(max-width:600px){
  .album-grid--v17{grid-template-columns:1fr!important;gap:16px!important}
  .album-card__body{padding:16px!important}
  .album-card__body h4{min-height:0!important;font-size:18px!important}
  .archive-open{font-size:14px!important;min-height:46px!important}
  .archive-era-head h2{font-size:34px!important;line-height:1.04!important}
  .archive-history--middle .archive-era-head h2 span+span{font-size:.9em!important}
  .archive-history-card{grid-template-columns:92px minmax(0,1fr) 34px!important;gap:10px!important}
  .archive-history-card img{width:92px!important}
  .archive-history-card strong{font-size:17px!important}.archive-history-card small{font-size:12px!important}
  .archive-legacy-card img{height:220px!important}
  .archive-video-card{padding:26px 18px!important}.archive-video-card h2{font-size:28px!important}
  .service-card__media{height:235px!important}
  .service-card__body{padding:22px 20px 24px!important}
  .service-card h2{font-size:26px!important}
  .service-cta{width:100%!important}
  .extras-final-card{text-align:center!important;padding:30px 20px!important}
  .extras-final-cta{width:100%!important}
  .installment-note-v18{margin-top:16px;padding:14px;align-items:flex-start}.installment-note-v18__icon{width:38px;height:38px;flex-basis:38px}.installment-note-v18 strong{font-size:15px}.installment-note-v18 p{font-size:13px}
}

.archive-history-card small{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;align-self:flex-start!important;
  margin-top:5px!important;padding:9px 15px!important;border-radius:12px!important;background:#29a71a!important;color:#fff!important;font-weight:900!important
}
.archive-history-card:hover small{background:#4d5dfa!important}

@media (max-width:780px){
  .hero-people,.hero-people__stage{overflow:visible!important}
  .ref-hero::after{bottom:-28px!important;height:86px!important;width:142%!important}
}

/* explicit archive action buttons; descriptions stay plain text */
.archive-history-card small,
.archive-legacy-card--interactive small{
  display:block!important;margin:4px 0 14px!important;padding:0!important;background:transparent!important;color:#555!important;border-radius:0!important;font-weight:700!important
}
.archive-history-card__button,
.archive-legacy-card__button{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:44px!important;
  padding:10px 18px!important;border-radius:14px!important;font-weight:900!important;box-shadow:0 9px 20px rgba(0,0,0,.12)!important;
  transition:transform .2s ease,box-shadow .2s ease,filter .2s ease!important
}
.archive-history-card__button:hover,.archive-legacy-card__button:hover{transform:translateY(-2px)!important;box-shadow:0 13px 26px rgba(0,0,0,.18)!important;filter:saturate(1.08)!important}
