:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);color-scheme:light;font-synthesis:none;--bg:#f5f7fa;--surface:#fff;--ink:#182b35;--muted:#637680;--line:#e8edf0;--teal:#148871;--teal-soft:#e7f5ef;--lavender:#efedfc;--shadow:0 8px 30px #183d4d06;--safe-bottom:env(safe-area-inset-bottom,0px)}

*{box-sizing:border-box}
body{margin:0;color:var(--ink);background:var(--bg)}
button,input{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{opacity:.45;cursor:default}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #53c5b099;outline-offset:3px}
button{color:inherit}
a{color:var(--teal)}
svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
button svg{pointer-events:none}
h1,h2,h3,p{margin:0}
button{border:0}
main{max-width:840px;margin:0 auto;padding:0 22px 118px}
.topbar{max-width:840px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:27px 22px 24px}
.brand{display:flex;align-items:center;gap:11px}
.brand-icon{width:42px;height:42px;background:var(--ink);color:#fff;border-radius:14px;display:grid;place-items:center}
.brand-icon svg{width:25px;height:25px;stroke-width:1.6}
.brand strong{display:block;font-size:17px;letter-spacing:-.5px}
.brand small{font-size:11px;color:var(--muted);display:block;margin-top:3px}
.account{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}
.avatar{height:33px;width:33px;background:var(--lavender);color:#7564b0;border-radius:50%;display:grid;place-items:center;font-weight:700}
.preview-label{font-size:11px;padding:7px 12px;background:#fff4da;color:#8d691e;text-align:center;letter-spacing:.1px}
.hero{background:#e7f2ee;border:1px solid #dceae3;border-radius:25px;padding:25px 25px 21px;position:relative;overflow:hidden}
.hero:after{content:"";position:absolute;width:165px;height:165px;border:25px solid #d3e8df;border-radius:50%;right:-64px;top:-58px;opacity:.75;pointer-events:none}
.eyebrow{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:700;letter-spacing:.7px;text-transform:uppercase;color:#49786b;position:relative;z-index:1}
.live-dot{width:6px;height:6px;background:#21a17c;border-radius:50%;box-shadow:0 0 0 4px #21a17c12}
.hero-line{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-top:17px;position:relative;z-index:1}
.hero h1{font-size:31px;font-weight:650;letter-spacing:-1.15px;line-height:1.13}
.hero p{font-size:12px;color:#688578;margin-top:10px;line-height:1.5}
.hero-count{height:67px;min-width:67px;border:1px solid #fff9;border-radius:21px;background:#ffffff73;display:grid;place-items:center;font-size:33px;letter-spacing:-2px;font-weight:600;color:#1c6755}
.hero-bottom{border-top:1px solid #cfe1d8;margin-top:21px;padding-top:15px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:#5d7b70}
.text-action{background:none;display:flex;align-items:center;gap:5px;font-size:11px;font-weight:650;padding:2px;color:inherit}
.text-action svg{width:15px;height:15px}
.hero.paused{background:var(--line);border-color:var(--line)}
.hero.paused:after{display:none}
.hero.paused .live-dot{background:#a0a8ae;box-shadow:none}
.filter-row{display:flex;align-items:center;gap:7px;margin:24px 0 15px}
.filter{padding:9px 16px;border-radius:11px;background:var(--surface);color:var(--muted);font-size:12px;font-weight:600;border:1px solid var(--line)}
.filter.active{background:var(--ink);color:var(--surface);border-color:var(--ink)}
.icon-button{width:35px;height:35px;border-radius:10px;background:transparent;color:var(--muted);display:grid;place-items:center}
.icon-button svg{width:18px;height:18px}
.spacer{flex:1}
.section-title{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:650;margin:0 0 12px}
.section-title span{color:var(--muted);font-weight:400}
.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:19px;padding:18px;box-shadow:var(--shadow);display:flex;flex-direction:column;min-width:0;transition:transform .15s,border-color .15s}
.card:hover{border-color:#cadbd7}
.card-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.subject-icon{height:35px;width:35px;display:grid;place-items:center;border-radius:11px;background:var(--lavender);color:#8271b7;font-size:17px;font-weight:600}
.card[data-subject="математика"] .subject-icon{background:#edf3ff;color:#6c8bc3}
.card[data-subject="химия"] .subject-icon{background:#fdf0e2;color:#c08e54}
.card-time{font-size:10px;color:var(--muted);margin-left:auto;text-align:right;line-height:1.5;max-width:210px}
.dismiss{width:23px;height:23px;background:none;color:#b2bdc3;display:grid;place-items:center;padding:0}
.dismiss svg{width:15px;height:15px}
.card h2{font-size:16px;letter-spacing:-.35px;font-weight:650;margin:14px 0 9px;line-height:1.3}
.badges{display:flex;gap:5px;flex-wrap:wrap}
.badge{display:inline-block;font-size:9px;font-weight:650;background:var(--bg);color:#8a969d;padding:5px 7px;border-radius:5px;white-space:nowrap}
.badge.exam{background:var(--teal-soft);color:var(--teal)}
.post-text{white-space:pre-wrap;font-size:12px;line-height:1.75;color:#657680;margin-top:14px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.post-text.expanded{display:block}
.expand{font-size:10px;color:var(--teal);background:none;text-align:left;margin-top:7px;padding:0;align-self:start}
.card-source{font-size:10px;color:#9da8ae;margin-top:15px;display:flex;gap:5px;align-items:center}
.card-source{margin-bottom:16px}
.card-source svg{width:11px;height:11px}
.date-note{font-size:10px;color:var(--muted);line-height:1.5;margin:-8px 0 14px}
.card-actions{display:flex;gap:7px;margin-top:auto;padding-top:13px;border-top:1px solid var(--line)}
.primary,.secondary{border-radius:11px;padding:13px 17px;font-size:12px;font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:43px;text-decoration:none}
.primary{background:var(--teal);color:white}
.primary svg,.secondary svg{width:16px;height:16px}
.secondary{background:var(--bg);color:var(--ink);border:1px solid var(--line)}
.card-actions .primary{flex:1;padding:10px}
.card-actions .secondary{padding:10px 12px;min-height:38px}
.bottom-nav{position:fixed;bottom:0;left:0;right:0;background:var(--surface);border-top:1px solid var(--line);padding:12px 20px calc(12px + var(--safe-bottom));z-index:20}
.nav-inner{max-width:430px;margin:auto;display:flex;gap:10px}
.nav-item{flex:1;border-radius:12px;background:none;color:#9aa7af;display:flex;gap:9px;align-items:center;justify-content:center;font-size:12px;font-weight:600;padding:12px}
.nav-item svg{width:19px;height:19px}
.nav-item.active{background:var(--teal-soft);color:var(--teal)}
.empty{background:var(--surface);border:1px dashed #d9e4df;border-radius:22px;padding:45px 26px;text-align:center;grid-column:1/-1}
.empty-icon{margin:0 auto 18px;border-radius:21px;height:67px;width:67px;display:grid;place-items:center;color:var(--teal);background:var(--teal-soft)}
.empty-icon svg{height:31px;width:31px}
.empty h2{font-size:21px;font-weight:600;letter-spacing:-.65px}
.empty p{font-size:12px;line-height:1.75;color:var(--muted);max-width:350px;margin:12px auto 20px}
.footnote{font-size:11px;line-height:1.7;color:var(--muted);text-align:center;max-width:430px;margin:23px auto 0}
.settings-head{margin:5px 0 25px}
.settings-head h1{font-size:28px;font-weight:650;letter-spacing:-1px}
.settings-head p{font-size:12px;color:var(--muted);line-height:1.7;margin-top:9px}
.steps{display:flex;gap:6px;margin:0 0 24px}
.steps i{height:3px;flex:1;background:var(--line);border-radius:5px}
.steps i.done{background:var(--teal)}
.step-caption{color:var(--teal);font-size:10px;letter-spacing:.6px;text-transform:uppercase;font-weight:700;margin-bottom:9px}
.question-heading{font-size:20px;letter-spacing:-.65px;margin-bottom:7px;font-weight:650}
.question-desc{font-size:12px;line-height:1.6;color:var(--muted);margin-bottom:20px}
.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.choice{border:1px solid var(--line);border-radius:17px;background:var(--surface);padding:19px;text-align:left;position:relative;min-height:129px}
.choice svg{width:27px;height:27px;color:#9aaab2;margin-bottom:14px}
.choice strong{display:block;font-size:14px;font-weight:650}
.choice small{font-size:10px;display:block;color:var(--muted);margin-top:7px}
.choice.selected{border-color:var(--teal);background:var(--teal-soft)}
.choice.selected svg{color:var(--teal)}
.check-circle{position:absolute;right:13px;top:13px;height:17px;width:17px;border-radius:50%;border:1px solid #d6e0df}
.selected .check-circle{background:var(--teal);border-color:var(--teal)}
.selected .check-circle:after{content:"";position:absolute;width:6px;height:3px;border-left:1.5px solid white;border-bottom:1.5px solid white;transform:rotate(-45deg);top:4px;left:4px}
.field{margin:22px 0}
.field label{font-size:12px;display:block;margin-bottom:9px;font-weight:600}
.field input{width:100%;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:15px;color:var(--ink);font-size:13px}
.field small{display:block;font-size:10px;line-height:1.6;color:var(--muted);margin-top:8px}
.setting-row{display:flex;align-items:center;gap:20px;padding:17px 0;border-bottom:1px solid var(--line)}
.setting-row strong{display:block;font-size:12px;font-weight:600}
.setting-row small{display:block;font-size:10px;line-height:1.7;color:var(--muted);margin-top:6px}
.setting-row>div{flex:1}
.switch{width:39px;height:23px;border-radius:20px;background:#dbe3e7;padding:3px;flex:none;position:relative}
.switch:after{content:"";position:absolute;width:17px;height:17px;background:white;border-radius:50%;left:3px;top:3px;box-shadow:0 1px 3px #0001;transition:left .15s}
.switch.on{background:var(--teal)}
.switch.on:after{left:19px}
.form-actions{display:flex;gap:10px;margin-top:26px}
.form-actions .primary{flex:1}
.exam-choice{min-height:80px}
.exam-choice strong{font-size:23px;letter-spacing:-1px}
.subjects-section{padding:21px 0 4px}
.subjects-section h3{font-size:12px;margin-bottom:12px}
.subject-chips{display:flex;flex-wrap:wrap;gap:7px}
.subject-chip{background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:10px 12px;font-size:11px;color:#85939b;text-transform:capitalize}
.subject-chip.selected{background:var(--teal-soft);border-color:#9bcebc;color:var(--teal)}
.summary{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:21px}
.summary-row{display:flex;gap:14px;padding:15px 0;border-bottom:1px solid var(--line)}
.summary-row:last-child{border:0}
.summary-row svg{color:var(--teal);width:20px;height:20px}
.summary-row span{font-size:10px;display:block;color:var(--muted);margin-bottom:5px}
.summary-row strong{font-size:12px;line-height:1.7;display:block;font-weight:550}
.ready-icon{width:58px;height:58px;border-radius:19px;background:var(--teal-soft);color:var(--teal);display:grid;place-items:center;margin-bottom:19px}
.ready-icon svg{width:30px;height:30px}
.loading{height:80vh;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted);font-size:12px;gap:20px}
.spinner{height:27px;width:27px;border:2px solid var(--line);border-top-color:var(--teal);border-radius:50%;animation:spin .7s linear infinite}
.gate{max-width:400px;margin:13vh auto;padding:30px;text-align:center}
.gate .brand-icon{margin:auto auto 22px}
.gate h1{font-size:24px;letter-spacing:-.7px}
.gate p{font-size:13px;color:var(--muted);line-height:1.8;margin:14px 0 24px}
#toast{position:fixed;z-index:100;bottom:104px;left:50%;transform:translate(-50%,15px);background:#17342ef2;color:#fff;padding:13px 20px;border-radius:13px;font-size:12px;max-width:calc(100% - 40px);text-align:center;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
#toast.visible{opacity:1;transform:translate(-50%,0)}
dialog{border:1px solid var(--line);border-radius:22px;background:var(--surface);color:var(--ink);padding:25px;max-width:calc(100% - 40px);width:390px;box-shadow:0 20px 80px #15352d26}
dialog::backdrop{background:#102a3555;backdrop-filter:blur(3px)}
dialog h2{font-size:20px;letter-spacing:-.5px;margin-bottom:12px}
dialog p{font-size:12px;color:var(--muted);line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
dialog .form-actions{margin-top:20px}
dialog .contact-link{display:block;background:var(--teal-soft);color:var(--teal);border-radius:10px;padding:13px;margin:8px 0;text-decoration:none;font-size:13px}
.dialog-close{float:right}
.settings-extra{margin-top:30px}
.settings-extra h3{font-size:12px;margin-bottom:2px}
.account-label{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dark{color-scheme:dark;--bg:#102127;--surface:#192e35;--ink:#ecf3f5;--muted:#a6bbc4;--line:#294049;--teal:#3ac3a1;--teal-soft:#1d403d;--lavender:#30344b;--shadow:none}
.dark .hero{background:#1b3834;border-color:#284a40}
.dark .hero h1{color:#dcefe7}
.dark .hero:after{border-color:#285347}
.dark .hero-count{background:#245143;color:#a5ddc8;border-color:#497664}
.dark .hero p,.dark .hero-bottom,.dark .eyebrow{color:#a0bdb1}
.dark .hero-bottom{border-color:#35564a}
.dark .post-text{color:#b1c2c8}
.dark .primary{color:#10342b}
.dark .brand-icon{background:var(--teal);color:#0c3028}
.dark .filter.active{color:#102127}
.dark .preview-label{background:#453b24;color:#dfc791}
@keyframes spin{to{transform:rotate(360deg)}
}
@media(max-width:600px){.cards{grid-template-columns:1fr}
main{padding:0 18px 116px}
.topbar{padding:22px 18px}
.hero{padding:22px}
.hero h1{font-size:28px}
.hero-count{height:61px;min-width:61px;font-size:30px}
.account-label{display:none}
.card{padding:18px 19px}
.card h2{font-size:17px}
.post-text{font-size:13px;line-height:1.75}
.badge{font-size:10px}
.card-actions .primary{font-size:12px}
.card-time{font-size:11px}
.choice{padding:18px}
.settings-head{margin-top:6px}
}
@media(min-width:900px){.topbar{padding-top:35px}
.hero h1{font-size:35px}
.hero-line{margin-top:20px}
.hero p{font-size:13px}
.hero{padding:29px}
.bottom-nav{background:transparent;border:0;pointer-events:none}
.nav-inner{pointer-events:auto;background:var(--surface);padding:7px;border-radius:19px;border:1px solid var(--line);box-shadow:0 8px 35px #172e3214}
.wizard{max-width:560px;margin:auto}
.settings-extra{max-width:560px;margin:35px auto 0}
}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}
}
.subscription-page,.information-page{max-width:640px;margin:0 auto}
.plan-card,.info-panel{color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:19px;padding:24px;margin:16px 0}
.plan-card h2{font-size:34px;margin:16px 0}.plan-card h2 small{font-size:15px;font-weight:400;color:var(--muted)}
.plan-card p,.info-panel p{line-height:1.7;font-size:13px;margin:12px 0}.plan-card ul{padding-left:20px;font-size:13px;line-height:1.8}
.payment-notice{background:var(--teal-soft);border:1px solid var(--line);padding:14px;border-radius:12px;line-height:1.6}
.consent-row{display:flex!important;align-items:flex-start;gap:10px;font-size:12px!important;line-height:1.6;margin:16px 0}
.consent-row input{flex:0 0 18px;width:18px!important;height:18px;margin-top:3px;accent-color:var(--teal)}
.consent-row a,.footnote a,.legal-page a{color:var(--teal);text-decoration:underline;text-underline-offset:3px}
.buy-button{width:100%;margin-top:10px}.document-links{display:flex;flex-direction:column}
.document-link{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 0;border-bottom:1px solid var(--line);font-size:13px;color:var(--teal);overflow-wrap:anywhere}
.document-link svg{height:17px;width:17px;flex-shrink:0}.info-panel h2{font-size:18px;margin-bottom:12px}
.legal-page{max-width:860px;margin:30px auto;padding:24px 22px 70px;background:var(--surface);border-radius:18px;overflow-wrap:anywhere}
.legal-page h1{font-size:30px;line-height:1.2;margin:14px 0}.legal-page h2{font-size:18px;margin:26px 0 12px}
.legal-page p{font-size:14px;line-height:1.85;margin:12px 0}.legal-nav{display:flex;flex-wrap:wrap;gap:12px;margin:25px 0;border-bottom:1px solid var(--line);padding-bottom:20px;font-size:13px}
.legal-page .primary{display:inline-flex;margin-top:16px}
@media(max-width:420px){.nav-item{font-size:9px;padding-left:6px;padding-right:6px}.plan-card,.info-panel{padding:19px}.legal-page{margin:0;border-radius:0}.legal-page h1{font-size:26px}}


.nav-item svg{width:19px;height:19px;stroke-width:1.6}
.plan-card h2,.info-panel h2,.settings-head h1{color:var(--ink)}
.payment-notice{color:var(--ink)}
.section-heading-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:var(--teal-soft);color:var(--teal);margin-bottom:16px}
.section-heading-icon svg{width:22px;height:22px}
.robot-mascot{display:block;object-fit:contain;flex-shrink:0}
.mascot-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:144px;margin-bottom:12px}
.mascot-heading .heading-copy{flex:1;min-width:0}.mascot-heading .eyebrow{font-size:10px;letter-spacing:.6px;margin-bottom:9px;color:var(--muted)}
.mascot-heading h1{font-size:30px;line-height:1.15;letter-spacing:-.8px}
.mascot-heading>.robot-mascot{width:130px;height:144px}
.brand-icon.brand-robot{width:42px;height:42px;background:var(--teal-soft);border-radius:13px;overflow:hidden}
.brand-robot>.robot-mascot{width:42px;height:42px;object-fit:contain}
.legal-mascot{float:right;width:116px;height:116px;margin:0 0 14px 20px}
@media(max-width:420px){.mascot-heading{gap:12px;min-height:122px}.mascot-heading>.robot-mascot{width:104px;height:122px}.mascot-heading h1{font-size:27px}.legal-mascot{width:88px;height:88px;margin-left:12px}}
@media(max-width:600px){.nav-item{flex-direction:column;gap:5px;font-size:10px;padding:9px 4px;min-width:0}.nav-inner{gap:3px}}
