/* STO №1: own presentation adaptation of Card Folder, Hover Tabs and Step Path.
   Only secondary public pages load this asset. Copy, photos and links are unchanged. */
html:root[data-theme] body.text-page .uslugi-service-page{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;background:none}
html:root[data-theme] body.text-page .uslugi-service-page>*{min-width:0;margin:0}
html:root[data-theme] body.text-page .uslugi-service-page__head{padding:32px 36px;background:var(--sto-surface);border:1px solid var(--sto-border);border-radius:12px}
html:root[data-theme] body.text-page .uslugi-service-page__head h1{font-size:clamp(28px,3.1vw,40px);line-height:1.17;letter-spacing:-.025em;margin:0 0 24px;max-width:950px}
html:root[data-theme] body.text-page .uslugi-service-page__meta{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:24px;border:0;background:var(--sto-muted);padding:20px 24px;border-radius:8px;margin:0 0 24px}
html:root[data-theme] body.text-page .uslugi-service-page__meta dt{font-size:11px;letter-spacing:.08em;color:var(--sto-text-secondary)}
html:root[data-theme] body.text-page .uslugi-service-page__meta dd{margin-top:8px;font-size:15px;line-height:1.5;font-weight:600}
html:root[data-theme] body.text-page .uslugi-service-page__meta>div:nth-child(-n+2) dd{font-size:28px;line-height:1.2;letter-spacing:-.03em}
html:root[data-theme] body.text-page .uslugi-service-page__meta>div:first-child dd{color:var(--sto-accent-text)}
html:root[data-theme] body.text-page .uslugi-service-page .btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:12px 20px;border:1px solid var(--sto-border-control);border-radius:8px;background:var(--sto-surface);color:var(--sto-text-primary);font-size:14px;font-weight:600;line-height:1.4;text-decoration:none;box-shadow:none;transform:none;transition:background-color 160ms,border-color 160ms,box-shadow 160ms}
html:root[data-theme] body.text-page .uslugi-service-page .btn::after{content:none!important;display:none!important}
html:root[data-theme] body.text-page .uslugi-service-page .btn.btn--primary{background:var(--sto-accent);border-color:var(--sto-accent);color:var(--sto-on-accent)}
html:root[data-theme] body.text-page .uslugi-service-page .btn.btn--primary:hover{background:#94140e;border-color:#94140e;box-shadow:0 3px 9px #b818101a}
html:root[data-theme] body.text-page .uslugi-service-page .btn:not(.btn--primary):hover{background:var(--sto-muted);border-color:var(--sto-text-primary)}
html:root[data-theme] body.text-page .uslugi-service-page .btn:active{box-shadow:inset 0 1px 3px #14161a25}
html:root[data-theme] body.text-page .uslugi-service-page :is(a,summary):focus-visible{outline:3px solid var(--sto-focus);outline-offset:4px}
html:root[data-theme] body.text-page .uslugi-service-page__price-note{font-size:13px;line-height:1.6;color:var(--sto-text-secondary);margin:14px 0 0}
html:root[data-theme] body.text-page .uslugi-service-page__lead{max-width:82ch;font-size:16px;line-height:1.65;color:var(--sto-text-primary);border-top:1px solid var(--sto-border);padding-top:20px;margin:24px 0 0}
html:root[data-theme] body.text-page .uslugi-service-page .service-page-jumps{gap:24px;padding:0 20px;background:none}
html:root[data-theme] body.text-page .uslugi-service-page .service-page-jumps a{background:none;border:0;border-radius:0;padding:6px 0;font-size:14px;font-weight:600;text-decoration:underline;text-decoration-color:var(--sto-border);text-underline-offset:7px;min-height:44px}
html:root[data-theme] body.text-page .uslugi-service-page .service-page-jumps a:hover{color:var(--sto-accent-text);text-decoration-color:var(--sto-accent-text)}
html:root[data-theme] body.text-page .uslugi-service-page>.uslugi-block{background:var(--sto-surface);border:1px solid var(--sto-border);border-radius:12px;padding:30px 36px;margin:0;box-shadow:none}
html:root[data-theme] body.text-page .uslugi-service-page>.uslugi-block>h2{font-size:26px;line-height:1.25;letter-spacing:-.02em;margin:0 0 16px;font-weight:650}
html:root[data-theme] body.text-page .uslugi-service-page>.uslugi-block>p{font-size:16px;line-height:1.7;max-width:82ch;margin:0 0 14px;color:var(--sto-text-primary)}
html:root[data-theme] body.text-page .uslugi-service-page>.uslugi-block>p:last-child{margin-bottom:0}
html:root[data-theme] body.text-page .uslugi-service-page>[data-service-panel="intro"]{background:none;border:0;border-left:2px solid var(--sto-border-control);border-radius:0;margin:0 24px;padding:0 0 0 24px}
html:root[data-theme] body.text-page .uslugi-service-page .uslugi-list{padding-left:22px;line-height:1.65}
html:root[data-theme] body.text-page .uslugi-service-page .uslugi-list li{margin:7px 0}

/* Card Folder: a raised tab joins the body, leaving text entirely unmasked. */
html:root[data-theme] body.text-page .uslugi-service-page>[data-service-panel^="folder"]{display:flex;flex-direction:column;background:transparent;border:0;border-radius:0;padding:0;margin-top:4px}
html:root[data-theme] body.text-page .uslugi-service-page>[data-service-panel^="folder"]>h2{position:relative;z-index:1;align-self:flex-start;background:var(--sto-surface);border:1px solid var(--sto-border);border-bottom:1px solid var(--sto-surface);border-radius:14px 14px 0 0;padding:14px 24px 12px;margin:0 0 -1px;font-size:23px;max-width:calc(100% - 28px)}
html:root[data-theme] body.text-page .uslugi-service-page>[data-service-panel^="folder"]>p{flex:1;background:var(--sto-surface);border:1px solid var(--sto-border);border-radius:0 14px 14px 14px;padding:26px 28px;margin:0;max-width:none;box-shadow:0 3px 0 #d9d9d940}
html:root[data-theme] body.text-page .uslugi-service-page>[data-service-panel="folder-warranty"]>h2{background:var(--sto-muted);border-bottom-color:var(--sto-muted)}
html:root[data-theme] body.text-page .uslugi-service-page>[data-service-panel="folder-warranty"]>p{background:var(--sto-muted)}

/* Step Path: the four existing list items stay in source and reading order. */
html:root[data-theme] body.text-page [data-service-panel="steps"] .uslugi-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:22px;list-style:none;padding:8px 0 0;margin:24px 0 0}
html:root[data-theme] body.text-page [data-service-panel="steps"] .uslugi-list li{position:relative;margin:0;padding:48px 8px 0 0;font-size:15px;line-height:1.55}
html:root[data-theme] body.text-page [data-service-panel="steps"] .uslugi-list li::before{content:"";position:absolute;left:9px;top:9px;width:12px;height:12px;border-radius:50%;border:2px solid var(--sto-border-control);background:var(--sto-surface);z-index:1}
html:root[data-theme] body.text-page [data-service-panel="steps"] .uslugi-list li:first-child::before{background:var(--sto-accent);border-color:var(--sto-accent);color:var(--sto-on-accent)}
html:root[data-theme] body.text-page [data-service-panel="steps"] .uslugi-list li:not(:last-child)::after{content:"";position:absolute;left:22px;right:-32px;top:-8px;height:48px;border-top:1px dashed var(--sto-border-control);border-radius:50% 50% 0 0;transform-origin:left center;transform:rotate(7deg)}
html:root[data-theme] body.text-page [data-service-panel="steps"] .uslugi-list li:nth-child(2){margin-top:24px}
html:root[data-theme] body.text-page [data-service-panel="steps"] .uslugi-list li:nth-child(3){margin-top:48px}
html:root[data-theme] body.text-page [data-service-panel="steps"] .uslugi-list li:nth-child(4){margin-top:72px}

/* Hover Tabs: same links and photos, with one joined image frame. */
html:root[data-theme] body.text-page [data-service-hover-ready]{--tab-width:300px;--frame-color:var(--sto-surface);display:flex;position:relative;flex-direction:column;gap:0;min-height:350px;padding:24px 0;isolation:isolate;background:var(--sto-muted)}
html:root[data-theme] body.text-page [data-service-hover-ready]::before{content:"";position:absolute;inset:0 0 0 var(--tab-width);background:var(--frame-color);border:1px solid var(--sto-border);border-radius:18px;z-index:-1}
html:root[data-theme] body.text-page [data-service-hover-ready]>.uslugi-related__item{position:static;display:flex;width:calc(var(--tab-width) + 18px);min-height:96px;padding:0;border:0;border-radius:0;background:transparent;overflow:visible;box-shadow:none}
html:root[data-theme] body.text-page [data-service-hover-ready] .uslugi-related__title{position:relative;z-index:1;display:flex;align-items:center;gap:12px;width:100%;margin:0;padding:20px 32px 20px 22px;border-radius:14px 0 0 14px;border:1px solid transparent;font-size:17px;line-height:1.4;font-weight:600}
html:root[data-theme] body.text-page [data-service-hover-ready] [data-service-hover-active="true"] .uslugi-related__title{background:var(--frame-color);border-color:var(--sto-border);border-right-color:var(--frame-color);color:var(--sto-accent-text)}
html:root[data-theme] body.text-page [data-service-hover-ready] [data-service-hover-active="true"] .uslugi-related__title::before,html:root[data-theme] body.text-page [data-service-hover-ready] [data-service-hover-active="true"] .uslugi-related__title::after{content:"";position:absolute;right:16px;width:14px;height:14px;background:transparent;pointer-events:none}
html:root[data-theme] body.text-page [data-service-hover-ready] [data-service-hover-active="true"] .uslugi-related__title::before{top:-14px;border-radius:0 0 100% 0;box-shadow:5px 5px 0 5px var(--frame-color)}
html:root[data-theme] body.text-page [data-service-hover-ready] [data-service-hover-active="true"] .uslugi-related__title::after{bottom:-14px;border-radius:0 100% 0 0;box-shadow:5px -5px 0 5px var(--frame-color)}
html:root[data-theme] body.text-page [data-service-hover-ready] .uslugi-service__photo{position:absolute;left:calc(var(--tab-width) + 12px);top:12px;width:calc(100% - var(--tab-width) - 24px);height:calc(100% - 24px);margin:0;max-width:none;object-fit:cover;border-radius:10px;opacity:0;visibility:hidden;transition:opacity 160ms;pointer-events:none;aspect-ratio:auto}
html:root[data-theme] body.text-page [data-service-hover-ready] [data-service-hover-active="true"] .uslugi-service__photo{opacity:1;visibility:visible}
html:root[data-theme] body.text-page [data-service-hover-ready] .uslugi-related__item:focus-visible{outline:0}
html:root[data-theme] body.text-page [data-service-hover-ready] .uslugi-related__item:focus-visible .uslugi-related__title{outline:3px solid var(--sto-focus);outline-offset:-4px}
html:root[data-theme] body.text-page .uslugi-service-page>[data-service-panel="hover"]{background:var(--sto-muted)}
html:root[data-theme] body.text-page .uslugi-service-page .service-booking-next{border-left:3px solid var(--sto-accent)}
html:root[data-theme] body.text-page .uslugi-service-page .uslugi-faq{border-bottom:1px solid var(--sto-border);margin:0;padding:5px 0}
html:root[data-theme] body.text-page .uslugi-service-page .uslugi-faq summary{min-height:48px;padding:14px 0;font-size:16px;line-height:1.5}
html:root[data-theme] body.text-page .uslugi-service-page .uslugi-faq p{max-width:78ch;line-height:1.65;padding:0 0 16px}
@media(min-width:900px){html:root[data-theme] body.text-page .uslugi-service-page{grid-template-columns:repeat(2,minmax(0,1fr))}html:root[data-theme] body.text-page .uslugi-service-page>*{grid-column:1/-1}html:root[data-theme] body.text-page .uslugi-service-page>[data-service-panel="folder-price"]{grid-column:1}html:root[data-theme] body.text-page .uslugi-service-page>[data-service-panel="folder-warranty"]{grid-column:2}}
@media(min-width:761px) and (max-width:899px){html:root[data-theme] body.text-page [data-service-hover-ready]{--tab-width:240px}html:root[data-theme] body.text-page [data-service-hover-ready] .uslugi-related__title{font-size:16px;padding-left:18px}}
@media(max-width:760px){
 html:root[data-theme] body.text-page .uslugi-service-page{gap:20px}
 html:root[data-theme] body.text-page .uslugi-service-page__head,html:root[data-theme] body.text-page .uslugi-service-page>.uslugi-block{padding:24px 20px}
 html:root[data-theme] body.text-page .uslugi-service-page__meta{grid-template-columns:1fr 1fr;padding:16px;gap:18px 10px}
 html:root[data-theme] body.text-page .uslugi-service-page__meta>div:last-child{grid-column:1/-1}
 html:root[data-theme] body.text-page .uslugi-service-page__meta>div:nth-child(-n+2) dd{font-size:23px}
 html:root[data-theme] body.text-page .uslugi-service-page>.uslugi-block>h2{font-size:23px}
 html:root[data-theme] body.text-page .uslugi-service-page>[data-service-panel="intro"]{margin:0 12px;padding:0 0 0 18px}
 html:root[data-theme] body.text-page .uslugi-service-page>[data-service-panel^="folder"]{padding:0}
 html:root[data-theme] body.text-page .uslugi-service-page>[data-service-panel^="folder"]>h2{font-size:21px;padding:12px 20px;max-width:calc(100% - 12px)}
 html:root[data-theme] body.text-page .uslugi-service-page>[data-service-panel^="folder"]>p{padding:22px 20px}
 html:root[data-theme] body.text-page [data-service-panel="steps"] .uslugi-list{grid-template-columns:1fr;gap:0}
 html:root[data-theme] body.text-page [data-service-panel="steps"] .uslugi-list li,html:root[data-theme] body.text-page [data-service-panel="steps"] .uslugi-list li:nth-child(n){margin:0;padding:1px 0 26px 48px;min-height:64px}
 html:root[data-theme] body.text-page [data-service-panel="steps"] .uslugi-list li:not(:last-child)::after{left:14px;top:36px;right:auto;bottom:6px;height:auto;border:0;border-left:1px dashed var(--sto-border-control);border-radius:0;transform:none}
 html:root[data-theme] body.text-page [data-service-hover-ready]{display:grid;grid-template-columns:1fr;gap:12px;min-height:0;padding:0;background:transparent}
 html:root[data-theme] body.text-page [data-service-hover-ready]::before{display:none}
 html:root[data-theme] body.text-page [data-service-hover-ready]>.uslugi-related__item{display:flex;flex-direction:column;width:100%;min-height:0;background:var(--sto-surface);border:1px solid var(--sto-border);border-radius:12px;overflow:hidden}
 html:root[data-theme] body.text-page [data-service-hover-ready] .uslugi-service__photo{position:static;opacity:1;visibility:visible;display:block;width:100%;height:auto;aspect-ratio:4/3;border-radius:0;margin:0;object-fit:cover}
 html:root[data-theme] body.text-page [data-service-hover-ready] .uslugi-related__title{font-size:16px;border:0;border-radius:0;padding:18px}
 html:root[data-theme] body.text-page [data-service-hover-ready] .uslugi-related__title::before,html:root[data-theme] body.text-page [data-service-hover-ready] .uslugi-related__title::after{display:none}
}
@media(max-width:420px){html:root[data-theme] body.text-page .uslugi-service-page__cta .btn{width:100%}}
@media(prefers-reduced-motion:reduce){html:root[data-theme] body.text-page .uslugi-service-page *,html:root[data-theme] body.text-page .uslugi-service-page *::before,html:root[data-theme] body.text-page .uslugi-service-page *::after{transition:none!important;animation:none!important}}

/* Shared prose treatment. All selectors are confined to secondary pages. */
html:root[data-theme] body.text-page{background:var(--sto-background);color:var(--sto-text-primary)}
html:root[data-theme] body.text-page :is(.uslugi-main,.legal-shell){min-width:0}
html:root[data-theme] body.text-page :is(.uslugi-hero,.service-hero,.brand-hero,.legal-hero){box-shadow:none;border-radius:12px}
html:root[data-theme] body.text-page :is(.uslugi-hero,.legal-hero){background:var(--sto-surface);border:1px solid var(--sto-border)}
html:root[data-theme] body.text-page :is(.uslugi-hero,.brand-hero,.service-hero,.legal-hero) h1{letter-spacing:-.025em;line-height:1.17}
html:root[data-theme] body.text-page :is(.uslugi-block,.service-block,.uslugi-section,.pc-detail-section,.app-section,.loyalty-section,.useful-prose>section,.legal-card){min-width:0;box-shadow:none;background:var(--sto-surface);border:1px solid var(--sto-border);border-radius:12px;padding:28px 32px;margin-block:24px;color:var(--sto-text-primary)}
html:root[data-theme] body.text-page :is(.uslugi-block,.service-block,.uslugi-section,.pc-detail-section,.app-section,.loyalty-section,.useful-prose>section,.legal-card)>h2{font-size:clamp(22px,2.4vw,28px);line-height:1.3;letter-spacing:-.02em;font-weight:650;max-width:100%}
html:root[data-theme] body.text-page :is(.uslugi-block,.service-block,.uslugi-section,.pc-detail-section,.app-section,.loyalty-section,.useful-prose>section,.legal-card)>:is(p,ul,ol){font-size:16px;line-height:1.75;max-width:82ch;color:var(--sto-text-primary)}
html:root[data-theme] body.text-page :is(.uslugi-block,.service-block,.uslugi-section,.pc-detail-section,.useful-prose>section,.legal-card)>p+p{margin-top:16px}
/* Folder titles sit outside the body contour; text and controls are never clipped. */
html:root[data-theme] body.text-page :is(.service-block,.uslugi-section,.pc-detail-section,.useful-prose>section,.legal-card):has(>h2:first-child){margin-top:46px;border-top-left-radius:0;overflow:visible}
html:root[data-theme] body.text-page :is(.service-block,.uslugi-section,.pc-detail-section,.useful-prose>section,.legal-card)>h2:first-child{position:relative;width:fit-content;max-width:calc(100% + 38px);padding:12px 22px;margin:-56px 0 20px -33px;background:var(--sto-surface);border:1px solid var(--sto-border);border-bottom-color:var(--sto-surface);border-radius:12px 12px 0 0}
html:root[data-theme] body.text-page :is(.uslugi-card,.uslugi-service,.brand-service,.pc-card,.useful-topic){border-radius:12px;border-color:var(--sto-border);box-shadow:none;transform:none}
html:root[data-theme] body.text-page :is(.uslugi-card,.uslugi-service,.brand-service,.pc-card):hover{border-color:var(--sto-border-control);box-shadow:0 3px 0 color-mix(in srgb,var(--sto-border) 35%,transparent);transform:none}
html:root[data-theme] body.text-page :is(.uslugi-card__desc,.uslugi-service__desc){line-height:1.65}
html:root[data-theme] body.text-page :is(.uslugi-related__item,.brand-links>a,.model-links>a,.pc-fit-links>a,.useful-contents a){border-radius:7px;box-shadow:none;min-height:44px}
html:root[data-theme] body.text-page :is(.uslugi-rich,.pc-detail-section,.legal-card){overflow-wrap:anywhere}
html:root[data-theme] body.text-page :is(.uslugi-faq,.public-faq,.faq-item,.app-faq details){border:0;border-bottom:1px solid var(--sto-border);border-radius:0;background:transparent;box-shadow:none;padding:8px 0;margin:0}
html:root[data-theme] body.text-page :is(.uslugi-faq,.public-faq,.faq-item,.app-faq details)>summary{display:flex;align-items:center;gap:16px;justify-content:space-between;min-height:52px;list-style:none;font-weight:600;line-height:1.5;padding:12px 0;cursor:pointer}
html:root[data-theme] body.text-page :is(.uslugi-faq,.public-faq,.faq-item,.app-faq details)>summary::-webkit-details-marker{display:none}
html:root[data-theme] body.text-page :is(.uslugi-faq,.public-faq,.faq-item,.app-faq details)>summary::after{content:"+";position:static;flex:0 0 24px;font-size:22px;font-weight:400;text-align:center;transform:none;background:none;border:0}
html:root[data-theme] body.text-page :is(.uslugi-faq,.public-faq,.faq-item,.app-faq details)[open]>summary::after{content:"−";transform:none}
html:root[data-theme] body.text-page :is(.uslugi-faq,.public-faq,.faq-item,.app-faq details)>p{padding:8px 0 16px;line-height:1.75;max-width:82ch}
html:root[data-theme] body.text-page :is(.btn,.uslugi-btn,.directions-button,.about-button,.loyalty-button,.app-download,.app-platform-link,.pc-btn){display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 20px;border:1px solid var(--sto-border-control);border-radius:8px;background:var(--sto-surface);color:var(--sto-text-primary);box-shadow:none;font-size:14px;font-weight:650;line-height:1.45;text-align:center;text-decoration:none;transform:none;transition:background-color 160ms,border-color 160ms}
html:root[data-theme] body.text-page :is(.btn--primary,.uslugi-btn--primary,.directions-button,.about-button,.loyalty-button:not(.loyalty-button-secondary),.app-download,.pc-btn--primary){background:var(--sto-accent);color:var(--sto-on-accent);border-color:var(--sto-accent)}
html:root[data-theme] body.text-page :is(.btn,.uslugi-btn,.directions-button,.about-button,.loyalty-button,.app-download,.app-platform-link,.pc-btn):hover{border-color:var(--sto-text-primary);box-shadow:none;transform:none}
html:root[data-theme] body.text-page :is(.btn--primary,.uslugi-btn--primary,.directions-button,.about-button,.loyalty-button:not(.loyalty-button-secondary),.app-download,.pc-btn--primary):hover{background:var(--sto-accent-text);border-color:var(--sto-accent-text);color:var(--sto-on-accent)}
html:root[data-theme] body.text-page :is(.btn,.uslugi-btn,.directions-button,.about-button,.loyalty-button,.app-download,.app-platform-link,.pc-btn):active{box-shadow:inset 0 1px 3px #14161a25}
html:root[data-theme] body.text-page :is(button,a):is(:disabled,[aria-disabled=true]){opacity:.55;cursor:not-allowed}
html:root[data-theme] body.text-page :is(.btn,.uslugi-btn,.directions-button,.about-button,.loyalty-button,.app-download,.app-platform-link,.pc-btn)::after{content:none!important;display:none!important}
html:root[data-theme] body.text-page :is(a,button,summary,input,select,textarea):focus-visible{outline:3px solid var(--sto-focus);outline-offset:4px}
html:root[data-theme] body.text-page :is(input,select,textarea){font-size:16px;min-height:44px}
html:root[data-theme] body.text-page :is(.directions-brand__work,.about-prose){padding-inline-start:24px;border-inline-start:2px solid var(--sto-border-control)}
html:root[data-theme] body.text-page :is(.directions-brand__work,.about-prose) p{max-width:82ch;line-height:1.75}
html:root[data-theme] body.text-page :is(.about-stages,.directions-process>ol,.loyalty-steps,.brand-steps){list-style:none;gap:0;padding:0}
html:root[data-theme] body.text-page :is(.about-stages,.directions-process>ol,.loyalty-steps,.brand-steps)>li{position:relative;min-width:0;padding:24px 20px 24px 44px;margin:0;border:0;border-radius:0;box-shadow:none;background:none}
html:root[data-theme] body.text-page :is(.about-stages,.directions-process>ol,.loyalty-steps,.brand-steps)>li::before{content:"";position:absolute;left:9px;top:30px;width:12px;height:12px;border:2px solid var(--sto-border-control);border-radius:50%;background:var(--sto-surface)}
html:root[data-theme] body.text-page :is(.about-stages,.directions-process>ol,.loyalty-steps,.brand-steps)>li:first-child::before{border-color:var(--sto-accent);background:var(--sto-accent)}
html:root[data-theme] body.text-page :is(.about-stages,.directions-process>ol,.loyalty-steps,.brand-steps)>li:not(:last-child)::after{content:"";position:absolute;left:14px;top:48px;bottom:-18px;width:10px;border-left:1px dashed var(--sto-border-control);border-radius:50%;pointer-events:none}
html:root[data-theme] body.text-page :is(.about-stages,.directions-process>ol,.loyalty-steps)>li>span:first-child{position:static;width:auto;height:auto;margin:0 0 10px;font-size:12px;line-height:1.5;color:var(--sto-text-secondary);background:none;border:0;display:block}
html:root[data-theme] body.text-page .legal-meta{gap:0;border:1px solid var(--sto-border);background:var(--sto-muted);border-radius:8px;overflow:hidden}
html:root[data-theme] body.text-page .legal-meta>div{border:0;border-right:1px solid var(--sto-border);border-radius:0;background:none;padding:16px 20px}
html:root[data-theme] body.text-page .legal-meta>div:last-child{border:0}
html:root[data-theme] body.text-page .legal-hero .eyebrow{padding:0;border:0;border-radius:0;background:none;font-size:11px;color:var(--sto-accent-text)}
html:root[data-theme] body.text-page .legal-card a{text-decoration:underline;text-underline-offset:3px}
@media(max-width:760px){
 html:root[data-theme] body.text-page :is(.uslugi-block,.service-block,.uslugi-section,.pc-detail-section,.app-section,.loyalty-section,.useful-prose>section,.legal-card){padding:24px 20px;margin-block:24px}
 html:root[data-theme] body.text-page :is(.service-block,.uslugi-section,.pc-detail-section,.useful-prose>section,.legal-card):has(>h2:first-child){margin-top:44px}
 html:root[data-theme] body.text-page :is(.service-block,.uslugi-section,.pc-detail-section,.useful-prose>section,.legal-card)>h2:first-child{font-size:21px;max-width:calc(100% + 24px);padding:12px 18px;margin:-50px 0 18px -21px}
 html:root[data-theme] body.text-page :is(.about-stages,.directions-process>ol,.loyalty-steps,.brand-steps){display:block;grid-template-columns:1fr}
 html:root[data-theme] body.text-page :is(.directions-brand__work,.about-prose){padding-inline-start:18px}
 html:root[data-theme] body.text-page .legal-meta>div{border:0;border-bottom:1px solid var(--sto-border)}
}
/* Keep the exact service sample rules authoritative over general prose panels. */
html:root[data-theme] body.text-page .uslugi-service-page>[data-service-panel^="folder"]{padding:0;margin-block:4px 0}
html:root[data-theme] body.text-page .uslugi-service-page>[data-service-panel="intro"]{background:none;border:0;border-left:2px solid var(--sto-border-control);border-radius:0;margin:0 24px;padding:0 0 0 24px}
html:root[data-theme] body.text-page .uslugi-service-page>[data-service-panel="hover"]{background:var(--sto-muted)}
/* Long price/guarantee sections may contain several paragraphs or lists. */
html:root[data-theme] body.text-page .uslugi-service-page>[data-service-panel^="folder"]{display:block;background:var(--sto-surface);border:1px solid var(--sto-border);border-radius:0 14px 14px 14px;padding:26px 28px;margin-top:36px}
html:root[data-theme] body.text-page .uslugi-service-page>[data-service-panel^="folder"]>h2{width:fit-content;max-width:calc(100% + 28px);margin:-56px 0 18px -29px}
html:root[data-theme] body.text-page .uslugi-service-page>[data-service-panel^="folder"]>p{padding:0;border:0;border-radius:0;background:none;box-shadow:none;margin:0 0 14px;max-width:82ch}
html:root[data-theme] body.text-page .uslugi-service-page>[data-service-panel="folder-warranty"]{background:var(--sto-muted)}
html:root[data-theme] body.text-page .uslugi-service-page>[data-service-panel="folder-warranty"]>h2{background:var(--sto-muted);border-bottom-color:var(--sto-muted)}
@media(max-width:760px){
 html:root[data-theme] body.text-page .uslugi-service-page>[data-service-panel^="folder"]{padding:24px 20px;margin-top:30px}
 html:root[data-theme] body.text-page .uslugi-service-page>[data-service-panel^="folder"]>h2{max-width:calc(100% + 20px);margin:-50px 0 18px -21px}
 html:root[data-theme] body.text-page .uslugi-service-page>[data-service-panel="intro"]{margin:0 12px;padding-left:18px}
}
html:root[data-theme] body.text-page.parts-page :is(button,.pc-card__actions>a,.pc-buy__cart){border-radius:8px;font-size:14px;font-weight:650;min-height:48px;box-shadow:none}
html:root[data-theme] body.text-page.parts-page :is(input,select,textarea){font-size:16px}
html:root[data-theme] body.text-page .uslugi-service-page>.uslugi-block:not(:has(>h2)){background:none;border:0;border-left:2px solid var(--sto-border-control);border-radius:0;padding:0 0 0 24px;margin:0 24px}
html:root[data-theme] body.text-page [data-service-panel="steps"] .uslugi-list:has(>li:nth-child(5)){grid-template-columns:1fr;gap:0}
html:root[data-theme] body.text-page [data-service-panel="steps"] .uslugi-list:has(>li:nth-child(5))>li{margin:0;padding:1px 0 26px 48px;min-height:64px}
html:root[data-theme] body.text-page [data-service-panel="steps"] .uslugi-list:has(>li:nth-child(5))>li:not(:last-child)::after{left:14px;top:36px;right:auto;bottom:6px;height:auto;border:0;border-left:1px dashed var(--sto-border-control);border-radius:0;transform:none}
@media(min-width:761px) and (max-width:960px){
 html:root[data-theme] body.text-page [data-service-panel="steps"] .uslugi-list{grid-template-columns:1fr;gap:0}
 html:root[data-theme] body.text-page [data-service-panel="steps"] .uslugi-list>li:nth-child(n){margin:0;padding:1px 0 26px 48px;min-height:64px}
 html:root[data-theme] body.text-page [data-service-panel="steps"] .uslugi-list>li:not(:last-child)::after{left:14px;top:36px;right:auto;bottom:6px;height:auto;border:0;border-left:1px dashed var(--sto-border-control);border-radius:0;transform:none}
}
html:root[data-theme] body.text-page .legal-hero h1{font-size:clamp(28px,4.5vw,48px);line-height:1.2}
@media(max-width:480px){html:root[data-theme] body.text-page.parts-page .pc-hero h1{font-size:clamp(26px,6.5vw,32px)}}
html:root[data-theme] body.text-page [data-vehicle-directory] .vehicle-brand-text small{overflow-wrap:anywhere}
html:root[data-theme] body.text-page .uslugi-main>[data-service-panel^="folder"]{position:relative;border-radius:0 12px 12px 12px;margin-top:46px}
html:root[data-theme] body.text-page .uslugi-main>[data-service-panel^="folder"]>h2{position:relative;width:fit-content;max-width:calc(100% + 38px);padding:12px 22px;margin:-56px 0 20px -33px;background:var(--sto-surface);border:1px solid var(--sto-border);border-bottom-color:var(--sto-surface);border-radius:12px 12px 0 0}
@media(max-width:760px){html:root[data-theme] body.text-page .uslugi-main>[data-service-panel^="folder"]>h2{font-size:21px;max-width:calc(100% + 24px);padding:12px 18px;margin:-50px 0 18px -21px}}

/* Control outlines retain at least 3:1 contrast on light surfaces. */
html:root[data-theme=light] body.text-page{--sto-border-control:#8a8c90}
html:root[data-theme=light] body.text-page :is(input:not([type=checkbox]):not([type=radio]),select,textarea){border-color:var(--sto-border-control)}
