
/* Therapy reference composition, client palette, scoped hero. */
#top{min-height:0!important;grid-template-columns:1fr 1.05fr!important;column-gap:40px!important;position:relative;padding-top:34px!important}
#top [class$="__heroCopy"]{padding-top:85px!important;z-index:2}
#top h1{font-size:clamp(34px,3.8vw,58px)!important;line-height:1.13!important;letter-spacing:-1.6px!important;max-width:650px;margin:0 0 72px!important}
#top [data-qa="hero-subtitle"]{font-size:22px!important;line-height:1.5!important;max-width:620px;margin:0 0 42px!important}
#top [data-qa="hero-subtitle"] strong{font-weight:750}
#top [data-qa="hero-messengers"]{display:block!important;max-width:500px}
#top [data-open-lead]{width:100%;min-height:66px;font-size:20px!important;font-weight:700;border-radius:15px!important}
#top [class$="__heroVisual"]{height:650px!important;min-height:0!important;position:relative!important;overflow:visible!important;grid-column:2;grid-row:1}
.therapy-hero-shape{position:absolute;inset:120px 0 0;background:#e9dfd1;border-radius:48% 48% 0 0;transform:rotate(-5deg);z-index:0}
.therapy-hero-doctor{position:absolute!important;bottom:0;left:0;width:80%!important;height:100%!important;object-fit:contain!important;object-position:bottom!important;z-index:1}
.therapy-hero-case{position:absolute;right:0;top:120px;width:42%;margin:0;z-index:3;border-radius:14px;overflow:hidden;box-shadow:0 6px 22px #46332312}
.therapy-hero-case img{width:100%;display:block}
.therapy-hero-case figcaption{position:absolute;inset:9px 8px auto;display:flex;justify-content:space-between;font-size:12px;color:white}
.therapy-hero-case figcaption span{background:#76532e99;padding:4px 9px;border-radius:6px}
.therapy-doctor-badge{position:absolute;bottom:12px;left:21%;right:0;padding:20px 24px;background:#fff;border-radius:20px;box-shadow:0 8px 24px #4433220d;z-index:4}
.therapy-doctor-badge strong{display:block;font-size:21px;line-height:1.3;margin-bottom:6px}.therapy-doctor-badge span{font-size:16px;line-height:1.4}
#top [class$="__heroCards"]{margin-top:20px!important;position:relative;z-index:5}
#top [class$="__heroCards"]>p{font-size:23px!important}
#top [class$="__heroCards"] article{border-radius:24px!important}
#therapy-booking{border:0;border-radius:26px;width:min(540px,calc(100% - 28px));padding:32px;color:#302d28;max-height:calc(100dvh - 28px);overflow:auto;box-sizing:border-box}
#therapy-booking::backdrop{background:#30291f99;backdrop-filter:blur(5px)}
.therapy-close{position:absolute;right:15px;top:15px;width:38px;height:38px;border:0;border-radius:50%;background:#f3efe9;font-size:26px;color:#76532e;cursor:pointer}
.therapy-form-doctor{display:flex;gap:14px;align-items:center;padding-right:12px;margin-bottom:22px}.therapy-form-doctor img{width:74px;height:74px;object-fit:cover;object-position:top;border-radius:50%;background:#f3efe9}.therapy-form-doctor strong{font-size:19px;line-height:1.3}.therapy-form-doctor p{font-size:14px;margin:7px 0 0;color:#80786e}
#therapy-booking h2{font-size:29px;line-height:1.2;margin:0 0 12px}#therapy-booking>p{font-size:16px;color:#80786e;margin:0 0 22px}#therapy-booking form>label:first-child{display:grid;gap:8px;font-size:15px}#therapy-booking input[type=tel]{min-height:56px;border:1px solid #cdbfae;border-radius:10px;padding:12px 15px;font:inherit;font-size:20px;width:100%;box-sizing:border-box}.therapy-consent{display:flex;gap:9px;align-items:flex-start;font-size:12px;line-height:1.5;margin:15px 0 20px}.therapy-consent input{width:20px;height:20px;flex:none;accent-color:#76532e}.therapy-consent button{border:0;background:none;color:inherit;padding:0;font:inherit;text-decoration:underline;cursor:pointer}.therapy-submit{display:block;width:100%;min-height:58px;background:#76532e;color:white;border:0;border-radius:12px;font:inherit;font-size:17px;font-weight:700;cursor:pointer}.therapy-status{font-size:14px;line-height:1.4}.therapy-status:empty{display:none}
@media(max-width:760px){#top{display:flex!important;flex-direction:column!important;padding-top:20px!important;gap:22px!important}#top [class$="__heroCopy"]{padding-top:0!important;display:contents}#top h1{font-size:35px!important;line-height:1.1!important;letter-spacing:-1px!important;margin:0!important;order:0}#top [data-qa="hero-subtitle"]{font-size:18px!important;line-height:1.45!important;margin:0!important;order:1}#top [data-qa="hero-messengers"]{order:3;width:100%;max-width:none}#top [data-open-lead]{min-height:58px;font-size:18px!important}#top [class$="__heroVisual"]{order:2;flex:none;width:100%!important;height:385px!important;margin:0!important;align-self:stretch!important}.therapy-hero-shape{inset:48px 8px 0}.therapy-hero-doctor{left:0;width:85%!important;height:100%!important}.therapy-hero-case{top:54px;right:0;width:43%}.therapy-doctor-badge{bottom:0;left:10px;right:0;padding:13px 16px;border-radius:15px}.therapy-doctor-badge strong{font-size:18px;margin-bottom:3px}.therapy-doctor-badge span{font-size:13px}#top [class$="__heroCards"]{order:4;margin-top:10px!important}#top [class$="__heroCards"]>p{font-size:21px!important}#therapy-booking{padding:25px 20px}#therapy-booking h2{font-size:25px}.therapy-form-doctor strong{font-size:17px}.therapy-form-doctor{padding-right:15px}.therapy-form-doctor img{width:61px;height:61px}}

#top{display:grid!important;height:auto!important;grid-template-rows:auto auto!important}
#top [class$="__heroCopy"]{position:relative!important;top:auto!important;left:auto!important;width:100%!important}
#top h1{width:100%!important;height:auto!important}
#top [data-qa="hero-subtitle"]{width:100%!important;height:auto!important}
#top [data-qa="hero-messengers"]{height:auto!important;margin-top:0!important}
#top [class$="__heroVisual"]{inset:auto!important;width:100%!important;aspect-ratio:auto!important;margin:0!important}
#top [class$="__heroCards"]{grid-column:1/-1;height:auto!important;top:auto!important;left:auto!important;width:100%!important}
#top [class$="__heroCards"]>div{position:relative!important;top:auto!important;width:100%!important;height:auto!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important}
#top [class$="__heroCards"] article{height:auto!important;padding:22px!important}
#top [class$="__heroCards"] strong,#top [class$="__heroCards"] span{font-size:16px!important;line-height:1.4!important}
[class$="__headerTop"]{display:flex!important;position:relative!important;top:auto!important;left:auto!important;width:100%!important;height:auto!important;justify-content:space-between!important;gap:24px!important;padding:24px 12px!important}
[class$="__headerTop"]>*{grid-column:auto!important;position:static!important;width:auto!important;flex:none}
[class$="__header"]{height:auto!important}
[class$="__headerTop"] [class$="__contact"]{font-size:18px!important;width:auto!important}
@media(max-width:760px){#top{display:flex!important}#top [class$="__heroCopy"]{display:contents!important}#top [class$="__heroCards"]>div{display:flex!important;overflow-x:auto!important}#top [class$="__heroCards"] article{flex:0 0 255px!important}[class$="__headerTop"]{padding:12px 0!important}#top [class$="__heroVisual"]{height:385px!important}}

.therapy-hero-case img{height:auto!important;aspect-ratio:696/339;object-fit:contain!important}.therapy-hero-case{height:auto!important;line-height:0}.therapy-hero-case figcaption{line-height:1.2}

@media(max-width:760px){nav.therapy-nav-open{display:flex!important;position:absolute!important;left:0;right:0;top:68px;padding:20px!important;flex-direction:column;gap:18px;background:#fff;border-radius:16px;box-shadow:0 10px 35px #30291f22;height:auto!important;z-index:1000}nav.therapy-nav-open a{position:static!important;font-size:18px!important}}

.therapy-consent a{color:inherit;text-decoration:underline;font:inherit}

/* Native dialog must override the inherited global margin reset. */
#therapy-booking{position:fixed!important;inset:0!important;margin:auto!important;width:min(540px,calc(100vw - 28px))!important;height:fit-content!important;max-height:calc(100dvh - 28px)!important;overflow-y:auto!important;}

/* команда Йошкар-Олы: четыре врача (в шаблоне три) */
@media (min-width:1200px){.tooth-saving-landing-module__nwq6uG__doctors{grid-template-columns:repeat(4,21.8958cqw)}}
@media (min-width:768px) and (max-width:1199px){.tooth-saving-landing-module__nwq6uG__doctors{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Йошкар-Ола: строки про метро нет, адрес центрируем по высоте шапки */
[class*="__clinicLine"]{align-self:center;height:auto;grid-template-rows:auto;align-content:center}
