.header-account{display:flex;align-items:center;flex-shrink:0;min-width:0}html body>header .header-account .header-learn{display:flex!important;align-items:center;gap:10px;padding:8px 11px!important;min-height:48px;box-sizing:border-box;margin:0;background:#f6f2e9!important;color:#203b50!important;border:1px solid #ded7c7!important;border-radius:9px!important;box-shadow:none!important;text-decoration:none;line-height:1.4;white-space:nowrap;transition:background .2s,border-color .2s,box-shadow .2s}html body>header .header-account .header-learn:hover{background:#eee7d8!important;border-color:#b48b45!important;box-shadow:0 4px 15px #203b5010!important}.header-account-icon{display:grid;place-items:center;width:30px;height:30px;flex:none;border-radius:50%;background:#203b50;color:#e4c78d}.header-account-icon svg,.header-account-cue svg{display:block}.header-account-text{display:flex;flex-direction:row;align-items:center;gap:11px;text-align:right;min-width:0}.header-account-welcome{display:block;font-size:13px;line-height:1.5;font-weight:500;color:#5a6c78;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-account-welcome[hidden]{display:none}.header-account-label{flex:none;font-size:14px;font-weight:700;color:#203b50;line-height:1.5}.header-account-cue{display:grid;place-items:center;color:#94713c;margin-inline-start:1px;flex:none}.header-account:not(.is-authenticated) .header-account-cue{display:none}@media(max-width:1400px) and (min-width:1051px){.header-account-welcome{max-width:120px;font-size:12px}.header-account-label{font-size:13px}html body>header .header-account .header-learn{gap:7px;padding:7px 8px!important}}@media(max-width:1050px){header .header-account{grid-column:1/-1;grid-row:3;justify-self:stretch;display:none}header.nav-open .header-account{display:flex}html body>header .header-account .header-learn{width:100%;justify-content:flex-start;padding:12px 15px!important;min-height:62px}.header-account-text{flex:1}.header-account-welcome{max-width:min(70vw,360px);font-size:13px}.header-account-label{font-size:15px}.header-account-icon{width:36px;height:36px}.header-account-cue{margin-inline-start:auto}}@media(prefers-reduced-motion:reduce){html body>header .header-account .header-learn{transition:none}}

.header-account.is-authenticated .header-account-label{border-inline-start:1px solid #d7c9ac;padding-inline-start:11px}.header-account-text{flex-wrap:nowrap}.header-account-welcome{flex:0 1 auto}@media(max-width:1400px) and (min-width:1051px){.header-account-text{gap:7px}.header-account-welcome{max-width:100px}.header-account.is-authenticated .header-account-label{padding-inline-start:7px}}@media(max-width:1050px){.header-account-text{flex-direction:row;align-items:center;justify-content:space-between;gap:12px}.header-account-welcome{max-width:calc(100vw - 215px);font-size:13px}.header-account.is-authenticated .header-account-label{padding-inline-start:12px}}

html body>header .header-account .header-learn,html body>header .header-account .header-learn:hover{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:#203b50!important;transition:color .18s ease}
html body>header .header-account .header-learn .header-account-icon{background:transparent;color:inherit;border:0;box-shadow:none}
html body>header .header-account .header-learn .header-account-label,html body>header .header-account .header-learn .header-account-cue{color:inherit;border:0;padding-inline-start:0}
html body>header .header-account .header-learn:hover,html body>header .header-account .header-learn:focus-visible{color:#d49b25!important}
html body>header .header-account .header-learn:hover .header-account-icon,html body>header .header-account .header-learn:hover .header-account-label,html body>header .header-account .header-learn:hover .header-account-cue{color:inherit}

html body>header .header-account.is-authenticated .header-learn .header-account-icon,html body>header .header-account.is-authenticated .header-learn:hover .header-account-icon{color:#e5ac26;filter:drop-shadow(0 0 3px #f7d15c99) drop-shadow(0 0 7px #dba32145)}

/* Telegram invitation: floating bot, luminous lettering and orbiting starlight. */
html body>header .header-account{gap:15px;overflow:visible}
html body>header .header-account .header-telegram{position:relative;isolation:isolate;display:flex;align-items:center;gap:8px;flex:none;padding:7px 11px 7px 6px;margin:0;background:radial-gradient(ellipse at 70% 60%,#e6f6ffb3,transparent 74%);border:0;border-radius:40% 55% 45% 50%;box-shadow:none;color:#136c9b;text-decoration:none;white-space:nowrap;line-height:1.35;transition:transform .25s,filter .25s}
.header-telegram:before{content:"";position:absolute;inset:8px 0;z-index:-1;border-radius:50%;background:#b9e5ff45;filter:blur(13px)}
.header-tg-copy{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:right}.header-tg-copy small{color:#7095aa;font-size:9px;letter-spacing:.1px}.header-tg-copy strong{font-size:12px;font-weight:750;background:linear-gradient(110deg,#114b78 10%,#179fd1 48%,#245b91 70%,#a87928);background-clip:text;-webkit-background-clip:text;color:transparent}
.header-tg-bot{position:relative;display:block;width:39px;height:43px;flex:none;filter:drop-shadow(0 5px 5px #15587a24);transform:rotate(-6deg)}.header-tg-bot>svg{width:100%;height:100%;display:block}.header-tg-plane{position:absolute;left:-4px;bottom:-1px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:linear-gradient(145deg,#54c8f0,#087cb8);border:2px solid #fff;color:white;box-shadow:0 3px 7px #087cb833}.header-tg-plane svg{width:13px;height:13px}
.header-tg-stars{position:absolute;inset:-8px -3px;pointer-events:none;overflow:visible}.header-tg-stars i{position:absolute;font-style:normal;color:#cf9a38;font-size:12px;text-shadow:0 0 7px #f8d995;animation:header-tg-twinkle 4.5s ease-in-out infinite;will-change:transform,opacity}.header-tg-stars i:nth-child(1){right:8%;top:0;animation-delay:-.8s}.header-tg-stars i:nth-child(2){right:48%;top:-2px;color:#6bbfe8;font-size:9px;animation-delay:-2.5s}.header-tg-stars i:nth-child(3){left:8%;top:8px;font-size:10px;animation-delay:-1.7s}.header-tg-stars i:nth-child(4){left:30%;bottom:2px;font-size:8px;animation-delay:-3.3s}.header-tg-stars i:nth-child(5){right:24%;bottom:0;font-size:7px;animation-delay:-.1s}
html body>header .header-account .header-telegram:hover{transform:translateY(-2px);filter:drop-shadow(0 4px 9px #2aa6dd25)}html body>header .header-account .header-telegram:focus-visible{outline:2px solid #168dc5;outline-offset:5px}
@keyframes header-tg-twinkle{0%,100%{opacity:.3;transform:translateY(3px) scale(.65) rotate(-15deg)}45%{opacity:1;transform:translateY(-4px) scale(1.15) rotate(18deg)}70%{opacity:.65;transform:translateY(-1px) scale(.9) rotate(0)}}
@media(min-width:1051px) and (max-width:1400px){html body>header .header-account{gap:5px}html body>header .header-account .header-telegram{gap:5px;padding-inline:4px}.header-tg-copy strong{font-size:10px}.header-tg-copy small{font-size:8px}.header-tg-bot{width:32px;height:37px}}
@media(max-width:1050px){header.nav-open .header-account{display:flex;flex-wrap:wrap;align-items:center;gap:12px}html body>header .header-account .header-learn{width:auto;flex:1;min-height:50px;padding:8px!important}html body>header .header-account .header-telegram{justify-content:center;flex:1;min-height:50px}.header-account-text{flex:none}.header-tg-copy strong{font-size:12px}}
@media(prefers-reduced-motion:reduce){.header-tg-stars i{animation:none;opacity:.7;will-change:auto}html body>header .header-account .header-telegram{transition:none}}

/* The channel invitation stays outside the collapsible navigation. */
html body>a.site-floating-telegram{position:fixed;inset:auto auto calc(16px + env(safe-area-inset-bottom,0px)) max(18px,env(safe-area-inset-left,0px));z-index:1000;isolation:isolate;display:flex;direction:rtl;align-items:center;gap:9px;width:max-content;max-width:calc(100vw - 36px);box-sizing:border-box;padding:9px 16px 9px 10px;margin:0;border:1px solid #bee2ed99;border-radius:32px;background:radial-gradient(ellipse at 65% 50%,#e7f6ffed,#fffffff0 85%);box-shadow:0 5px 20px #15587a16;color:#136c9b;text-decoration:none;white-space:nowrap;line-height:1.4;animation:site-telegram-float 4s ease-in-out infinite}
.site-floating-telegram .header-tg-copy strong{font-size:13px}.site-floating-telegram .header-tg-bot{width:42px;height:46px}
html body>a.site-floating-telegram:hover,html body>a.site-floating-telegram:focus-visible{animation-play-state:paused;box-shadow:0 7px 24px #15587a28}
html body>a.site-floating-telegram:focus-visible{outline:2px solid #168dc5;outline-offset:4px}
@keyframes site-telegram-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
body:has(#education-motion:not(:checked))>a.site-floating-telegram,body:has(#education-motion:not(:checked))>a.site-floating-telegram .header-tg-stars i{animation-play-state:paused}
@media(max-width:600px){html body>a.site-floating-telegram{left:max(12px,env(safe-area-inset-left,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px));padding:7px 12px 7px 7px;gap:6px;max-width:calc(100vw - 24px)}.site-floating-telegram .header-tg-copy strong{font-size:12px}.site-floating-telegram .header-tg-bot{width:35px;height:39px}}
@media(prefers-reduced-motion:reduce){html body>a.site-floating-telegram{animation:none}.site-floating-telegram .header-tg-stars i{animation:none}}
