/* EN launch build (09.10.2026) */
/* Anti-flash: the HTML source is Russian and the deferred language script swaps it to English.
   Keep the page invisible until a language is applied; reveal anyway after 2.5 s if scripts fail. */
html:not([data-page-language]) body{opacity:0;animation:en-reveal 0s linear 2.5s forwards}
@keyframes en-reveal{to{opacity:1}}
/* Video slots: muted autoplay loop, tap to unmute */
.academy-video-slot .academy-video{cursor:pointer}
.en-sound{position:absolute;z-index:3;top:8px;right:8px;display:flex;align-items:center;gap:5px;min-height:30px;padding:5px 10px 5px 8px;border:0;border-radius:999px;background:rgba(16,40,28,.72);color:#fff;font:700 11px/1 Arial,sans-serif;letter-spacing:.02em;cursor:pointer;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.en-sound svg{width:15px;height:15px;flex:none}
.en-sound:focus-visible{outline:3px solid #f2b341;outline-offset:2px}
.en-sound[hidden]{display:none!important}
/* Hero top-right tomato + basil: the longer EN eyebrow ("The AllSmart Academy Collection") ran under them */
@media (min-width:1200px){
#rec2248789343 .tn-elem[data-elem-id="175753163496239320"]{left:calc(50% - 600px + 1168px)!important;top:24px!important;width:70px!important}
#rec2248789343 .tn-elem[data-elem-id="175753173568640790"]{left:calc(50% - 600px + 1185px)!important;top:-6px!important;width:52px!important}}
@media (min-width:1400px){
#rec2248789343 .tn-elem[data-elem-id="175753163496239320"]{left:calc(50% - 600px + 1214px)!important;top:14px!important;width:100px!important}
#rec2248789343 .tn-elem[data-elem-id="175753173568640790"]{left:calc(50% - 600px + 1246px)!important;top:-8px!important;width:70px!important}}
/* Burned-in captions are part of the clips; the .vtt stays attached as a hidden text track */
.academy-video::cue{color:transparent;background:transparent;text-shadow:none}
.en-sound{white-space:nowrap}
@media (max-width:480px){.en-sound span{display:none}.en-sound{top:6px;right:6px;min-height:0;padding:6px;gap:0}}
/* "These photos show…" (serving ideas, ≤1199 px): the last line's descenders were ~7 px below the 165 px artboard (EN and RU) */
@media (max-width:1199px){#rec2248789453 .t396__artboard,#rec2248789453 .t396__carrier,#rec2248789453 .t396__filter{height:182px!important}}
/* Hero eyebrow: EN is longer than RU. Keep it on one line inside its box (slightly tighter tracking) and allow
   a wrap rather than any overflow if a font fallback is wider. EN/ES/PT only. */
html:not([lang="ru"]) #rec2248789343 [data-elem-id="1775134116817000001"] .tn-atom{white-space:normal!important;overflow-wrap:break-word;letter-spacing:-.01em}
/* Tablet / small desktop (481–1199 px): the EN hero headline needed 3 lines in the 378 px box and ran into
   "Three meals. One plan." Widen the box for EN only so it stays on 2 lines. */
@media (min-width:481px) and (max-width:1199px){
html:not([lang="ru"]) #rec2248789343 [data-elem-id="1775134184505000002"]{width:min(540px,calc(100vw - 40px))!important;left:calc(50% - min(270px,calc(50vw - 20px)))!important}
html:not([lang="ru"]) #rec2248789343 [data-elem-id="1775134184505000002"] .tn-atom{font-size:25px!important}}
/* QA 09.10 (EN launch): "With a plan" list ran ~20 px past the right edge of its card at ≥1200 px (EN lines are longer
   than RU). Narrow the text box to the card's inner width; position, font and colours unchanged. */
@media (min-width:1200px){html:not([lang="ru"]) #rec2248789473 .tn-elem[data-elem-id="176346783023175360"]{width:462px!important}}
/* QA 09.10: on phones the carousel arrows (vertical centre, 288–312 px) touched the first/last letters of reviews whose
   title wraps to two lines. Move the arrows into the empty area between the review text and the signature. */
@media (max-width:639px){.academy-demo-reviews .t-slds__arrow{top:76%}}
/* QA 09.10: "Back to the page" in the order dialog was width:100% + 15 px padding (content-box), so it ran 30 px past
   the dialog's inner edge (visible on desktop and mobile, dialog got a horizontal scroll). */
.reference-dialog .reference-return{box-sizing:border-box}

/* ES/PT build 09.10: "340 almuerzos/almoços" — the right-aligned label is longer than "lunches" and ran into the
   number (desktop ≥1200). Number moved 40 px left inside its card; ES label 2 px smaller. */
@media (min-width:1200px){html[lang="es"] #rec2248789403 .tn-elem[data-elem-id="1743527069371"],html[lang="pt"] #rec2248789403 .tn-elem[data-elem-id="1743527069371"]{transform:translateX(-40px)}
html[lang="es"] #rec2248789403 .tn-elem[data-elem-id="1743527069351"] .tn-atom{font-size:30px!important}}

/* Final review 09.10: EN "WITHOUT A PLAN" (48 px) ended 8 px from the VS circle at ≥1200 px. EN headings of both cards
   48 → 44 px (pair kept equal); ES/PT are shorter and unchanged. */
@media (min-width:1200px){html[lang="en"] #rec2248789473 .tn-elem[data-elem-id="176346831836257050"] .tn-atom,html[lang="en"] #rec2248789473 .tn-elem[data-elem-id="176346733967615450"] .tn-atom{font-size:44px!important}}
/* Final review 09.10: the dialog close button (×, 36 px, top-right) sat over the end of a two-line title on phones
   ("AllSmart" in ES/PT/EN). Reserve its width next to the title. */
.reference-dialog h2{padding-right:30px}
