/* Своя Доска: shared art direction for the public site and real cabinets. */
:root{--canvas:#f7f9ff;--ink:#111b38;--muted:#64728e;--blue:#1557ed;--blue-deep:#113fc0;--line:#e5eaf5;--paper:#fff;--lavender:#e9eaff}
body{background:var(--canvas);color:var(--ink)}
button,a,summary{ -webkit-tap-highlight-color:transparent }
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #7c9cff;outline-offset:3px}
.button.primary{background:var(--blue);box-shadow:0 8px 20px #1557ed25}
.button.primary:hover{background:var(--blue-deep)}
.button.soft{color:#244370}
.svoya-logo{box-shadow:none;background:#e7ecff;color:#143d9d;position:relative;border-radius:18px;transform:rotate(-5deg)}
.svoya-logo::before{content:"";position:absolute;inset:8px;border:2px solid #a5b7fb;border-radius:12px;pointer-events:none}
.svoya-logo strong,.svoya-logo span{position:relative;transform:rotate(5deg)}
.topbar{border-bottom:1px solid #eef1f8}
.public-header{max-width:1340px;height:91px}
.public-links{gap:27px}
.public-links a:hover,.nav a:hover{color:var(--blue)}
.public-header .nav .button{border:1px solid #dce5f9;box-shadow:0 4px 15px #1f3f8c0a;padding:12px 23px}
.hero.shell{max-width:1340px;min-height:610px;padding-top:66px;padding-bottom:36px;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:42px;overflow:visible}
.hero-copy{position:relative;z-index:2}
.hero .eyebrow{background:#ebf0ff;color:#3d59ad;font-size:11px;letter-spacing:.11em;padding:8px 11px}
.hero .eyebrow i{background:#5d83f8}
.hero h1{font-size:clamp(52px,5.2vw,77px);line-height:1.03;letter-spacing:-.068em;margin:23px 0}
.hero h1 em{color:var(--blue)}
.hero p{font-size:19px;line-height:1.55;color:#596c91;max-width:560px}
.hero-actions{gap:18px;margin-top:28px}
.hero-actions .button.primary{padding:15px 24px;border-radius:13px}
.hero-actions .button.ghost{color:var(--blue);font-weight:750;text-decoration:underline;text-underline-offset:5px}
.hero-benefits{display:flex;gap:18px;flex-wrap:wrap;margin-top:26px;color:#5d7196;font-size:13px}
.hero-benefits span::first-letter{color:var(--blue)}
.lesson-card.real-board-card{position:relative;align-self:center;transform:rotate(-1.8deg);margin:50px 3px 20px;background:#f9fbff;border:1px solid #dce5f8;padding:13px;border-radius:24px;box-shadow:0 25px 65px #23488622;isolation:isolate;overflow:visible}
.real-board-card>img{display:block;width:100%;height:auto;aspect-ratio:auto;margin-left:0;border-radius:14px;position:relative;z-index:1}
.real-board-caption{position:relative;z-index:2;display:flex;justify-content:space-between;gap:10px;align-items:center;padding:3px 5px 11px}
.real-board-caption .student{gap:10px}
.hero-board-mark{width:33px;height:33px;border-radius:9px;display:grid;place-items:center;background:#e5ebff;color:var(--blue);font-size:22px}
.real-board-tag{background:#e9f5ec;color:#28805c}
.real-board-tag:before{background:#51bd84}
.hero-orbit{position:absolute;border-radius:46% 54% 55% 45%;z-index:-1}
.hero-orbit-one{inset:-67px -33px 25px -54px;background:linear-gradient(140deg,#e8eafd,#d8e6ff 62%,#f5e2ef);transform:rotate(10deg)}
.hero-orbit-two{width:200px;height:110px;right:-24px;bottom:-37px;background:#e9e0fb;transform:rotate(-12deg)}
.hero-person{position:absolute;z-index:3;display:flex;align-items:center;gap:9px;background:#fff;padding:7px 12px 7px 7px;border:2px solid #fff;border-radius:17px;box-shadow:0 12px 27px #203a7d2b;transform:rotate(2deg)}
.hero-person strong,.hero-person small{display:block;line-height:1.2;white-space:nowrap}
.hero-person strong{font-size:13px}.hero-person small{font-size:10px;color:#627497;margin-top:3px}
.hero-person-teacher{left:-45px;top:-57px}.hero-person-student{right:-34px;top:-40px}
.avatar-illustrated{display:inline-block;flex:none;width:63px;height:63px;border-radius:50%;border:3px solid #fff;background-image:url('assets/avatar-portraits.png');background-repeat:no-repeat;box-shadow:0 5px 16px #263e7922}
.avatar-teacher{background-color:#dbe7f6;background-size:600% auto;background-position:0% 100%}
.avatar-student{background-color:#acc5eb;background-size:800% auto;background-position:0% 0%}
.avatar-initial{background-image:none!important;background:#e5edff;color:#2553bd;display:inline-grid;place-items:center;font-size:20px;font-weight:850}
.account-avatar-link{display:inline-flex;align-items:center;justify-content:center;flex:none;border-radius:50%}
.account-avatar-link .avatar-illustrated{width:39px;height:39px;font-size:15px;border-width:2px}
.account-avatar-link:hover .avatar-illustrated{outline:2px solid #b5c8ff;outline-offset:2px}
.quick.shell{max-width:1300px;padding-top:5px;padding-bottom:24px}
.quick-card{border-color:#e6ebf7;box-shadow:0 8px 25px #1e3d7c08;padding:19px}
.quick-card strong{color:#1d2d50}
.q-icon{background:#e8efff;color:#2857c5}
.subject-section.shell{max-width:1300px;margin:14px auto 72px;padding:27px 30px 30px;border:1px solid #e4e9fa;border-radius:28px;background:linear-gradient(135deg,#f0f3ff,#f8faff);box-shadow:0 15px 38px #3049940b}
.subject-intro h2{color:var(--ink)}
.subject-intro p{color:#5c6f90}
.marketing-section{margin-top:0;background:#172744}
.section.alt{background:#eef3ff}
.section h2,.marketing-lead h2{color:inherit}
.task,.tariff{border-color:#e5ebf6;box-shadow:0 8px 24px #2a437a0a}
.cta-card{background:#172744}

/* Teacher workspace */
#account-content{display:flex;flex-direction:column}
#account-home{order:0}.dashboard-lead{order:1}.dashboard-today,#account-webinar{order:2}
.account-lessons,#account-library{order:3}#account-promotion{order:4}.account-secondary{order:5}
#account-billing{order:6}.account-bottom{order:7}
.account-layout{max-width:1480px}
.account-layout .account-main{padding-top:31px}
.account-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 23px}
.account-intro h1{font-size:clamp(29px,3.4vw,43px);letter-spacing:-.045em;margin:9px 0 6px}
.account-intro .avatar-illustrated{width:61px;height:61px}
.account-intro-avatar-link{display:flex;align-items:center;flex-direction:column;gap:4px;flex:none;color:#3156ac;font-size:12px;font-weight:780;text-decoration:none;white-space:nowrap}
.account-intro-avatar-link:hover span:last-child{text-decoration:underline;text-underline-offset:3px}
.teacher-example-actions{display:flex;align-items:center;flex-direction:column;gap:11px;flex:none}
.teacher-example-actions .button{white-space:nowrap;text-align:center}.teacher-example-actions>a:last-child{color:#3156ac;font-size:13px;font-weight:750;text-decoration:none}
.teacher-example-actions>a:last-child:hover{text-decoration:underline;text-underline-offset:3px}
@media(max-width:600px){.teacher-example-actions{align-items:stretch;margin-top:20px}.teacher-example-actions .button{white-space:normal}.teacher-example-actions>a:last-child{text-align:center}}
.account-intro .eyebrow,.learner-intro .eyebrow{background:#edf1ff;color:#385aaf;letter-spacing:.12em;font-size:10px}
.dashboard-kicker{font-size:10px;letter-spacing:.13em;font-weight:850;color:#5e75a5}
.dashboard-lead{display:grid;grid-template-columns:1.28fr 1fr 1fr;gap:14px;margin-bottom:15px;align-items:stretch}
.dashboard-lead .account-card{position:relative;min-height:247px;padding:26px;display:flex;flex-direction:column;align-items:flex-start;margin:0}
.dashboard-card-heading{display:flex;align-items:center;gap:10px;margin-bottom:17px}
.dashboard-symbol{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#eaf0ff;color:#1d55cf;font-size:23px;line-height:1}
.dashboard-board{background:linear-gradient(135deg,#eaf0ff,#f2f5ff);border-color:#dce5fa}
.dashboard-board .dashboard-symbol{background:#fff}
.dashboard-avito{background:#fff}
.dashboard-specialist{background:#fffbf6;border-color:#f3e7d8}
.dashboard-specialist .dashboard-symbol{background:#fff0dd;color:#b67825}
.dashboard-lead h2{font-size:clamp(20px,2vw,25px);margin:0 0 5px;letter-spacing:-.035em}
.dashboard-lead p{font-size:14px;line-height:1.42;margin:0 0 13px;color:#5c6d86}
.dashboard-lead .account-muted{margin-top:auto;margin-bottom:10px;font-size:12px}
.dashboard-summary{margin-top:auto!important;font-weight:680;color:#35537f!important}
.dashboard-text-link{font-size:14px;font-weight:800;color:var(--blue);margin-top:auto;text-decoration:none}
.dashboard-text-link:hover{text-decoration:underline;text-underline-offset:4px}
.board-chooser{position:relative;margin-top:2px;align-self:stretch}
.board-chooser>summary{list-style:none;display:flex;justify-content:space-between;cursor:pointer}
.board-chooser>summary::-webkit-details-marker{display:none}
.board-chooser-panel{position:absolute;z-index:20;top:calc(100% + 7px);left:0;width:min(350px,calc(100vw - 42px));padding:16px;border:1px solid #dce4f6;border-radius:16px;background:#fff;box-shadow:0 18px 42px #1b367b2b;display:grid;gap:8px}
.board-chooser-panel>strong{font-size:13px;margin-bottom:3px}
.board-chooser-panel .button{width:100%;justify-content:flex-start;text-align:left;white-space:normal;box-shadow:none;border:1px solid #e1e8f3}
.board-chooser-panel #board-create{color:var(--blue)}
.board-chooser-panel #board-options{display:grid;gap:8px}
.board-chooser-panel .account-muted{margin:0;font-weight:400}
.dashboard-today{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:0 0 17px;padding:14px 19px;border:1px solid #e7ebf5;border-radius:15px;background:#fff}
.dashboard-today div{display:grid;gap:3px}
.dashboard-today strong{font-size:14px;font-weight:690;color:#28395a}
.dashboard-today a{color:var(--blue);font-size:13px;font-weight:780;white-space:nowrap}
.account-lessons{margin-bottom:23px}
.account-section-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.account-section-actions .button{white-space:nowrap}
.account-section-head h2{font-size:24px}
.lesson-person{display:flex;align-items:center;gap:13px;min-width:0}
.person-initial{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:50%;background:#e6edff;color:#365ac3;font-weight:850;font-size:16px}
.account-lesson:nth-child(3n + 2) .person-initial{background:#f9e9db;color:#9e632b}
.account-lesson:nth-child(3n + 3) .person-initial{background:#e5f4e9;color:#4a805a}
.dashboard-promotion{scroll-margin-top:25px;margin:0 0 22px}
.dashboard-section-title{display:flex;align-items:baseline;gap:13px;margin:0 0 13px}
.dashboard-section-title h2{font-size:23px;letter-spacing:-.035em;margin:0}
.dashboard-promotion-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.dashboard-promotion-grid .account-card{min-width:0}
.dashboard-promotion-grid h3{font-size:21px;letter-spacing:-.025em;margin:0 0 8px}
.dashboard-promotion-grid h4{margin:0;font-size:15px}
.dashboard-promotion-grid p{font-size:14px}
.dashboard-promotion-grid form{margin-top:15px}
.dashboard-inline-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:18px 0 8px}
#avito-chat-list{display:grid;gap:7px;margin:10px 0}
#avito-chat-list .button{justify-content:flex-start;text-align:left;white-space:normal}
#avito-messages{border-top:1px solid #e6ebf4;margin-top:12px;padding-top:8px}
#avito-connection{border-top:1px solid #e9edf5;padding-top:12px;margin-top:18px}
#avito-connection summary{cursor:pointer;color:#47608b;font-weight:700;font-size:13px}
#avito-disconnect{margin-top:12px}
#avitologist-orders{font-size:13px;color:#5e6d84}
.account-secondary{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:20px}
.account-secondary .account-card{padding:20px;min-height:134px}
.account-secondary .account-card p{font-size:13px;margin-bottom:0}
.account-secondary .account-icon{font-size:18px;margin-bottom:9px}
.account-secondary .account-card h2{font-size:17px}
.account-billing,.account-referral{margin-bottom:20px}
.account-bottom{margin-top:0}

/* Learner: a quieter version of the same visual language. */
.learner-main{width:min(1110px,calc(100% - 48px));margin:33px auto 76px}
.learner-preview-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;margin:0 0 20px;border:1px solid #d6e4fa;border-radius:15px;background:#edf4ff;color:#28416c}
.learner-preview-banner strong{font-size:17px}.learner-preview-banner p{margin:4px 0 0;font-size:13px;line-height:1.45}.learner-preview-banner .button{flex:none}
.learner-preview-mode .learner-join,.learner-preview-mode .learner-action{opacity:.58;cursor:not-allowed}
@media(max-width:600px){.learner-preview-banner{align-items:flex-start;flex-direction:column}.learner-preview-banner .button{width:100%}.account-section-actions{width:100%}.account-section-actions .button{flex:1 1 auto;text-align:center}}
.learner-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:19px}
.learner-intro h1{margin:8px 0 3px}
.learner-intro>div>p:last-child{margin:0;color:#5e6f8c;font-size:14px}
.learner-nav{margin-bottom:18px}
.learner-nav a{background:#fff;border:1px solid #e4eaf4;color:#4a5e80}
.learner-nav a[href="#home"]{background:#eaf0ff;color:#2452b5;border-color:#d6e3fa}
.learner-card{box-shadow:0 9px 28px #2236530a;border-color:#e6ebf4}
.learner-feature{background:linear-gradient(125deg,#eaf0ff,#f9fbff);border-color:#dce6fb}
.learner-row{position:relative;padding-left:66px}
.learner-next{min-height:110px}
.learner-person{position:absolute;top:17px;left:0}
.learner-next .learner-person{top:4px}
.learner-next h4{font-size:20px}
.learner-more{color:var(--blue)}

@media(max-width:1100px){.dashboard-lead{grid-template-columns:1fr 1fr}.dashboard-board{grid-column:1/-1}.dashboard-lead .account-card{min-height:210px}.hero.shell{gap:20px}.hero h1{font-size:clamp(47px,5vw,66px)}}
@media(max-width:800px){.hero.shell{grid-template-columns:1fr;min-height:0;padding-top:42px;gap:25px}.lesson-card.real-board-card{width:min(630px,calc(100% - 60px));margin:65px auto 18px}.subject-section.shell{margin:10px 18px 55px}.dashboard-promotion-grid{grid-template-columns:1fr}.account-secondary{grid-template-columns:repeat(2,minmax(0,1fr))}.account-layout .account-main{padding-top:25px}}
@media(max-width:600px){.public-header{height:75px}.hero h1{font-size:clamp(43px,10vw,56px)}.hero p{font-size:16px}.hero-benefits{font-size:12px}.hero-person{padding:4px 7px 4px 4px}.hero-person .avatar-illustrated{width:38px;height:38px}.hero-person strong{font-size:11px}.hero-person small{font-size:9px}.hero-person-teacher{left:-30px;top:-43px}.hero-person-student{right:-26px;top:-40px}.real-board-caption .student span:last-child{font-size:10px}.real-board-tag{display:none}.quick-grid{gap:9px}.subject-section.shell{padding:19px 16px;border-radius:20px}.account-intro .avatar-illustrated,.learner-intro .avatar-illustrated{width:50px;height:50px}.dashboard-lead{grid-template-columns:1fr;gap:10px}.dashboard-board{grid-column:auto}.dashboard-lead .account-card{min-height:0;padding:20px}.dashboard-card-heading{margin-bottom:10px}.dashboard-lead .account-muted{margin-top:5px}.dashboard-summary{margin-top:6px!important}.dashboard-today{align-items:flex-start;flex-direction:column;gap:6px}.account-secondary{grid-template-columns:1fr}.account-secondary .account-card{min-height:0}.learner-main{width:calc(100% - 30px)}.learner-intro{align-items:flex-start}.learner-nav{display:flex;overflow-x:auto;flex-wrap:nowrap;padding-bottom:5px}.learner-nav a{flex:none;white-space:nowrap}.learner-home-grid{grid-template-columns:1fr}}
