/* Shared frontend + native block-editor typography. */
@font-face { font-family: Inter; src: url('fonts/Inter-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url('fonts/Inter-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url('fonts/Inter-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('fonts/CormorantGaramond-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
:root {
    --bg: #fbf8f1; --paper: #fffdf8; --ink: #2d302a; --text: #494a43;
    --muted: #6b6d64; --accent: #786247; --accent-hover: #5f4d38;
    --mist: #f2ecdf; --line: #ded3c2; --warm: #f7f1e6;
    --sans: Inter, 'Segoe UI', Arial, sans-serif;
    --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.75 var(--sans); -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
::selection { background: #e5d8c2; color: var(--ink); }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled, input:disabled, textarea:disabled, select:disabled { cursor: not-allowed; }
img, video { max-width: 100%; height: auto; }
figure { margin: 0; }
iframe, embed, object { max-width: 100%; }
p { margin: 0 0 1.25em; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); margin: 0 0 .6em; line-height: 1.15; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; }
h1 { font-size: clamp(44px, 5.5vw, 78px); }
h2 { font-size: clamp(34px, 4vw, 54px); }
h3 { font-size: 23px; font-weight: 600; line-height: 1.35; }
h4 { font-size: 19px; line-height: 1.4; }
h1 em, h2 em { color: #8b785d; font-style: normal; }
ul, ol { padding-inline-start: 1.4em; }
figcaption, .wp-element-caption { color: var(--muted); font-size: 13px; line-height: 1.6; margin-block: 12px; }
.entry-content { display: flow-root; max-width: 1100px; margin-inline: auto; }
.entry-content > :where(:not(.alignwide):not(.alignfull)) { max-width: 780px; margin-inline: auto; }
.entry-content > .alignwide { max-width: 1100px; margin-inline: auto; }
.entry-content > .alignfull { max-width: none; }
.entry-content > * + * { margin-block-start: 1.5rem; }
.entry-content h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.2; }
.entry-content > :is(h2, h3, h4) { margin-block-start: clamp(2rem, 5vw, 3.5rem); }
.entry-content > :first-child { margin-block-start: 0; }
.entry-content > :last-child { margin-block-end: 0; }
.entry-content :where(.wp-block-group, .wp-block-column, .wp-block-media-text__content) { min-width: 0; }
.entry-content :where(li) { margin-block: .35em; }
.entry-content :where(.wp-block-image, .wp-block-video, .wp-block-embed, .wp-block-gallery) { margin-block: 2rem; }
.wp-block-image img, .wp-block-video video, .wp-block-gallery img { border-radius: 12px; }
.wp-block-video video, .wp-block-video video[poster] { max-height: min(70svh, 640px); object-fit: contain; background: var(--ink); }
.wp-block-image .alignleft { margin: 0 1.5rem 1rem 0; }
.wp-block-image .alignright { margin: 0 0 1rem 1.5rem; }
.wp-block-columns { gap: 2rem; }
.wp-block-media-text { gap: 1.5rem; }
.wp-block-media-text .wp-block-media-text__content { padding: 1.5rem; }
.wp-block-table { overflow-x: auto; }
.wp-block-table table { width: 100%; border-collapse: collapse; line-height: 1.6; }
.wp-block-table :is(th, td) { text-align: start; padding: 16px; border: 1px solid var(--line); min-width: 110px; }
.wp-block-table th { color: var(--ink); background: var(--mist); font-weight: 600; }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--warm); }
.wp-block-quote, .wp-block-pullquote { margin-block: 2rem; padding: 28px; background: var(--mist); border: 0; border-inline-start: 2px solid var(--accent); }
.wp-block-quote p, .wp-block-pullquote p { font: 400 clamp(24px, 3vw, 32px)/1.4 var(--serif); color: var(--ink); }
.wp-block-quote cite, .wp-block-pullquote cite { font: 400 13px/1.7 var(--sans); color: var(--muted); }
.wp-block-separator { color: var(--line); border: 0; border-block-start: 1px solid; margin-block: 2.5rem; }
.wp-block-details { padding: 20px 0; border-block: 1px solid var(--line); }
.wp-block-details summary { cursor: pointer; color: var(--ink); font-weight: 600; min-height: 44px; padding-block: 8px; }
.wp-block-details > :not(summary) { margin-block: 1rem 0; }
.wp-block-file { padding: 20px; background: var(--mist); border: 1px solid var(--line); border-radius: 10px; }
.wp-block-file > a { display: inline-block; margin-block: 6px; overflow-wrap: anywhere; }
.wp-block-file .wp-block-file__button { background: var(--accent); color: white; border-radius: 6px; padding: 12px 18px; }
.wp-block-cover { border-radius: 14px; overflow: hidden; }
.wp-block-cover :where(h1, h2, h3, p) { color: inherit; }
.wp-block-button__link, .button { display: inline-flex; justify-content: center; align-items: center; gap: 14px; min-height: 52px; padding: 14px 20px; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent); color: white; font: 600 .875rem/1.6 var(--sans); text-decoration: none; text-align: center; }
.wp-block-button__link:hover, .button:hover { background: var(--accent-hover); color: white; border-color: var(--accent-hover); }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--accent); border-color: currentColor; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--mist); }
.wp-block-buttons { gap: 16px; }
.wp-block-code, .wp-block-preformatted { padding: 20px; overflow-x: auto; background: var(--mist); border-radius: 8px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; padding: 12px; background: var(--paper); z-index: 100; }
@media (max-width: 600px) {
    .wp-block-media-text.is-stacked-on-mobile { gap: 0; }
    .wp-block-media-text .wp-block-media-text__content { padding: 24px 0 0; }
    .wp-block-quote, .wp-block-pullquote { padding: 22px; }
    .wp-block-image .alignleft, .wp-block-image .alignright { float: none; margin-inline: 0; }
}
/* Supplied clinic price list: native table blocks in both frontend and editor. */
.clinic-prices > * + * { margin-block-start: 24px; }
.clinic-prices > h2 { margin-top: 64px; }
.clinic-prices > h3 { margin-top: 32px; font-size: clamp(19px, 2.2vw, 24px); }
.clinic-price-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.clinic-price-nav .wp-block-button__link { min-height: 44px; padding: 10px 16px; border-radius: 24px; font-size: 12px; }
.clinic-price-table { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.clinic-price-table :is(th, td) { min-width: 0; padding: 20px; border: 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.clinic-price-table th { font-size: 12px; }
.clinic-price-table :is(th, td):nth-child(2) { width: 145px; text-align: right; white-space: nowrap; }
.clinic-price-table td:nth-child(2) { color: var(--accent); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.clinic-price-table :is(th, td):nth-child(3) { width: 110px; text-align: right; white-space: nowrap; }
.clinic-price-table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) {
    .clinic-prices > h2 { margin-top: 44px; }
    .clinic-price-table table, .clinic-price-table tbody { display: block; }
    .clinic-price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .clinic-price-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 18px; border-bottom: 1px solid var(--line); }
    .clinic-price-table tbody tr:last-child { border-bottom: 0; }
    .clinic-price-table td { display: block; padding: 0; border: 0; }
    .clinic-price-table td:first-child { grid-column: 1 / -1; }
    .clinic-price-table td:nth-child(2), .clinic-price-table td:nth-child(3) { width: auto; }
    .clinic-price-table td:nth-child(2) { text-align: left; }
    .clinic-price-table td:nth-child(2)::before, .clinic-price-table td:nth-child(3)::before { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 400; }
    .clinic-price-table td:nth-child(2)::before { content: 'Цена'; }
    .clinic-price-table td:nth-child(3)::before { content: 'Сроки'; }
}
/* Owner-supplied media: keep captions outside photos and readable on narrow screens. */
.clinic-media-20261026 .wp-block-gallery.has-nested-images figure.wp-block-image { justify-content: flex-start; }
.clinic-media-20261026 .wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
    position: static; max-height: none; overflow: visible; background: none; color: var(--muted);
    padding: 0; margin: 12px 0; font-size: 13px; line-height: 1.6;
}
@media (max-width: 600px) {
    .clinic-media-20261026 .wp-block-gallery.has-nested-images.columns-2 figure.wp-block-image:not(#individual-image) { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
