/* r228: phones and tablets, second round (approved 30.10): menu, logo, footer, «Почему мы?» and «Как мы работаем» carousels, documents by chapters.
   Phone = up to 743 px, or a touch screen lying on its side (height up to 500). Tablet = 744 px and wider on a touch screen, or a window 744-1279 px. Computer (mouse) from 1280 px: untouched. */

/* elements made by r228_mobile.js are shown only in the phone layout (html.r8-ph) */
.r8-mail{display:none}
html:not(.r8-ph):not(.r10-hw) .r8-car,html:not(.r8-ph) .r8-tb,html:not(.r8-ph):not(.r10-hw) .r8-pg{display:none!important}

/* menu rows (icons, prices, arrows) are drawn with CSS only: ui.js rewrites the link contents */
@media (max-width:980px),(max-width:999px) and (max-height:500px){
 .mnav__links{display:grid!important;grid-template-columns:1fr 1fr!important;gap:4px 8px!important}
 .mnav__a[data-r8]{grid-column:1/-1;display:grid!important;grid-template-columns:44px minmax(0,1fr) 28px;grid-template-areas:'i t a' 'i s a';column-gap:14px;row-gap:3px;align-items:center;padding:9px 10px!important;min-height:0!important;border:1px solid transparent!important;border-radius:16px!important;font:600 17px/1.2 var(--f-display)!important;color:var(--fg)!important;background:none}
 .mnav__a[data-r8]>*{grid-area:t;align-self:end;min-width:0}
 .mnav__a[data-r8]>.ec-soon{grid-area:s;justify-self:start;align-self:start;margin:0!important;display:inline-block!important;width:auto!important;line-height:1.3}
 .mnav__a[data-r8]::before{content:'';grid-area:i;width:44px;height:44px;border-radius:13px;border:1px solid rgba(255,255,255,.13);background-color:rgba(255,255,255,.03);background-repeat:no-repeat;background-position:center;background-size:20px;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
 .mnav__a[data-r8]::after{content:attr(data-r8p);grid-area:s;align-self:start;justify-self:start;font:500 11.5px var(--f-mono);color:#EEEBE6;background:rgba(255,255,255,.06);border-radius:99px;padding:2px 8px}
 .mnav__a[data-r8p='']::after{display:none}
 .mnav__a[data-r8]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='13.5' fill='none' stroke='rgba(255,255,255,.18)'/%3E%3Cpath d='M10 14h8m-3-3 3 3-3 3' fill='none' stroke='%23ADA79E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:28px}
 .mnav__a[data-r8].on{background-color:rgba(255,255,255,.04)!important;border-color:rgba(224,160,74,.38)!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='13.5' fill='none' stroke='rgba(224,160,74,.55)'/%3E%3Cpath d='M10 14h8m-3-3 3 3-3 3' fill='none' stroke='%23E0A04A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
 .mnav__a[data-r8].on::after{background:rgba(224,160,74,.16);color:#F7C987}
 .mnav__a[data-r8='site']::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EEEBE6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='14' rx='2'/%3E%3Cpath d='M3 9h18M8 21h8'/%3E%3C/svg%3E")}
 .mnav__a[data-r8='site'].on::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E0A04A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='14' rx='2'/%3E%3Cpath d='M3 9h18M8 21h8'/%3E%3C/svg%3E")}
 .mnav__a[data-r8='ai']::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EEEBE6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1.1-4.4A8 8 0 1 1 21 12z'/%3E%3C/svg%3E")}
 .mnav__a[data-r8='ai'].on::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E0A04A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1.1-4.4A8 8 0 1 1 21 12z'/%3E%3C/svg%3E")}
 .mnav__a[data-r8='dz']::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EEEBE6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.5 6.5L21 12l-6.5 2.5L12 21l-2.5-6.5L3 12l6.5-2.5z'/%3E%3C/svg%3E")}
 .mnav__a[data-r8='dz'].on::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E0A04A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.5 6.5L21 12l-6.5 2.5L12 21l-2.5-6.5L3 12l6.5-2.5z'/%3E%3C/svg%3E")}
 .mnav__a[data-r8='app']::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EEEBE6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2' width='10' height='20' rx='2.5'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E")}
 .mnav__a[data-r8='app'].on::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E0A04A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2' width='10' height='20' rx='2.5'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E")}
 .mnav__a[data-r8q]{grid-column:auto;justify-content:center;gap:8px;min-height:48px!important;padding:0 10px!important;border:1px solid rgba(255,255,255,.13)!important;border-radius:14px!important;background:rgba(255,255,255,.03)!important;font:600 15px var(--f-body,Onest,sans-serif)!important;margin-top:8px}
 .mnav__a[data-r8q]::before{content:'';width:17px;height:17px;flex:none;background-repeat:no-repeat;background-size:17px}
 
 
 .mnav__a .ec-soon{font:600 9px var(--f-mono);letter-spacing:.1em;color:#E0A04A;border:1px solid rgba(224,160,74,.5);border-radius:99px;padding:2px 6px;margin-left:6px;vertical-align:3px;text-transform:uppercase;background:none;position:static}
}
/* phone: the menu is a panel under the bar (shade from the top), rounded at the bottom */
@media (max-width:743px),(max-width:999px) and (max-height:500px),(min-width:744px) and (max-width:980px) and (min-height:501px),(min-width:981px) and (max-width:1100px) and (min-height:1101px){
 .mnav{left:0!important;right:0!important;width:auto!important;top:100%!important;border-radius:0 0 24px 24px;border:0;border-bottom:1px solid rgba(255,255,255,.13);max-height:calc(100dvh - 64px)}
 .mnav__in{grid-template-columns:minmax(0,1fr)!important;align-items:stretch!important;padding:14px 16px 18px!important;gap:14px!important}
 .mnav__cta{width:100%!important;min-height:54px}
}
/* tablet with the ☰ button (744-980 px): a window under the button, the page stays visible */
@media (min-width:744px) and (max-width:980px) and (min-height:501px),(min-width:981px) and (max-width:1100px) and (min-height:1101px),(min-width:744px) and (max-width:980px) and (hover:hover){
 .mnav{left:auto!important;right:16px!important;top:calc(100% + 8px)!important;width:400px!important;border:1px solid rgba(255,255,255,.13)!important;border-radius:22px;clip-path:none!important;box-shadow:0 30px 60px -20px rgba(0,0,0,.7),0 0 0 100vmax rgba(0,0,0,.45)!important;max-height:calc(100dvh - 96px);transform-origin:top right}
 .mnav__in{grid-template-columns:minmax(0,1fr)!important;align-items:stretch!important;padding:14px 16px 18px!important;gap:14px!important;max-width:none!important}
 .mnav__cta{width:100%!important;min-height:54px}
}

/* logo: «EduCore Network» with a small Network on phones and tablets with the ☰ button */
@media (max-width:980px),(max-width:999px) and (max-height:500px){
 .bar .lgx--one .lgx__w small,.xft .lgx--one .lgx__w small{display:inline!important;font:500 10px var(--f-mono)!important;letter-spacing:.2em!important;text-transform:uppercase;opacity:.6;margin:0}
 .bar .lgx--one .lgx__w b{font-size:17px}
}
@media (max-width:379px){.bar .lgx--one .lgx__w{display:grid!important;line-height:1.02;gap:2px}.bar .lgx--one .lgx__w small{font-size:8px!important;letter-spacing:.3em!important}}

/* footer on a phone: centred, link groups open on tap, email copies on tap */
@media (max-width:743px),(max-width:999px) and (max-height:500px),(min-width:744px) and (max-width:980px) and (min-height:501px),(min-width:981px) and (max-width:1100px) and (min-height:1101px){
 .xft__panel{align-items:center!important;text-align:center;gap:0!important;padding:34px 20px 8px!important;border-bottom:0!important}
 .xft__tag{margin:12px auto 22px!important;max-width:30ch!important}
 
 .xft__wa{display:flex!important;justify-content:center;width:100%;box-sizing:border-box;min-height:52px;border-radius:16px!important;margin:0!important}
 .r8-mail{margin-top:10px;width:100%;min-height:52px;border-radius:16px;border:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.025);display:grid;grid-template-columns:30px minmax(0,1fr) 30px;align-items:center;gap:10px;padding:0 12px;color:var(--fg);font:600 14px var(--f-body,Onest,sans-serif);cursor:pointer;-webkit-tap-highlight-color:transparent}
 .r8-mail>span{overflow:hidden;white-space:nowrap}
 .r8-mail i{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;color:#E0A04A}
 .r8-mail i.cp{background:rgba(224,160,74,.12)}
 .r8-mail svg{width:16px;height:16px}
 .r8-mail.ok{border-color:rgba(91,195,122,.5)}
 .xft__main{display:block!important;padding:18px 20px 28px!important}
 .xft__col{border-bottom:1px solid var(--line)}
 .xft__col:first-child{border-top:1px solid var(--line)}
 .xft__col h4{margin:0!important;padding:16px 2px;display:flex;justify-content:space-between;align-items:center;cursor:pointer;-webkit-tap-highlight-color:transparent;user-select:none}
 .xft__col h4::after{content:"+";width:26px;height:26px;border-radius:50%;border:1px solid rgba(255,255,255,.14);display:grid;place-items:center;font:500 15px/1 var(--f-body,sans-serif);color:var(--muted);transition:transform .25s,color .25s,border-color .25s}
 .xft__col.r8-on h4::after{transform:rotate(45deg);color:#E0A04A;border-color:rgba(224,160,74,.5)}
 .xft__col ul{display:none!important;padding:0 2px 16px!important;margin:0!important}
 .xft__col.r8-on ul{display:grid!important;gap:11px}
 .xft__hrs{border:0!important;background:none!important;padding:0!important;margin:22px 0 0!important;max-width:none!important}
 .xft__hrs .xft__st{display:flex!important;justify-content:center;align-items:center;gap:8px;padding:0 0 10px!important;font:500 12px var(--f-mono);color:var(--muted);flex-wrap:wrap;text-align:center}
 .xft__hrs .xft__st b{font:inherit;color:var(--fg)}
 .xft__hrs .xft__dot{grid-row:auto;width:8px;height:8px}
 .xft__hrs .xft__rows,.xft__hrs .xft__hf,.xft__hrs .c4b-w,.xft__hrs .c4-you{display:none!important}
 .xft__hrs .r203{border:0!important;padding:0!important;background:none!important;margin:0!important}
 .xft__hrs .hb3{display:grid!important;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:16px;background:var(--surface);overflow:hidden;margin:0!important;padding:0!important}
 .xft__hrs .hb3>div{padding:10px 6px;text-align:center;border-right:1px solid var(--line)}
 .xft__hrs .hb3>div:last-child{border-right:0}
 .xft__bt{flex-direction:column;justify-content:center!important;text-align:center;gap:8px!important;margin-top:24px;padding-top:18px!important}
 .xft__bt p{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 10px;margin:0}
 .xft__bt .ftl{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 16px}
}

/* «Почему мы?» on a phone: the site's cards, swiped sideways, with a counter, dots and arrows */
@media (max-width:743px),(max-width:999px) and (max-height:500px),(min-width:744px) and (max-width:980px) and (min-height:501px),(min-width:981px) and (max-width:1100px) and (min-height:1101px){
 #why .r115w{display:flex!important;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin:0 calc(-1*var(--r8g,16px));padding:2px var(--r8g,16px) 4px;-webkit-overflow-scrolling:touch}
 #why .r115w::-webkit-scrollbar{display:none}
 #why .r115w__c{flex:0 0 calc(100% - 2*var(--r8g,16px) - 12px);scroll-snap-align:center;scroll-snap-stop:always;transition:opacity .3s}
 #why .r115w__c:not(.r8-cur){opacity:.55}
}
/* shared pager: 01 / 06 · dots · arrows */
.r8-pg{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}
.r8-pg .ct{font:600 12px var(--f-mono,monospace);color:#8d877e;letter-spacing:.04em;min-width:58px}
.r8-pg .ct b{color:#E0A04A}
.r8-pg .dt{display:flex;gap:6px}
.r8-pg .dt i{width:6px;height:6px;border-radius:3px;background:rgba(255,255,255,.18);transition:width .25s,background .25s}
.r8-pg .dt i.on{width:20px;background:#E0A04A}
.r8-pg .ab{display:flex;gap:8px}
.r8-pg button{width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.03);color:#EEEBE6;display:grid;place-items:center;cursor:pointer;padding:0}
.r8-pg button svg{width:18px;height:18px}
.r8-pg button:disabled{opacity:.3;cursor:default}

/* «Как мы работаем» on a phone and an iPad mini upright: one card per step (the step's real animation + text), swiped sideways */
@media (max-width:743px),(max-width:999px) and (max-height:500px),(min-width:744px) and (max-width:980px) and (min-height:501px),(min-width:981px) and (max-width:1100px) and (min-height:1101px),(min-width:744px) and (max-width:819px) and (min-height:501px),(hover:none) and (pointer:coarse) and (min-width:981px) and (min-height:501px) and (max-height:1100px){
 .xw.r8-D>.xw-tabs,.xw.r8-D>.xw-body{display:none!important}
 .r8-car{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin:0 calc(-1*var(--r8g,16px));padding:2px var(--r8g,16px) 4px;-webkit-overflow-scrolling:touch}
 .r8-car::-webkit-scrollbar{display:none}
 .r8-cd{flex:0 0 calc(100% - 2*var(--r8g,16px) - 12px);scroll-snap-align:center;scroll-snap-stop:always;display:flex;flex-direction:column;gap:12px;border:1px solid rgba(255,255,255,.1);border-radius:22px;background:#191919;padding:8px 8px 16px;box-sizing:border-box;transition:opacity .3s;min-width:0;overflow:hidden}
 .r8-cd:not(.r8-cur){opacity:.5}
 .r8-cd .xw-stage{position:relative;min-height:0;border-radius:16px;overflow:hidden;isolation:isolate;flex:none}
 .r8-cd .xw-sc{visibility:visible}
 .r8-cd .xw-pane{position:static!important;opacity:1!important;visibility:visible!important;transform:none!important;padding:0 6px;gap:12px;justify-content:flex-start;grid-area:auto}
 .r8-cd .xw-pic,.r8-cd .xw-lbl{display:none!important}
 .r8-cd .xw-ph{display:block}
 .r8-cd .xw-pn{margin:0 0 4px}
 .r8-cd .xw-ph h4{font-size:17px;line-height:1.25;margin:0 0 6px}
 .r8-cd .xw-ph p{font-size:14px;line-height:1.5;margin:0}
 .r8-cd .xw-meta{display:flex;flex-wrap:wrap;gap:6px;padding:0;background:none;border:0;margin:0}
 .r8-cd .xw-meta ul{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;width:100%}
 .r8-cd .xw-meta li{margin:0;padding:6px 10px;border-radius:99px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);font-size:12.5px;line-height:1.3;gap:6px;align-items:center}
 .r8-cd .xw-meta li>span:first-child{width:14px;height:14px;flex:none}
 .r8-cd .xw-meta li>span:first-child svg{width:9px;height:9px}
}

/* documents (terms, privacy) on a phone: chapters closed, «Contents» opens a list from the bottom */
@media (max-width:743px),(max-width:999px) and (max-height:500px),(min-width:744px) and (max-width:980px) and (min-height:501px),(min-width:981px) and (max-width:1100px) and (min-height:1101px){
 .r8-doc .ts,.r8-doc .xp-s{border-radius:16px}
 .r8-doc .ts>header,.r8-doc .xp-s>.xp-sh{cursor:pointer;-webkit-tap-highlight-color:transparent;position:relative;padding-right:40px!important;user-select:none}
 .r8-doc .ts>header::after,.r8-doc .xp-s>.xp-sh::after{content:"+";position:absolute;right:0;top:50%;margin-top:-13px;width:26px;height:26px;border-radius:50%;border:1px solid rgba(255,255,255,.14);display:grid;place-items:center;font:500 15px/1 var(--f-body,sans-serif);color:#ADA79E;transition:transform .25s,color .25s,border-color .25s}
 .r8-doc .r8-op>header::after,.r8-doc .r8-op>.xp-sh::after{transform:rotate(45deg);color:#E0A04A;border-color:rgba(224,160,74,.5)}
 .r8-doc .ts:not(.r8-op)>.tb,.r8-doc .xp-s:not(.r8-op)>.xp-sb{display:none!important}
 .r8-doc .ts:not(.r8-op),.r8-doc .xp-s:not(.r8-op){padding-top:14px!important;padding-bottom:14px!important}
 .r8-doc .ts:not(.r8-op)>header,.r8-doc .xp-s:not(.r8-op)>.xp-sh{margin-bottom:0!important}
 .r8-tb{position:sticky;top:72px;z-index:5;display:flex;gap:8px;padding:8px 0;margin:0 0 6px;background:var(--bg,#141414)}
 .r8-tb>*{flex:1;min-height:44px;border-radius:12px;border:1px solid rgba(255,255,255,.14);background:#1c1c1d;color:#EEEBE6;display:flex;align-items:center;justify-content:center;gap:8px;font:600 14px var(--f-body,Onest,sans-serif);text-decoration:none;cursor:pointer;padding:0 10px}
 .r8-tb svg{width:16px;height:16px;flex:none}
}
.r8-sh{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;justify-content:flex-end}
.r8-sh[hidden]{display:none}
.r8-sh .bd{position:absolute;inset:0;background:rgba(8,8,8,.62);opacity:0;transition:opacity .28s}
.r8-sh .pn{position:relative;max-height:min(80vh,calc(100% - 48px));overflow:auto;overscroll-behavior:contain;background:#1b1a19;border:1px solid rgba(255,255,255,.09);border-bottom:0;border-radius:22px 22px 0 0;padding:6px 16px calc(20px + env(safe-area-inset-bottom,0px));transform:translateY(100%);transition:transform .32s cubic-bezier(.2,.9,.25,1);color:#EEEBE6}
.r8-sh.on .bd{opacity:1}.r8-sh.on .pn{transform:none}
.r8-sh .gr{height:22px;display:grid;place-items:center}.r8-sh .gr::before{content:"";width:40px;height:5px;border-radius:3px;background:rgba(255,255,255,.22)}
.r8-sh .hd{display:flex;justify-content:space-between;align-items:center;margin:2px 0 6px}
.r8-sh .hd b{font:600 18px var(--f-display,sans-serif)}
.r8-sh .hd button{width:36px;height:36px;border-radius:50%;border:1px solid rgba(255,255,255,.14);background:none;color:#EEEBE6;display:grid;place-items:center;cursor:pointer;padding:0}
.r8-sh .hd button svg{width:15px;height:15px}
.r8-sh .ph{font:500 10px var(--f-mono,monospace);letter-spacing:.14em;color:#8d877e;text-transform:uppercase;margin:14px 2px 6px}
.r8-sh .gl{display:grid;gap:6px}
.r8-sh .gl a{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:10px;padding:9px 10px;border:1px solid rgba(255,255,255,.07);border-radius:12px;background:#1c1c1d;color:#EEEBE6;text-decoration:none;font-size:14px;line-height:1.35}
.r8-sh .gl a span{font:600 11.5px var(--f-mono,monospace);border:1px solid rgba(255,255,255,.14);border-radius:7px;padding:3px 0;text-align:center;display:grid;place-items:center;min-height:22px}
.r8-sh .gl a span svg{width:12px;height:12px}
.r8-sh .gl a.cur{border-color:rgba(224,160,74,.5);background:rgba(224,160,74,.08)}
.r8-sh .gl a.cur span{background:#E0A04A;border-color:#E0A04A;color:#141414}
html.r8-lock,html.r8-lock body{overflow:hidden!important}
html.r8-lock .wa-fab{opacity:0!important;pointer-events:none!important}
@media (prefers-reduced-motion:reduce){.r8-sh .bd,.r8-sh .pn,.r8-cd,#why .r115w__c{transition:none}}
