/* Exact colour tokens and font stacks from the approved design reference. */
html[data-theme="light"]{--bg:#f3f5f0;--surface:#fffefa;--surface2:#e8eee8;--text:#253b30;--muted:#586a60;--accent:#416a55;--on-accent:#fff;--outline:#d6dfd6;--soft:#b0c9b8;--shadow:rgba(31,63,43,.07)}
html[data-palette="neutral"]{--bg:#f5f2ed;--surface:#fffefb;--surface2:#ede8df;--text:#37332e;--muted:#69625a;--accent:#696455;--on-accent:#fff;--outline:#e2dbd2;--soft:#d4ccbc;--shadow:rgba(60,48,35,.06)}
html[data-palette="rose"]{--bg:#f7f2f1;--surface:#fffdfc;--surface2:#f0e5e6;--text:#47353b;--muted:#746066;--accent:#805b68;--on-accent:#fff;--outline:#e9d9dd;--soft:#d9bbc4;--shadow:rgba(91,43,60,.07)}
html[data-theme="dark"]{--bg:#171e1a;--surface:#26332b;--surface2:#304138;--text:#e9f0ea;--muted:#bfd0c3;--accent:#a9c9af;--on-accent:#18271d;--outline:#405447;--soft:#537b60;--shadow:rgba(0,0,0,.12)}
html[data-theme="dark"][data-palette="neutral"]{--bg:#211f1c;--surface:#312e29;--surface2:#3d3932;--text:#f0eae2;--muted:#d1c8bb;--accent:#c9c0aa;--on-accent:#29251f;--outline:#514b42;--soft:#796f60}
html[data-theme="dark"][data-palette="rose"]{--bg:#211b1e;--surface:#33282d;--surface2:#45343c;--text:#f2e6e9;--muted:#d8c1c8;--accent:#d8b2bd;--on-accent:#302027;--outline:#5d464e;--soft:#916b7b}
html[data-theme]{--ink:var(--text);--ink-2:var(--muted);--line:var(--outline);--line-strong:var(--outline);--accent-on:var(--on-accent);--accent-soft:var(--surface2);--green-950:var(--text);--green-900:var(--accent);--green-800:var(--accent);--green-700:var(--accent);--green-600:var(--accent);--sage-100:var(--surface2);--sage-50:var(--bg);--shadow-sm:0 7px 24px var(--shadow);scroll-padding-top:24px}
html[data-theme] body.public-body{background:var(--bg);color:var(--text);font-family:var(--body-font)}
.public-body :is(h1,h2,h3,h4){font-family:var(--heading-font);font-weight:400;letter-spacing:-.025em}
.public-body h1{font-size:clamp(40px,4.8vw,74px);line-height:1.08}.public-body h1 em{color:var(--accent)}
.public-body h2{font-size:clamp(30px,3vw,44px);line-height:1.18}.public-body h3{font-size:25px;line-height:1.25}
.public-body .container{width:min(1440px,calc(100% - 48px))}.public-body .lead{font-size:18px;line-height:1.8;color:var(--muted)}
html[data-theme] .public-body :is(.hero,.section-pad,.booking-section,.process-section,.inner-hero){background:var(--bg);color:var(--text)}
html[data-theme] .public-body :is(.section-heading>p,.booking-intro>p,.process-grid p,.topic-card p,.price-card p,.lead){color:var(--muted)}
html[data-theme] .public-body :is(.button,.button-lg,.mobile-booking-bar){border-radius:999px;background:var(--accent);color:var(--on-accent);border:1px solid var(--accent);box-shadow:none;font-size:15px;font-weight:650;white-space:normal;text-align:center}
html[data-theme] .public-body :is(.button-outline,.button-outline-light,.button-light){background:var(--surface);color:var(--accent);border-color:var(--outline)}
html[data-theme] .public-body .button:hover{filter:none;background:var(--accent);color:var(--on-accent);box-shadow:0 7px 24px var(--shadow)}
html[data-theme] .public-body :is(input,select,textarea){background:var(--surface);color:var(--text);border-color:var(--outline)}
.public-body :focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.design-toolbar{padding:14px 20px;display:flex;align-items:center;gap:18px;flex-wrap:wrap;background:#101715;color:#eef3ef;border-bottom:1px solid #35423d;position:relative;z-index:110;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
.design-brand{display:flex;align-items:center;gap:10px;margin-right:auto;color:#eef3ef;font-size:17px;text-decoration:none}.design-mark{width:38px;height:38px;border:1px solid #789b85;border-radius:50%;display:grid;place-items:center;color:#b9d5c1;font-size:23px}
.palette-control{display:flex;align-items:center;gap:16px;min-width:0}.lab-label{color:#9eafa3;text-transform:uppercase;letter-spacing:.1em;font-size:12px}
.design-control{display:flex;gap:5px;background:#26332e;border:1px solid #43534a;padding:4px;border-radius:13px;min-width:0}.design-control button{border:0;border-radius:9px;padding:10px 14px;background:transparent;color:#baccc0;font-size:13px;white-space:nowrap}.design-control button[aria-pressed=true]{background:#e0eae1;color:#1b3527;font-weight:700}.design-control button:hover:not([aria-pressed=true]){background:#3c5045}
.comfort-button{border:1px solid #658b72;border-radius:13px;padding:11px 15px;background:transparent;color:#dce9de;font-size:13px}.comfort-button[aria-pressed=true]{background:#b9d6bd;color:#163121}.design-toolbar :focus-visible{outline-color:#b9d5c1}.doctor-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.doctor-tools form{margin:0}.doctor-tools .doctor-avatar{object-fit:cover;object-position:50% 18%;width:40px;height:40px}.doctor-tools #edit-status{font-size:12px;max-width:260px}
html[data-theme] .site-header{position:relative;top:auto;background:var(--bg);border-bottom:1px solid var(--outline);backdrop-filter:none;z-index:100}.nav-shell{min-height:64px}@media(min-width:1151px){.services-dropdown{left:auto;right:0}}.nav-links{margin-left:auto}.header-preferences{order:2;margin-left:12px}.nav-links .header-phone{margin-left:12px}
html[data-theme] :is(.nav-links,.services-dropdown,.language-menu>div,.menu-button){background:var(--surface);color:var(--text);border-color:var(--outline)}
html[data-theme] .nav-links{background:var(--bg)}html[data-theme] :is(.nav-links>a,.services-menu>summary,.language-menu>summary){color:var(--text)}
.public-body .hero:after{display:none}.public-body .hero-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,.95fr);gap:40px}.public-body .hero-copy h1{max-width:none}.public-body .hero-actions{gap:12px;margin-bottom:0}.public-body .hero-visual{min-height:0;display:block;align-self:stretch;padding-bottom:0}
.public-body .portrait-frame{width:100%;max-width:none;border:0;border-radius:220px 220px 24px 24px;box-shadow:none;background:var(--surface2);overflow:hidden;display:flex;flex-direction:column}
.public-body .portrait-frame img{height:365px;aspect-ratio:auto;object-fit:cover;object-position:50% 24%;width:100%;display:block}.public-body .portrait-gradient{display:none}
.public-body .portrait-caption{position:static;padding:18px 22px;color:var(--text);background:var(--surface2);min-height:88px;gap:10px}.public-body .portrait-caption small{font-size:13px;opacity:1;color:var(--muted)}.public-body .caption-icon{background:var(--surface);color:var(--accent);flex-shrink:0}
.hero-note{display:inline-flex;flex-direction:column;gap:3px;padding:12px 18px;background:var(--surface);color:var(--text);border:1px solid var(--outline);border-radius:14px;position:absolute;left:18px;top:278px;max-width:calc(100% - 36px);box-shadow:0 8px 20px var(--shadow)}.hero-note small{color:var(--muted);font-size:12px}
.public-body .heading-row{display:flex;justify-content:space-between;align-items:center;gap:24px}.public-body .heading-row>p{max-width:420px;font-size:15px}.public-body .heading-row h2{margin:0}.public-body .topic-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:start}
html[data-theme] .public-body :is(.topic-card,.price-card,.process-grid li,.approach-step,.calendar-panel,.form-panel,.faq-list details){background:var(--surface);border:1px solid var(--outline);color:var(--text);border-radius:18px;box-shadow:0 7px 24px var(--shadow)}
.public-body .topic-card summary{padding:22px 20px;min-height:340px;display:flex;flex-direction:column}.public-body .topic-card h3{font-size:24px;min-height:60px}.public-body .topic-card summary p{font-size:14px;line-height:1.6}.public-body .topic-card .topic-more{margin-top:auto;padding-top:15px}.public-body .topic-icon{width:48px;height:48px}.public-body .topic-number{color:var(--accent)}.public-body .topic-card[open]{grid-column:span 2}.public-body .topic-card[open] summary{min-height:0}.public-body .topic-card[open] h3{min-height:0}.public-body .topic-steps{grid-template-columns:1fr}.public-body .topic-detail{padding:0 22px 22px}.public-body .topic-detail p{font-size:15px}.public-body .topic-steps li{background:var(--surface2);border-color:var(--outline)}
.approach-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.approach-step{padding:25px}.approach-step h3{margin:5px 0 12px}.approach-step p{margin:0;color:var(--muted);line-height:1.65}.approach-step .eyebrow{letter-spacing:0}.approach-step .eyebrow:before{display:none}
html[data-theme] .public-body .offline-section{background:var(--surface2);color:var(--text)}html[data-theme] .public-body .offline-section :is(h2,h3,strong,a,p,small,.eyebrow,.prep-label,.check-list,.check-list li){color:var(--text)}html[data-theme] .public-body .offline-section :is(.prep-card,.contact-card,.tip){background:var(--surface);color:var(--text);border:1px solid var(--outline)}
html[data-theme] .public-body .booking-stepper{background:var(--surface2);border-color:var(--outline)}html[data-theme] .public-body .booking-stepper :is(.step,.step.active,.step.done){color:var(--text)}html[data-theme] .public-body .booking-stepper .step>span{background:var(--surface);color:var(--accent)}
html[data-theme] .public-body :is(.calendar-toolbar.public button,.time-slot,.calendar-day){background:var(--surface2);color:var(--text);border:1px solid var(--outline);border-radius:14px}.public-body .calendar-toolbar.public button{border-radius:50%}
html[data-theme] .public-body :is(.calendar-day.selected,.time-slot.selected){background:var(--accent);color:var(--on-accent)}html[data-theme] .public-body .calendar-day:disabled{opacity:.55;color:var(--muted)}html[data-theme] .public-body .calendar-day.available{border-color:var(--accent)}
html[data-theme] .public-body :is(.selected-slot,.order-summary,.empty-state,.warning-card){background:var(--surface2);color:var(--text);border-color:var(--outline)}html[data-theme] .public-body :is(.selected-slot small,.order-summary span,.privacy-note,.calendar-legend,.slots-header small){color:var(--muted)}
.public-body #day-slots{width:100%}.public-body #day-slots .empty-state,.public-body #calendar>.empty-state{grid-column:1 / -1;width:100%;max-width:none;box-sizing:border-box;text-align:left}.public-body .consent{align-items:flex-start}.public-body .consent input{flex:0 0 18px;accent-color:var(--accent)}.public-body .consent a{text-decoration:underline;text-underline-offset:3px}
.public-body .process-grid{gap:46px;overflow:visible}.public-body .process-grid li{border:1px solid var(--outline);overflow:visible}.public-body .process-grid li:after{display:none!important}.process-arrow{position:absolute;width:40px;height:26px;right:-44px;top:50%;transform:translateY(-50%);stroke:var(--accent);stroke-width:2.4;fill:none;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
html[data-theme] .public-body .footer{background:var(--surface2);color:var(--text)}html[data-theme] .public-body .footer :is(strong,a,p,small,.footer-bottom,span){color:var(--text)}html[data-theme] .public-body .footer .button{color:var(--on-accent)}html[data-theme] .public-body .footer-contact{background:var(--surface)}.payment-logo.erip{width:112px;overflow:visible}.payment-logo.erip img{width:88px;height:auto;max-width:100%;max-height:34px;object-fit:contain}
.public-body .contacts-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;grid-auto-rows:1fr}.public-body :is(.contact-panel,.requisites-panel){width:100%;height:100%;background:var(--surface2);border:1px solid var(--outline);color:var(--text);padding:28px}.public-body .contacts-clinic a{color:var(--accent)}
.inline-editing [data-cms-text]{outline:1px dashed var(--accent);outline-offset:3px;border-radius:3px;cursor:text;min-width:1ch}.inline-editing [data-cms-text]:focus{background:var(--surface2)}cms-text{display:inline}.inline-editing .topic-card:hover{transform:none}
html[data-comfort=true],html[data-comfort=true] *,html[data-comfort=true] *:before,html[data-comfort=true] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}html[data-comfort=true] .public-body :is(.topic-card,.topic-icon,.button):is(:hover,:focus-within,:active){transform:none!important}
@media(max-width:1150px){.public-body .topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.public-body .process-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.process-grid li:nth-child(2) .process-arrow{display:none}.design-brand{flex:1 1 100%}.nav-links{margin-left:0}.public-body .hero-grid{gap:24px}.public-body .hero-actions .button{font-size:14px}.public-body .heading-row{align-items:flex-start}.public-body .topic-card summary{min-height:320px}}
@media(max-width:800px){.public-body .hero-grid{grid-template-columns:1fr}.public-body .hero-visual{max-width:540px;width:100%;margin:auto}.public-body .heading-row{flex-direction:column;gap:12px}.public-body .heading-row>p{max-width:none}.approach-steps{grid-template-columns:1fr}.public-body .contacts-grid{grid-template-columns:1fr}.public-body .hero-copy h1{font-size:clamp(40px,7vw,60px)}}
@media(max-width:650px){.design-toolbar{padding:12px;gap:10px}.design-brand{font-size:15px}.lab-label{display:none}.palette-control{width:100%}.palette-control .design-control{width:100%}.palette-control button{flex:1;padding:9px 6px;font-size:11px}.comfort-button{padding:10px;font-size:12px}.design-control button{padding:9px 10px;font-size:12px}.public-body .container{width:calc(100% - 32px)}.public-body .hero-grid{gap:24px}.public-body .hero-visual{max-width:440px}.public-body .portrait-frame img{height:300px}.hero-note{top:216px;left:12px;padding:10px 12px;font-size:14px}.public-body .portrait-caption{padding:16px;min-height:100px}.public-body .portrait-caption small{font-size:12px}.public-body .topic-grid{grid-template-columns:1fr}.public-body .topic-card[open]{grid-column:auto}.public-body .topic-card summary{min-height:0}.public-body .topic-card h3{min-height:0}.public-body .topic-card summary p{font-size:15px}.public-body .process-grid{grid-template-columns:1fr;gap:40px}.process-grid li:nth-child(2) .process-arrow{display:block}.process-arrow{top:auto;bottom:-34px;left:calc(50% - 20px);right:auto;transform:rotate(90deg);width:40px;height:26px}.public-body .process-grid li{padding:22px 20px 22px 80px}.public-body :is(.contact-panel,.requisites-panel){padding:22px}.public-body .hero-actions .button{width:100%}.public-body .booking-intro h2{font-size:32px}.public-body .payment-logo.erip img{width:80px;max-width:100%;max-height:30px}.header-preferences{margin-left:0}.nav-shell{justify-content:space-between}}
/* Keep older component rules on the selected palette as well. */
html[data-theme] .public-body :is(.topic-more,.text-link,.eyebrow,.topic-detail h4,.nav-links a[aria-current=page],.cookie-footer button){color:var(--accent)}
html[data-theme] .public-body .topic-icon{stroke:var(--accent)}html[data-theme] .public-body .topic-steps li:before{background:var(--accent);color:var(--on-accent)}
html[data-theme] .public-body :is(input,textarea)::placeholder{color:var(--muted);opacity:1}
html[data-theme] .public-body :is(.cookie-banner,.cookie-dialog,.cookie-dialog details,.legal-card){background:var(--surface);color:var(--text);border-color:var(--outline)}
html[data-theme] .public-body :is(.cookie-banner p,.cookie-dialog p,.cookie-dialog summary,.form-panel label,.form-panel small){color:var(--muted)}
html[data-theme] .public-body .menu-service-icon{background:var(--accent);color:var(--on-accent)}
html[data-theme] .public-body .cta-card{background:var(--surface2);color:var(--text);border:1px solid var(--outline)}html[data-theme] .public-body .cta-card :is(h2,p,.eyebrow-light){color:var(--text)}
html[data-theme] .public-body .duration{background:var(--surface2);color:var(--text)}

/* Header refinements and larger, more readable controls. */
.design-toolbar{gap:18px;padding:14px 20px;position:relative}
.header-cluster{display:flex;align-items:center;gap:12px;flex:none}.design-toolbar .design-brand{margin:0;flex:none}.design-toolbar .header-preferences{order:initial;margin:0}.design-toolbar .menu-button{display:flex;order:initial;background:#26332e;border-color:#658b72;border-radius:12px}.design-toolbar .menu-button span{background:#dce9de}
html[data-theme] .design-toolbar .language-menu>summary{background:#26332e;border-color:#43534a;color:#dce9de}html[data-theme] .design-toolbar .menu-button{background:#26332e;border-color:#658b72}.design-toolbar .language-menu>div{z-index:3;left:0;right:auto}
.design-toolbar .nav-links{display:none;position:absolute;top:100%;left:20px;right:auto;width:390px;max-width:calc(100% - 40px);max-height:70dvh;overflow:auto;margin:8px 0 0;padding:16px;flex-direction:column;align-items:stretch;gap:6px;border:1px solid var(--outline);border-radius:18px;background:var(--surface);box-shadow:0 14px 35px #0003;z-index:5}
.design-toolbar .nav-links.open{display:flex}.design-toolbar .nav-links>a{padding:10px 12px;min-height:44px}.design-toolbar .services-menu>summary{padding:10px 12px;justify-content:space-between}.design-toolbar .services-dropdown{position:static;left:auto;right:auto;width:100%;max-width:100%;max-height:none;margin:4px 0 0;padding:8px;box-shadow:none}.design-toolbar .services-dropdown>a{font-size:16px;padding:8px;gap:10px}.design-toolbar .menu-service-icon{flex-basis:44px;width:44px;height:44px}
.header-settings{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex:1;flex-wrap:wrap;min-width:0}.header-settings .header-phone{font-size:15px;white-space:nowrap;color:#dce9de;text-decoration:none}.header-settings .palette-control{gap:10px}.header-settings .lab-label{display:inline}.theme-icon{font-size:25px;line-height:1;vertical-align:middle;display:inline-block;margin-right:3px}.design-control button{min-height:44px;cursor:pointer}.doctor-tools{margin-left:auto}
.public-body .portrait-caption strong{display:block}.public-body .portrait-caption .doctor-full-name{font-size:19px;margin-bottom:8px;line-height:1.35}
html[data-theme] .public-body .hero-actions .button{transition:background-color .25s ease,color .25s ease,border-color .25s ease}
html[data-theme] .public-body .hero-actions .button:hover{background:var(--text);color:var(--bg);border-color:var(--text)}
/* Variant 1: precise contour. currentColor follows all palettes and themes. */
.service-anatomy{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.service-anatomy .contour-detail{stroke-width:1.25}
.service-anatomy .pain-mark{stroke-width:3;opacity:.78}
.service-anatomy .muscle-wash{fill:currentColor;fill-opacity:.16;stroke:none}
.service-anatomy .joint-halo{stroke-width:1.5;opacity:.6}
.service-anatomy .joint-core{fill:currentColor;stroke:none}
.public-body .topic-icon{width:72px;height:72px;flex-shrink:0;color:var(--accent)}
.menu-service-icon .service-anatomy{width:44px;height:44px;stroke-width:2}
.menu-service-icon .service-anatomy .contour-detail{stroke-width:1.6}
.menu-service-icon .service-anatomy .pain-mark{opacity:1}
@media(max-width:520px){.menu-service-icon .service-anatomy{width:38px;height:38px}}
.public-body .topic-more>span{display:inline-grid;place-items:center;width:32px;height:32px;flex:0 0 32px;font-size:32px;line-height:1;font-weight:400}
.public-body .prep-card .check-list li,.public-body .prep-card .tip p,.public-body .warning-card p{font-size:18px;line-height:1.65}.public-body .contact-card small{font-size:17px;line-height:1.4}.notice-icon{width:30px;height:30px;flex:0 0 30px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.public-body .tip{display:flex;gap:14px;align-items:flex-start}.public-body .warning-symbol{display:grid;place-items:center;min-width:44px}
.public-body .booking-stepper .step strong{font-size:19px;line-height:1.35}.public-body .booking-stepper .step small{font-size:15px}.public-body .booking-stepper .step>span{font-size:20px}
.public-body .faq-list summary{padding:20px 24px;gap:18px;font-size:19px;line-height:1.45;display:flex;justify-content:space-between;align-items:center}.public-body .faq-list summary>span{display:inline-grid;place-items:center;flex:0 0 32px;font-size:32px;width:32px;height:32px;line-height:1}.public-body .faq-list details[open] summary>span{transform:rotate(45deg)}.public-body .faq-list details>div{padding:0 24px 24px;font-size:18px;line-height:1.7}.public-body .faq-list details>div p{font-size:inherit;margin:0 0 12px}.public-body .faq-list details{overflow:hidden}
.public-body .footer-grid>div:first-child{font-size:18px;line-height:1.65}.public-body .footer-grid>div:first-child p{font-size:18px}.public-body .contacts-clinic{font-size:18px;line-height:1.65}.public-body .contacts-clinic p{font-size:18px}.footer-navigation summary{cursor:pointer;font-weight:700;min-height:44px}.footer-navigation .footer-doctor-login{display:inline-block;margin-top:24px}.footer-navigation .footer-links{margin-bottom:0}
.public-body .calendar-toolbar.public small{font-size:18px;line-height:1.4}.public-body .calendar-day{font-size:20px;line-height:1.3}.public-body .calendar-day small{font-size:12px}.public-body .calendar-day b{font-size:inherit}
@media(max-width:1200px){.header-settings{flex-basis:100%;justify-content:flex-start}.design-toolbar{gap:12px}.header-settings .header-phone{margin-right:4px}}
@media(max-width:650px){.design-toolbar{padding:12px}.header-cluster{gap:10px;max-width:100%}.design-toolbar .design-brand{font-size:15px}.design-toolbar .design-mark{width:32px;height:32px}.design-toolbar .nav-links{left:12px;max-width:calc(100% - 24px)}.header-settings{gap:12px}.header-settings .palette-control{flex-wrap:wrap;width:100%;gap:7px}.header-settings .palette-control .design-control{width:100%}.header-settings .palette-control button{white-space:normal;min-width:0;font-size:12px;padding:8px 6px;line-height:1.3}.public-body .booking-stepper{flex-wrap:wrap}.public-body .booking-stepper .step{flex:1 1 100%;padding:12px;gap:12px}.public-body .faq-list summary{padding:18px;font-size:18px}.public-body .faq-list details>div{padding:0 18px 20px}.public-body .calendar-day{font-size:19px}.public-body .calendar-day small{font-size:10px}.public-body .portrait-caption .doctor-full-name{font-size:18px}}
@media(prefers-reduced-motion:reduce){html[data-theme] .public-body .hero-actions .button{transition:none}}
