.auth-modal[hidden]{display:none}
.auth-modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:20px}
.auth-modal-backdrop{position:absolute;inset:0;background:rgba(21,26,34,.56);backdrop-filter:blur(8px)}
.auth-modal-card{position:relative;width:min(100%,480px);padding:34px 34px 30px;background:var(--paper,#fff);border:1px solid rgba(49,87,227,.15);border-radius:22px;box-shadow:0 26px 80px rgba(21,26,34,.3);animation:auth-modal-in .28s ease both}
.auth-modal-close{position:absolute;top:12px;right:15px;width:32px;height:32px;border:0;background:transparent;color:var(--muted,#5d6673);font-size:27px;line-height:1;cursor:pointer}
.auth-modal-kicker{margin:0 0 8px;color:var(--blue,#3157e3);font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.auth-modal-card h2{margin:0;font:700 clamp(30px,5vw,42px)/1.02 Onest,sans-serif;letter-spacing:-.035em;color:var(--ink,#151a22)}
.auth-modal-intro{margin:14px 0 24px;color:var(--muted,#5d6673);font-size:15px;line-height:1.55}
.auth-choice-list,.phone-auth-form{display:grid;gap:12px}
.auth-choice{display:grid;grid-template-columns:40px 1fr auto;align-items:center;gap:12px;width:100%;padding:14px 15px;border:1px solid #d6dae2;border-radius:14px;background:#fff;color:var(--ink,#151a22);text-align:left;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.auth-choice:hover{transform:translateY(-2px);border-color:var(--blue,#3157e3);box-shadow:0 12px 26px rgba(49,87,227,.15)}
.auth-choice-telegram{border-color:#229ed9;background:#229ed9;color:#fff;box-shadow:0 12px 28px rgba(34,158,217,.22)}
.auth-choice-telegram:hover{border-color:#168dcc;background:#168dcc}
.auth-choice-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#fff;color:#229ed9;font-weight:800}
.auth-choice-phone .auth-choice-icon{background:#e9edff;color:var(--blue,#3157e3);font-size:12px}
.auth-choice b,.auth-choice small{display:block}.auth-choice b{font-size:15px}.auth-choice small{margin-top:3px;font-size:12px;opacity:.78}.auth-choice-arrow{font-size:20px}
.auth-divider{display:flex;align-items:center;gap:12px;margin:18px 0;color:var(--muted,#5d6673);font-size:12px}.auth-divider::before,.auth-divider::after{content:"";height:1px;flex:1;background:#d6dae2}.auth-divider span{padding:0 4px}
.telegram-logo{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#fff;color:#229ed9}.telegram-logo svg{width:21px;height:21px}
.phone-auth-form label{display:grid;gap:7px;color:var(--ink,#151a22);font-size:13px;font-weight:700}.phone-auth-form input{height:52px;padding:0 14px;border:1px solid #cfd3d8;border-radius:10px;background:#fafafa;color:var(--ink,#151a22);font-size:16px}.phone-auth-form input:focus{outline:3px solid rgba(49,87,227,.22);border-color:var(--blue,#3157e3)}
.phone-auth-form .button{width:100%;margin-top:5px}.auth-back{border:0;background:transparent;color:var(--blue,#3157e3);font-size:13px;font-weight:700;cursor:pointer}.auth-error,.auth-modal-status{min-height:18px;margin:0;color:#b33d4a;font-size:13px}.auth-modal-status:empty,.auth-error:empty{display:none}
@keyframes auth-modal-in{from{opacity:0;transform:translateY(14px) scale(.97)}to{opacity:1;transform:none}}
.demo-open-button{position:relative;isolation:isolate;overflow:hidden;min-height:78px!important;padding:12px 18px!important;border:1px solid rgba(255,255,255,.2)!important;border-radius:18px!important;background:linear-gradient(115deg,#229ed9 0%,#3157e3 72%,#2945c4 100%)!important;box-shadow:0 18px 34px rgba(49,87,227,.3),inset 0 1px 0 rgba(255,255,255,.22)!important;transition:transform .25s ease,box-shadow .25s ease,filter .25s ease!important}.demo-open-button::before{content:"";position:absolute;inset:1px;border-radius:17px;background:linear-gradient(110deg,rgba(255,255,255,.14),transparent 34%);pointer-events:none}.demo-open-button::after{content:"";position:absolute;z-index:-1;top:-40%;left:-30%;width:24%;height:180%;background:rgba(255,255,255,.34);transform:rotate(24deg);filter:blur(6px);animation:cta-shine 4.5s ease-in-out infinite}.demo-open-button:hover{transform:translateY(-3px)!important;filter:saturate(1.12);box-shadow:0 23px 42px rgba(49,87,227,.38),inset 0 1px 0 rgba(255,255,255,.25)!important}.demo-open-button:active{transform:translateY(0)!important}.demo-open-button .telegram-icon{transform:none;flex:0 0 44px;width:44px;height:44px;font-size:22px;color:#3157e3;box-shadow:0 3px 10px rgba(21,26,34,.16)}.demo-open-button>span:nth-child(2){gap:4px}.demo-open-button b{font-size:19px!important;letter-spacing:-.02em}.demo-open-button small{font-size:12px!important;line-height:1.2!important;white-space:nowrap}.demo-open-button .telegram-arrow{display:grid;place-items:center;width:34px;height:34px;margin-left:auto;border:1px solid rgba(255,255,255,.35);border-radius:50%;font-size:18px;background:rgba(255,255,255,.1)}
.auth-modal-card>*{animation:auth-content-in .42s ease both}.auth-modal-card>*:nth-child(2){animation-delay:.04s}.auth-modal-card>*:nth-child(3){animation-delay:.08s}.auth-modal-card>*:nth-child(4){animation-delay:.13s}.auth-modal-card>*:nth-child(5){animation-delay:.18s}.auth-modal-card>*:nth-child(6){animation-delay:.23s}
@keyframes cta-shine{0%,52%{left:-30%;opacity:0}60%{opacity:1}76%,100%{left:135%;opacity:0}}
@keyframes auth-content-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:620px){.auth-modal{padding:14px}.auth-modal-card{padding:29px 18px 22px;border-radius:18px}.auth-modal-card h2{font-size:32px}.auth-modal-intro{font-size:14px;margin-bottom:20px}.auth-choice{padding:12px}.auth-choice b{font-size:14px}.auth-choice small{font-size:11px}.demo-open-button{min-height:72px!important;padding:10px 12px!important;border-radius:16px!important}.demo-open-button .telegram-icon{width:40px;height:40px;flex-basis:40px}.demo-open-button b{font-size:17px!important}.demo-open-button small{font-size:11px!important}.demo-open-button .telegram-arrow{width:30px;height:30px;font-size:16px}}
@media(max-width:620px){.auth-modal{place-items:end center;padding:0}.auth-modal-backdrop{animation:auth-backdrop-in .28s ease both}.auth-modal-card{width:100%;padding:30px 18px max(24px,env(safe-area-inset-bottom));border-radius:24px 24px 0 0;animation:auth-sheet-in .42s cubic-bezier(.22,.8,.24,1) both;box-shadow:0 -18px 60px rgba(21,26,34,.26)}.auth-modal-close{top:14px;right:16px}.auth-modal-kicker{margin-top:2px}.auth-modal-intro{max-width:340px}.auth-choice{min-height:64px}.auth-divider{margin:16px 0}}
@keyframes auth-sheet-in{from{opacity:.55;transform:translateY(100%)}to{opacity:1;transform:none}}
@keyframes auth-backdrop-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.auth-modal-card,.auth-modal-card>*,.auth-modal-backdrop,.auth-choice,.demo-open-button,.demo-open-button::after{animation:none!important;transition:none!important}}
.demo-open-button .cta-icon{display:block}.demo-open-button .cta-icon-cap{width:23px;height:23px}.demo-open-button .cta-icon-next{width:19px;height:19px}
.thank-you-page{min-height:100vh;overflow-x:hidden;background:radial-gradient(circle at 13% 16%,rgba(199,243,107,.55),transparent 22rem),radial-gradient(circle at 88% 82%,rgba(49,87,227,.2),transparent 29rem),linear-gradient(135deg,#f3f1eb 0%,#eaf0ff 100%)}
.thank-you-main{position:relative;isolation:isolate;min-height:calc(100vh - 78px);display:grid;place-items:center;padding:40px 20px 80px}.thank-you-main::before,.thank-you-main::after{content:"";position:absolute;border:1px solid rgba(49,87,227,.16);border-radius:50%;z-index:-1}.thank-you-main::before{width:min(70vw,760px);aspect-ratio:1;right:-25vw;top:-36vw}.thank-you-main::after{width:min(55vw,580px);aspect-ratio:1;left:-23vw;bottom:-32vw}
.thank-you-card{position:relative;overflow:hidden;width:min(100%,650px);padding:62px 58px 48px;border-radius:28px;background:rgba(255,255,255,.91);box-shadow:0 28px 78px rgba(21,26,34,.18);text-align:center;animation:thank-you-card-in .65s cubic-bezier(.16,1,.3,1) both}.thank-you-card::after{content:"";position:absolute;inset:0;background:linear-gradient(130deg,rgba(255,255,255,.38),transparent 38%);pointer-events:none}
.thank-you-orbit{position:absolute;width:240px;height:240px;top:-153px;right:-116px;border:1px solid rgba(49,87,227,.22);border-radius:50%;animation:thank-you-orbit 16s linear infinite}.thank-you-orbit::before{content:"";position:absolute;inset:22px;border:1px solid rgba(49,87,227,.12);border-radius:50%}.thank-you-orbit span,.thank-you-orbit i{position:absolute;border-radius:50%;background:var(--blue,#3157e3)}.thank-you-orbit span{width:12px;height:12px;bottom:33px;left:18px;box-shadow:0 0 0 8px rgba(49,87,227,.1)}.thank-you-orbit i{width:8px;height:8px;right:18px;top:41px;background:var(--lime,#c7f36b)}
.thank-you-check{position:relative;z-index:1;display:grid;place-items:center;width:68px;height:68px;margin:0 auto 25px;border-radius:50%;background:var(--blue,#3157e3);box-shadow:0 14px 30px rgba(49,87,227,.32);animation:thank-you-check-in .75s .12s cubic-bezier(.16,1,.3,1) both}.thank-you-check svg,.thank-you-action svg{fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.thank-you-check svg{width:34px;height:34px;color:#fff}
.thank-you-card h1{position:relative;z-index:1;margin:0;color:var(--ink,#151a22);font:700 clamp(38px,6vw,62px)/.98 Onest,sans-serif;letter-spacing:-.04em}.thank-you-card>p{position:relative;z-index:1;max-width:490px;margin:20px auto 30px;color:var(--muted,#5d6673);font-size:17px;line-height:1.62}.thank-you-card .thank-you-action{position:relative;z-index:1;display:inline-flex;align-items:center;min-width:270px;justify-content:center;gap:14px}.thank-you-action svg{width:20px;height:20px;transition:transform .2s ease}.thank-you-action:hover svg{transform:translateX(4px)}.thank-you-link{position:relative;z-index:1;display:block;width:max-content;margin:22px auto 0;color:var(--muted,#5d6673);font-size:13px;text-decoration:underline;text-underline-offset:4px}.consultation-thank-you-page{background:radial-gradient(circle at 13% 16%,rgba(199,243,107,.5),transparent 22rem),radial-gradient(circle at 88% 82%,rgba(34,158,217,.18),transparent 29rem),linear-gradient(135deg,#f3f1eb 0%,#e7f3fa 100%)}
@keyframes thank-you-card-in{from{opacity:0;transform:translateY(24px) scale(.97);filter:blur(7px)}to{opacity:1;transform:none;filter:blur(0)}}@keyframes thank-you-check-in{from{transform:scale(.55) rotate(-18deg);opacity:0}to{transform:none;opacity:1}}@keyframes thank-you-orbit{to{transform:rotate(360deg)}}
@media(max-width:620px){.thank-you-main{min-height:calc(100vh - 68px);padding:24px 16px 58px}.thank-you-card{padding:54px 21px 32px;border-radius:22px}.thank-you-card h1{font-size:42px}.thank-you-card>p{font-size:15px;line-height:1.58}.thank-you-card .button{width:100%;min-width:0}.thank-you-orbit{right:-136px;top:-153px}.thank-you-main::before{right:-58vw;top:-43vw}.thank-you-main::after{left:-57vw;bottom:-45vw}}
/* Thank-you pages: a separate compact layout prevents the shared mobile header
   rules from squeezing the brand and CTA into the edges on narrow phones. */
@media(max-width:767px){
  .thank-you-page .site-header{height:72px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;padding-inline:max(20px,env(safe-area-inset-left)) max(20px,env(safe-area-inset-right))}
  .thank-you-page .site-header .brand{max-width:none;margin:0;font-size:16px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .thank-you-page .site-header .header-cta{justify-self:end;max-width:none;margin:0;padding:9px 13px;font-size:12px;line-height:1.2;white-space:nowrap;text-align:center}
  .thank-you-page .thank-you-main{min-height:calc(100svh - 72px);width:100%;padding:32px max(20px,env(safe-area-inset-right)) max(48px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));place-items:center}
  .thank-you-page .thank-you-card{width:100%;max-width:430px;margin:auto;padding:44px 22px 32px;border-radius:22px;text-align:center}
  .thank-you-page .thank-you-check{width:62px;height:62px;margin-bottom:22px}.thank-you-page .thank-you-check svg{width:31px;height:31px}
  .thank-you-page .thank-you-card h1{max-width:100%;margin-inline:auto;font-size:clamp(31px,9.8vw,42px);line-height:1.01;letter-spacing:-.035em;overflow-wrap:anywhere;text-wrap:balance}
  .thank-you-page .thank-you-card>p{max-width:31ch;margin:18px auto 28px;padding:0;font-size:15px;line-height:1.62;text-wrap:pretty}
  .thank-you-page .thank-you-card .thank-you-action{width:100%;min-width:0;margin:0;padding-inline:18px;gap:12px}
  .thank-you-page .thank-you-link{margin-top:20px;padding:4px 0;font-size:13px}
}
@media(max-width:359px){
  .thank-you-page .site-header{gap:10px;padding-inline:max(16px,env(safe-area-inset-left)) max(16px,env(safe-area-inset-right))}
  .thank-you-page .site-header .brand{font-size:15px}.thank-you-page .site-header .header-cta{padding:8px 11px;font-size:11px}
  .thank-you-page .thank-you-main{padding-inline:max(16px,env(safe-area-inset-left)) max(16px,env(safe-area-inset-right))}
  .thank-you-page .thank-you-card{padding:40px 18px 28px}.thank-you-page .thank-you-card h1{font-size:31px}.thank-you-page .thank-you-card>p{font-size:14px}
}
/* Shared Thank You composition — desktop, tablet and phone are deliberately
   tuned separately so the same visual hierarchy survives each width. */
.thank-you-page .site-header{height:82px;width:100%;padding-inline:max(32px,calc((100vw - 1180px)/2));display:flex;align-items:center;justify-content:space-between;gap:28px}.thank-you-page .site-header .brand{margin:0}.thank-you-page .site-header .header-cta{margin:0;flex:0 0 auto}
.thank-you-page .thank-you-main{min-height:calc(100svh - 82px);padding:42px 32px 58px;place-items:center}.thank-you-page .thank-you-card{width:min(100%,560px);padding:48px 48px 38px;border-radius:24px}.thank-you-page .thank-you-check{width:62px;height:62px;margin-bottom:18px}.thank-you-page .thank-you-check svg{width:30px;height:30px}.thank-you-page .thank-you-card h1{max-width:12ch;margin-inline:auto;font-size:clamp(38px,4vw,54px);line-height:1.01;text-wrap:balance}.thank-you-page .thank-you-card h1 span{display:block;white-space:nowrap}.thank-you-page .thank-you-card>p{max-width:36ch;margin:16px auto 24px}.thank-you-page .thank-you-card .thank-you-action{min-width:0;width:100%;min-height:54px}.thank-you-page .thank-you-link{margin-top:17px}
@media(min-width:621px) and (max-width:1023px){
  .thank-you-page .site-header{height:76px;padding-inline:32px}.thank-you-page .thank-you-main{min-height:calc(100svh - 76px);padding:40px 28px 52px}.thank-you-page .thank-you-card{max-width:540px;padding:42px 42px 34px}.thank-you-page .thank-you-card h1{font-size:clamp(36px,5.2vw,46px)}
}
@media(max-width:620px){
  .thank-you-page .site-header{height:68px;padding-inline:max(18px,env(safe-area-inset-left)) max(18px,env(safe-area-inset-right));gap:14px}.thank-you-page .site-header .brand{font-size:15px}.thank-you-page .site-header .header-cta{padding:8px 12px;font-size:12px;line-height:1.2}
  .thank-you-page .thank-you-main{min-height:calc(100svh - 68px);padding:28px max(16px,env(safe-area-inset-right)) 48px max(16px,env(safe-area-inset-left));align-content:center;transform:translateY(-10px)}
  .thank-you-page .thank-you-card{width:100%;max-width:430px;padding:30px 16px 24px;border-radius:20px}.thank-you-page .thank-you-check{width:54px;height:54px;margin-bottom:16px}.thank-you-page .thank-you-check svg{width:27px;height:27px}
  .thank-you-page .thank-you-card h1{max-width:none;font-size:clamp(27px,8vw,35px);line-height:1.04;letter-spacing:-.035em}.thank-you-page .thank-you-card>p{max-width:34ch;margin:14px auto 22px;font-size:15px;line-height:1.55}.thank-you-page .thank-you-card .thank-you-action{min-height:52px;padding-inline:16px}.thank-you-page .thank-you-link{margin-top:15px;padding:3px 0}
}
@media(max-width:359px){
  .thank-you-page .site-header{padding-inline:max(16px,env(safe-area-inset-left)) max(16px,env(safe-area-inset-right));gap:9px}.thank-you-page .site-header .brand{font-size:14px}.thank-you-page .site-header .header-cta{padding:8px 10px;font-size:11px}
  .thank-you-page .thank-you-main{padding-inline:max(16px,env(safe-area-inset-left)) max(16px,env(safe-area-inset-right));transform:translateY(-6px)}.thank-you-page .thank-you-card{padding:28px 14px 22px}.thank-you-page .thank-you-card h1{font-size:27px}.thank-you-page .thank-you-card>p{font-size:14px}
}
@media(prefers-reduced-motion:reduce){.thank-you-card,.thank-you-check,.thank-you-orbit{animation:none}.thank-you-action svg{transition:none}}

/* Final header and registration-title guard: the long second line must never
   outgrow the card, while the header action keeps a consistent tap target. */
.thank-you-page .site-header .header-cta{display:grid;place-items:center;min-width:128px;min-height:46px;padding:0 16px;line-height:1;text-align:center;white-space:nowrap}
.thank-you-page .thank-you-card h1:has(span){font-size:clamp(34px,3.3vw,44px);letter-spacing:-.045em}
@media(max-width:620px){
  .thank-you-page .site-header .header-cta{min-width:112px;min-height:44px;padding:0 13px;font-size:12px;line-height:1;text-align:center}
  .thank-you-page .thank-you-card h1:has(span){font-size:clamp(27px,8vw,35px)}
}
@media(max-width:359px){.thank-you-page .site-header .header-cta{min-width:104px;padding-inline:10px;font-size:11px}.thank-you-page .thank-you-card h1:has(span){font-size:27px}}
