/* Aesthetics & orthodontics page only. Shared blocks (hero, FAQ, related, CTA, price lists) live in pages.css. */
.ae-lead { max-width: 560px; margin: 20px 0 28px; font-size: var(--fs-lead); color: var(--c-stone); }
.ae-mini-title { margin-bottom: 12px; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-gold-ink); }

/* ---------- Treatment index (5 cards that jump to each section) ---------- */
.ae-menu { background: var(--c-ivory); }
.ae-menu__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.ae-menu__item {
  position: relative; display: flex; flex-direction: column; height: 100%; padding: 22px 22px 20px; overflow: hidden;
  border-radius: 26px; background: var(--c-paper); border: 1px solid rgba(28, 31, 30, .06);
  box-shadow: 0 1px 2px rgba(21, 42, 35, .03), 0 18px 40px -30px rgba(21, 42, 35, .25);
  transition: translate .6s var(--ease), box-shadow .6s var(--ease);
}
.ae-menu__item::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #C9A15A, #E2BE74 50%, #C9A15A); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.ae-menu__item:hover { translate: 0 -6px; box-shadow: 0 2px 4px rgba(21, 42, 35, .04), 0 34px 60px -32px rgba(21, 42, 35, .34), inset 0 0 0 1px rgba(184, 154, 103, .3); }
.ae-menu__item:hover::after, .ae-menu__item:focus-visible::after { transform: scaleX(1); }
.ae-menu__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; }
.ae-menu__num { font-family: var(--f-display); font-size: 1rem; color: var(--c-gold-deep); }
.ae-menu__icon { position: relative; display: block; width: 64px; height: 56px; color: #9A7640; }
.ae-menu__tooth { position: absolute; inset: 0; fill: none; stroke: var(--c-champagne); stroke-width: 10; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ae-menu__icon .i { position: absolute; left: 50%; top: 40.4%; width: 20px; height: 20px; transform: translate(-50%, -50%); }
.ae-menu__title { font-family: var(--f-display); font-size: 1.3rem; font-weight: 400; line-height: 1.2; color: var(--c-forest-deep); margin-bottom: 8px; }
.ae-menu__text { font-size: .86rem; line-height: 1.5; color: var(--c-stone); margin-bottom: 22px; }
.ae-menu__price { display: grid; gap: 2px; margin-top: auto; padding: 14px 44px 0 0; border-top: 1px solid var(--c-line); font-family: var(--f-display); font-size: 1.3rem; line-height: 1.15; color: var(--c-forest); }
.ae-menu__price small { font-family: var(--f-text); font-size: .72rem; line-height: 1.35; color: var(--c-stone); }
.ae-menu__go { position: absolute; right: 18px; bottom: 20px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--c-line); color: var(--c-forest); transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.ae-menu__go .i { width: 16px; height: 16px; transform: rotate(90deg); }
.ae-menu__item:hover .ae-menu__go { background: var(--c-forest); border-color: var(--c-forest); color: var(--c-ivory); }

/* ---------- Veneers (sticky arched photo + details) ---------- */
.ae-veneers { background: var(--c-paper); }
.ae-veneers__inner { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.ae-veneers__media { position: sticky; top: calc(var(--header-h) + 32px); }
.ae-veneers__frame { position: relative; aspect-ratio: 4 / 5; border-radius: 240px 240px var(--r-xl) var(--r-xl); overflow: hidden; background: var(--c-cream); box-shadow: 0 40px 80px -46px rgba(31, 59, 50, .5); }
.ae-veneers__frame::after { content: ""; position: absolute; inset: 10px; border-radius: 232px 232px 24px 24px; border: 1px solid rgba(255, 255, 255, .55); pointer-events: none; }
.ae-veneers__frame img { width: 100%; height: 100%; object-fit: cover; }
.ae-veneers__tooth { position: absolute; right: -46px; bottom: -40px; width: 160px; height: auto; opacity: .55; pointer-events: none; }
.ae-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 34px; }
.ae-benefits li { display: flex; gap: 14px; padding: 18px 18px 18px 16px; border-radius: 20px; background: var(--c-ivory); border: 1px solid rgba(184, 154, 103, .22); font-size: .88rem; line-height: 1.5; color: var(--c-stone); }
.ae-benefits b { display: block; margin-bottom: 4px; font-family: var(--f-display); font-size: 1.15rem; font-weight: 400; line-height: 1.2; color: var(--c-forest-deep); }
.ae-benefits__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid rgba(184, 154, 103, .55); background: var(--c-paper); color: #9A7640; }
.ae-benefits__icon .i { width: 20px; height: 20px; }
.ae-visits { margin-bottom: 34px; }
.ae-visits__list { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 30px; }
.ae-visits__rail { position: absolute; left: 8px; top: 7px; width: calc(50% + 14px); height: 1px; background: var(--c-line); }
.ae-visits__rail i { position: absolute; inset: 0; background: #D9C49A; transform-origin: left; }
.ae-visits__step { position: relative; display: grid; gap: 4px; font-size: .9rem; line-height: 1.55; color: var(--c-stone); }
.ae-visits__dot { position: absolute; left: 0; top: -30px; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--c-champagne); background: var(--c-paper); box-shadow: 0 0 0 4px var(--c-paper); }
.ae-visits__rail + .ae-visits__step .ae-visits__dot, .ae-visits__step.is-on .ae-visits__dot { background: var(--c-forest); border-color: var(--c-forest); }
.ae-visits__step b { font-family: var(--f-display); font-size: 1.2rem; font-weight: 400; color: var(--c-forest-deep); }
.ae-pricebox { margin-bottom: 32px; padding: 22px 26px 12px; border-radius: 22px; background: var(--c-ivory); border: 1px solid rgba(184, 154, 103, .25); }

/* ---------- Whitening (green band, curved top) ---------- */
.ae-white {
  position: relative; isolation: isolate; overflow: hidden; overflow: clip; color: var(--c-ivory);
  padding-block: calc(clamp(80px, 9vw, 130px) + var(--curve-h, 0px)) clamp(80px, 9vw, 130px);
  background: radial-gradient(90% 120% at 100% 0%, var(--c-forest-2) 0%, var(--c-forest) 45%, var(--c-forest-deep) 100%);
}
.ae-white__glow { position: absolute; left: -10%; bottom: -30%; z-index: -1; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(217, 196, 154, .16), transparent); pointer-events: none; }
.ae-white__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.ae-white__title { color: var(--c-ivory); margin: 22px 0 16px; }
.ae-white__title em { color: var(--c-champagne-light); }
.ae-white__text { max-width: 520px; margin-bottom: 34px; color: rgba(247, 244, 238, .78); }
.ae-white__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 600px; border-block: 1px solid rgba(217, 196, 154, .24); }
.ae-white__stats > div { padding: 22px 16px 20px 0; }
.ae-white__stats > div + div { padding-left: 22px; border-left: 1px solid rgba(217, 196, 154, .18); }
.ae-white__stats dt { font-family: var(--f-display); font-size: clamp(2.1rem, 1.5rem + 1.6vw, 3.1rem); font-weight: 400; line-height: 1; color: var(--c-champagne-light); white-space: nowrap; }
.ae-white__stats dt small { margin-right: 6px; font-family: var(--f-text); font-size: .8rem; letter-spacing: .02em; color: rgba(247, 244, 238, .66); }
.ae-white__stats dd { margin: 10px 0 0; max-width: 190px; font-size: .84rem; line-height: 1.45; color: rgba(247, 244, 238, .72); }
.ae-shades { max-width: 560px; margin: 34px 0 26px; }
.ae-shades__row { --gap: 6px; --w: calc((100% - 12 * var(--gap)) / 13); position: relative; display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: var(--gap); }
.ae-shades__row > li:not(.ae-shades__marker) { position: relative; aspect-ratio: 506 / 437; color: var(--c); }
.ae-shade { position: absolute; inset: 0; }
.ae-shades__row em { position: absolute; left: 50%; top: 100%; margin-top: 8px; transform: translateX(-50%); font-style: normal; font-size: .7rem; font-weight: 600; color: var(--c-champagne-light); }
.ae-shades__marker { position: absolute; top: -6px; bottom: -6px; left: calc(12 * (var(--w) + var(--gap)) - 4px); width: calc(var(--w) + 8px); border-radius: 10px; border: 1px solid var(--c-champagne-light); box-shadow: 0 0 18px rgba(217, 196, 154, .35); pointer-events: none; }
.ae-shades__legend { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; font-size: .74rem; letter-spacing: .04em; color: rgba(247, 244, 238, .62); }
.ae-white__safe { display: flex; align-items: flex-start; gap: 12px; max-width: 540px; margin-bottom: 30px; font-size: .9rem; line-height: 1.55; color: rgba(247, 244, 238, .78); }
.ae-white__safe .i { width: 22px; height: 22px; margin-top: 1px; color: var(--c-champagne-light); }
.ae-white__safe strong { color: var(--c-ivory); font-weight: 600; }
.ae-white__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 30px; }
.ae-white__price { display: grid; gap: 2px; padding-right: 30px; border-right: 1px solid rgba(217, 196, 154, .25); }
.ae-white__price small { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-champagne-light); }
.ae-white__price b { font-family: var(--f-display); font-size: 2rem; font-weight: 400; line-height: 1.1; color: var(--c-ivory); }
.ae-white__media { position: relative; }
.ae-white__media::before { content: ""; position: absolute; inset: -14px; border-radius: 999px 999px 40px 40px; border: 1px solid rgba(217, 196, 154, .3); pointer-events: none; }
.ae-white__frame { position: relative; aspect-ratio: 4 / 4.8; border-radius: 999px 999px 32px 32px; overflow: hidden; background: var(--c-forest-2); }
.ae-white__frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Restoration + smile makeover (two feature cards) ---------- */
.ae-detail { background: var(--c-ivory); }
.ae-detail__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.ae-feature { display: flex; flex-direction: column; padding: 12px; border-radius: 30px; background: var(--c-paper); border: 1px solid rgba(28, 31, 30, .06); box-shadow: 0 1px 2px rgba(21, 42, 35, .03), 0 24px 50px -34px rgba(21, 42, 35, .28); }
.ae-feature__img { aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--c-cream); }
.ae-feature__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.ae-feature:hover .ae-feature__img img { transform: scale(1.05); }
.ae-feature__body { flex: 1; display: flex; flex-direction: column; padding: 24px 20px 14px; }
.ae-feature__tag { align-self: flex-start; margin-bottom: 14px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--c-forest); color: var(--c-champagne-light); font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.ae-feature__title { margin-bottom: 12px; font-family: var(--f-display); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.15rem); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; color: var(--c-forest-deep); }
.ae-feature__title em { font-style: italic; color: #9A7640; }
.ae-feature__text { margin-bottom: 18px; font-size: .95rem; color: var(--c-stone); }
.ae-feature__list { display: grid; gap: 8px; margin-bottom: 24px; }
.ae-feature__list li { display: flex; gap: 10px; font-size: .9rem; line-height: 1.5; }
.ae-feature__list .i { width: 16px; height: 16px; margin-top: 3px; color: var(--c-champagne); }
.ae-feature__foot { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--c-line); }
.ae-feature__price { display: grid; gap: 2px; font-family: var(--f-display); font-size: 1.75rem; line-height: 1.1; color: var(--c-forest); }
.ae-feature__price small { font-family: var(--f-text); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-gold-ink); }
.ae-feature__price span { font-size: 1.15rem; }

/* ---------- Orthodontics ---------- */
.ae-ortho { background: var(--c-cream); }
.ae-ortho__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.ae-ortho__media { position: relative; order: 2; }
.ae-ortho__media::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: var(--r-xl); border: 1px solid rgba(184, 154, 103, .45); pointer-events: none; }
.ae-ortho__frame { position: relative; aspect-ratio: 4 / 4.6; border-radius: var(--r-xl); overflow: hidden; background: var(--c-ivory); box-shadow: 0 40px 80px -50px rgba(31, 59, 50, .5); }
.ae-ortho__frame img { width: 100%; height: 100%; object-fit: cover; }
.ae-ortho__options { display: grid; gap: 14px; margin-bottom: 22px; }
.ae-opt { display: flex; gap: 18px; padding: 22px 24px; border-radius: 22px; background: var(--c-paper); border: 1px solid rgba(184, 154, 103, .22); }
.ae-opt__num { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--c-forest); color: var(--c-champagne-light); font-family: var(--f-display); font-size: 1.15rem; }
.ae-opt__title { margin-bottom: 4px; font-family: var(--f-display); font-size: 1.35rem; font-weight: 400; line-height: 1.2; color: var(--c-forest-deep); }
.ae-opt__text { font-size: .92rem; line-height: 1.55; color: var(--c-stone); }
.ae-ortho__note { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 26px; font-size: .9rem; line-height: 1.55; color: var(--c-stone); }
.ae-ortho__note .i { width: 18px; height: 18px; margin-top: 2px; color: var(--c-gold-deep); }
.ae-cost { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 18px; align-items: start; padding: 24px; border-radius: 24px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(184, 154, 103, .35); }
.ae-cost__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(184, 154, 103, .55); color: var(--c-gold-deep); }
.ae-cost__title { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.2; color: var(--c-forest-deep); margin-bottom: 4px; }
.ae-cost__text { font-size: .9rem; line-height: 1.55; color: var(--c-stone); }
.ae-cost .btn { grid-column: 1 / -1; justify-self: start; }

/* ---------- Real result (one before/after case) ---------- */
.ae-result { background: var(--c-ivory); }
.ae-result__inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.ae-result__ba .pba__track { grid-template-columns: 1fr; }
.ae-result__ba .pba { aspect-ratio: 16 / 9.5; }
.ae-result__body .ae-lead { margin-bottom: 26px; }
.ae-result__doc { display: flex; align-items: center; gap: 14px; width: fit-content; max-width: 100%; margin-bottom: 30px; padding: 10px 22px 10px 10px; border-radius: var(--r-pill); background: var(--c-paper); border: 1px solid var(--c-line); }
.ae-result__avatar { width: 52px; height: 52px; flex: none; border-radius: 50%; overflow: hidden; background: #EEEFF4; }
.ae-result__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.ae-result__doc b { display: block; font-size: .95rem; color: var(--c-forest-deep); }
.ae-result__doc small { display: block; font-size: .76rem; color: var(--c-gold-ink); }

/* ---------- Prices ---------- */
.ae-prices__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.pprice__list b.ae-prices__consult { font-size: .8rem; font-weight: 500; color: var(--c-gold-ink); }
.ae-prices__install { margin-top: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .ae-menu__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .ae-veneers__inner, .ae-white__inner, .ae-ortho__inner, .ae-result__inner, .ae-detail__grid, .ae-prices__grid { grid-template-columns: 1fr; }
  .ae-veneers__media { position: relative; top: auto; max-width: 560px; }
  .ae-veneers__frame { aspect-ratio: 4 / 3.8; }
  .ae-white__media { max-width: 460px; margin: 20px auto 0; width: calc(100% - 28px); }
  .ae-ortho__media { order: 0; max-width: 560px; width: calc(100% - 22px); }
  .ae-ortho__frame { aspect-ratio: 4 / 3.4; }
  .ae-prices__grid { max-width: 720px; }
}
@media (max-width: 760px) {
  .ae-menu__list { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ae-menu__list > li:last-child { grid-column: 1 / -1; }
  .ae-menu__item { padding: 18px 16px 16px; }
  .ae-menu__top { margin-bottom: 18px; }
  .ae-menu__icon { width: 52px; height: 46px; }
  .ae-menu__title { font-size: 1.15rem; }
  .ae-menu__go { display: none; }
  .ae-menu__price { padding-right: 0; font-size: 1.15rem; }
  .ae-benefits { grid-template-columns: 1fr; }
  .ae-veneers__tooth { width: 110px; right: -10px; bottom: -30px; }
  .ae-white__stats > div { padding: 18px 10px 16px 0; }
  .ae-white__stats > div + div { padding-left: 12px; }
  .ae-white__stats dt { font-size: 1.9rem; }
  .ae-white__stats dt small { margin-right: 4px; font-size: .68rem; }
  .ae-white__stats dd { font-size: .76rem; }
  .ae-shades__row { --gap: 4px; }
  .ae-white__price { padding-right: 0; border-right: 0; }
  .ae-white__foot .btn { width: 100%; }
  .ae-opt { padding: 18px; gap: 14px; }
  .ae-cost { padding: 20px; }
  .ae-cost .btn { width: 100%; white-space: normal; }
  .ae-feature__body { padding: 20px 10px 10px; }
}
@media (max-width: 480px) {
  .ae-visits__list { grid-template-columns: 1fr; gap: 18px; padding: 0 0 0 30px; }
  .ae-visits__rail { left: 7px; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .ae-visits__rail i { transform-origin: top; }
  .ae-visits__dot { left: -30px; top: 5px; }
  .ae-result__doc { border-radius: 22px; }
}

/* Animated photo frames (core.js [data-reveal-img]) must not act as scroll anchors, or a deep link (#anchor)
   can drift while their scale/clip animation runs. */
[data-reveal-img] { overflow-anchor: none; }
