/* ============================================================
   Nayem Dental Care - page-level styles: home blocks, treatments, forms, FAQ, pricing, contact, thanks, errors.
   Tokens only (colours live in tokens.css). Geometry never animates; motion uses transform/opacity.
   ============================================================ */

/* the red accent word sits on a soft highlighter swash (static; motion.css draws it in) */
.nd-em { position: relative; z-index: 0; }
.nd-em::before { content: ""; position: absolute; z-index: -1; left: -.08em; right: -.08em; bottom: .08em; height: .42em; border-radius: .2em; background: rgba(var(--nd-red-rgb), .12); transform-origin: left center; }
.nd-section--navy .nd-em::before, .page-hero .nd-em::before { background: rgba(var(--nd-sky-rgb), .22); }
html[lang="bn"] .nd-em::before { bottom: .18em; height: .46em; }   /* Bengali glyphs sit higher in the line box */

/* decorative rings may poke past the viewport edge on phones: clip them at the section (never the page body) */
.nd-section { overflow-x: clip; }

/* ---------- shared bits ---------- */
.nd-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.nd-head--center { margin-inline: auto; text-align: center; }
.nd-head--center .nd-lead { margin-inline: auto; }
.nd-head .nd-title { margin-bottom: .5rem; }
.nd-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.nd-head-row .nd-head { margin-bottom: 0; }
.nd-more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; min-height: 44px; }
.nd-more i { transition: transform .2s var(--nd-ease); }
.nd-more:hover i { transform: translateX(4px); }
.nd-cv { content-visibility: auto; contain-intrinsic-size: auto 640px; }
.nd-ico { width: 2.75rem; height: 2.75rem; flex: none; display: inline-grid; place-items: center; border-radius: 50%; background: var(--nd-surface-alt); color: var(--nd-blue); font-size: 1.25rem; }
.nd-ico--red { color: var(--nd-red); }
.nd-ico--green { color: var(--nd-green-text); }
.nd-dot { width: .65rem; height: .65rem; flex: none; border-radius: 50%; background: var(--nd-green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--nd-green) 28%, transparent); }
.nd-dot--off { background: var(--nd-muted); box-shadow: 0 0 0 4px color-mix(in srgb, var(--nd-muted) 22%, transparent); }
.nd-chips { display: flex; flex-wrap: wrap; gap: .5rem .6rem; }
.nd-illus { position: absolute; left: .75rem; bottom: .65rem; z-index: 1; font-size: .75rem; font-weight: 700; padding: .15rem .65rem; border-radius: var(--nd-r-pill); background: rgba(var(--nd-navy-rgb), .72); color: var(--nd-white); }
.nd-note { font-size: .875rem; color: var(--nd-muted); }
.nd-ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(160deg, var(--nd-surface-alt), var(--nd-card)); color: var(--nd-blue); font-size: clamp(4rem, 12vw, 7rem); }

/* inner pages: a tighter banner and a shorter gap before the content */
.page-hero { padding-block: clamp(2.25rem, 4.5vw, 3.75rem); }
.page-hero + .nd-section { padding-top: clamp(2rem, 4vw, 3.25rem); }

/* footer newsletter: the button never wraps, the field takes the rest */
.nd-news .form-control { min-width: 0; flex: 1 1 auto; }
.nd-news .btn { flex: none; white-space: nowrap; }

/* inner-page banner text on navy */
.page-hero .nd-lead { color: var(--nd-on-navy); }
.page-hero .nd-eyebrow { color: var(--nd-sky); }
.page-hero .nd-em { color: var(--nd-sky); }
.page-hero .breadcrumb-item a { text-decoration: none; }
.page-hero .breadcrumb-item a:hover { text-decoration: underline; }

/* ---------- home: hero ---------- */
.nd-hero { position: relative; overflow: clip; padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3.75rem, 8vw, 6.5rem);
  background: radial-gradient(52rem 34rem at 88% -8%, rgba(var(--nd-sky-rgb), .20), transparent 62%), radial-gradient(34rem 26rem at -8% 108%, rgba(var(--nd-blue-rgb), .10), transparent 62%), var(--nd-surface); }
.nd-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.25rem, 5vw, 4rem); align-items: center; }
@media (min-width: 992px) { .nd-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.nd-hero__title { font-size: clamp(2.3rem, 1.1rem + 4.6vw, 4.5rem); margin: 1rem 0 1.1rem; }
html[lang="bn"] .nd-hero__title { font-size: clamp(2rem, 1.1rem + 3.6vw, 3.7rem); }
.nd-hero__sub { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: var(--nd-ink-2); max-width: 36rem; }
.nd-hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.nd-hero__meta { margin-top: 1.5rem; }
@media (max-width: 575.98px) { .nd-hero__cta .btn-lg { padding-inline: 1.1rem; } }   /* the two hero buttons stay on one row on phones */
.nd-hero__art { position: relative; width: min(100%, 25rem); aspect-ratio: 4 / 5; margin-inline: auto; }
@media (min-width: 992px) { .nd-hero__art { width: 100%; max-width: 28rem; } }
.nd-hero__art .nd-arch { position: absolute; inset: 0; background: var(--nd-navy); box-shadow: var(--nd-shadow-2); }
.nd-hero__art .nd-arch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nd-hero__badge { position: absolute; left: .75rem; bottom: 12%; z-index: 2; display: flex; align-items: center; gap: .7rem; background: var(--nd-card); border: 1px solid var(--nd-line); border-radius: var(--nd-r); padding: .7rem 1rem; box-shadow: var(--nd-shadow-2); max-width: 15.5rem; font-size: .9rem; line-height: 1.35; }
.nd-hero__badge strong { display: block; color: var(--nd-ink); }
.nd-hero__badge span { color: var(--nd-muted); }
@media (min-width: 768px) { .nd-hero__badge { left: -1.25rem; } }

/* ---------- home: trust strip ---------- */
.nd-trust { position: relative; z-index: 2; margin-top: calc(-1 * clamp(1.75rem, 4vw, 2.75rem)); }
.nd-trust__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--nd-card); border: 1px solid var(--nd-line); border-radius: var(--nd-r-lg); box-shadow: var(--nd-shadow-2); overflow: hidden; }
.nd-trust__item { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; min-width: 0; }
.nd-trust__item:nth-child(n+3) { border-top: 1px solid var(--nd-line); }
.nd-trust__item:nth-child(even) { border-inline-start: 1px solid var(--nd-line); }
.nd-trust__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.nd-trust__item small { display: block; color: var(--nd-muted); font-size: .8125rem; line-height: 1.3; }
.nd-trust__item b { display: block; font-size: .98rem; line-height: 1.3; }
@media (min-width: 992px) {
  .nd-trust__grid { grid-template-columns: repeat(var(--nd-trust-n, 4), minmax(0, 1fr)); }
  .nd-trust__item:nth-child(n+3), .nd-trust__item:nth-child(even) { border-top: 0; border-inline-start: 0; }
  .nd-trust__item + .nd-trust__item:nth-child(n) { border-inline-start: 1px solid var(--nd-line); }
  .nd-trust__item:last-child:nth-child(odd) { grid-column: auto; }
}

/* ---------- treatments ---------- */
.nd-tgrid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); }
.nd-tcard { position: relative; display: flex; flex-direction: column; gap: .55rem; height: 100%; padding: 1.4rem 1.3rem 1.2rem; background: var(--nd-card); border: 1px solid var(--nd-line); border-radius: var(--nd-r); text-decoration: none; color: var(--nd-ink); }
.nd-tcard:hover { color: var(--nd-ink); }
.nd-tcard__num { position: absolute; top: 1rem; inset-inline-end: 1.1rem; font-family: var(--nd-font-display); font-size: .95rem; font-weight: 600; color: var(--nd-muted); }
.nd-tcard h3 { font-size: 1.2rem; margin: .45rem 0 0; }
.nd-tcard p { color: var(--nd-ink-2); font-size: .95rem; margin: 0; }
.nd-tcard__go { margin-top: auto; padding-top: .6rem; display: inline-flex; align-items: center; gap: .4rem; color: var(--nd-blue); font-weight: 700; font-size: .9rem; }
.nd-tcard__go i { transition: transform .2s var(--nd-ease); }
.nd-tcard:hover .nd-tcard__go i { transform: translateX(4px); }
.nd-tcard--feature { background: var(--nd-navy); border-color: var(--nd-navy); color: var(--nd-on-navy); overflow: hidden; isolation: isolate; }
.nd-tcard--feature:hover { color: var(--nd-on-navy); }
.nd-tcard--feature h3 { color: var(--nd-white); font-size: 1.5rem; }
.nd-tcard--feature p { color: var(--nd-on-navy); }
.nd-tcard--feature .nd-tcard__go { color: var(--nd-sky); }
.nd-tcard--feature .nd-tcard__num { color: var(--nd-on-navy); }
.nd-tcard--feature .nd-ico { background: rgba(var(--nd-sky-rgb), .18); color: var(--nd-sky); }
.nd-tcard--feature::after { content: ""; position: absolute; inset-inline-end: -1.25rem; bottom: -2rem; width: 9rem; height: 10.5rem; background: rgba(var(--nd-sky-rgb), .14); -webkit-mask: url("/img/demo/tooth.svg") center / contain no-repeat; mask: url("/img/demo/tooth.svg") center / contain no-repeat; z-index: -1; }
@media (min-width: 768px) { .nd-tcard--feature { grid-column: span 2; } }
.nd-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.nd-filter a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 1.1rem; border: 1px solid var(--nd-line); border-radius: var(--nd-r-pill); background: var(--nd-card); color: var(--nd-ink-2); font-weight: 700; text-decoration: none; }
.nd-filter a:hover { color: var(--nd-blue); border-color: var(--nd-blue); }
.nd-filter a[aria-current="true"] { background: var(--nd-blue); border-color: var(--nd-blue); color: var(--nd-white); }

/* treatment art panel (no photo needed) */
.nd-art { position: relative; aspect-ratio: 16 / 10; border-radius: var(--nd-r-lg); overflow: hidden; background: var(--nd-grad-fresh); color: var(--nd-white); display: grid; place-items: center; isolation: isolate; }
.nd-art::before { content: ""; position: absolute; inset: auto -2rem -3rem auto; width: 13rem; height: 15rem; background: rgba(var(--nd-surface-rgb), .16); -webkit-mask: url("/img/demo/tooth.svg") center / contain no-repeat; mask: url("/img/demo/tooth.svg") center / contain no-repeat; z-index: -1; }
.nd-art i { font-size: clamp(3rem, 8vw, 5rem); }
.nd-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- home: dentist ---------- */
.nd-doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 992px) { .nd-doc { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.nd-doc__photo { position: relative; width: min(100%, 17rem); aspect-ratio: 4 / 5; margin-inline: auto; }
@media (min-width: 992px) { .nd-doc__photo { width: min(100%, 23rem); } }
.nd-doc__photo .nd-arch { position: absolute; inset: 0; background: var(--nd-surface-alt); border: 1px solid var(--nd-line); }
.nd-doc__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nd-doc__facts { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .6rem; }
.nd-doc__facts li { display: flex; gap: .65rem; align-items: flex-start; }
.nd-doc__facts i { color: var(--nd-blue); margin-top: .3rem; }
.nd-person { background: var(--nd-card); border: 1px solid var(--nd-line); border-radius: var(--nd-r); overflow: hidden; display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--nd-ink); }
.nd-person__img { aspect-ratio: 4 / 4.4; background: var(--nd-surface-alt); }
.nd-person__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nd-person__body { padding: 1rem 1.15rem 1.2rem; }
.nd-person h3 { font-size: 1.15rem; margin: 0 0 .25rem; }

/* ---------- home: 3 steps ---------- */
.nd-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
@media (min-width: 768px) { .nd-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
.nd-step { position: relative; background: var(--nd-card); border: 1px solid var(--nd-line); border-radius: var(--nd-r); padding: 1.5rem 1.4rem 1.6rem; }
.nd-step__n { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; margin: .35rem 0 1.25rem .35rem; background: var(--nd-blue); color: var(--nd-white); font-weight: 800; border-radius: .6rem; transform: rotate(45deg); }
.nd-step__n > span { transform: rotate(-45deg); }
.nd-step h3 { font-size: 1.3rem; }
.nd-step p { color: var(--nd-ink-2); margin: 0; }
@media (min-width: 768px) {
  .nd-step:not(:last-child)::after { content: "\f138"; font-family: "bootstrap-icons"; position: absolute; top: 3rem; inset-inline-end: -1.65rem; width: 1.3rem; text-align: center; color: var(--nd-sky); font-size: 1.3rem; line-height: 1; }
}

/* ---------- home: smile cases ---------- */
.nd-cases { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.nd-case { background: var(--nd-card); border: 1px solid var(--nd-line); border-radius: var(--nd-r); overflow: hidden; }
.nd-case__body { padding: 1rem 1.2rem 1.2rem; }
.nd-case h3 { font-size: 1.1rem; margin: 0 0 .25rem; }

/* ---------- home: stats + testimonials (navy) ---------- */
.nd-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; }
@media (min-width: 768px) { .nd-stats { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); } }
.nd-stat { text-align: center; }
.nd-stat__num { font-family: var(--nd-font-display); font-weight: 600; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); color: var(--nd-sky); line-height: 1.1; font-variant-numeric: tabular-nums; }
.nd-stat__label { margin-top: .4rem; color: var(--nd-on-navy); font-size: .95rem; }
.nd-quotes { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); margin-top: clamp(2rem, 5vw, 3.5rem); }
.nd-quote { margin: 0; padding: 1.4rem; border: 1px solid rgba(var(--nd-sky-rgb), .26); border-radius: var(--nd-r); background: rgba(var(--nd-sky-rgb), .08); color: var(--nd-on-navy); display: flex; flex-direction: column; gap: .9rem; }
.nd-quote p { margin: 0; color: var(--nd-white); font-size: 1.02rem; }
.nd-quote footer { font-size: .9rem; color: var(--nd-on-navy); }
.nd-quote footer b { color: var(--nd-white); display: block; }
.nd-stars { color: var(--nd-sky); letter-spacing: .1em; }

/* ---------- home: why us ---------- */
.nd-why { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr)); }
.nd-why__item { display: flex; flex-direction: column; gap: .55rem; }
.nd-why__item h3 { font-size: 1.15rem; margin: .3rem 0 0; }
.nd-why__item p { margin: 0; color: var(--nd-ink-2); }

/* ---------- hours, map, split ---------- */
.nd-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (min-width: 992px) { .nd-split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nd-hours { width: 100%; border-collapse: collapse; }
.nd-hours th, .nd-hours td { padding: .65rem .25rem; border-bottom: 1px solid var(--nd-line); text-align: start; font-weight: 500; }
.nd-hours td:last-child { text-align: end; font-variant-numeric: tabular-nums; }
.nd-hours tr.is-today th, .nd-hours tr.is-today td { color: var(--nd-blue); font-weight: 800; }
.nd-hours tr.is-closed td { color: var(--nd-muted); }
.nd-map { position: relative; min-height: 18rem; display: grid; place-items: center; text-align: center; padding: 1.5rem; border: 1px solid var(--nd-line); border-radius: var(--nd-r-lg); overflow: hidden; background: var(--nd-surface-alt); }
.nd-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.nd-cardx { background: var(--nd-card); border: 1px solid var(--nd-line); border-radius: var(--nd-r); padding: 1.25rem 1.3rem; }
.nd-cardx h3, .nd-cardx h2 { font-size: 1.2rem; margin: 0 0 .75rem; }
.nd-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.nd-facts li { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.nd-facts small { display: block; color: var(--nd-muted); line-height: 1.25; }
@media (pointer: coarse) { .nd-facts li > a { display: inline-flex; align-items: center; min-height: 40px; } }   /* phone / e-mail links: a thumb-sized target */
.nd-aside { display: grid; gap: 1rem; align-content: start; }
@media (min-width: 992px) { .nd-aside { position: sticky; top: 6.25rem; } }
.nd-actions { display: grid; gap: .6rem; }

/* ---------- FAQ (native details) ---------- */
.nd-faq { display: grid; gap: .75rem; }
.nd-faq details { background: var(--nd-card); border: 1px solid var(--nd-line); border-radius: var(--nd-r); }
.nd-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: .9rem 1.2rem; font-weight: 700; }
.nd-faq summary::-webkit-details-marker { display: none; }
.nd-faq summary::after { content: "\f64d"; font-family: "bootstrap-icons"; flex: none; color: var(--nd-blue); font-size: 1.1rem; transition: transform .2s var(--nd-ease); }
.nd-faq details[open] { border-color: rgba(var(--nd-blue-rgb), .45); box-shadow: var(--nd-shadow-1); }
.nd-faq details[open] summary::after { transform: rotate(45deg); }
.nd-faq__a { padding: 0 1.2rem 1.15rem; color: var(--nd-ink-2); }
.nd-faq__a > :last-child { margin-bottom: 0; }

/* ---------- health tips ---------- */
.nd-tips { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.nd-tip { display: flex; flex-direction: column; height: 100%; background: var(--nd-card); border: 1px solid var(--nd-line); border-radius: var(--nd-r); overflow: hidden; text-decoration: none; color: var(--nd-ink); }
.nd-tip:hover { color: var(--nd-ink); }
.nd-tip__art { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--nd-grad-fresh); color: var(--nd-white); font-size: 2.6rem; overflow: hidden; }
.nd-tip__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nd-tip__body { flex: 1; display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem 1.2rem 1.3rem; }
.nd-tip h3 { font-size: 1.15rem; margin: 0; }
.nd-tip p { margin: 0; color: var(--nd-ink-2); font-size: .95rem; }
.nd-tip small { color: var(--nd-muted); }

/* ---------- appointment band ---------- */
.nd-band { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 1.5rem; align-items: center; padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--nd-r-lg); background: linear-gradient(135deg, var(--nd-navy), var(--nd-blue)); color: var(--nd-on-navy); }
@media (min-width: 992px) { .nd-band { grid-template-columns: minmax(0, 1fr) auto; } }
.nd-band::before, .nd-band::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; z-index: -1; }
.nd-band::before { right: -70px; top: -90px; width: 300px; height: 300px; border: 22px solid var(--nd-ring-b); }
.nd-band::after { right: -20px; top: -40px; width: 200px; height: 200px; border: 10px solid var(--nd-ring-a); }
.nd-band h2 { color: var(--nd-white); margin: 0 0 .5rem; }
.nd-band p { margin: 0; max-width: 40rem; }
.nd-band .nd-chips { margin-top: 1rem; }

/* ---------- forms ---------- */
.nd-form { background: var(--nd-card); border: 1px solid var(--nd-line); border-radius: var(--nd-r-lg); padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--nd-shadow-1); }
.nd-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.nd-form legend { float: none; width: auto; padding: 0; margin: 0 0 .4rem; font-size: 1rem; font-weight: 600; color: var(--nd-ink-2); }
.nd-req { color: var(--nd-red); }
.nd-err { display: flex; gap: .4rem; align-items: flex-start; margin: .35rem 0 0; font-size: .875rem; font-weight: 600; color: var(--nd-red); }
.nd-err i { margin-top: .2rem; }
.form-control[aria-invalid="true"], .form-select[aria-invalid="true"] { border-color: var(--nd-red); }
.nd-alert { display: flex; gap: .6rem; align-items: flex-start; padding: .85rem 1rem; margin-bottom: 1rem; border: 1px solid; border-radius: var(--nd-r-sm); font-weight: 600; }
.nd-alert--danger { background: color-mix(in srgb, var(--nd-red) 7%, var(--nd-white)); border-color: color-mix(in srgb, var(--nd-red) 40%, var(--nd-white)); color: var(--nd-red-600); }
.nd-alert--ok { background: color-mix(in srgb, var(--nd-green) 10%, var(--nd-white)); border-color: color-mix(in srgb, var(--nd-green) 45%, var(--nd-white)); color: var(--nd-green-text); }
.nd-slots { display: flex; flex-wrap: wrap; gap: .5rem; }
.nd-slot { position: relative; margin: 0; }
.nd-slot input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.nd-slot span { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem 1rem; border: 1px solid var(--nd-line); border-radius: var(--nd-r-pill); background: var(--nd-card); color: var(--nd-ink-2); font-weight: 600; }
.nd-slot input:hover + span { border-color: var(--nd-blue); }
.nd-slot input:checked + span { background: var(--nd-blue); border-color: var(--nd-blue); color: var(--nd-white); }
.nd-slot input:focus-visible + span { outline: 2px solid var(--nd-blue); outline-offset: 3px; }
.nd-consent { display: flex; gap: .7rem; align-items: flex-start; }
.nd-consent .form-check-input { margin-top: .25rem; flex: none; }
.nd-submit { width: 100%; }
@media (min-width: 576px) { .nd-submit { width: auto; min-width: 14rem; } }

/* ---------- thanks ---------- */
.nd-thanks { max-width: 40rem; margin-inline: auto; text-align: center; }
.nd-check { width: 4.5rem; height: 4.5rem; display: inline-grid; place-items: center; border-radius: 50%; font-size: 2.25rem; background: color-mix(in srgb, var(--nd-green) 16%, var(--nd-white)); color: var(--nd-green-text); }
.nd-ref { display: inline-block; max-width: 100%; padding: .4rem 1.1rem; border: 2px dashed var(--nd-line); border-radius: var(--nd-r); background: var(--nd-card); color: var(--nd-blue); font-weight: 800; font-size: clamp(1.3rem, 1rem + 2vw, 2rem); letter-spacing: .06em; user-select: all; overflow-wrap: anywhere; }
.nd-summary { list-style: none; margin: 1.5rem 0 0; padding: 0; text-align: start; background: var(--nd-card); border: 1px solid var(--nd-line); border-radius: var(--nd-r); }
.nd-summary li { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border-bottom: 1px solid var(--nd-line); }
.nd-summary li:last-child { border-bottom: 0; }
.nd-summary li span:first-child { color: var(--nd-muted); }
.nd-summary li span:last-child { font-weight: 700; text-align: end; }

/* ---------- pricing ---------- */
.nd-price { background: var(--nd-card); border: 1px solid var(--nd-line); border-radius: var(--nd-r); padding: 1.25rem 1.4rem; height: 100%; }
.nd-price h2, .nd-price h3 { font-size: 1.25rem; margin: 0; }
.nd-price ul { list-style: none; margin: .75rem 0 0; padding: 0; }
.nd-price li { display: flex; align-items: baseline; gap: .6rem; padding: .5rem 0; }
.nd-price .nd-leader { flex: 1; min-width: 1rem; border-bottom: 2px dotted var(--nd-line); transform: translateY(-.25rem); }
.nd-price .nd-amt { font-weight: 800; color: var(--nd-blue); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- rich text ---------- */
.nd-prose { max-width: 72ch; font-size: 1.0625rem; }
.nd-prose > :first-child { margin-top: 0; }
.nd-prose h2, .nd-prose h3 { margin: 2rem 0 .75rem; }
.nd-prose p, .nd-prose ul, .nd-prose ol { margin-bottom: 1.1rem; }
.nd-prose ul, .nd-prose ol { padding-inline-start: 1.3rem; }
.nd-prose li::marker { color: var(--nd-red); }
.nd-prose img { border-radius: var(--nd-r); height: auto; }
.nd-prose blockquote { margin: 1.5rem 0; padding: .5rem 1.1rem; border-inline-start: 4px solid var(--nd-sky); background: var(--nd-surface-alt); border-radius: 0 var(--nd-r-sm) var(--nd-r-sm) 0; color: var(--nd-ink-2); }
.nd-prose table { display: block; overflow-x: auto; }

/* ---------- pager ---------- */
.nd-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 2rem; }
.nd-pager a, .nd-pager span { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 .9rem; border: 1px solid var(--nd-line); border-radius: var(--nd-r-pill); background: var(--nd-card); color: var(--nd-ink-2); font-weight: 700; text-decoration: none; }
.nd-pager a:hover { color: var(--nd-blue); border-color: var(--nd-blue); }
.nd-pager .is-current { background: var(--nd-blue); border-color: var(--nd-blue); color: var(--nd-white); }
.nd-pager .is-gap { border-color: transparent; background: transparent; }

/* ---------- error pages ---------- */
.nd-error { position: relative; isolation: isolate; overflow: clip; text-align: center; padding-block: clamp(3rem, 8vw, 6rem); }
.nd-error::before { content: ""; position: absolute; inset: 50% auto auto 50%; width: min(34rem, 90vw); aspect-ratio: 1; transform: translate(-50%, -55%); border-radius: 50%; border: 22px solid var(--nd-ring-a); z-index: -1; }
.nd-error__code { font-family: var(--nd-font-display); font-weight: 600; font-size: clamp(5rem, 3rem + 12vw, 10.5rem); line-height: 1; color: var(--nd-blue); }
.nd-error .nd-actions, .nd-thanks .nd-actions { grid-auto-flow: row; max-width: 22rem; margin: 1.5rem auto 0; }
@media (min-width: 576px) { .nd-error .nd-actions, .nd-thanks .nd-actions { grid-auto-flow: column; max-width: none; justify-content: center; } }

/* ---------- share buttons ---------- */
.nd-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.nd-share__label { font-weight: 700; color: var(--nd-ink-2); margin-inline-end: .25rem; }
.nd-share a, .nd-share button { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--nd-line); border-radius: 50%; background: var(--nd-card); color: var(--nd-blue); font-size: 1.15rem; cursor: pointer; text-decoration: none; }
.nd-share a:hover, .nd-share button:hover { background: var(--nd-blue); border-color: var(--nd-blue); color: var(--nd-white); }

/* ---------- sign-in pages ---------- */
.nd-auth { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem 1rem 2rem;
  background: radial-gradient(40rem 26rem at 90% -10%, rgba(var(--nd-sky-rgb), .20), transparent 62%), radial-gradient(30rem 24rem at -10% 110%, rgba(var(--nd-blue-rgb), .10), transparent 62%), var(--nd-surface); }
.nd-auth__wrap { width: min(100%, 27rem); }
.nd-auth__brand { display: flex; justify-content: center; margin-bottom: 1.25rem; }
.nd-auth__card { background: var(--nd-card); border: 1px solid var(--nd-line); border-radius: var(--nd-r-lg); padding: clamp(1.4rem, 4vw, 2.2rem); box-shadow: var(--nd-shadow-2); }
.nd-auth__foot { text-align: center; margin: 1.1rem 0 0; font-size: .9rem; }

/* ---------- dentist profile (E3) ---------- */
.nd-profile { display: grid; gap: clamp(1.5rem, 4vw, 2.75rem); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 992px) { .nd-profile { grid-template-columns: 21rem minmax(0, 1fr); } .nd-profile__side { position: sticky; top: 6.5rem; } }
.nd-profile__side { text-align: center; padding: 1.5rem 1.4rem; }
.nd-profile__side .nd-doc__facts { text-align: start; }
.nd-contacts { display: flex; justify-content: center; gap: .5rem; margin-top: 1rem; }
.nd-contacts a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--nd-line); color: var(--nd-blue); text-decoration: none; }
.nd-contacts a:hover { border-color: var(--nd-blue); }
.nd-pills { list-style: none; margin: .75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.nd-pills a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 1rem; border: 1px solid var(--nd-line); border-radius: var(--nd-r-pill); background: var(--nd-card); color: var(--nd-blue); font-weight: 600; text-decoration: none; }
.nd-pills a:hover { border-color: var(--nd-blue); }