/* Site-wide editorial system. Quiet surfaces, generous type, readable information. */
:root { --bg: #f6f4f0; --bg-alt: #eae7e1; --border: #d6d1c8; --text-2: #59574f; --text-3: #6c685f; --shadow: none; --r-lg: 2px; --r-xl: 2px; }
.btn { box-shadow: none; border-radius: 2px; min-height: 46px; }
.btn-primary {
  border-radius: 14px;
  background: rgba(17, 17, 17, 0.78);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}
.btn-primary:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.28);
}
.btn-ghost {
  border-radius: 14px;
  background: transparent;
  border-color: rgba(17, 17, 17, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.btn-ghost:hover {
  background: rgba(17, 17, 17, 0.06);
  border-color: rgba(17, 17, 17, 0.38);
  color: var(--text);
}
.site-header { border-bottom-color: rgba(255, 255, 255, 0.38); }
.site-header .logo-img { width: auto; height: 62px; }
.header-inner { min-height: 88px; }
.nav-list { gap: 1.5rem; }
.nav-list a { font-size: .85rem; }
.breadcrumbs { padding-block: 1.5rem 0; font-size: .75rem; color: var(--text-2); }
.breadcrumbs ol { padding: 0; margin: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; color: #aaa49a; }
.breadcrumbs a { color: var(--text-2); text-decoration: none; }
.breadcrumbs li[aria-current] { max-width: 100%; overflow-wrap: anywhere; }
.clinic-theme:not(.is-front) .page-hero,
.clinic-theme:not(.is-front) .archive-intro { padding: clamp(2.5rem, 6vw, 5rem) 0 2.5rem; }
.clinic-theme:not(.is-front) h1 { font-size: clamp(2.25rem, 5vw, 4.6rem); max-width: 23ch; line-height: 1.12; }
.clinic-theme:not(.is-front) h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.2; }
.clinic-theme:not(.is-front) .lead { max-width: 54ch; font-size: 1.05rem; line-height: 1.7; }
.clinic-theme:not(.is-front) .section { padding-block: clamp(2rem, 4vw, 4rem); }
.prose { font-size: 1rem; line-height: 1.85; }
.prose h2, .prose h3 { line-height: 1.25; }
.prose p + h2, .prose p + h3 { margin-top: 2.5rem; }
.prose li { margin-bottom: .6rem; }
.prose a { overflow-wrap: anywhere; }
.catalog-tools { max-width: 38rem; margin-bottom: 2.5rem; }
.catalog-tools > label { display: block; font-size: .8rem; margin-bottom: .6rem; }
.catalog-search { display: flex; gap: .7rem; align-items: center; border-bottom: 1px solid #39372f; }
.catalog-search input { background: transparent; border: 0; border-radius: 0; min-width: 0; width: 100%; padding: .8rem 0; color: var(--text); font: inherit; }
.catalog-search button { background: transparent; border: 0; padding: .75rem; font: inherit; font-size: .8rem; text-decoration: underline; cursor: pointer; }
.catalog-tools [role=status] { margin: .6rem 0 0; min-height: 1.5em; }
[data-catalog-group] { margin-bottom: 3rem; }
[data-catalog-group][hidden], [data-catalog-row][hidden] { display: none !important; }
.catalog-group-title { margin: 0 0 1rem; }
.service-index .index-row { padding: 1.3rem 0; grid-template-columns: minmax(12rem, 1fr) minmax(0, 1.15fr) auto; gap: 1.5rem; align-items: baseline; border-bottom: 1px solid var(--border); }
.index-row-title { font-size: 1.2rem; }
.index-row-text { line-height: 1.65; font-size: .9rem; color: var(--text-2); }
.index-row-meta { font-size: .95rem; white-space: nowrap; }
.service-index .index-row:hover { background: transparent; }
.service-index .index-row:hover .index-row-title { text-decoration: underline; text-underline-offset: .3em; }
.doctor-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 3rem 1.5rem; }
.doctor-profile-card { display: flex; flex-direction: column; min-width: 0; }
.doctor-profile-card > a { text-decoration: none; }
.doctor-profile-photo { display: block; aspect-ratio: 4/5; overflow: hidden; background: var(--bg-alt); }
.doctor-profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: none; }
.doctor-profile-card h2, .doctor-profile-card h3 { font-size: 1.3rem !important; margin: 1.3rem 0 .5rem; }
.doctor-profile-card p { font-size: .85rem; }
.doctor-profile-card .btn { margin-top: auto; align-self: flex-start; font-size: .8rem; }
.doctor-profile-card .doctor-ph { display: grid; width: 100%; height: 100%; place-items: center; font: 3rem var(--font-display); color: #827c70; }
.device-index { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3rem 2rem; }
.device-index .device-row { display: flex; flex-direction: column; align-items: stretch; border: 0; padding: 0; gap: .7rem; background: transparent; }
.device-index .device-thumb { width: 100%; aspect-ratio: 4/3; margin-bottom: .5rem; border-radius: 0; }
.device-index .device-thumb img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.device-index .index-row-title { font: 1.75rem var(--font-display); }
.device-index .index-row-text { max-width: 48ch; }
.clinic-theme.single-service .service-top { padding-block: 3rem; }
.clinic-theme.single-service .service-top-grid { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); grid-template-areas: "media copy" "media prose"; gap: 1.5rem 4rem; align-items: start; }
.clinic-theme.single-service .service-hero-media { position: static; aspect-ratio: 4/5; height: auto; max-height: 620px; border-radius: 0; }
.clinic-theme.single-service .service-hero-media img { width: 100%; height: 100%; min-height: 0; object-fit: cover; filter: none; }
.clinic-theme.single-service .service-top-copy h1 { font-size: clamp(2rem,4vw,3.8rem); }
.clinic-theme.single-service .service-prose { max-width: 70ch; padding-top: 1rem; }
.service-meta { display: flex; flex-wrap: wrap; gap: 2rem; border-block: 1px solid var(--border); padding: 1.2rem 0; margin: 2rem 0; }
.service-meta dd { font-size: 1.2rem; }
.single-specialist .page-hero .split, .single-device .page-hero .split { gap: 4rem; align-items: start; }
.portrait { border-radius: 0; box-shadow: none; }
.portrait img { filter: none; object-position: center top; }
.single-specialist .meta-list { border-top: 1px solid var(--border); }
.single-specialist .meta-list > div { border-bottom: 1px solid var(--border); padding-block: .75rem; }
.single-device .portrait { aspect-ratio: 4/5; }
.single-device .portrait img { width: 100%; height: 100%; object-fit: cover; }
.price-row { padding-block: 1.25rem; border-bottom: 1px solid var(--border); gap: 1.5rem; }
.price-row a { font-size: 1.05rem; text-decoration: none; }
.price-row a:hover { text-decoration: underline; }
.price-row strong { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-row .small { max-width: 65ch; margin-top: .3rem; }
.contacts-page { padding-top: 3rem; }
.contacts-head { padding-bottom: 1.5rem; }
.contacts-fact { padding: 1.5rem 1rem; }
.contacts-fact-value { font-weight: 500; overflow-wrap: anywhere; }
.contacts-fact-label { font-size: .7rem; letter-spacing: .08em; }
.contacts-form-block .form, #callback .form { background: var(--bg-alt); padding: clamp(1.5rem,3vw,2.5rem); border-radius: 0; box-shadow: none; }
.form label { font-size: .85rem; }
.form input:not([type=checkbox]):not([type=hidden]), .form select, .form textarea { border-radius: 0; background: transparent; border: 1px solid #a49e94; min-height: 46px; }
.form .consent { font-size: .75rem; line-height: 1.65; }
.form .consent input { flex-shrink: 0; accent-color: #171714; }
.form button { width: 100%; }
.clinic-theme #callback .split { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 4rem; }
.clinic-theme #callback { border-top: 1px solid var(--border); }
.clinic-theme .clinic-mosaic img { filter: none; }
.legal-page .prose, .privacy-prose { max-width: 76ch; }
.legal-page .section + .section { border-top: 1px solid var(--border); }
.legal-hub-grid { gap: 0; border-top: 1px solid var(--border); }
.legal-hub-grid > * { border-radius: 0; box-shadow: none; border: 0; border-bottom: 1px solid var(--border); }
.search-list { max-width: 55rem; }
.search-list .price-row { display: block; }
.search-list a { font-family: var(--font-display); font-size: 1.45rem; }
.site-footer { padding-top: 3rem; }
.footer-maker-logo { width: 8.5rem; height: auto; }
.footer-maker-logo--light { width: 8.5rem; height: auto; }
.footer-grid { gap: 2.5rem; }
.footer-brand p { max-width: 30ch; }
.clinic-theme .ba-frame img { filter: none; object-fit: contain; }
.clinic-theme .card { box-shadow: none; border-radius: 0; }
.clinic-theme .map { border-radius: 0; }
.clinic-theme [id] { scroll-margin-top: calc(var(--header) + 1rem); }
.pagination { margin-top: 2rem; }
.page-numbers { display: inline-block; padding: .5rem .9rem; }
.page-numbers.current { background: var(--accent); color: var(--bg); }
@media(max-width: 960px) {
  .doctor-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .clinic-theme.single-service .service-top-grid { gap: 2rem; }
  .single-specialist .page-hero .split, .single-device .page-hero .split { gap: 2rem; }
}
@media(max-width: 720px) {
  .clinic-theme #callback .split { grid-template-columns: 1fr; gap: 1.5rem; }
  .clinic-theme.single-service .service-top-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "media" "prose"; }
  .clinic-theme.single-service .service-hero-media { max-height: 420px; aspect-ratio: 4/3; }
  .device-index { grid-template-columns: 1fr; }
  .service-index .index-row { grid-template-columns: 1fr auto; gap: .4rem 1rem; }
  .service-index .index-row-text { grid-column: 1/-1; }
  .service-index .index-row-meta { grid-column: 2; grid-row: 1; }
  .breadcrumbs { font-size: .7rem; }
  .header-inner { min-height: 76px; }
  .site-header .logo-img { height: 54px; }
  .clinic-theme .actions { flex-wrap: wrap; }
  .contacts-fact { padding-inline: 0; }
}
@media(max-width: 480px) {
  .doctor-list { grid-template-columns: 1fr; }
  .price-row { gap: .5rem; }
}

/* Geometry-style device landings */
.device-page {
  background: linear-gradient(180deg, #efece6 0%, #f6f4f0 28%, #f6f4f0 100%);
  color: var(--text);
}
.device-page-hero {
  padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(20, 18, 12, 0.08);
}
.device-page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.device-page-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.device-page-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.08;
  max-width: 14ch;
}
.device-page-tagline {
  margin: 0 0 1.25rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.45;
  max-width: 34ch;
  color: var(--text);
}
.device-page-lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 52ch;
}
.device-page-bullets {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
}
.device-page-bullets li {
  margin: 0;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(20, 18, 12, 0.1);
  border-radius: 999px;
}
.device-page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.35rem;
}
.device-page-hero-media {
  margin: 0;
  border-radius: 2px;
  overflow: hidden;
  background:
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(246, 244, 240, 0.95) 50%,
      rgba(234, 230, 222, 1) 100%
    );
  box-shadow: none;
}
.device-page-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center 55%;
  padding: 4% 5%;
  box-sizing: border-box;
}
.device-page-section {
  padding: clamp(2.75rem, 5.5vw, 5rem) 0;
  border-bottom: 1px solid rgba(20, 18, 12, 0.07);
}
.device-page-section-inner {
  max-width: min(920px, 100%);
}
.device-page-section h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  line-height: 1.15;
  max-width: 22ch;
}
.device-page-section > .device-page-section-inner > p,
.device-page-section-inner > p {
  margin: 0 0 1.1rem;
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 68ch;
}
.device-page-list {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 62ch;
}
.device-page-list li + li {
  margin-top: 0.45rem;
}
.device-page-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.device-page-card {
  padding: 1.15rem 1.2rem 1.25rem;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(20, 18, 12, 0.08);
  border-radius: 4px;
}
.device-page-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  line-height: 1.3;
}
.device-page-card p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.55;
}
.device-page-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 1.35rem;
}
.device-page-col h3 {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
}
.device-page-steps {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}
.device-page-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}
.device-page-step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  background: #141414;
  color: #f6f4f0;
  flex-shrink: 0;
}
.device-page-steps h3 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.1rem;
}
.device-page-steps p {
  margin: 0;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 58ch;
}
.device-page-faq-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.25rem;
}
.device-page-faq-item {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(20, 18, 12, 0.09);
  border-radius: 4px;
  padding: 0.15rem 1rem;
}
.device-page-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
  font-weight: 560;
  line-height: 1.35;
}
.device-page-faq-item summary::-webkit-details-marker {
  display: none;
}
.device-page-faq-item summary::after {
  content: "+";
  float: right;
  color: var(--text-3);
  font-weight: 400;
}
.device-page-faq-item[open] summary::after {
  content: "–";
}
.device-page-faq-item p {
  margin: 0 0 1rem;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 64ch;
}
.device-page-cta {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  background: #141414;
  color: #f5f5f7;
}
.device-page-cta-inner {
  max-width: 40rem;
}
.device-page-cta h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: inherit;
}
.device-page-cta p {
  margin: 0 0 1rem;
  color: rgba(245, 245, 247, 0.72);
  line-height: 1.65;
}
.device-page-note {
  font-size: 0.88rem !important;
  color: rgba(245, 245, 247, 0.48) !important;
  margin-bottom: 1.5rem !important;
}
.device-page-cta .btn-primary {
  background: rgba(246, 244, 240, 0.92);
  color: #141414;
  border-color: transparent;
}
@media (max-width: 860px) {
  .device-page-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .device-page-hero-media {
    order: -1;
  }
  .device-page-hero-media img {
    aspect-ratio: 1 / 1;
    max-height: min(52vh, 420px);
    margin-inline: auto;
  }
  .device-page-cols {
    grid-template-columns: 1fr;
  }
  .device-page-hero h1 {
    max-width: none;
  }
}
