/* Common component contracts. The existing homepage is the reference.
   Page content, editorial bodies, pricing tables and authored compositions stay distinct. */
#root.mm-system[data-mm-unified="r10"] [data-mm-common="section"]{padding-block:var(--mm-section)!important}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="heading"]{font:400 var(--mm-h2)/1.06 var(--mm-display)!important;letter-spacing:-.012em;margin:0 0 22px}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="section-head"]{display:grid;grid-template-columns:1.6fr 1fr;gap:28px var(--mm-split-gap);margin-bottom:32px;align-items:end}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="section-head"]:not(:has(>p)){grid-template-columns:1fr}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="section-head"] [data-mm-common="heading"]{margin-bottom:0}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="section-head"]>p{font:400 14px/1.65 var(--mm-font);max-width:340px;justify-self:end;margin:0!important}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="card"]{padding:var(--mm-card-pad)!important;border-radius:var(--mm-radius)!important;min-width:0}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="card"] h3{font:400 var(--mm-card-title)/1.13 var(--mm-display)!important;margin:0 0 var(--mm-card-copy-gap)}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="card"]>p{font:400 var(--mm-card-copy)/1.65 var(--mm-font)!important}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="courses"]{gap:var(--mm-gap)!important;margin:34px 0 12px;align-items:stretch}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="courses"] article{display:flex;flex-direction:column}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="courses"] article h3{min-height:66px}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="courses"] article>.home-link{margin-top:auto}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="courses"] article>p{margin:0 0 18px!important;padding-bottom:20px}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="courses"] article>small{font:400 10px/1.5 var(--mm-font)!important;margin:0 0 14px}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="courses"] .home-course-top{margin-bottom:24px}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="courses"] .home-course-top img{width:84px;height:94px;object-fit:contain}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="photo-card"]{min-width:0}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="photo-card"] h3{font:400 var(--mm-card-title)/1.13 var(--mm-display)!important}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="photo-card"] p{font:400 var(--mm-card-copy)/1.65 var(--mm-font)!important}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="photo-card"] :is(img,.r7-photo){border-radius:var(--mm-photo-radius)!important}
#root.mm-system[data-mm-unified="r10"] :is(.home-button,.cc-btn,.mf-button,.button,[data-mm-component="button"]):not(.close){padding:14px 24px!important;gap:18px!important;border-radius:var(--mm-radius)!important;min-height:var(--mm-button-height)!important}
#root.mm-system[data-mm-unified="r10"] .mm-shared-footer .button{min-height:48px!important;padding:12px 20px!important;gap:12px!important}
/* Reviews: four films above, then the Yandex row. Never beside the films. */
#root.mm-system[data-mm-unified="r10"] [data-mm-common="reviews"]{background:var(--mm-paper);padding-block:var(--mm-section)!important}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="reviews"]>.container{width:min(calc(100% - var(--mm-gutter)*2),var(--mm-content));margin-inline:auto;max-width:var(--mm-content);padding:0}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="reviews"] .home-review-videos{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:24px!important;margin:34px 0 0!important;align-items:start}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="reviews"] figure{padding:0;margin:0;min-width:0}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="reviews"] figcaption{font:400 13px/1.5 var(--mm-font)!important;margin:12px 0 0!important;white-space:nowrap}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="reviews"] .home-yandex-reviews{display:grid!important;grid-template-columns:420px minmax(0,1fr)!important;gap:72px!important;margin:48px 0 0!important;padding:48px 0 0!important;align-items:center;border-top:1px solid var(--mm-line)}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="reviews"] .home-yandex-widget{display:block;width:100%;height:560px!important;max-height:none;border:0;border-radius:16px}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="reviews"] .home-yandex-reviews h3{font:400 30px/1.13 var(--mm-display)!important;margin:0 0 22px}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="reviews"] .home-yandex-reviews p:not(.home-kicker){font:400 16px/1.65 var(--mm-font)!important}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="reviews"] .home-yandex-reviews .home-link{display:block;font:400 14px/1.65 var(--mm-font)!important;margin-top:20px}
/* FAQ adopts the main page's narrow question-introduction and broad answer column. */
#root.mm-system[data-mm-unified="r10"] [data-mm-common="faq-layout"]{display:grid!important;grid-template-columns:.64fr 1.36fr!important;gap:28px var(--mm-split-gap)!important;align-items:start!important}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="faq-intro"]{display:block!important;margin:0!important;min-width:0}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="faq-intro"] h2{font:400 var(--mm-h2)/1.06 var(--mm-display)!important;margin:0 0 22px!important}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="faq-intro"]>p:not(.home-kicker){font:400 var(--mm-body)/1.65 var(--mm-font)!important}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="faq-list"]{display:block;min-width:0}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="faq-list"]>details{margin:0!important;padding:0!important;border:0;border-top:1px solid var(--mm-line);background:transparent;border-radius:0}
#root.mm-system[data-mm-unified="r10"] [data-mm-common="faq-list"]>details>summary{font:500 15px/1.5 var(--mm-font)!important;min-height:64px;padding:20px 0!important}
/* Shared form fields are always the same size, regardless of page-family CSS. */
#root.mm-system[data-mm-unified="r10"] button:is(.home-link,[data-mm-component="text-link"]){appearance:none;background:transparent;box-shadow:none;padding:0;text-align:left;cursor:pointer}
#root.mm-system[data-mm-unified="r10"] [data-fp-birthday] :is(input,select){font:400 16px/1.5 var(--mm-font);border-radius:12px;padding:13px 14px;min-height:var(--mm-field);box-sizing:border-box;max-width:100%;background:var(--mm-paper)!important;color:var(--mm-ink);border:1px solid transparent!important}
#root.mm-system[data-mm-unified="r10"] [data-fp-birthday] label{font:500 13px/1.5 var(--mm-font)}
#root.mm-system[data-mm-unified="r10"] [data-fp-birthday] .fields{gap:20px}
#root.mm-system[data-mm-unified="r10"] form :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),select,textarea){font:400 16px/1.5 var(--mm-font)!important;border-radius:12px!important;padding:13px 14px!important;min-height:var(--mm-field)!important;box-sizing:border-box;max-width:100%}
#root.mm-system[data-mm-unified="r10"] form label{font:500 13px/1.5 var(--mm-font)!important}
#root.mm-system[data-mm-unified="r10"] form .fields{gap:20px}
#root.mm-system[data-mm-unified="r10"] form[data-mm-component="form"]{padding:var(--mm-card-pad)!important;border-radius:var(--mm-radius)!important;background:#fff}
#root.mm-system[data-mm-unified="r10"] .cc-offer-row{padding:var(--mm-card-pad)!important;border-radius:var(--mm-radius)!important}
#root.mm-system[data-mm-unified="r10"] [data-mm-component="hero"] h1{font:400 var(--mm-h1)/.98 var(--mm-display)!important;max-width:700px;letter-spacing:-.012em}
#root.mm-system[data-mm-unified="r10"] [data-mm-component="hero"] .r7-hero-copy{padding-block:180px 130px!important}
#root.mm-system[data-mm-unified="r10"] .mm-product-r8 #hero{min-height:890px}
/* Existing popup system already shares its frame and controls; retain rich inner layouts. */
#root.mm-system[data-mm-unified="r10"] .r7-request>.container{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)!important;gap:var(--mm-split-gap)!important;align-items:start}
#root.mm-system[data-mm-unified="r10"] .r7-request-copy h2{max-width:480px!important}
#root.mm-system[data-mm-unified="r10"] .r7-request-copy .r7-object{display:none!important}
#root.mm-system[data-mm-unified="r10"] .fp-request-form>.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px!important}
#root.mm-system[data-mm-unified="r10"] .fp-request-form>.fields>label:has(input[name="name"],input[name="phone"]){grid-column:1/-1!important}
#root.mm-system[data-mm-unified="r10"] .fp-request-form :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){background:var(--mm-paper)!important;border:1px solid transparent!important;color:var(--mm-ink)}
#root.mm-system[data-mm-unified="r10"] .fp-request-form :is(input,select,textarea):focus-visible{outline:2px solid var(--mm-link);outline-offset:2px}
@media(max-width:959px){#root.mm-system[data-mm-unified="r10"] .r7-request>.container{grid-template-columns:minmax(0,1fr)!important;gap:32px!important}}
@media(max-width:479px){#root.mm-system[data-mm-unified="r10"] .fp-request-form>.fields{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:1199px){
 #root.mm-system[data-mm-unified="r10"] [data-mm-common="reviews"] .home-yandex-reviews{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)!important;gap:36px!important}
 #root.mm-system[data-mm-unified="r10"] [data-mm-component="hero"] .r7-hero-copy{padding-block:170px 120px!important}
 #root.mm-system[data-mm-unified="r10"] .mm-product-r8 #hero{min-height:820px}
}
@media(max-width:959px){
 #root.mm-system[data-mm-unified="r10"] [data-mm-common="faq-layout"]{grid-template-columns:minmax(0,1fr)!important;gap:32px!important}
 #root.mm-system[data-mm-unified="r10"] .p-pass-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:759px){
 #root.mm-system[data-mm-unified="r10"] .cc-offer-row{grid-template-columns:minmax(0,1fr)!important;gap:20px}
 #root.mm-system[data-mm-unified="r10"] .cc-offer-row>.cc-actions{grid-column:1!important;min-width:0;max-width:100%}
 #root.mm-system[data-mm-unified="r10"] [data-mm-common="reviews"] .home-review-videos{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:28px 12px!important}
 #root.mm-system[data-mm-unified="r10"] [data-mm-common="reviews"] .home-yandex-reviews{grid-template-columns:minmax(0,1fr)!important;gap:28px!important}
 #root.mm-system[data-mm-unified="r10"] [data-mm-common="reviews"] .home-yandex-widget{height:560px!important}
 #root.mm-system[data-mm-unified="r10"] [data-mm-common="reviews"] figcaption{font-size:11px!important}
 #root.mm-system[data-mm-unified="r10"] [data-mm-common="faq-layout"]{grid-template-columns:minmax(0,1fr)!important;gap:32px!important}
 #root.mm-system[data-mm-unified="r10"] [data-mm-common="faq-list"]>details>summary{font-size:14px!important}
 #root.mm-system[data-mm-unified="r10"] [data-mm-common="courses"] article h3{min-height:0}
 #root.mm-system[data-mm-unified="r10"] [data-mm-component="hero"] h1{line-height:1.03!important;max-width:100%}
 #root.mm-system[data-mm-unified="r10"] [data-mm-component="hero"] .r7-hero-copy{padding-block:140px 110px!important}
 #root.mm-system[data-mm-unified="r10"] .mm-product-r8 #hero{min-height:740px}
 #root.mm-system[data-mm-unified="r10"] .p-pass-grid{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:600px){#root.mm-system[data-mm-unified="r10"] [data-mm-common="section-head"]{grid-template-columns:minmax(0,1fr)}#root.mm-system[data-mm-unified="r10"] [data-mm-common="section-head"]>p{justify-self:start}}
@media(max-width:479px){
 #root.mm-system[data-mm-unified="r10"] [data-mm-common="reviews"] .home-review-videos{gap:24px 12px!important}
}

