/* Treatment & surgery page only. Shared blocks (hero, offers, FAQ, related, CTA, price lists) live in pages.css. */
.tt-sec { padding-block: clamp(72px, 8vw, 128px); }
.tt-lead { max-width: 560px; margin: 20px 0 26px; color: var(--c-stone); }
.tt-mini { margin-bottom: 10px; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-gold-ink); }
.tt-kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.tt-kicker__num { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid rgba(184, 154, 103, .55); font-family: var(--f-display); font-size: .95rem; color: var(--c-gold-deep); }
.tt-kicker__label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--c-gold-ink); }
.tt-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; margin-bottom: clamp(36px, 4vw, 56px); }
.tt-head__text { max-width: 560px; color: var(--c-stone); }
.tt-box { padding: 22px 26px 12px; border-radius: 22px; background: var(--c-paper); border: 1px solid rgba(184, 154, 103, .25); }
.pprice__list b.tt-consult { font-size: .8rem; font-weight: 500; color: var(--c-gold-ink); }
.tt-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; font-size: .86rem; line-height: 1.55; color: var(--c-stone); }
.tt-note .i { width: 18px; height: 18px; margin-top: 1px; color: var(--c-champagne); }
.tt-note b { font-weight: 600; color: var(--c-forest-deep); white-space: nowrap; }
.tt-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tt-tags li { padding: 5px 13px; border-radius: var(--r-pill); background: var(--c-paper); border: 1px solid rgba(184, 154, 103, .35); font-size: .78rem; font-weight: 500; color: var(--c-forest-deep); }
.tt-tags--light li { background: var(--c-ivory); }

/* ---------- Sticky in-page navigation ---------- */
.tt-flow { position: relative; }
.tt-nav {
  position: sticky; top: var(--header-h); z-index: 40; background: rgba(247, 244, 238, .9); border-block: 1px solid var(--c-line);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); transition: transform .5s var(--ease), box-shadow .4s var(--ease), opacity .35s var(--ease);
}
.tt-nav.is-stuck { box-shadow: 0 14px 30px -24px rgba(21, 42, 35, .35); }
.tt-nav.is-raised { transform: translateY(calc(var(--header-h) * -1)); }
.tt-nav.is-gone { opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s, transform .5s var(--ease); }
.tt-nav__inner { display: flex; align-items: center; gap: 22px; min-height: 60px; }
.tt-nav__label { flex: none; padding-right: 22px; border-right: 1px solid var(--c-line); font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-gold-ink); }
.tt-nav__list { display: flex; gap: 2px; flex: 1; min-width: 0; padding-block: 10px; overflow-x: auto; scrollbar-width: none; }
.tt-nav__list::-webkit-scrollbar { display: none; }
.tt-nav__link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill); white-space: nowrap; font-size: .84rem; font-weight: 500; color: var(--c-stone); transition: background-color .35s var(--ease), color .35s var(--ease); }
.tt-nav__num { font-family: var(--f-display); font-size: .8rem; color: var(--c-gold-deep); transition: color .35s var(--ease); }
.tt-nav__link:hover { color: var(--c-forest-deep); background: rgba(184, 154, 103, .12); }
.tt-nav__link.is-active { background: var(--c-forest); color: var(--c-ivory); }
.tt-nav__link.is-active .tt-nav__num { color: var(--c-champagne-light); }
.tt-nav__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.tt-nav__progress i { display: block; height: 100%; background: linear-gradient(90deg, #C9A15A, #E2BE74 50%, #C9A15A); transform: scaleX(0); transform-origin: left; }

/* ---------- 01 Hygiene ---------- */
.tt-hyg { background: var(--c-ivory); }
.tt-hyg__inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.tt-hyg__side { display: grid; gap: 18px; }
.tt-hyg__case .pba { aspect-ratio: 2.1 / 1; }
.tt-hyg__case .pba__note { margin-top: 12px; }

/* ---------- 02 Caries: filling-material comparison ---------- */
.tt-caries { background: var(--c-paper); }
.tt-caries__label { margin-bottom: 16px; }
.tt-fill { display: grid; grid-template-columns: minmax(170px, .72fr) repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto; gap: 0 16px; }
.tt-fill__legend, .tt-fill__card { grid-row: span 3; display: grid; grid-template-rows: subgrid; }
.tt-fill__corner { display: flex; align-items: flex-end; padding: 0 0 22px; color: var(--c-champagne); }
.tt-fill__tooth { width: 58px; height: 50px; fill: none; stroke: currentColor; stroke-width: 10; stroke-dasharray: 1; stroke-dashoffset: 0; }
.tt-fill__rowhead { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 18px 12px 18px 0; border-top: 1px solid var(--c-line); }
.tt-fill__rowhead b, .tt-fill__prices dt b { font-family: var(--f-display); font-size: 1.2rem; font-weight: 400; color: var(--c-forest-deep); }
.tt-fill__rowhead small, .tt-fill__prices dt small { font-size: .8rem; line-height: 1.4; color: var(--c-stone); }
.tt-fill__card { overflow: hidden; border-radius: 24px; background: var(--c-ivory); border: 1px solid rgba(184, 154, 103, .25); transition: translate .6s var(--ease), box-shadow .6s var(--ease); }
.tt-fill__card:hover { translate: 0 -4px; box-shadow: 0 30px 60px -36px rgba(21, 42, 35, .35); }
.tt-fill__head { display: grid; align-content: end; gap: 10px; padding: 24px 24px 22px; background: var(--c-cream); }
.tt-fill__tier { justify-self: start; padding: 4px 11px; border-radius: var(--r-pill); border: 1px solid rgba(126, 99, 56, .35); font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-gold-ink); }
.tt-fill__name { font-family: var(--f-display); font-size: 1.4rem; font-weight: 400; line-height: 1.2; color: var(--c-forest-deep); }
.tt-fill__card.is-premium .tt-fill__head { background: radial-gradient(120% 140% at 0% 0%, var(--c-forest-2), var(--c-forest) 55%, var(--c-forest-deep)); }
.tt-fill__card.is-premium .tt-fill__tier { border-color: rgba(217, 196, 154, .45); color: var(--c-champagne-light); }
.tt-fill__card.is-premium .tt-fill__name { color: var(--c-ivory); }
.tt-fill__prices { display: contents; }
.tt-fill__prices > div { display: flex; align-items: center; padding: 18px 24px; border-top: 1px solid var(--c-line); }
.tt-fill__prices dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tt-fill__prices dd { margin: 0; font-family: var(--f-display); font-size: 1.7rem; line-height: 1.1; color: var(--c-forest); white-space: nowrap; }
.tt-extras { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; margin-top: 30px; padding: 18px 26px; border-radius: 20px; border: 1px dashed rgba(184, 154, 103, .5); }
.tt-extras .tt-mini { margin: 0; }
.tt-extras__list { display: flex; flex-wrap: wrap; gap: 10px 30px; }
.tt-extras__list li { display: flex; align-items: baseline; gap: 10px; font-size: .9rem; color: var(--c-graphite); }
.tt-extras__list b { font-weight: 600; color: var(--c-forest-deep); white-space: nowrap; }

/* ---------- 03 Root canals: price matrix by canals ---------- */
.tt-endo { background: var(--c-ivory); }
.tt-endo__inner { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.tt-endo__media { position: relative; }
.tt-endo__media::after { content: ""; position: absolute; left: -18px; bottom: -18px; width: 46%; height: 46%; z-index: -1; border-radius: 0 0 0 28px; border-left: 1px solid rgba(184, 154, 103, .5); border-bottom: 1px solid rgba(184, 154, 103, .5); }
.tt-endo__frame { position: relative; aspect-ratio: 4 / 5; border-radius: 200px 200px var(--r-xl) var(--r-xl); overflow: hidden; background: var(--c-cream); box-shadow: 0 40px 80px -48px rgba(31, 59, 50, .5); }
.tt-endo__frame img { width: 100%; height: 100%; object-fit: cover; }
.tt-canals { padding: 6px 10px 10px; border-radius: 24px; background: var(--c-paper); border: 1px solid rgba(184, 154, 103, .25); box-shadow: 0 24px 50px -40px rgba(21, 42, 35, .3); }
.tt-canals__table { width: 100%; border-collapse: collapse; }
.tt-canals__table thead th { padding: 18px 8px 14px; vertical-align: bottom; text-align: center; font-size: .76rem; font-weight: 600; letter-spacing: .06em; color: var(--c-stone); }
.tt-canals__ico { display: flex; justify-content: center; gap: 5px; height: 26px; margin-bottom: 8px; }
.tt-canals__ico i { width: 5px; height: 100%; border-radius: 3px 3px 6px 6px / 3px 3px 12px 12px; background: linear-gradient(180deg, #E2CFA4, #B89A67); }
.tt-canals__table tbody th { padding: 18px 12px 18px 14px; text-align: left; border-top: 1px solid var(--c-line); }
.tt-canals__table tbody th b { display: block; font-family: var(--f-display); font-size: 1.25rem; font-weight: 400; color: var(--c-forest-deep); }
.tt-canals__table tbody th small { display: block; font-size: .78rem; line-height: 1.4; color: var(--c-stone); }
.tt-canals__table td { padding: 18px 8px; text-align: center; border-top: 1px solid var(--c-line); font-family: var(--f-display); font-size: 1.35rem; color: var(--c-forest); white-space: nowrap; transition: background-color .3s var(--ease); }
.tt-canals__table thead td { border-top: 0; }
.tt-canals__table td small { display: block; font-family: var(--f-text); font-size: .7rem; color: var(--c-stone); }
.tt-canals__table tbody tr:hover td, .tt-canals__table tbody tr:hover th { background: rgba(239, 233, 223, .45); }

/* ---------- 04 Gums ---------- */
.tt-gums { background: var(--c-cream); }
.tt-signs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 18px; }
.tt-signs .tt-mini { margin: 0 6px 0 0; }
.tt-sign { padding: 6px 14px; border-radius: var(--r-pill); border: 1px solid rgba(184, 154, 103, .45); background: rgba(255, 255, 255, .55); font-size: .82rem; font-weight: 500; color: var(--c-forest-deep); }
.tt-gums__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 26px); }
.tt-gcard { display: flex; flex-direction: column; padding: 30px 28px 24px; border-radius: 26px; background: var(--c-paper); border: 1px solid rgba(28, 31, 30, .06); box-shadow: 0 18px 40px -30px rgba(21, 42, 35, .25); transition: translate .6s var(--ease), box-shadow .6s var(--ease); }
.tt-gcard:hover { translate: 0 -5px; box-shadow: 0 30px 60px -32px rgba(21, 42, 35, .32), inset 0 0 0 1px rgba(184, 154, 103, .35); }
.tt-gcard__icon { position: relative; display: block; width: 76px; height: 66px; margin-bottom: 22px; color: #A8834B; }
.tt-gcard__tooth { position: absolute; inset: 0; fill: none; stroke: var(--c-champagne); stroke-width: 9; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.tt-gcard__icon .i { position: absolute; left: 50%; top: 40.4%; width: 22px; height: 22px; transform: translate(-50%, -50%); }
.tt-gcard__title { margin-bottom: 10px; font-family: var(--f-display); font-size: 1.4rem; font-weight: 400; line-height: 1.2; color: var(--c-forest-deep); }
.tt-gcard__text { margin-bottom: 22px; font-size: .92rem; line-height: 1.6; color: var(--c-stone); }
.tt-gcard__price { display: grid; gap: 2px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--c-line); font-family: var(--f-display); font-size: 1.6rem; line-height: 1.1; color: var(--c-forest); }
.tt-gcard__price small { font-family: var(--f-text); font-size: .76rem; color: var(--c-stone); }

/* ---------- 05–06 Extraction + wisdom teeth ---------- */
.tt-surg { background: var(--c-paper); }
.tt-surg__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.tt-surg__media { position: relative; min-height: 440px; border-radius: 28px; overflow: hidden; background: var(--c-cream); }
.tt-surg__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tt-scard { display: flex; flex-direction: column; padding: 30px 28px 14px; border-radius: 28px; background: var(--c-ivory); border: 1px solid rgba(184, 154, 103, .22); }
.tt-scard__title { 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); }
.tt-scard__title em { font-style: italic; color: #A8834B; }
.tt-scard__text { margin: 14px 0 18px; font-size: .93rem; line-height: 1.6; color: var(--c-stone); }
.tt-scard .pprice__list { margin-top: auto; }
.tt-surg__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 28px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--c-line); }
.tt-surg__extras { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: .88rem; color: var(--c-stone); }
.tt-surg__extras .tt-mini { margin: 0; }
.tt-surg__extras b { font-weight: 600; color: var(--c-forest-deep); white-space: nowrap; }

/* ---------- 07 Children ---------- */
.tt-kids { background: var(--c-ivory); }
.tt-kids__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.tt-kids__side { display: grid; gap: 18px; }
.tt-kids__frame { aspect-ratio: 4 / 3; border-radius: var(--r-xl); overflow: hidden; background: var(--c-cream); box-shadow: 18px 18px 0 -1px rgba(184, 154, 103, .16), 0 30px 60px -36px rgba(21, 42, 35, .35); }
.tt-kids__frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 08 Emergency ---------- */
.tt-sos { background: var(--c-cream); }
.tt-sos__panel { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(280px, auto); gap: 32px clamp(32px, 4vw, 56px); align-items: center; padding: clamp(30px, 4vw, 56px); border-radius: 32px; background: var(--c-paper); border: 1px solid rgba(184, 154, 103, .35); box-shadow: 0 40px 80px -56px rgba(21, 42, 35, .45); }
.tt-sos__mark { position: relative; display: grid; place-items: center; width: 116px; height: 116px; margin: 26px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, var(--c-forest-2), var(--c-forest-deep)); color: var(--c-champagne-light); }
.tt-sos__mark > .i { width: 40px; height: 40px; }
.tt-sos__ring { position: absolute; inset: -13px; border-radius: 50%; border: 1px solid rgba(184, 154, 103, .5); }
.tt-sos__ring--2 { inset: -26px; opacity: .45; }
.tt-sos__text { max-width: 520px; margin: 18px 0 20px; color: var(--c-stone); }
.tt-sos__body .tt-tags { margin-bottom: 0; }
.tt-sos__actions { display: grid; gap: 12px; }
.tt-sos__actions .btn { width: 100%; }
.tt-sos__badge { display: inline-flex; align-items: center; justify-self: start; gap: 8px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--c-cream); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-gold-ink); }
.tt-sos__badge .i { width: 16px; height: 16px; }
.tt-sos__hours { font-size: .82rem; color: var(--c-stone); text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1360px) { .tt-nav__label { display: none; } }
@media (max-width: 1100px) {
  .tt-sos__panel { grid-template-columns: auto minmax(0, 1fr); }
  .tt-sos__actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .tt-sos__badge, .tt-sos__hours { grid-column: 1 / -1; }
  .tt-sos__hours { text-align: left; }
}
@media (max-width: 1024px) {
  .tt-hyg__inner, .tt-endo__inner, .tt-kids__inner, .tt-head { grid-template-columns: 1fr; }
  .tt-endo__media { max-width: 460px; }
  .tt-endo__frame { aspect-ratio: 4 / 3.6; }
  .tt-surg__grid { grid-template-columns: 1fr 1fr; }
  .tt-surg__media { grid-column: 1 / -1; min-height: 0; aspect-ratio: 16 / 7; }
  .tt-fill { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tt-fill__legend { display: none; }
  .tt-fill__prices dt { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; display: grid; }
  .tt-fill__prices > div { flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 20px; }
  .tt-fill__head { padding: 20px; }
}
@media (max-width: 860px) {
  .tt-gums__grid { grid-template-columns: 1fr; max-width: 680px; }
}
@media (max-width: 760px) {
  .tt-nav__inner { min-height: 54px; padding-inline: 0; }
  .tt-nav__list { padding-inline: var(--gutter); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent); }
  .tt-fill { grid-template-columns: 1fr; gap: 14px; }
  .tt-fill__legend, .tt-fill__card { grid-row: auto; grid-template-rows: none; }
  .tt-fill__card { display: block; }
  .tt-fill__prices { display: block; }
  .tt-fill__prices > div { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
  .tt-fill__prices dd { font-size: 1.45rem; }
  .tt-extras { padding: 18px 20px; }
  .tt-extras__list { flex-direction: column; gap: 6px; width: 100%; }
  .tt-extras__list li { justify-content: space-between; }
  .tt-surg__grid { grid-template-columns: 1fr; }
  .tt-surg__media { aspect-ratio: 16 / 10; }
  .tt-scard { padding: 26px 22px 12px; }
  .tt-gcard { padding: 26px 22px 22px; }
  .tt-box { padding: 20px 20px 10px; }
  .tt-sos__panel { grid-template-columns: 1fr; padding: 28px 22px; }
  .tt-sos__mark { width: 84px; height: 84px; margin: 20px; }
  .tt-sos__mark > .i { width: 30px; height: 30px; }
  .tt-sos__ring { inset: -10px; }
  .tt-sos__ring--2 { inset: -20px; }
  .tt-sos__actions { grid-template-columns: 1fr; }
  .tt-sos__actions .btn { white-space: normal; }
  .tt-hyg__case .pba { aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
  .tt-canals { padding: 4px 6px 8px; }
  .tt-canals__table, .tt-canals__table thead, .tt-canals__table tbody { display: block; }
  .tt-canals__table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tt-canals__table thead td { display: none; }
  .tt-canals__table thead th { padding: 14px 4px 10px; font-size: .7rem; }
  .tt-canals__table tbody th { grid-column: 1 / -1; padding: 16px 8px 2px; }
  .tt-canals__table td { padding: 6px 4px 16px; border-top: 0; font-size: 1.12rem; }
}

/* 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; }
